From d6fdf3e1029a7b46eac4f927606728c0a3e0c65f Mon Sep 17 00:00:00 2001 From: jeh Date: Fri, 5 Dec 2003 21:53:13 +0000 Subject: Update to 0.7.5, this support rc.subr --- sysutils/healthd/Makefile | 14 ++++++++------ sysutils/healthd/distinfo | 2 +- sysutils/healthd/pkg-plist | 3 +-- 3 files changed, 10 insertions(+), 9 deletions(-) (limited to 'sysutils') diff --git a/sysutils/healthd/Makefile b/sysutils/healthd/Makefile index de511d299a98..ca2165636c9e 100644 --- a/sysutils/healthd/Makefile +++ b/sysutils/healthd/Makefile @@ -6,7 +6,7 @@ # PORTNAME= healthd -PORTVERSION= 0.7.4 +PORTVERSION= 0.7.5 PORTREVISION= 0 CATEGORIES= sysutils ipv6 MASTER_SITES= http://healthd.thehousleys.net/ @@ -35,12 +35,14 @@ HDDOCDIR= ${PREFIX}/share/doc/healthd CONFIGURE_ARGS+= --disable-ipv6 .endif +.if ${OSVERSION} >= 500038 +RC_SUBR?= /etc/rc.subr +.else +USE_RC_SUBR= yes +.endif + post-install: - ${INSTALL_SCRIPT} -m 751 ${WRKSRC}/healthd.sh ${PREFIX}/etc/rc.d/healthd.sh.sample - @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; \ - fi + ${INSTALL_SCRIPT} -m 751 ${WRKSRC}/healthd.sh ${PREFIX}/etc/rc.d/healthd.sh @if [ ! -f ${PREFIX}/etc/healthd.conf ]; then \ ${ECHO} "Installing ${PREFIX}/etc/healthd.conf configuration file."; \ ${ECHO} "It is recommended you edit this file to match your system"; \ diff --git a/sysutils/healthd/distinfo b/sysutils/healthd/distinfo index 222fdc340149..dd7bbbc445ce 100644 --- a/sysutils/healthd/distinfo +++ b/sysutils/healthd/distinfo @@ -1 +1 @@ -MD5 (healthd-0.7.4.tar.gz) = 0166adf5adaed0b9f0669381270b48f3 +MD5 (healthd-0.7.5.tar.gz) = 6b2c52ab58c9d277007e05f3a301dec2 diff --git a/sysutils/healthd/pkg-plist b/sysutils/healthd/pkg-plist index e640c2fe3433..0a8903a9da1e 100644 --- a/sysutils/healthd/pkg-plist +++ b/sysutils/healthd/pkg-plist @@ -4,8 +4,7 @@ sbin/healthd etc/healthd.conf.sample @exec if [ ! -f %D/etc/healthd.conf ]; then cp -p %D/%F %B/healthd.conf; fi @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 +etc/rc.d/healthd.sh %%PORTDOCS%%share/doc/healthd/README %%PORTDOCS%%share/doc/healthd/PROTOCOL %%PORTDOCS%%@dirrm share/doc/healthd -- cgit