summaryrefslogtreecommitdiff
path: root/sysutils/ups-nut-snmp
diff options
context:
space:
mode:
authorghen <ghen>2006-08-16 13:30:35 +0000
committerghen <ghen>2006-08-16 13:30:35 +0000
commit58add5127b530618272a689e4d4d651401436c44 (patch)
tree493e84ee29d4458a57881d1db49d08bab6c27546 /sysutils/ups-nut-snmp
parent7a18850cc0faa0937e37864ae5edd6c8d9deab57 (diff)
downloadpkgsrc-58add5127b530618272a689e4d4d651401436c44.tar.gz
ups-nut-snmp provides the SNMP driver from the Network UPS Tools.
Import it as a separate package because it requires net/net-snmp.
Diffstat (limited to 'sysutils/ups-nut-snmp')
-rw-r--r--sysutils/ups-nut-snmp/DESCR1
-rw-r--r--sysutils/ups-nut-snmp/Makefile18
-rw-r--r--sysutils/ups-nut-snmp/PLIST3
3 files changed, 22 insertions, 0 deletions
diff --git a/sysutils/ups-nut-snmp/DESCR b/sysutils/ups-nut-snmp/DESCR
new file mode 100644
index 00000000000..717a3b7b987
--- /dev/null
+++ b/sysutils/ups-nut-snmp/DESCR
@@ -0,0 +1 @@
+ups-nut-snmp provides the SNMP driver from the Network UPS Tools.
diff --git a/sysutils/ups-nut-snmp/Makefile b/sysutils/ups-nut-snmp/Makefile
new file mode 100644
index 00000000000..ec5f5d1fa9e
--- /dev/null
+++ b/sysutils/ups-nut-snmp/Makefile
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.1.1.1 2006/08/16 13:30:35 ghen Exp $
+
+.include "../../sysutils/ups-nut/Makefile.common"
+
+PKGNAME= ${DISTNAME:S/nut/ups-nut-snmp/}
+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}
+
+.include "../../net/net-snmp/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/sysutils/ups-nut-snmp/PLIST b/sysutils/ups-nut-snmp/PLIST
new file mode 100644
index 00000000000..612edbc6778
--- /dev/null
+++ b/sysutils/ups-nut-snmp/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2006/08/16 13:30:35 ghen Exp $
+libexec/nut/snmp-ups
+man/man8/snmp-ups.8