aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/usermatic/Makefile36
-rw-r--r--sysutils/usermatic/pkg-plist4
2 files changed, 22 insertions, 18 deletions
diff --git a/sysutils/usermatic/Makefile b/sysutils/usermatic/Makefile
index a36194f2663b..659106eb610a 100644
--- a/sysutils/usermatic/Makefile
+++ b/sysutils/usermatic/Makefile
@@ -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>
diff --git a/sysutils/usermatic/pkg-plist b/sysutils/usermatic/pkg-plist
index d5cee053a407..772a82bbdefc 100644
--- a/sysutils/usermatic/pkg-plist
+++ b/sysutils/usermatic/pkg-plist
@@ -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