1999-11-21 23:08:04 -05:00
|
|
|
# New ports collection makefile for: upsd
|
|
|
|
# Version required: 2.0.1.6
|
|
|
|
# Date created: 22 Nov 1999
|
|
|
|
# Whom: Kevin Lo <kevlo@openbsd.org>
|
|
|
|
#
|
2001-05-05 23:58:56 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.11 2001/05/06 03:59:10 lebel Exp $
|
1999-11-21 23:08:04 -05:00
|
|
|
#
|
|
|
|
|
2001-05-05 23:58:56 -04:00
|
|
|
COMMENT= "APC Smart UPS Monitoring Daemon"
|
|
|
|
|
1999-11-21 23:08:04 -05:00
|
|
|
DISTNAME= upsd-2.0.1.6
|
|
|
|
PKGNAME= upsd-2.0
|
|
|
|
CATEGORIES= sysutils
|
2001-05-05 23:58:56 -04:00
|
|
|
NEED_VERSION= 1.402
|
2000-10-09 03:49:09 -04:00
|
|
|
MASTER_SITES= ${MASTER_SITE_LOCAL}
|
1999-11-21 23:08:04 -05:00
|
|
|
|
2000-10-09 03:49:09 -04:00
|
|
|
MAINTAINER= Kevin Lo <kevlo@openbsd.org>
|
1999-11-21 23:08:04 -05:00
|
|
|
|
2000-03-23 00:40:40 -05:00
|
|
|
PERMIT_PACKAGE_CDROM= "missing license"
|
|
|
|
PERMIT_PACKAGE_FTP= "missing license"
|
|
|
|
PERMIT_DISTFILES_CDROM= "missing license"
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
2000-02-10 19:37:15 -05:00
|
|
|
WRKDIST= ${WRKDIR}/upsd-2.0
|
1999-11-21 23:08:04 -05:00
|
|
|
|
|
|
|
pre-build:
|
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
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/lib/upsd
|
2000-06-27 04:15:58 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/sample/upsd.conf ${PREFIX}/lib/upsd/upsd.conf.sample
|
1999-11-21 23:08:04 -05:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|