summaryrefslogtreecommitdiff
path: root/extra/net-snmp
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2013-05-27 00:29:16 -0700
committerroot <root@rshg054.dnsready.net>2013-05-27 00:29:16 -0700
commitb4ca83da72ffb5800852339f6efe5a59c16e9f94 (patch)
tree3ed149ced423d2629e0b3a71f0b1e2cf3f6ced70 /extra/net-snmp
parent99ee54f2484aadc464e997e54aa9c7ca7ecde198 (diff)
Mon May 27 00:29:16 PDT 2013
Diffstat (limited to 'extra/net-snmp')
-rw-r--r--extra/net-snmp/PKGBUILD8
-rw-r--r--extra/net-snmp/snmptrapd.service12
2 files changed, 17 insertions, 3 deletions
diff --git a/extra/net-snmp/PKGBUILD b/extra/net-snmp/PKGBUILD
index 549bc60fa..07cb6c7c8 100644
--- a/extra/net-snmp/PKGBUILD
+++ b/extra/net-snmp/PKGBUILD
@@ -1,10 +1,10 @@
-# $Id: PKGBUILD 185295 2013-05-13 03:05:59Z eric $
+# $Id: PKGBUILD 186390 2013-05-26 09:24:49Z bluewind $
# Maintainer:
# Contributor: Dale Blount <dale@archlinux.org>
pkgname=net-snmp
pkgver=5.7.2
-pkgrel=5
+pkgrel=7
pkgdesc="A suite of applications used to implement SNMP v1, SNMP v2c and SNMP v3 using both IPv4 and IPv6"
arch=('i686' 'x86_64')
url="http://www.net-snmp.org/"
@@ -16,10 +16,11 @@ optdepends=('perl-term-readkey: for snmpcheck application'
'python2: for the python modules')
options=('!libtool' '!emptydirs' '!makeflags')
source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz{,.asc}
- snmpd.service libnl32.patch)
+ snmpd.service snmptrapd.service libnl32.patch)
sha1sums=('c493027907f32400648244d81117a126aecd27ee'
'SKIP'
'84e32c54d32e6b608747054e04a3ddfe6d6638cc'
+ '0244e91c7baa0abebfb5c0560e8ce04c966c5992'
'74a9848b95f63378eb1753fc309d2b74de5afb0f')
prepare() {
@@ -52,5 +53,6 @@ package() {
sed -i -e "s:install --basedir=\$\$dir:install --basedir=\$\$dir --root=${pkgdir}:" Makefile
make DESTDIR="${pkgdir}" INSTALL_PREFIX="${pkgdir}" INSTALLDIRS=vendor install
install -D -m644 "${srcdir}/snmpd.service" "${pkgdir}/usr/lib/systemd/system/snmpd.service"
+ install -D -m644 "${srcdir}/snmptrapd.service" "${pkgdir}/usr/lib/systemd/system/snmptrapd.service"
install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
diff --git a/extra/net-snmp/snmptrapd.service b/extra/net-snmp/snmptrapd.service
new file mode 100644
index 000000000..50eee7ac8
--- /dev/null
+++ b/extra/net-snmp/snmptrapd.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Simple Network Management Protocol (SNMP) TRAP Daemon
+After=syslog.target network.target
+
+[Service]
+Type=forking
+PIDFile=/run/snmptrapd.pid
+ExecStart=/usr/bin/snmptrapd -p /run/snmptrapd.pid
+ExecReload=/bin/kill -HUP $MAINPID
+
+[Install]
+WantedBy=multi-user.target