2002-04-09 12:20:12 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.6 2002/04/09 16:20:12 naddy Exp $
|
2001-05-05 23:58:56 -04:00
|
|
|
|
|
|
|
COMMENT= "UPS monitoring program supporting many brands"
|
2001-02-06 17:24:03 -05:00
|
|
|
|
|
|
|
DISTNAME= nut-0.44.2
|
|
|
|
CATEGORIES= sysutils
|
2001-05-05 23:58:56 -04:00
|
|
|
NEED_VERSION= 1.402
|
2001-02-06 17:24:03 -05:00
|
|
|
HOMEPAGE= http://www.exploits.org/nut/
|
|
|
|
MASTER_SITES= ${HOMEPAGE}release/
|
|
|
|
|
|
|
|
MAINTAINER= Nathan Binkert <nate@openbsd.org>
|
|
|
|
|
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
|
|
|
|
|
|
|
FLAVORS= cgi
|
|
|
|
FLAVOR?=
|
|
|
|
|
|
|
|
.if ${FLAVOR:L} == "cgi"
|
2001-10-15 18:54:50 -04:00
|
|
|
LIB_DEPENDS= gd.18::graphics/gd
|
2002-04-09 12:20:12 -04:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib" \
|
|
|
|
CFLAGS="${CFLAGS} -I${LOCALBASE}/include -L${LOCALBASE}/lib"
|
2001-02-06 17:24:03 -05:00
|
|
|
.endif
|
|
|
|
|
|
|
|
CONFIGURE_STYLE= gnu old
|
|
|
|
CONFIGURE_ARGS= --sysconfdir="${SYSCONFDIR}/nut" \
|
|
|
|
--mandir="${PREFIX}/man" \
|
|
|
|
--with-modelpath="${PREFIX}/sbin" \
|
|
|
|
--with-statepath="/var/db"
|
|
|
|
.if ${FLAVOR:L} == "cgi"
|
|
|
|
CONFIGURE_ARGS+= --with-cgipath="${PREFIX}/libexec/nut"
|
|
|
|
.endif
|
|
|
|
|
|
|
|
FAKE_FLAGS= INSTALLROOT="${WRKINST}"
|
|
|
|
|
|
|
|
.if ${FLAVOR:L} == "cgi"
|
|
|
|
ALL_TARGET= all cgi
|
|
|
|
INSTALL_TARGET= install install-cgi
|
|
|
|
.endif
|
|
|
|
|
|
|
|
post-install:
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/nut
|
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/nut/cables
|
|
|
|
${INSTALL_DATA} ${FILESDIR}/README.OpenBSD ${PREFIX}/share/doc/nut
|
|
|
|
@for i in ${WRKSRC}/docs/* ; do \
|
|
|
|
if [ -f "$$i" ]; then \
|
|
|
|
${INSTALL_DATA} $$i ${PREFIX}/share/doc/nut ; \
|
|
|
|
fi \
|
|
|
|
done
|
|
|
|
@for i in ${WRKSRC}/docs/cables/* ; do \
|
|
|
|
${INSTALL_DATA} $$i ${PREFIX}/share/doc/nut/cables ; \
|
|
|
|
done
|
|
|
|
|
|
|
|
.include <bsd.port.mk>
|