2007-09-20 06:25:36 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.18 2007/09/20 10:25:36 ajacoutot Exp $
|
1999-11-21 23:08:04 -05:00
|
|
|
|
2007-09-15 17:14:00 -04:00
|
|
|
COMMENT= APC Smart UPS Monitoring Daemon
|
2001-05-05 23:58:56 -04:00
|
|
|
|
1999-11-21 23:08:04 -05:00
|
|
|
DISTNAME= upsd-2.0.1.6
|
|
|
|
CATEGORIES= sysutils
|
|
|
|
|
2000-10-09 03:49:09 -04:00
|
|
|
MAINTAINER= Kevin Lo <kevlo@openbsd.org>
|
1999-11-21 23:08:04 -05:00
|
|
|
|
2007-09-15 17:14:00 -04:00
|
|
|
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
|
|
|
|
2006-11-04 14:19:15 -05:00
|
|
|
WRKDIST= ${WRKDIR}/${DISTNAME:C,\.[0-9]+\.[0-9]+$,,}
|
1999-11-21 23:08:04 -05:00
|
|
|
|
|
|
|
pre-build:
|
2002-08-04 22:25:28 -04:00
|
|
|
@perl -pi -e 's:%%SYSCONFDIR%%:${SYSCONFDIR}:' \
|
|
|
|
${WRKSRC}/config.h
|
2000-02-16 05:52:08 -05:00
|
|
|
@mv ${WRKSRC}/config.h ${WRKSRC}/conf.h.orig
|
|
|
|
@sed -e "s!@prefix@!${PREFIX}!g" ${WRKSRC}/conf.h.orig > ${WRKSRC}/conf.h
|
1999-11-21 23:08:04 -05:00
|
|
|
|
2000-06-09 16:57:59 -04:00
|
|
|
do-install:
|
|
|
|
${INSTALL_PROGRAM} ${WRKBUILD}/upsd ${PREFIX}/sbin
|
2002-08-04 22:25:28 -04:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/upsd
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/sample/upsd.conf ${PREFIX}/share/examples/upsd/upsd.conf-sample
|
1999-11-21 23:08:04 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|