diff options
author | jeh <jeh@FreeBSD.org> | 2001-01-13 02:00:22 +0000 |
---|---|---|
committer | jeh <jeh@FreeBSD.org> | 2001-01-13 02:00:22 +0000 |
commit | 67eb8ea06467a2b98b8077c60cbc5990a89ca333 (patch) | |
tree | 2adb88e797fd7a4fbfabfcedd532178911ee8801 | |
parent | ddca648321877f261d01a466d3bc7638821a27cf (diff) | |
download | FreeBSD-ports-67eb8ea06467a2b98b8077c60cbc5990a89ca333.zip FreeBSD-ports-67eb8ea06467a2b98b8077c60cbc5990a89ca333.tar.gz |
upsd (/usr/ports/sysutils/upsd) does not have a startup/shutdown
script for placement into /usr/local/etc/rc.d
PR: 21517
Submitted by: Stephen Beitzel <sbeitzel@mumble.foobie.net>
-rw-r--r-- | sysutils/upsd/Makefile | 5 | ||||
-rw-r--r-- | sysutils/upsd/pkg-plist | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/sysutils/upsd/Makefile b/sysutils/upsd/Makefile index 2059a02..20ee6ad 100644 --- a/sysutils/upsd/Makefile +++ b/sysutils/upsd/Makefile @@ -7,6 +7,7 @@ PORTNAME= upsd PORTVERSION= 2.0.1.6 +PORTREVISION= 1 CATEGORIES= sysutils MASTER_SITES= ftp://ftp.rge.com/pub/admin/upsd/ @@ -19,6 +20,10 @@ pre-build: @${SED} -e "s!@prefix@!${PREFIX}!g" ${WRKSRC}/conf.h.orig > ${WRKSRC}/conf.h post-install: + @if [ ! -f ${PREFIX}/etc/rc.d/upsd.sh ]; then \ + ${ECHO} "Installing ${PREFIX}/etc/rc.d/upsd.sh startup file."; \ + ${INSTALL_SCRIPT} -m 751 ${FILESDIR}/upsd.sh ${PREFIX}/etc/rc.d/upsd.sh; \ + fi if [ ! -f ${PREFIX}/etc/upsd.conf ] ; then \ ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \ ${FILESDIR}/upsd.conf ${PREFIX}/etc/upsd.conf; \ diff --git a/sysutils/upsd/pkg-plist b/sysutils/upsd/pkg-plist index 61a9fdb..2a0bd94 100644 --- a/sysutils/upsd/pkg-plist +++ b/sysutils/upsd/pkg-plist @@ -1,2 +1,3 @@ etc/upsd.conf +etc/rc.d/upsd.sh sbin/upsd |