freebsd-ports/sysutils/openupsd/Makefile
Kirill Ponomarev f895406643 Update to 0.3.1
Tidy up RC scripts

PR:		ports/70858
Submitted by:	maintainer
2004-08-25 09:14:06 +00:00

30 lines
801 B
Makefile

# New ports collection makefile for: openupsd
# Date created: 15 August 2004
# Whom: Tim Bishop <tim@bishnet.net>
#
# $FreeBSD$
#
PORTNAME= openupsd
PORTVERSION= 0.3.1
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>