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> |