aboutsummaryrefslogtreecommitdiff
path: root/sysutils/upsd/Makefile
diff options
context:
space:
mode:
authorJames E. Housley <jeh@FreeBSD.org>2001-01-13 02:00:22 +0000
committerJames E. Housley <jeh@FreeBSD.org>2001-01-13 02:00:22 +0000
commit8e8a1c8bfc453e4e93407c8a25ccf52a7463d1a3 (patch)
tree77c321be70afc0f48717e322f011a72323d33ee4 /sysutils/upsd/Makefile
parent7e823ca9cbb489de6f03a3313a1d9c7bb60b980a (diff)
downloadports-8e8a1c8bfc453e4e93407c8a25ccf52a7463d1a3.tar.gz
ports-8e8a1c8bfc453e4e93407c8a25ccf52a7463d1a3.zip
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>
Notes
Notes: svn path=/head/; revision=37158
Diffstat (limited to 'sysutils/upsd/Makefile')
-rw-r--r--sysutils/upsd/Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/sysutils/upsd/Makefile b/sysutils/upsd/Makefile
index 2059a024c509..20ee6ad48a47 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; \