1: Stagify.

2: use options helper.

Approved by:	portmgr@ (blanket approval)
This commit is contained in:
Vanilla I. Shu 2014-06-30 13:23:34 +00:00
parent f33eeb96d0
commit 3bf4d16461
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=359836
2 changed files with 22 additions and 18 deletions

View file

@ -11,36 +11,36 @@ MASTER_SITES= http://btw23.de/johannes/usermatic/\
MAINTAINER= fehlner@gmx.de
COMMENT= Scripts to automate the maintenance of accounts
RUN_DEPENDS= ${PREFIX}/sbin/userneu.pl:${PORTSDIR}/sysutils/userneu
NO_BUILD= yes
USES= perl5
USES= perl5 shebangfix
SHEBANG_FILES= digestion/digestion.pl hunter-seeker/hunter-seeker.pl \
newusers/newusers.pl reaper/reaper.pl
USE_PERL5= run
MAN1= digestion.pl.1
MAN8= hunter-seeker.pl.8 newusers.pl.8 reaper.pl.8
DOCS= Artistic COPYING README CHANGES \
doc/digestion.pl.pod doc/hunter-seeker.pl.pod \
doc/reaper.pl.pod
EXAMPLES= digestion/list_digested digestion/list_raw \
newusers/sums_to_ignore
OPTIONS_DEFINE= DOCS
RUN_DEPENDS+= ${PREFIX}/sbin/userneu.pl:${PORTSDIR}/sysutils/userneu
.include <bsd.port.options.mk>
NO_STAGE= yes
do-install:
cd ${WRKSRC}/doc && ${INSTALL_MAN} ${MAN1} ${MANPREFIX}/man/man1
cd ${WRKSRC}/doc && ${INSTALL_MAN} ${MAN8} ${MANPREFIX}/man/man8
cd ${WRKSRC}/doc && ${INSTALL_MAN} digestion.pl.1 ${STAGEDIR}${MANPREFIX}/man/man1
cd ${WRKSRC}/doc && ${INSTALL_MAN} hunter-seeker.pl.8 newusers.pl.8 reaper.pl.8 ${STAGEDIR}${MANPREFIX}/man/man8
cd ${WRKSRC}/digestion && ${INSTALL_SCRIPT} digestion.pl ${PREFIX}/sbin
cd ${WRKSRC}/digestion && ${INSTALL_SCRIPT} digestion.pl ${STAGEDIR}${PREFIX}/sbin
cd ${WRKSRC}/hunter-seeker && ${INSTALL_SCRIPT} hunter-seeker.pl \
${PREFIX}/sbin
cd ${WRKSRC}/reaper && ${INSTALL_SCRIPT} reaper.pl ${PREFIX}/sbin
cd ${WRKSRC}/newusers && ${INSTALL_SCRIPT} newusers.pl ${PREFIX}/sbin
@${MKDIR} ${EXAMPLESDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${EXAMPLES} ${EXAMPLESDIR}
.if !defined(NOPORTDOCS)
@${MKDIR} ${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${DOCSDIR}
${STAGEDIR}${PREFIX}/sbin
cd ${WRKSRC}/reaper && ${INSTALL_SCRIPT} reaper.pl ${STAGEDIR}${PREFIX}/sbin
cd ${WRKSRC}/newusers && ${INSTALL_SCRIPT} newusers.pl ${STAGEDIR}${PREFIX}/sbin
@${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${EXAMPLES} ${STAGEDIR}${EXAMPLESDIR}
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}
cd ${WRKSRC} && ${INSTALL_DATA} ${DOCS} ${STAGEDIR}${DOCSDIR}
.endif
.include <bsd.port.mk>

View file

@ -1,3 +1,7 @@
man/man1/digestion.pl.1.gz
man/man8/hunter-seeker.pl.8.gz
man/man8/newusers.pl.8.gz
man/man8/reaper.pl.8.gz
sbin/digestion.pl
sbin/hunter-seeker.pl
sbin/reaper.pl