summaryrefslogtreecommitdiff
path: root/sysutils/ups-nut-snmp
diff options
context:
space:
mode:
authorbouyer <bouyer>2011-07-29 15:11:40 +0000
committerbouyer <bouyer>2011-07-29 15:11:40 +0000
commit8eaf2868ea9b29178a2102953694bc099d7259dc (patch)
treee0671a738498c503481fa6169f68798977774ba3 /sysutils/ups-nut-snmp
parent85b1c0c3abc08930fa9478325f448f7ac9ed7ea9 (diff)
downloadpkgsrc-8eaf2868ea9b29178a2102953694bc099d7259dc.tar.gz
Update ups-nut* from 2.0.5 to 2.6.1. Changes are too large to list here,
see: http://www.networkupstools.org/source/2.6/new-2.6.1.txt
Diffstat (limited to 'sysutils/ups-nut-snmp')
-rw-r--r--sysutils/ups-nut-snmp/Makefile16
1 files changed, 11 insertions, 5 deletions
diff --git a/sysutils/ups-nut-snmp/Makefile b/sysutils/ups-nut-snmp/Makefile
index 4d5003b825a..38a2eab67f6 100644
--- a/sysutils/ups-nut-snmp/Makefile
+++ b/sysutils/ups-nut-snmp/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.2 2008/06/20 01:09:36 joerg Exp $
+# $NetBSD: Makefile,v 1.3 2011/07/29 15:11:40 bouyer Exp $
PKG_DESTDIR_SUPPORT= user-destdir
@@ -9,12 +9,18 @@ COMMENT= Network UPS Tools SNMP driver
DEPENDS+= ups-nut-2.*:../../sysutils/ups-nut
-BUILD_TARGET= all snmp
-INSTALL_TARGET= install-snmp
-
BUILD_DEFS+= NUT_STATEDIR
-CONFIGURE_ARGS+= --with-drvpath=${NUT_DRVDIR:Q}
+INSTALLATION_DIRS+= ${PREFIX}/libexec/nut
+INSTALLATION_DIRS+= ${PREFIX}/${PKGMANDIR}/man8
+
+CONFIGURE_ARGS+= --with-snmp --with-drvpath=${NUT_DRVDIR:Q}
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/drivers/snmp-ups \
+ ${DESTDIR}${PREFIX}/libexec/nut/
+ ${INSTALL_MAN} ${WRKSRC}/docs/man/snmp-ups.8 \
+ ${DESTDIR}${PREFIX}//${PKGMANDIR}/man8/
.include "../../net/net-snmp/buildlink3.mk"
.include "../../mk/bsd.pkg.mk"