aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjeh <jeh@FreeBSD.org>2000-10-24 09:37:14 +0800
committerjeh <jeh@FreeBSD.org>2000-10-24 09:37:14 +0800
commite68fac77ea4fe734afec2854c0262645c6ff2cc9 (patch)
tree3e4dadc33f2b7149aefea530ff907a2c3602f1e8
parent096866c55dd5175b7c2cf7b1f20ee892252f67f8 (diff)
downloadfreebsd-ports-gnome-e68fac77ea4fe734afec2854c0262645c6ff2cc9.tar.gz
freebsd-ports-gnome-e68fac77ea4fe734afec2854c0262645c6ff2cc9.tar.zst
freebsd-ports-gnome-e68fac77ea4fe734afec2854c0262645c6ff2cc9.zip
Mikhail Teterin <mi@aldan.algebra.com> in PR 22258 showed me a more
elegant way to modify plist for NOPORTSDOC
-rw-r--r--sysutils/healthd/Makefile9
-rw-r--r--sysutils/healthd/pkg-plist3
2 files changed, 7 insertions, 5 deletions
diff --git a/sysutils/healthd/Makefile b/sysutils/healthd/Makefile
index 39fbaf797ee9..a82f5a801e43 100644
--- a/sysutils/healthd/Makefile
+++ b/sysutils/healthd/Makefile
@@ -23,13 +23,12 @@ CONFIGURE_ARGS= --exec-prefix=${PREFIX}
MAN8= healthd.8 healthdc.8
INSTALL_TARGET= install-all
-PLIST= ${WRKDIR}/PLIST.BASE
HDDOCDIR= ${PREFIX}/share/doc/healthd
-pre-install:
- @cp ${.CURDIR}/pkg-plist ${WRKDIR}/PLIST.BASE
-.if !defined(NOPORSDOCS)
- @cat ${.CURDIR}/pkg-plist.doc >> ${WRKDIR}/PLIST.BASE
+.if !defined(NOPORTDOCS)
+PLIST_SUB= HDDOCS=''
+.else
+PLIST_SUB= HDDOCS='@comment '
.endif
post-install:
diff --git a/sysutils/healthd/pkg-plist b/sysutils/healthd/pkg-plist
index 9ff0322af154..103062079028 100644
--- a/sysutils/healthd/pkg-plist
+++ b/sysutils/healthd/pkg-plist
@@ -4,3 +4,6 @@ sbin/healthd
etc/healthd.conf.sample
@exec if [ ! -f %D/etc/healthd.conf ]; then cp -p %D/%F %B/healthd.conf; fi
etc/rc.d/healthd.sh
+%%HDDOCS%%share/doc/healthd/README
+%%HDDOCS%%share/doc/healthd/PROTOCOL
+%%HDDOCS%%@dirrm share/doc/healthd