View | Details | Raw Unified | Return to bug 190799 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (-7 / +10 lines)
Lines 2-22 Link Here
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	whois
4
PORTNAME=	whois
5
PORTVERSION=	5.0.23
5
PORTVERSION=	5.1.4
6
CATEGORIES=	net
6
CATEGORIES=	net
7
MASTER_SITES=	${MASTER_SITE_DEBIAN_POOL}
7
MASTER_SITES=	${MASTER_SITE_DEBIAN_POOL}
8
DISTNAME=	${PORTNAME}_${PORTVERSION}
8
DISTNAME=	${PORTNAME}_${PORTVERSION}
9
9
10
MAINTAINER=	lapo@lapo.it
10
MAINTAINER=	coco@executive-computing.de
11
COMMENT=	Marco d'Itri whois client
11
COMMENT=	Marco d'Itri whois client
12
12
13
LICENSE=	GPLv2
13
LICENSE=	GPLv2
14
LICENSE_FILE=	${WRKSRC}/COPYING
14
LICENSE_FILE=	${WRKSRC}/COPYING
15
15
16
BROKEN=		Unfetchable
16
USES=		iconv gmake perl5 tar:xz
17
18
USES=		iconv gmake perl5
19
USE_XZ=		yes
20
USE_PERL5=	build
17
USE_PERL5=	build
21
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
18
WRKSRC=		${WRKDIR}/${PORTNAME}-${PORTVERSION}
22
MAKE_ARGS=	BASEDIR="${STAGEDIR}"
19
MAKE_ARGS=	BASEDIR="${STAGEDIR}"
Lines 29-35 Link Here
29
.include <bsd.port.options.mk>
26
.include <bsd.port.options.mk>
30
27
31
post-patch:
28
post-patch:
32
	@${REINPLACE_CMD} -e "s|%%LOCALBASE%%|${LOCALBASE}|g" ${WRKSRC}/Makefile
29
	@${REINPLACE_CMD} -e "s|%%MWHOISCONF%%|${PREFIX}/etc/mwhois.conf|g" ${WRKSRC}/whois.1
30
	@${REINPLACE_CMD} -e "s|%%MWHOIS%%|mwhois|g" ${WRKSRC}/whois.1
31
	@${REINPLACE_CMD} -e "s|%%MWHOIST%%|MWHOIS|g" ${WRKSRC}/whois.1
32
	@${REINPLACE_CMD} -e "s|%%MWHOIST%%|MWHOIS|g" ${WRKSRC}/whois.conf.5
33
	@${REINPLACE_CMD} -e "s|%%MWHOIS%%|mwhois|g" ${WRKSRC}/whois.conf.5
34
	@${REINPLACE_CMD} -e "s|%%MWHOISCONF%%|${PREFIX}/etc/mwhois.conf|g" ${WRKSRC}/whois.conf.5
35
	@${REINPLACE_CMD} -e "s|%%MWHOISCONF%%|${PREFIX}/etc/mwhois.conf|g" ${WRKSRC}/config.h
33
.if ! ${PORT_OPTIONS:MNLS}
36
.if ! ${PORT_OPTIONS:MNLS}
34
	@${REINPLACE_CMD} -e "s| pos||" -e "s| install-pos||" \
37
	@${REINPLACE_CMD} -e "s| pos||" -e "s| install-pos||" \
35
			-e "s|-lintl||" ${WRKSRC}/Makefile
38
			-e "s|-lintl||" ${WRKSRC}/Makefile
(-)distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (whois_5.0.23.tar.xz) = 6b486a42a4aa83b5f921083d518176726b6d2d903bc8dab5c6126ebe2bea1bf1
1
SHA256 (whois_5.1.4.tar.xz) = 678f8677d0e2d4836b14c8e95ad875ec569cec282572635f920888462cc5daef
2
SIZE (whois_5.0.23.tar.xz) = 70116
2
SIZE (whois_5.1.4.tar.xz) = 76804
(-)files/patch-Makefile (-3 / +7 lines)
Lines 1-5 Link Here
1
--- Makefile.orig	2013-03-30 02:31:42.000000000 +0100
1
--- Makefile.orig	2014-05-21 16:24:13.000000000 +0200
2
+++ Makefile	2014-01-20 18:16:15.000000000 +0100
2
+++ Makefile	2014-06-08 18:14:09.000000000 +0200
3
@@ -1,6 +1,8 @@
3
@@ -1,6 +1,8 @@
4
-prefix = /usr
4
-prefix = /usr
5
+prefix = ${PREFIX}
5
+prefix = ${PREFIX}
Lines 10-25 Link Here
10
 
10
 
11
 PERL = perl
11
 PERL = perl
12
 INSTALL = install
12
 INSTALL = install
13
@@ -92,15 +94,15 @@
13
@@ -98,17 +100,17 @@
14
 
14
 
15
 install-whois: whois
15
 install-whois: whois
16
 	$(INSTALL) -d $(BASEDIR)$(prefix)/bin/
16
 	$(INSTALL) -d $(BASEDIR)$(prefix)/bin/
17
-	$(INSTALL) -d $(BASEDIR)$(prefix)/share/man/man1/
17
-	$(INSTALL) -d $(BASEDIR)$(prefix)/share/man/man1/
18
-	$(INSTALL) -d $(BASEDIR)$(prefix)/share/man/man5/
18
-	$(INSTALL) -m 0755 whois $(BASEDIR)$(prefix)/bin/
19
-	$(INSTALL) -m 0755 whois $(BASEDIR)$(prefix)/bin/
19
-	$(INSTALL) -m 0644 whois.1 $(BASEDIR)$(prefix)/share/man/man1/
20
-	$(INSTALL) -m 0644 whois.1 $(BASEDIR)$(prefix)/share/man/man1/
21
-	$(INSTALL) -m 0644 whois.conf.5 $(BASEDIR)$(prefix)/share/man/man5/
20
+	$(INSTALL) -d $(BASEDIR)$(prefix)/man/man1/
22
+	$(INSTALL) -d $(BASEDIR)$(prefix)/man/man1/
23
+	$(INSTALL) -d $(BASEDIR)$(prefix)/man/man5/
21
+	$(INSTALL) -m 0755 whois $(BASEDIR)$(prefix)/bin/mwhois
24
+	$(INSTALL) -m 0755 whois $(BASEDIR)$(prefix)/bin/mwhois
22
+	$(INSTALL) -m 0644 whois.1 $(BASEDIR)$(prefix)/man/man1/mwhois.1
25
+	$(INSTALL) -m 0644 whois.1 $(BASEDIR)$(prefix)/man/man1/mwhois.1
26
+	$(INSTALL) -m 0644 whois.conf.5 $(BASEDIR)$(prefix)/man/man5/mwhois.conf.5
23
 
27
 
24
 install-mkpasswd: mkpasswd
28
 install-mkpasswd: mkpasswd
25
 	$(INSTALL) -d $(BASEDIR)$(prefix)/bin/
29
 	$(INSTALL) -d $(BASEDIR)$(prefix)/bin/
(-)files/patch-po_Makefile (-3 / +3 lines)
Lines 1-5 Link Here
1
--- po/Makefile.orig	2013-03-30 02:31:41.000000000 +0100
1
--- po/Makefile.orig	2014-06-08 18:22:54.000000000 +0200
2
+++ po/Makefile	2014-01-20 17:52:17.051238058 +0100
2
+++ po/Makefile	2014-06-08 18:23:37.000000000 +0200
3
@@ -1,4 +1,4 @@
3
@@ -1,4 +1,4 @@
4
-prefix = /usr
4
-prefix = /usr
5
+prefix = ${PREFIX}
5
+prefix = ${PREFIX}
Lines 10-16 Link Here
10
 
10
 
11
 POTFILES=../whois.c ../mkpasswd.c
11
 POTFILES=../whois.c ../mkpasswd.c
12
 
12
 
13
+.SUFFIXES:      .po .mo
13
+.SUFFIXES:	.po .mo
14
+
14
+
15
 all: $(PACKAGE).pot $(CATALOGS)
15
 all: $(PACKAGE).pot $(CATALOGS)
16
 
16
 
(-)pkg-plist (-1 / +2 lines)
Lines 2-7 Link Here
2
bin/mwhois
2
bin/mwhois
3
man/man1/mkpasswd.1.gz
3
man/man1/mkpasswd.1.gz
4
man/man1/mwhois.1.gz
4
man/man1/mwhois.1.gz
5
man/man5/mwhois.conf.5.gz
5
%%NLS%%share/locale/cs/LC_MESSAGES/whois.mo
6
%%NLS%%share/locale/cs/LC_MESSAGES/whois.mo
6
%%NLS%%share/locale/da/LC_MESSAGES/whois.mo
7
%%NLS%%share/locale/da/LC_MESSAGES/whois.mo
7
%%NLS%%share/locale/de/LC_MESSAGES/whois.mo
8
%%NLS%%share/locale/de/LC_MESSAGES/whois.mo
Lines 12-18 Link Here
12
%%NLS%%share/locale/fr/LC_MESSAGES/whois.mo
13
%%NLS%%share/locale/fr/LC_MESSAGES/whois.mo
13
%%NLS%%share/locale/it/LC_MESSAGES/whois.mo
14
%%NLS%%share/locale/it/LC_MESSAGES/whois.mo
14
%%NLS%%share/locale/ja/LC_MESSAGES/whois.mo
15
%%NLS%%share/locale/ja/LC_MESSAGES/whois.mo
15
%%NLS%%share/locale/no/LC_MESSAGES/whois.mo
16
%%NLS%%share/locale/nb/LC_MESSAGES/whois.mo
16
%%NLS%%share/locale/pl/LC_MESSAGES/whois.mo
17
%%NLS%%share/locale/pl/LC_MESSAGES/whois.mo
17
%%NLS%%share/locale/pt_BR/LC_MESSAGES/whois.mo
18
%%NLS%%share/locale/pt_BR/LC_MESSAGES/whois.mo
18
%%NLS%%share/locale/ru/LC_MESSAGES/whois.mo
19
%%NLS%%share/locale/ru/LC_MESSAGES/whois.mo

Return to bug 190799