openbsd-ports/sysutils/apc-upsd/Makefile

35 lines
863 B
Makefile
Raw Normal View History

2007-09-20 06:04:07 -04:00
# $OpenBSD: Makefile,v 1.19 2007/09/20 10:04:07 ajacoutot Exp $
COMMENT= UPS software for APC UPS models
2002-10-28 14:53:43 -05:00
DISTNAME= apc-upsd
2007-09-20 06:04:07 -04:00
PKGNAME= ${DISTNAME}-19991128p0
2002-10-28 14:53:43 -05:00
CATEGORIES= sysutils
2002-10-28 14:53:43 -05:00
MASTER_SITES= http://www.knienieder.com/software/
2000-03-23 00:40:40 -05:00
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
2004-12-20 05:35:34 -05:00
WANTLIB= c
2000-03-23 00:40:40 -05:00
2002-10-28 14:53:43 -05:00
EXTRACT_SUFX= .tgz
WRKDIST= ${WRKDIR}/${DISTNAME}/src
MAKE_FLAGS= CFLAGS="${CFLAGS}"
2002-10-28 14:53:43 -05:00
NO_REGRESS= Yes
pre-configure:
2003-04-26 11:00:32 -04:00
@perl -pi -e "s,%%SYSCONFDIR%%,${SYSCONFDIR}," ${WRKSRC}/apc_upsd.h
do-install:
${INSTALL_DATA_DIR} ${PREFIX}/lib/apc-upsd
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/apc-upsd
${INSTALL_PROGRAM} ${WRKSRC}/apc-upsd ${PREFIX}/sbin
${INSTALL_DATA} ${WRKSRC}/../doc/smart-protocol ${PREFIX}/share/doc/apc-upsd
${INSTALL_DATA} ${WRKSRC}/apc-upsd.conf ${PREFIX}/lib/apc-upsd
.include <bsd.port.mk>