openbsd-ports/sysutils/upsd/Makefile
kili 262f516a1b Avoid references to PKGNAME.
Remove noops like WRKDIST=${WRKDIR}/${DISTNAME}.
Drop DIST_SUBDIR where appropriate.

Problem mentioned by naddy.
Some simplifications and ok, steven.
2006-11-04 19:19:15 +00:00

36 lines
1009 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.16 2006/11/04 19:19:15 kili 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"
PERMIT_DISTFILES_FTP= Yes
WANTLIB= c
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
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>