summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVlad Glagolev2009-10-01 04:06:01 +0400
committerVlad Glagolev2009-10-01 04:06:01 +0400
commitb6e89de31129abd9e31bd5a354be2ee82586d08a (patch)
treea5f9ecdcc87cbb043db59a58781438e420715507
parent8ecfd15e018272a71735b8068b65bc2a2f8de224 (diff)
net-snmp: => 5.5 + some useful changes
-rwxr-xr-xnet/net-snmp/BUILD7
-rwxr-xr-xnet/net-snmp/DETAILS8
-rw-r--r--net/net-snmp/HISTORY8
-rwxr-xr-xnet/net-snmp/INSTALL11
-rwxr-xr-xnet/net-snmp/init.d/snmpd11
-rw-r--r--net/net-snmp/init.d/snmpd.conf3
-rw-r--r--net/net-snmp/net-snmp.gpgbin0 -> 1871 bytes
7 files changed, 42 insertions, 6 deletions
diff --git a/net/net-snmp/BUILD b/net/net-snmp/BUILD
index d056d75355..53f7a4807d 100755
--- a/net/net-snmp/BUILD
+++ b/net/net-snmp/BUILD
@@ -1,6 +1,7 @@
-OPTS="$OPTS --with-sys-contact=root@$( hostname -f) \
+OPTS="$OPTS --with-sys-contact=root@$(hostname -f) \
--enable-ucd-snmp-compatibility \
--with-persistent-directory=/var/state/ucd-snmp --with-defaults"
-make_single &&
-default_build
+make_single &&
+default_build &&
+make_normal
diff --git a/net/net-snmp/DETAILS b/net/net-snmp/DETAILS
index 33c3ac51b5..abd185d20d 100755
--- a/net/net-snmp/DETAILS
+++ b/net/net-snmp/DETAILS
@@ -1,10 +1,12 @@
SPELL=net-snmp
- VERSION=5.4.2.1
+ VERSION=5.5
SECURITY_PATCH=1
SOURCE=$SPELL-$VERSION.tar.gz
-SOURCE_DIRECTORY=$BUILD_DIRECTORY/$SPELL-$VERSION
+ SOURCE2=$SOURCE.asc
+SOURCE_DIRECTORY="$BUILD_DIRECTORY/$SPELL-$VERSION"
SOURCE_URL=$SOURCEFORGE_URL/$SPELL/$SOURCE
- SOURCE_HASH=sha512:dda84a84ab59786b3115dcd15619b8e16d2c55317dc1f81639a113efec08c26f4ef1cc150035f738f2c568a404754c407c6ec705975cf098271b256aa9a82b10
+ SOURCE_GPG=net-snmp.gpg:$SOURCE2:UPSTREAM_KEY
+ SOURCE2_IGNORE=signature
WEB_SITE=http://www.net-snmp.org/
ENTERED=20011108
LICENSE[0]=http://www.net-snmp.org/COPYING.txt
diff --git a/net/net-snmp/HISTORY b/net/net-snmp/HISTORY
index 4b8d8e0579..a0568a1656 100644
--- a/net/net-snmp/HISTORY
+++ b/net/net-snmp/HISTORY
@@ -1,3 +1,11 @@
+2009-10-01 Vlad Glagolev <stealth@sourcemage.org>
+ * net-snmp.gpg: added gpg keyring
+ * DETAILS: updated spell to 5.5; quoting paths; converted to upstream
+ signature checking
+ * init.d/snmpd{,.conf}: added, to provide init script and its config
+ * INSTALL: added, to install default config files (if noone)
+ * BUILD: corrected non-multijob build
+
2009-08-30 Florian Franzmann <siflfran@hawo.stw.uni-erlangen.de>
* TRIGGERS: on_cast perl check_self
diff --git a/net/net-snmp/INSTALL b/net/net-snmp/INSTALL
new file mode 100755
index 0000000000..0af111b90c
--- /dev/null
+++ b/net/net-snmp/INSTALL
@@ -0,0 +1,11 @@
+default_install &&
+
+install -vm 755 -d "$INSTALL_ROOT/etc/snmp" &&
+
+if [[ $INIT_INSTALLED ]]; then
+ install_config_file "$SOURCE_DIRECTORY/EXAMPLE.conf.def" \
+ "$INSTALL_ROOT/etc/snmp/snmpd.conf" &&
+
+ install_config_file "$SPELL_DIRECTORY/init.d/snmpd.conf" \
+ "$INSTALL_ROOT/etc/sysconfig/snmpd"
+fi
diff --git a/net/net-snmp/init.d/snmpd b/net/net-snmp/init.d/snmpd
new file mode 100755
index 0000000000..1782330c5e
--- /dev/null
+++ b/net/net-snmp/init.d/snmpd
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+. /etc/sysconfig/snmpd
+
+PROGRAM=/usr/sbin/snmpd
+ARGS="-p /var/run/snmpd.pid $SNMPD_ARGS"
+RUNLEVEL=3
+PIDFILE=/var/run/snmpd.pid
+NEEDS="+network"
+
+. /etc/init.d/smgl_init
diff --git a/net/net-snmp/init.d/snmpd.conf b/net/net-snmp/init.d/snmpd.conf
new file mode 100644
index 0000000000..3614aa9719
--- /dev/null
+++ b/net/net-snmp/init.d/snmpd.conf
@@ -0,0 +1,3 @@
+# For the arguments and description see snmpd.conf(5)
+
+SNMPD_ARGS=""
diff --git a/net/net-snmp/net-snmp.gpg b/net/net-snmp/net-snmp.gpg
new file mode 100644
index 0000000000..9cd5d57f8e
--- /dev/null
+++ b/net/net-snmp/net-snmp.gpg
Binary files differ