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

Collapse All | Expand All

(-)b/net/whois/Makefile (-1 / +1 lines)
Lines 1-48 Link Here
1
# Created by: Filippo Natali <filippo@widestore.net>
1
# Created by: Filippo Natali <filippo@widestore.net>
2
# $FreeBSD$
2
# $FreeBSD$
3
3
4
PORTNAME=	whois
4
PORTNAME=	whois
5
DISTVERSIONPREFIX=	v
5
DISTVERSIONPREFIX=	v
6
DISTVERSION=	5.5.6
6
DISTVERSION=	5.5.7
7
CATEGORIES=	net
7
CATEGORIES=	net
8
8
9
MAINTAINER=	coco@executive-computing.de
9
MAINTAINER=	coco@executive-computing.de
10
COMMENT=	Marco d'Itri whois client
10
COMMENT=	Marco d'Itri whois client
11
11
12
LICENSE=	GPLv2+
12
LICENSE=	GPLv2+
13
LICENSE_FILE=	${WRKSRC}/COPYING
13
LICENSE_FILE=	${WRKSRC}/COPYING
14
14
15
USES=		iconv gmake perl5 pkgconfig
15
USES=		iconv gmake perl5 pkgconfig
16
USE_PERL5=	build
16
USE_PERL5=	build
17
MAKE_ARGS=	BASEDIR="${STAGEDIR}"
17
MAKE_ARGS=	BASEDIR="${STAGEDIR}"
18
18
19
OPTIONS_DEFINE=	NLS
19
OPTIONS_DEFINE=	NLS
20
20
21
OPTIONS_SUB=	yes
21
OPTIONS_SUB=	yes
22
NLS_USES=	gettext
22
NLS_USES=	gettext
23
23
24
USE_GITHUB=	yes
24
USE_GITHUB=	yes
25
GH_ACCOUNT=	rfc1036
25
GH_ACCOUNT=	rfc1036
26
26
27
post-patch:
27
post-patch:
28
	@${REINPLACE_CMD} -e "s|%%MWHOISCONF%%|${PREFIX}/etc/mwhois.conf|g" ${WRKSRC}/whois.1
28
	@${REINPLACE_CMD} -e "s|%%MWHOISCONF%%|${PREFIX}/etc/mwhois.conf|g" ${WRKSRC}/whois.1
29
	@${REINPLACE_CMD} -e "s|%%MWHOIS%%|mwhois|g" ${WRKSRC}/Makefile
29
	@${REINPLACE_CMD} -e "s|%%MWHOIS%%|mwhois|g" ${WRKSRC}/Makefile
30
	@${REINPLACE_CMD} -e "s|%%MWHOIS%%|mwhois|g" ${WRKSRC}/po/Makefile
30
	@${REINPLACE_CMD} -e "s|%%MWHOIS%%|mwhois|g" ${WRKSRC}/po/Makefile
31
	@${REINPLACE_CMD} -e "s|%%MWHOIS%%|mwhois|g" ${WRKSRC}/whois.1
31
	@${REINPLACE_CMD} -e "s|%%MWHOIS%%|mwhois|g" ${WRKSRC}/whois.1
32
	@${REINPLACE_CMD} -e "s|%%MWHOIST%%|MWHOIS|g" ${WRKSRC}/whois.1
32
	@${REINPLACE_CMD} -e "s|%%MWHOIST%%|MWHOIS|g" ${WRKSRC}/whois.1
33
	@${REINPLACE_CMD} -e "s|%%MWHOIST%%|MWHOIS|g" ${WRKSRC}/whois.conf.5
33
	@${REINPLACE_CMD} -e "s|%%MWHOIST%%|MWHOIS|g" ${WRKSRC}/whois.conf.5
34
	@${REINPLACE_CMD} -e "s|%%MWHOIS%%|mwhois|g" ${WRKSRC}/whois.conf.5
34
	@${REINPLACE_CMD} -e "s|%%MWHOIS%%|mwhois|g" ${WRKSRC}/whois.conf.5
35
	@${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}/whois.conf.5
36
	@${REINPLACE_CMD} -e "s|%%MWHOISCONF%%|${PREFIX}/etc/mwhois.conf|g" ${WRKSRC}/config.h
36
	@${REINPLACE_CMD} -e "s|%%MWHOISCONF%%|${PREFIX}/etc/mwhois.conf|g" ${WRKSRC}/config.h
37
	@${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/config.h
37
	@${REINPLACE_CMD} -e "s|%%PREFIX%%|${PREFIX}|g" ${WRKSRC}/config.h
38
38
39
post-patch-NLS-off:
39
post-patch-NLS-off:
40
	@${REINPLACE_CMD} -e "s| pos||" -e "s| install-pos||" \
40
	@${REINPLACE_CMD} -e "s| pos||" -e "s| install-pos||" \
41
			-e "s|-lintl||" ${WRKSRC}/Makefile
41
			-e "s|-lintl||" ${WRKSRC}/Makefile
42
	@${REINPLACE_CMD} -e "s|# define ENABLE_NLS||" ${WRKSRC}/config.h
42
	@${REINPLACE_CMD} -e "s|# define ENABLE_NLS||" ${WRKSRC}/config.h
43
43
44
post-install:
44
post-install:
45
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/mwhois
45
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/mwhois
46
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/mkpasswd
46
	${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/mkpasswd
47
47
48
.include <bsd.port.mk>
48
.include <bsd.port.mk>
(-)b/net/whois/distinfo (-3 / +3 lines)
Lines 1-3 Link Here
1
TIMESTAMP = 1586583966
1
TIMESTAMP = 1602430665
2
SHA256 (rfc1036-whois-v5.5.6_GH0.tar.gz) = fa86a9da4b6e79b6a04b0110f7f4f46214d038a051fef3d0767a09b44e49e8c8
2
SHA256 (rfc1036-whois-v5.5.7_GH0.tar.gz) = ae389c1486cdeae99f5f02940f98f5d7ff1f08ac0f96810365159b27b0189b5e
3
SIZE (rfc1036-whois-v5.5.6_GH0.tar.gz) = 103581
3
SIZE (rfc1036-whois-v5.5.7_GH0.tar.gz) = 102666
(-)b/net/whois/files/patch-po_Makefile (-3 / +3 lines)
Lines 1-35 Link Here
1
--- po/Makefile.orig	2019-12-31 02:05:47 UTC
1
--- po/Makefile.orig	2020-10-03 15:43:15 UTC
2
+++ po/Makefile
2
+++ po/Makefile
3
@@ -1,4 +1,7 @@
3
@@ -1,4 +1,7 @@
4
 prefix = /usr
4
 prefix = /usr
5
+ifdef PREFIX
5
+ifdef PREFIX
6
+prefix := $(PREFIX)
6
+prefix := $(PREFIX)
7
+endif
7
+endif
8
 
8
 
9
 ifdef DESTDIR
9
 ifdef DESTDIR
10
 BASEDIR := $(DESTDIR)
10
 BASEDIR := $(DESTDIR)
11
@@ -8,12 +11,14 @@ INSTALL= install
11
@@ -8,12 +11,14 @@ INSTALL= install
12
 
12
 
13
 INSTALLNLSDIR=$(BASEDIR)$(prefix)/share/locale
13
 INSTALLNLSDIR=$(BASEDIR)$(prefix)/share/locale
14
 
14
 
15
-PACKAGE = whois
15
-PACKAGE = whois
16
+PACKAGE = %%MWHOIS%%
16
+PACKAGE = %%MWHOIS%%
17
 
17
 
18
 CATALOGS = cs.mo da.mo de.mo el.mo es.mo eu.mo fi.mo fr.mo it.mo ja.mo nb.mo pl.mo pt_BR.mo ru.mo zh_CN.mo
18
 CATALOGS = cs.mo da.mo de.mo el.mo es.mo eu.mo fi.mo fr.mo it.mo ja.mo pl.mo pt_BR.mo ru.mo zh_CN.mo
19
 
19
 
20
 POTFILES=../whois.c ../mkpasswd.c
20
 POTFILES=../whois.c ../mkpasswd.c
21
 
21
 
22
+.SUFFIXES:	.po .mo
22
+.SUFFIXES:     .po .mo
23
+
23
+
24
 all: $(PACKAGE).pot $(CATALOGS)
24
 all: $(PACKAGE).pot $(CATALOGS)
25
 
25
 
26
 $(PACKAGE).pot: $(POTFILES)
26
 $(PACKAGE).pot: $(POTFILES)
27
@@ -45,7 +50,7 @@ clean:
27
@@ -45,7 +50,7 @@ clean:
28
 	rm -f *.mo
28
 	rm -f *.mo
29
 
29
 
30
 distclean: clean
30
 distclean: clean
31
-	rm -f whois.pot
31
-	rm -f whois.pot
32
+	rm -f %%MWHOIS%%.pot
32
+	rm -f %%MWHOIS%%.pot
33
 
33
 
34
 install: $(CATALOGS)
34
 install: $(CATALOGS)
35
 	for n in $(CATALOGS); do \
35
 	for n in $(CATALOGS); do \

Return to bug 250275