From af3eea3a2cc5053e328759fa8f9ca0de4a9758b9 Mon Sep 17 00:00:00 2001 From: beefcurtains Date: Wed, 3 Jun 2015 10:18:31 +0000 Subject: [PATCH] network-ups-tools: enable snmp module --- common/hooks/pre-configure/02-script-wrapper.sh | 1 + srcpkgs/network-ups-tools/template | 10 ++++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/common/hooks/pre-configure/02-script-wrapper.sh b/common/hooks/pre-configure/02-script-wrapper.sh index f9eeac58bce..dcff6f66135 100644 --- a/common/hooks/pre-configure/02-script-wrapper.sh +++ b/common/hooks/pre-configure/02-script-wrapper.sh @@ -103,6 +103,7 @@ hook() { generic_wrapper imlib2-config generic_wrapper libmikmod-config generic_wrapper pcre-config + generic_wrapper net-snmp-config generic_wrapper2 curl-config generic_wrapper2 gpg-error-config generic_wrapper2 libassuan-config diff --git a/srcpkgs/network-ups-tools/template b/srcpkgs/network-ups-tools/template index 9f67b307cec..cbf4d98f6a9 100644 --- a/srcpkgs/network-ups-tools/template +++ b/srcpkgs/network-ups-tools/template @@ -1,16 +1,18 @@ # Template file for 'network-ups-tools' pkgname=network-ups-tools version=2.7.3 -revision=1 +revision=2 wrksrc="nut-${version}" build_style=gnu-configure configure_args=" --sysconfdir=/etc/ups --without-doc --disable-static --datadir=/usr/share/ups --with-user=nut --with-group=nut --with-ssl --with-usb --without-dev --with-serial -with-avahi --with-udev-dir=/usr/lib/udev - --without-libltdl --without-ipmi --without-freeipmi --without-systemdsystemunitdir" + --without-libltdl --without-ipmi --without-freeipmi --without-systemdsystemunitdir + --with-snmp" hostmakedepends="pkg-config" -makedepends="avahi-libs-devel libressl-devel libusb-compat-devel neon-devel" +makedepends="avahi-libs-devel libressl-devel libusb-compat-devel neon-devel + net-snmp-devel" system_accounts="nut" conf_files=" /etc/ups/ups.conf @@ -23,7 +25,7 @@ short_desc="UPS control and monitoring features" maintainer="Juan RP " license="GPL-2" homepage="http://www.networkupstools.org/" -distfiles="http://www.networkupstools.org/source/2.7/nut-$version.tar.gz" +distfiles="${homepage}source/${version%.*}/nut-${version}.tar.gz" checksum=ff44d95d06a51559a0a018eef7f8d17911c1002b6352a7d7580ff75acb12126b post_install() {