summaryrefslogtreecommitdiff
path: root/extra/net-snmp
diff options
context:
space:
mode:
authorroot <root@rshg054.dnsready.net>2012-10-09 00:33:26 -0700
committerroot <root@rshg054.dnsready.net>2012-10-09 00:33:26 -0700
commit965fe5dd2bc0fae6b53c10d880c15f494dd589ac (patch)
tree910883dffa913262b28fb7a0e3bc41c3325b1dd2 /extra/net-snmp
parent962d1e81a62d7259ccb686da1a44de2bb28e73a5 (diff)
Tue Oct 9 00:33:25 PDT 2012
Diffstat (limited to 'extra/net-snmp')
-rw-r--r--extra/net-snmp/PKGBUILD8
-rw-r--r--extra/net-snmp/snmpd.service11
2 files changed, 16 insertions, 3 deletions
diff --git a/extra/net-snmp/PKGBUILD b/extra/net-snmp/PKGBUILD
index d70068fd4..325c61b06 100644
--- a/extra/net-snmp/PKGBUILD
+++ b/extra/net-snmp/PKGBUILD
@@ -1,10 +1,10 @@
-# $Id: PKGBUILD 160499 2012-06-02 10:26:47Z bluewind $
+# $Id: PKGBUILD 168300 2012-10-08 05:33:09Z eric $
# Maintainer:
# Contributor: Dale Blount <dale@archlinux.org>
pkgname=net-snmp
pkgver=5.7.1
-pkgrel=3
+pkgrel=4
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/"
@@ -18,11 +18,12 @@ provides=('ucd-snmp')
backup=('etc/conf.d/snmpd')
options=('!libtool' '!makeflags' '!emptydirs')
source=(http://downloads.sourceforge.net/${pkgname}/${pkgname}-${pkgver}.tar.gz{,.asc}
- snmpd.confd snmpd.rc libnl32.patch)
+ snmpd.confd snmpd.rc snmpd.service libnl32.patch)
sha1sums=('ddb82ce1112ef0642869d3c8d7c7e585f151849a'
'2bdc2839ce09d7daa608cd54687fa8beb47ed907'
'cf811da9e57bbca34d8e2a3c358bb3bfc0c2b33b'
'90600c0141eed10d6e3ca3ccc97ad8dda15c2112'
+ 'f59ddc049c1c689f04e68c3c7cd8b8e301df3158'
'74a9848b95f63378eb1753fc309d2b74de5afb0f')
build() {
@@ -54,5 +55,6 @@ package() {
make DESTDIR="${pkgdir}" INSTALL_PREFIX="${pkgdir}" INSTALLDIRS=vendor install
install -D -m755 "${srcdir}/snmpd.rc" "${pkgdir}/etc/rc.d/snmpd"
install -D -m644 "${srcdir}/snmpd.confd" "${pkgdir}/etc/conf.d/snmpd"
+ install -D -m644 "${srcdir}/snmpd.service" "${pkgdir}/usr/lib/systemd/system/snmpd.service"
install -D -m644 COPYING "${pkgdir}/usr/share/licenses/${pkgname}/LICENSE"
}
diff --git a/extra/net-snmp/snmpd.service b/extra/net-snmp/snmpd.service
new file mode 100644
index 000000000..111a8d6a9
--- /dev/null
+++ b/extra/net-snmp/snmpd.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=Simple Network Management Protocol (SNMP) Daemon
+After=syslog.target network.target
+
+[Service]
+Type=forking
+ExecStart=/usr/sbin/snmpd
+ExecReload=/bin/kill -HUP $MAINPID
+
+[Install]
+WantedBy=multi-user.target