aboutsummaryrefslogtreecommitdiff
path: root/sysutils/gather
diff options
context:
space:
mode:
authorAdam Weinberger <adamw@FreeBSD.org>2014-07-16 03:18:26 +0000
committerAdam Weinberger <adamw@FreeBSD.org>2014-07-16 03:18:26 +0000
commitc6941c482ece145e97bdb2cd8f5ae1f8938298ea (patch)
tree6cba635ca6a0900686686afe6df65efafe2cb104 /sysutils/gather
parentfa4bf2ee1d039ae33718a8286802e7bf7ceb3387 (diff)
downloadports-c6941c482ece145e97bdb2cd8f5ae1f8938298ea.tar.gz
ports-c6941c482ece145e97bdb2cd8f5ae1f8938298ea.zip
Add DOCS option where PORTDOCS is in plist.
Notes
Notes: svn path=/head/; revision=362024
Diffstat (limited to 'sysutils/gather')
-rw-r--r--sysutils/gather/Makefile2
-rw-r--r--sysutils/gather/pkg-plist8
2 files changed, 4 insertions, 6 deletions
diff --git a/sysutils/gather/Makefile b/sysutils/gather/Makefile
index 1dae62cf6c82..a3e54aaab83a 100644
--- a/sysutils/gather/Makefile
+++ b/sysutils/gather/Makefile
@@ -22,6 +22,8 @@ MAKE_ENV+= CONFDIR=${PREFIX}/etc/gather DATADIR=${DATADIR}
SUB_FILES= pkg-message
+OPTIONS_DEFINE= DOCS EXAMPLES
+
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/gather ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/gather.1 ${STAGEDIR}${PREFIX}/man/man1
diff --git a/sysutils/gather/pkg-plist b/sysutils/gather/pkg-plist
index be663e9e50ee..00fca1cfe353 100644
--- a/sysutils/gather/pkg-plist
+++ b/sysutils/gather/pkg-plist
@@ -6,10 +6,6 @@ man/man1/gather.1.gz
%%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
+@sample etc/gather/gather.cfg.sample
+@sample etc/gather/gather.map.sample
@dirrmtry etc/gather