openbsd-ports/sysutils/upsd/Makefile

30 lines
836 B
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.18 2007/09/20 10:25:36 ajacoutot Exp $
COMMENT= APC Smart UPS Monitoring Daemon
DISTNAME= upsd-2.0.1.6
CATEGORIES= sysutils
MAINTAINER= Kevin Lo <kevlo@openbsd.org>
PERMIT_PACKAGE_CDROM= missing license
PERMIT_PACKAGE_FTP= missing license
PERMIT_DISTFILES_CDROM= missing license
2000-03-23 00:40:40 -05:00
PERMIT_DISTFILES_FTP= Yes
2004-12-20 05:35:34 -05:00
WANTLIB= c
2000-03-23 00:40:40 -05:00
WRKDIST= ${WRKDIR}/${DISTNAME:C,\.[0-9]+\.[0-9]+$,,}
pre-build:
@perl -pi -e 's:%%SYSCONFDIR%%:${SYSCONFDIR}:' \
${WRKSRC}/config.h
@mv ${WRKSRC}/config.h ${WRKSRC}/conf.h.orig
@sed -e "s!@prefix@!${PREFIX}!g" ${WRKSRC}/conf.h.orig > ${WRKSRC}/conf.h
2000-06-09 16:57:59 -04:00
do-install:
${INSTALL_PROGRAM} ${WRKBUILD}/upsd ${PREFIX}/sbin
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/upsd
${INSTALL_DATA} ${WRKSRC}/sample/upsd.conf ${PREFIX}/share/examples/upsd/upsd.conf-sample
.include <bsd.port.mk>