aboutsummaryrefslogtreecommitdiff
path: root/sysutils/openupsd/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/openupsd/Makefile')
-rw-r--r--sysutils/openupsd/Makefile30
1 files changed, 30 insertions, 0 deletions
diff --git a/sysutils/openupsd/Makefile b/sysutils/openupsd/Makefile
new file mode 100644
index 000000000000..105d22f20038
--- /dev/null
+++ b/sysutils/openupsd/Makefile
@@ -0,0 +1,30 @@
+# New ports collection makefile for: openupsd
+# Date created: 15 August 2004
+# Whom: Tim Bishop <tim@bishnet.net>
+#
+# $FreeBSD$
+#
+
+PORTNAME= openupsd
+PORTVERSION= 0.3.0
+CATEGORIES= sysutils
+MASTER_SITES= http://frmb.org/download/
+
+MAINTAINER= tim@bishnet.net
+COMMENT= A UPS daemon for some Belkin UPS's
+
+USE_RC_SUBR= yes
+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
+
+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>