openbsd-ports/sysutils/upsd/Makefile
2002-03-21 21:25:50 +00:00

36 lines
952 B
Makefile

# New ports collection makefile for: upsd
# Version required: 2.0.1.6
# Date created: 22 Nov 1999
# Whom: Kevin Lo <kevlo@openbsd.org>
#
# $OpenBSD: Makefile,v 1.12 2002/03/21 21:25:52 espie Exp $
#
COMMENT= "APC Smart UPS Monitoring Daemon"
DISTNAME= upsd-2.0.1.6
PKGNAME= upsd-2.0
CATEGORIES= sysutils
NEED_VERSION= 1.515
MASTER_SITES= ${MASTER_SITE_LOCAL}
MAINTAINER= Kevin Lo <kevlo@openbsd.org>
PERMIT_PACKAGE_CDROM= "missing license"
PERMIT_PACKAGE_FTP= "missing license"
PERMIT_DISTFILES_CDROM= "missing license"
PERMIT_DISTFILES_FTP= Yes
WRKDIST= ${WRKDIR}/upsd-2.0
pre-build:
@mv ${WRKSRC}/config.h ${WRKSRC}/conf.h.orig
@sed -e "s!@prefix@!${PREFIX}!g" ${WRKSRC}/conf.h.orig > ${WRKSRC}/conf.h
do-install:
${INSTALL_PROGRAM} ${WRKBUILD}/upsd ${PREFIX}/sbin
${INSTALL_DATA_DIR} ${PREFIX}/lib/upsd
${INSTALL_DATA} ${WRKSRC}/sample/upsd.conf ${PREFIX}/lib/upsd/upsd.conf.sample
.include <bsd.port.mk>