1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-21 00:25:50 +00:00

1: Stagify.

2: use @sample.

Approved by:	portmgr@ (blanket approval)
This commit is contained in:
Vanilla I. Shu 2014-06-29 14:32:27 +00:00
parent 4564496d8a
commit a55b724678
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=359768
2 changed files with 20 additions and 21 deletions

View File

@ -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 <bsd.port.options.mk>
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 <bsd.port.mk>

View File

@ -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