diff options
author | Mikolaj Golub <trociny@FreeBSD.org> | 2014-01-19 20:43:44 +0000 |
---|---|---|
committer | Mikolaj Golub <trociny@FreeBSD.org> | 2014-01-19 20:43:44 +0000 |
commit | e210736217445ac8ff0cbf0b8b857dd447502cbc (patch) | |
tree | 4daec20b17081cee162c1d9183ca020547891877 /sysutils | |
parent | 0dd36d6e5e7916538fce72058a57678e0208c0e4 (diff) | |
download | ports-e210736217445ac8ff0cbf0b8b857dd447502cbc.tar.gz ports-e210736217445ac8ff0cbf0b8b857dd447502cbc.zip |
Notes
Diffstat (limited to 'sysutils')
-rw-r--r-- | sysutils/gather/Makefile | 49 | ||||
-rw-r--r-- | sysutils/gather/pkg-plist | 9 |
2 files changed, 24 insertions, 34 deletions
diff --git a/sysutils/gather/Makefile b/sysutils/gather/Makefile index 68358749849f..1dae62cf6c82 100644 --- a/sysutils/gather/Makefile +++ b/sysutils/gather/Makefile @@ -22,40 +22,21 @@ MAKE_ENV+= CONFDIR=${PREFIX}/etc/gather DATADIR=${DATADIR} SUB_FILES= pkg-message -MAN1= gather.1 - -.if !defined(NOPORTDOCS) -PORTDOCS= Changelog README -.endif -.if !defined(NOPORTEXAMPLES) -PORTEXAMPLES= * -.endif - -NO_STAGE= yes do-install: - @${INSTALL_SCRIPT} ${WRKSRC}/gather ${PREFIX}/bin/ - @${INSTALL_MAN} ${WRKSRC}/gather.1 ${PREFIX}/man/man1 -.if !exists(${PREFIX}/etc/gather) - @${MKDIR} ${PREFIX}/etc/gather -.endif - @${INSTALL_DATA} ${WRKSRC}/gather.cfg ${PREFIX}/etc/gather/gather.cfg.sample -.if !exists(${CONFDIR}/gather.cfg) - @${INSTALL_DATA} ${WRKSRC}/gather.cfg ${PREFIX}/etc/gather/gather.cfg -.endif - @${INSTALL_DATA} ${WRKSRC}/examples/gather.map.freebsd ${PREFIX}/etc/gather/gather.map.sample -.if !exists(${PREFIX}/etc/gather/gather.cfg) - @${INSTALL_DATA} ${WRKSRC}/examples/gather.map.freebsd ${PREFIX}/etc/gather/gather.map -.endif -.if !defined(NOPORTEXAMPLES) - @${MKDIR} ${EXAMPLESDIR} - @${CP} -R ${WRKSRC}/examples/* ${EXAMPLESDIR} -.endif -.if !defined(NOPORTDOCS) - @${MKDIR} ${DOCSDIR} -.for doc in ${PORTDOCS} - @${INSTALL_DATA} ${WRKSRC}/${doc} ${DOCSDIR} -.endfor -.endif - @${CAT} ${PKGMESSAGE} + ${INSTALL_SCRIPT} ${WRKSRC}/gather ${STAGEDIR}${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/gather.1 ${STAGEDIR}${PREFIX}/man/man1 + ${MKDIR} ${STAGEDIR}${PREFIX}/etc/gather + ${INSTALL_DATA} ${WRKSRC}/gather.cfg \ + ${STAGEDIR}${PREFIX}/etc/gather/gather.cfg.sample + ${INSTALL_DATA} ${WRKSRC}/examples/gather.map.freebsd \ + ${STAGEDIR}${PREFIX}/etc/gather/gather.map.sample + ${MKDIR} ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/Changelog ${STAGEDIR}${DOCSDIR} + ${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR} + ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/examples/gather.map.freebsd \ + ${STAGEDIR}${EXAMPLESDIR} + ${INSTALL_DATA} ${WRKSRC}/examples/gather.map.linux \ + ${STAGEDIR}${EXAMPLESDIR} .include <bsd.port.mk> diff --git a/sysutils/gather/pkg-plist b/sysutils/gather/pkg-plist index 9f0be011901e..be663e9e50ee 100644 --- a/sysutils/gather/pkg-plist +++ b/sysutils/gather/pkg-plist @@ -1,6 +1,15 @@ bin/gather +man/man1/gather.1.gz +%%PORTDOCS%%%%DOCSDIR%%/Changelog +%%PORTDOCS%%%%DOCSDIR%%/README +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/gather.map.freebsd +%%PORTEXAMPLES%%%%EXAMPLESDIR%%/gather.map.linux +%%PORTEXAMPLES%%@dirrmtry %%EXAMPLESDIR%% +%%PORTDOCS%%@dirrmtry %%DOCSDIR%% @unexec if cmp -s %D/etc/gather/gather.cfg.sample %D/etc/gather/gather.cfg; then rm -f %D/etc/gather/gather.cfg; else echo "If permanently deleting this package, %D/etc/gather/gather.cfg must be removed manually."; fi etc/gather/gather.cfg.sample +@exec if [ ! -f %D/etc/gather/gather.cfg ]; then cp -p %D/%F %B/gather.cfg; fi @unexec if cmp -s %D/etc/gather/gather.map.sample %D/etc/gather/gather.map; then rm -f %D/etc/gather/gather.map; else echo "If permanently deleting this package, %D/etc/gather/gather.map must be removed manually."; fi etc/gather/gather.map.sample +@exec if [ ! -f %D/etc/gather/gather.map ]; then cp -p %D/%F %B/gather.map; fi @dirrmtry etc/gather |