Stage
This commit is contained in:
parent
db1aeb286c
commit
c853fbecde
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=351473
2 changed files with 15 additions and 14 deletions
|
@ -24,31 +24,27 @@ DATADIR?= ${PREFIX}/lib/${PORTNAME}
|
||||||
HINFO_DBFILES= dnsbl.ins.pl whois.ins.pl
|
HINFO_DBFILES= dnsbl.ins.pl whois.ins.pl
|
||||||
HINFO_SCRIPTS= hinfo hinfo-update myhostinfo.cgi
|
HINFO_SCRIPTS= hinfo hinfo-update myhostinfo.cgi
|
||||||
|
|
||||||
MAN1= hinfo.1
|
|
||||||
MAN5= hinfo.conf.5
|
|
||||||
|
|
||||||
NO_BUILD= yes
|
NO_BUILD= yes
|
||||||
|
|
||||||
# By default, we don't install myhostinfo.cgi. Install it if you wish; it'll
|
# By default, we don't install myhostinfo.cgi. Install it if you wish; it'll
|
||||||
# already be patched for you.
|
# already be patched for you.
|
||||||
NO_STAGE= yes
|
|
||||||
post-extract:
|
post-extract:
|
||||||
.for filename in ${HINFO_SCRIPTS}
|
.for filename in ${HINFO_SCRIPTS}
|
||||||
${REINPLACE_CMD} -E '1s|^#!.+|#!${PERL}|' ${WRKSRC}/${filename}
|
${REINPLACE_CMD} -E '1s|^#!.+|#!${PERL}|' ${WRKSRC}/${filename}
|
||||||
.endfor
|
.endfor
|
||||||
|
|
||||||
do-install:
|
do-install:
|
||||||
${INSTALL_SCRIPT} ${WRKSRC}/hinfo ${PREFIX}/bin
|
${INSTALL_SCRIPT} ${WRKSRC}/hinfo ${STAGEDIR}${PREFIX}/bin
|
||||||
${INSTALL_SCRIPT} ${WRKSRC}/hinfo-update ${PREFIX}/sbin
|
${INSTALL_SCRIPT} ${WRKSRC}/hinfo-update ${STAGEDIR}${PREFIX}/sbin
|
||||||
${INSTALL_DATA} ${WRKSRC}/hinfo.conf ${PREFIX}/etc/hinfo.conf.example
|
${INSTALL_DATA} ${WRKSRC}/hinfo.conf ${STAGEDIR}${PREFIX}/etc/hinfo.conf.example
|
||||||
.if !exists({PREFIX}/etc/hinfo.conf)
|
.if !exists(${STAGEDIR}${PREFIX}/etc/hinfo.conf)
|
||||||
${INSTALL_DATA} ${WRKSRC}/hinfo.conf ${PREFIX}/etc/hinfo.conf
|
${INSTALL_DATA} ${WRKSRC}/hinfo.conf ${STAGEDIR}${PREFIX}/etc/hinfo.conf
|
||||||
.endif
|
.endif
|
||||||
${INSTALL_MAN} ${WRKSRC}/hinfo.1 ${PREFIX}/man/man1/
|
${INSTALL_MAN} ${WRKSRC}/hinfo.1 ${STAGEDIR}${PREFIX}/man/man1/
|
||||||
${INSTALL_MAN} ${WRKSRC}/hinfo.conf.5 ${PREFIX}/man/man5/
|
${INSTALL_MAN} ${WRKSRC}/hinfo.conf.5 ${STAGEDIR}${PREFIX}/man/man5/
|
||||||
@${MKDIR} ${DATADIR}
|
@${MKDIR} ${STAGEDIR}${DATADIR}
|
||||||
.for filename in ${HINFO_DBFILES}
|
.for filename in ${HINFO_DBFILES}
|
||||||
${INSTALL_DATA} ${WRKSRC}/${filename} ${DATADIR}
|
${INSTALL_DATA} ${WRKSRC}/${filename} ${STAGEDIR}${DATADIR}
|
||||||
.endfor
|
.endfor
|
||||||
|
|
||||||
.include <bsd.port.mk>
|
.include <bsd.port.mk>
|
||||||
|
|
|
@ -1,5 +1,10 @@
|
||||||
|
man/man1/hinfo.1.gz
|
||||||
|
man/man5/hinfo.conf.5.gz
|
||||||
bin/hinfo
|
bin/hinfo
|
||||||
etc/hinfo.conf
|
etc/hinfo.conf
|
||||||
etc/hinfo.conf.example
|
etc/hinfo.conf.example
|
||||||
sbin/hinfo-update
|
sbin/hinfo-update
|
||||||
@unexec rm -fR %%PREFIX%%/lib/hinfo
|
%%DATADIR%%/dnsbl.ins.pl
|
||||||
|
%%DATADIR%%/whois.ins.pl
|
||||||
|
@dirrm %%DATADIR%%
|
||||||
|
@dirrmtry lib/hinfo
|
||||||
|
|
Loading…
Reference in a new issue