diff options
Diffstat (limited to 'sysutils/ups-nut/Makefile')
-rw-r--r-- | sysutils/ups-nut/Makefile | 27 |
1 files changed, 17 insertions, 10 deletions
diff --git a/sysutils/ups-nut/Makefile b/sysutils/ups-nut/Makefile index afb12808415..353621a2d01 100644 --- a/sysutils/ups-nut/Makefile +++ b/sysutils/ups-nut/Makefile @@ -1,28 +1,33 @@ -# $NetBSD: Makefile,v 1.28 2003/07/17 22:53:56 grant Exp $ +# $NetBSD: Makefile,v 1.29 2004/02/15 13:14:25 lukem Exp $ # -DISTNAME= nut-1.2.1 -PKGNAME= ups-nut-1.2.1 -PKGREVISION= 1 +DISTNAME= nut-1.4.1 +PKGNAME= ups-nut-1.4.1 CATEGORIES= sysutils -MASTER_SITES= http://www.exploits.org/nut/release/1.2/ +MASTER_SITES= http://random.networkupstools.org/source/1.4/ MAINTAINER= lukem@NetBSD.org -HOMEPAGE= http://www.exploits.org/nut/ +HOMEPAGE= http://www.networkupstools.org/ COMMENT= Network UPS Tools USE_BUILDLINK2= yes USE_PKGINSTALL= yes GNU_CONFIGURE= yes CONFIGURE_ARGS+= --sysconfdir=${NUT_CONFDIR} \ + --datadir=${NUT_DATADIR} \ + --localstatedir=${NUT_STATEDIR} \ --with-user=${NUT_USER} \ --with-group=${NUT_GROUP} \ --with-statepath=${NUT_STATEDIR} \ - --with-drvpath=${LOCALBASE}/sbin/ups-drivers + --with-drvpath=${NUT_DRVDIR} \ + --with-altpidpath=${NUT_STATEDIR} \ + --with-pidpath=${NUT_STATEDIR} PKG_SYSCONFSUBDIR?= nut NUT_CONFDIR= ${PKG_SYSCONFDIR} +NUT_DATADIR= ${PREFIX}/share/nut NUT_DOCDIR= ${PREFIX}/share/doc/nut +NUT_DRVDIR= ${PREFIX}/libexec/nut NUT_EGDIR= ${PREFIX}/share/examples/nut NUT_STATEDIR= /var/db/nut @@ -58,18 +63,20 @@ OWN_DIRS= ${NUT_CONFDIR} OWN_DIRS_PERMS= ${NUT_STATEDIR} ${NUT_USER} ${NUT_GROUP} 0770 pre-install: - @${INSTALL_DATA_DIR} ${NUT_EGDIR} + @${MKDIR} ${NUT_STATEDIR} + @${MKDIR} ${NUT_DRVDIR} + @${CHOWN} ${NUT_USER} ${NUT_STATEDIR} + ${INSTALL_DATA_DIR} ${NUT_EGDIR} post-install: ${INSTALL_DATA_DIR} ${NUT_DOCDIR} ${INSTALL_DATA_DIR} ${NUT_DOCDIR}/cables ${NUT_DOCDIR}/drivers - for f in CHANGES COPYING CREDITS NEWS README UPGRADING; do \ + for f in CHANGES COPYING CREDITS NEWS README INSTALL UPGRADING; do \ ${INSTALL_DATA} ${WRKSRC}/$$f ${NUT_DOCDIR}; \ done ${INSTALL_DATA} ${WRKSRC}/docs/FAQ ${NUT_DOCDIR} ${INSTALL_DATA} ${WRKSRC}/docs/driver.list ${NUT_DOCDIR} ${INSTALL_DATA} ${WRKSRC}/docs/*.txt ${NUT_DOCDIR} ${INSTALL_DATA} ${WRKSRC}/docs/cables/*.txt ${NUT_DOCDIR}/cables - ${INSTALL_DATA} ${WRKSRC}/docs/drivers/*.txt ${NUT_DOCDIR}/drivers .include "../../mk/bsd.pkg.mk" |