aboutsummaryrefslogtreecommitdiff
path: root/sysutils/openupsd
diff options
context:
space:
mode:
authorTim Bishop <tdb@FreeBSD.org>2009-07-26 11:25:57 +0000
committerTim Bishop <tdb@FreeBSD.org>2009-07-26 11:25:57 +0000
commit16d849801aac879aa725a2acec579de325ce715c (patch)
tree429e60c6e5a5f8639c4f242d94dfe4cdcf255458 /sysutils/openupsd
parentd6b78e937f233fcc556aecd091e890b278c80314 (diff)
downloadports-16d849801aac879aa725a2acec579de325ce715c.tar.gz
ports-16d849801aac879aa725a2acec579de325ce715c.zip
Notes
Diffstat (limited to 'sysutils/openupsd')
-rw-r--r--sysutils/openupsd/Makefile10
-rw-r--r--sysutils/openupsd/files/openupsd.in (renamed from sysutils/openupsd/files/openupsd.sh)0
2 files changed, 3 insertions, 7 deletions
diff --git a/sysutils/openupsd/Makefile b/sysutils/openupsd/Makefile
index c900d8684a7a..34edd4df4acf 100644
--- a/sysutils/openupsd/Makefile
+++ b/sysutils/openupsd/Makefile
@@ -7,24 +7,20 @@
PORTNAME= openupsd
PORTVERSION= 0.3.1
+PORTREVISION= 1
CATEGORIES= sysutils
MASTER_SITES= http://frmb.org/download/
MAINTAINER= tdb@FreeBSD.org
COMMENT= A UPS daemon for some Belkin UPS's
-USE_RC_SUBR= yes
+USE_RC_SUBR= ${PORTNAME}
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --program-transform-name= --bindir=${PREFIX}/sbin
-PLIST_FILES= sbin/openupsd etc/openupsd.conf.sample etc/rc.d/openupsd.sh
-
-post-extract:
- @${SED} -e 's#%%RC_SUBR%%#${RC_SUBR}#g' -e 's#%%PREFIX%%#${PREFIX}#g' \
- ${FILESDIR}/openupsd.sh > ${WRKDIR}/openupsd.sh
+PLIST_FILES= sbin/openupsd etc/openupsd.conf.sample
post-install:
${INSTALL_DATA} ${WRKSRC}/openupsd.conf ${PREFIX}/etc/openupsd.conf.sample
- ${INSTALL_SCRIPT} ${WRKDIR}/openupsd.sh ${PREFIX}/etc/rc.d/
.include <bsd.port.mk>
diff --git a/sysutils/openupsd/files/openupsd.sh b/sysutils/openupsd/files/openupsd.in
index deb7d677b51b..deb7d677b51b 100644
--- a/sysutils/openupsd/files/openupsd.sh
+++ b/sysutils/openupsd/files/openupsd.in