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