aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils/healthd
diff options
context:
space:
mode:
authorjeh <jeh@FreeBSD.org>2002-07-25 19:25:34 +0800
committerjeh <jeh@FreeBSD.org>2002-07-25 19:25:34 +0800
commit15105d57c078bb3815897a274a63cfbce68f55af (patch)
tree2e547e819acf79fc42fce13642cbe172a598e15b /sysutils/healthd
parentce0cc429a2af7cad72d4805a81bf55a4e292270c (diff)
downloadfreebsd-ports-graphics-15105d57c078bb3815897a274a63cfbce68f55af.tar.gz
freebsd-ports-graphics-15105d57c078bb3815897a274a63cfbce68f55af.tar.zst
freebsd-ports-graphics-15105d57c078bb3815897a274a63cfbce68f55af.zip
Conditionally install/uninstall etc/rc.d/healthd.sh
Bump PORTREVISION PR: 40109 Submitted by: Ying-Chieh Liao <ijliao@FreeBSD.org>
Diffstat (limited to 'sysutils/healthd')
-rw-r--r--sysutils/healthd/Makefile5
-rw-r--r--sysutils/healthd/pkg-plist4
2 files changed, 8 insertions, 1 deletions
diff --git a/sysutils/healthd/Makefile b/sysutils/healthd/Makefile
index ea0f0b98885..6b3c4680bb3 100644
--- a/sysutils/healthd/Makefile
+++ b/sysutils/healthd/Makefile
@@ -7,6 +7,7 @@
PORTNAME= healthd
PORTVERSION= 0.6.9
+PORTREVISION= 1
CATEGORIES= sysutils ipv6
MASTER_SITES= http://healthd.thehousleys.net/
@@ -32,6 +33,10 @@ CONFIGURE_ARGS+= --disable-ipv6
.endif
post-install:
+ @if [ ! -f ${PREFIX}/etc/rc.d/healthd.sh.sample ]; then \
+ ${ECHO} "Installing ${PREFIX}/etc/rc.d/healthd.sh.sample startup file."; \
+ ${INSTALL_SCRIPT} -m 751 ${WRKSRC}/healthd.sh ${PREFIX}/etc/rc.d/healthd.sh.sample; \
+ fi
@if [ ! -f ${PREFIX}/etc/rc.d/healthd.sh ]; then \
${ECHO} "Installing ${PREFIX}/etc/rc.d/healthd.sh startup file."; \
${INSTALL_SCRIPT} -m 751 ${WRKSRC}/healthd.sh ${PREFIX}/etc/rc.d/healthd.sh; \
diff --git a/sysutils/healthd/pkg-plist b/sysutils/healthd/pkg-plist
index abc55f36a78..e640c2fe343 100644
--- a/sysutils/healthd/pkg-plist
+++ b/sysutils/healthd/pkg-plist
@@ -3,7 +3,9 @@ sbin/healthd
@unexec if cmp -s %D/etc/healthd.conf %D/etc/healthd.conf.sample; then rm -f %D/etc/healthd.conf; fi
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
+@unexec if cmp -s %D/etc/rc.d/healthd.sh %D/etc/rc.d/healthd.sh.sample; then rm -f %D/etc/rc.d/healthd.sh; fi
+etc/rc.d/healthd.sh.sample
+@exec if [ ! -f %D/etc/rc.d/healthd.sh ]; then cp -p %D/%F %B/healthd.rc.sample; fi
%%PORTDOCS%%share/doc/healthd/README
%%PORTDOCS%%share/doc/healthd/PROTOCOL
%%PORTDOCS%%@dirrm share/doc/healthd