aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorantoine <antoine@FreeBSD.org>2014-11-16 06:50:10 +0800
committerantoine <antoine@FreeBSD.org>2014-11-16 06:50:10 +0800
commit51851917402033f6b63f25a41ea6b9ada19a84fa (patch)
treee5b6fb0684a006bd25c6f4edcb4a30f209cd4036 /net
parentcdbd86716f0dc22b7df7757fc61da62a7b8a3b6f (diff)
downloadfreebsd-ports-gnome-51851917402033f6b63f25a41ea6b9ada19a84fa.tar.gz
freebsd-ports-gnome-51851917402033f6b63f25a41ea6b9ada19a84fa.tar.zst
freebsd-ports-gnome-51851917402033f6b63f25a41ea6b9ada19a84fa.zip
Cleanup plist
Diffstat (limited to 'net')
-rw-r--r--net/hinfo/Makefile19
-rw-r--r--net/hinfo/pkg-plist11
2 files changed, 10 insertions, 20 deletions
diff --git a/net/hinfo/Makefile b/net/hinfo/Makefile
index 329c03fe372f..f4c1568b9582 100644
--- a/net/hinfo/Makefile
+++ b/net/hinfo/Makefile
@@ -3,7 +3,7 @@
PORTNAME= hinfo
PORTVERSION= 1.0
-PORTREVISION= 3
+PORTREVISION= 4
CATEGORIES= net perl5
# note: the "true" MASTER_SITE is http://www.blars.org, but
# due to policies on that site, it is not reachable from the
@@ -16,30 +16,23 @@ COMMENT= Utility primarily designed to find the owner of an IP block
RUN_DEPENDS= p5-Net-DNS>=0:${PORTSDIR}/dns/p5-Net-DNS \
wget:${PORTSDIR}/ftp/wget
-USES= perl5
+USES= perl5 shebangfix
USE_PERL5= run
+SHEBANG_FILES= ${HINFO_SCRIPTS}
DATADIR?= ${PREFIX}/lib/${PORTNAME}
HINFO_DBFILES= dnsbl.ins.pl whois.ins.pl
+# By default, we don't install myhostinfo.cgi. Install it if you wish; it'll
+# already be patched for you.
HINFO_SCRIPTS= hinfo hinfo-update myhostinfo.cgi
NO_BUILD= yes
-# By default, we don't install myhostinfo.cgi. Install it if you wish; it'll
-# already be patched for you.
-post-extract:
-.for filename in ${HINFO_SCRIPTS}
- ${REINPLACE_CMD} -E '1s|^#!.+|#!${PERL}|' ${WRKSRC}/${filename}
-.endfor
-
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/hinfo ${STAGEDIR}${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/hinfo-update ${STAGEDIR}${PREFIX}/sbin
- ${INSTALL_DATA} ${WRKSRC}/hinfo.conf ${STAGEDIR}${PREFIX}/etc/hinfo.conf.example
-.if !exists(${STAGEDIR}${PREFIX}/etc/hinfo.conf)
- ${INSTALL_DATA} ${WRKSRC}/hinfo.conf ${STAGEDIR}${PREFIX}/etc/hinfo.conf
-.endif
+ ${INSTALL_DATA} ${WRKSRC}/hinfo.conf ${STAGEDIR}${PREFIX}/etc/hinfo.conf.sample
${INSTALL_MAN} ${WRKSRC}/hinfo.1 ${STAGEDIR}${PREFIX}/man/man1/
${INSTALL_MAN} ${WRKSRC}/hinfo.conf.5 ${STAGEDIR}${PREFIX}/man/man5/
@${MKDIR} ${STAGEDIR}${DATADIR}
diff --git a/net/hinfo/pkg-plist b/net/hinfo/pkg-plist
index 7ff64007ee1c..06dd5c09141b 100644
--- a/net/hinfo/pkg-plist
+++ b/net/hinfo/pkg-plist
@@ -1,10 +1,7 @@
-man/man1/hinfo.1.gz
-man/man5/hinfo.conf.5.gz
bin/hinfo
-etc/hinfo.conf
-etc/hinfo.conf.example
-sbin/hinfo-update
+@sample etc/hinfo.conf.sample
%%DATADIR%%/dnsbl.ins.pl
%%DATADIR%%/whois.ins.pl
-@dirrm %%DATADIR%%
-@dirrmtry lib/hinfo
+man/man1/hinfo.1.gz
+man/man5/hinfo.conf.5.gz
+sbin/hinfo-update