diff options
author | amdmi3 <amdmi3@FreeBSD.org> | 2015-09-03 22:09:17 +0800 |
---|---|---|
committer | amdmi3 <amdmi3@FreeBSD.org> | 2015-09-03 22:09:17 +0800 |
commit | b9560a010dde5c10d0575a15a5862a211627e3ba (patch) | |
tree | aa7d1cdb860adb0016f7fed0c6f208abcb26070a /sysutils/slack | |
parent | be01f73a1cd89e19d5796464e935cc3cb8eb5033 (diff) | |
download | freebsd-ports-gnome-b9560a010dde5c10d0575a15a5862a211627e3ba.tar.gz freebsd-ports-gnome-b9560a010dde5c10d0575a15a5862a211627e3ba.tar.zst freebsd-ports-gnome-b9560a010dde5c10d0575a15a5862a211627e3ba.zip |
- Switch to options helpers
- Add some NO_ARCHes
- Fix and unsilence some installation commands
- Other minor fixes
Approved by: portmgr blanket
Diffstat (limited to 'sysutils/slack')
-rw-r--r-- | sysutils/slack/Makefile | 27 |
1 files changed, 13 insertions, 14 deletions
diff --git a/sysutils/slack/Makefile b/sysutils/slack/Makefile index f6db3997cea1..8f85f7942cbf 100644 --- a/sysutils/slack/Makefile +++ b/sysutils/slack/Makefile @@ -14,6 +14,7 @@ COMMENT= Configuration management system designed to appeal to lazy admins RUN_DEPENDS= rsync:${PORTSDIR}/net/rsync USES= perl5 gmake +NO_ARCH= yes PORTDOCS= ChangeLog COPYING CREDITS FAQ GPL README TODO \ fixfiles-and-dirs.txt slack-intro @@ -22,11 +23,9 @@ MAKE_ARGS= prefix=${PREFIX} exec_prefix=${PREFIX} \ localstatedir=/var OPTIONS_DEFINE= DOCS -.include <bsd.port.options.mk> - pre-build: ${REINPLACE_CMD} -e '1s,^#!.*perl,#!${PERL},' ${WRKSRC}/test/gen_config_file - + post-build: @for f in ${WRKSRC}/src/build/*; do \ ${REINPLACE_CMD} -e '1s,^#!.*perl,#!${PERL},' $$f; \ @@ -34,17 +33,17 @@ post-build: post-install: @${INSTALL_DATA} ${WRKSRC}/src/build/slack.conf ${STAGEDIR}${PREFIX}/etc/slack.conf.sample -.if ${PORT_OPTIONS:MDOCS} + +post-install-DOCS-on: @${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 + ${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} .include <bsd.port.mk> |