From a9f25d86cac0f0dba78f62cd61c940e5faa9d98e Mon Sep 17 00:00:00 2001 From: vanilla Date: Sun, 29 Jun 2014 14:32:27 +0000 Subject: 1: Stagify. 2: use @sample. Approved by: portmgr@ (blanket approval) --- sysutils/slack/Makefile | 34 ++++++++++++++++------------------ sysutils/slack/pkg-plist | 7 ++++--- 2 files changed, 20 insertions(+), 21 deletions(-) diff --git a/sysutils/slack/Makefile b/sysutils/slack/Makefile index 672947b..fec2804 100644 --- a/sysutils/slack/Makefile +++ b/sysutils/slack/Makefile @@ -3,6 +3,7 @@ PORTNAME= slack PORTVERSION= 0.15.2 +PORTREVISION= 1 CATEGORIES= sysutils MASTER_SITES= ${MASTER_SITE_GOOGLE_CODE} \ http://www.sundell.net/~alan/projects/slack/ @@ -14,18 +15,15 @@ RUN_DEPENDS= rsync:${PORTSDIR}/net/rsync USES= perl5 gmake -MAN1= slack-diff.1 -MAN5= slack.conf.5 -MAN8= slack.8 - PORTDOCS= ChangeLog COPYING CREDITS FAQ GPL README TODO \ fixfiles-and-dirs.txt slack-intro - MAKE_ARGS= prefix=${PREFIX} exec_prefix=${PREFIX} \ libexecdir=${PREFIX}/libexec mandir=${PREFIX}/man \ localstatedir=/var +OPTIONS_DEFINE= DOCS + +.include -NO_STAGE= yes pre-build: ${REINPLACE_CMD} -e '1s,^#!.*perl,#!${PERL},' ${WRKSRC}/test/gen_config_file @@ -35,18 +33,18 @@ post-build: done post-install: - @${INSTALL_DATA} ${WRKSRC}/src/build/slack.conf ${PREFIX}/etc/slack.conf.sample -.if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} - @${INSTALL_DATA} ${WRKSRC}/ChangeLog ${DOCSDIR} - @${INSTALL_DATA} ${WRKSRC}/COPYING ${DOCSDIR} - @${INSTALL_DATA} ${WRKSRC}/CREDITS ${DOCSDIR} - @${INSTALL_DATA} ${WRKSRC}/FAQ ${DOCSDIR} - @${INSTALL_DATA} ${WRKSRC}/GPL ${DOCSDIR} - @${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR} - @${INSTALL_DATA} ${WRKSRC}/TODO ${DOCSDIR} - @${INSTALL_DATA} ${WRKSRC}/doc/fixfiles-and-dirs.txt ${DOCSDIR} - @${INSTALL_DATA} ${WRKSRC}/doc/slack-intro ${DOCSDIR} + @${INSTALL_DATA} ${WRKSRC}/src/build/slack.conf ${STAGEDIR}${PREFIX}/etc/slack.conf.sample +.if ${PORT_OPTIONS:MDOCS} + @${MKDIR} ${STAGEDIR}${DOCSDIR} + @${INSTALL_DATA} ${WRKSRC}/ChangeLog ${STAGEDIR}${DOCSDIR} + @${INSTALL_DATA} ${WRKSRC}/COPYING ${STAGEDIR}${DOCSDIR} + @${INSTALL_DATA} ${WRKSRC}/CREDITS ${STAGEDIR}${DOCSDIR} + @${INSTALL_DATA} ${WRKSRC}/FAQ ${STAGEDIR}${DOCSDIR} + @${INSTALL_DATA} ${WRKSRC}/GPL ${STAGEDIR}${DOCSDIR} + @${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} + @${INSTALL_DATA} ${WRKSRC}/TODO ${STAGEDIR}${DOCSDIR} + @${INSTALL_DATA} ${WRKSRC}/doc/fixfiles-and-dirs.txt ${STAGEDIR}${DOCSDIR} + @${INSTALL_DATA} ${WRKSRC}/doc/slack-intro ${STAGEDIR}${DOCSDIR} .endif .include diff --git a/sysutils/slack/pkg-plist b/sysutils/slack/pkg-plist index 43a7199..0384781 100644 --- a/sysutils/slack/pkg-plist +++ b/sysutils/slack/pkg-plist @@ -1,7 +1,5 @@ -@unexec if cmp -s %D/etc/slack.conf.sample %D/etc/slack.conf; then rm -f %D/etc/slack.conf; fi -etc/slack.conf.sample -@exec if [ ! -f %D/etc/slack.conf ]; then cp -p %D/%F %B/slack.conf; chmod 644 %B/slack.conf; fi bin/slack-diff +@sample etc/slack.conf.sample lib/slack/Slack.pm libexec/slack/slack-getroles libexec/slack/slack-installfiles @@ -9,6 +7,9 @@ libexec/slack/slack-rolediff libexec/slack/slack-runscript libexec/slack/slack-stage libexec/slack/slack-sync +man/man1/slack-diff.1.gz +man/man5/slack.conf.5.gz +man/man8/slack.8.gz sbin/slack @exec install -d -m 0700 /var/lib/slack @exec install -d -m 0700 /var/cache/slack -- cgit v1.1