diff -uN snmp/rc.snmp snmp.new/rc.snmp
--- snmp/rc.snmp	1970-01-01 01:00:00.000000000 +0100
+++ snmp.new/rc.snmp	2003-01-24 22:21:16.000000000 +0100
@@ -0,0 +1,33 @@
+#!@l_prefix@/lib/openpkg/bash @l_prefix@/etc/rc
+##
+##  rc.snmp -- Run-Commands for OpenSSH Daemon
+##
+
+%config
+    snmp_enable="yes"
+
+%common
+    snmp_signal () {
+        if [ -f "@l_prefix@/var/snmp/snmpd.pid" ]; then
+            kill -$1 `cat @l_prefix@/var/snmp/snmpd.pid`
+        fi
+    }
+
+%start -p 200 -u root
+    opServiceEnabled snmp || exit 0
+    if [ -f @l_prefix@/etc/snmp/snmpd.conf ]; then
+        @l_prefix@/sbin/snmpd -P @l_prefix@/var/snmp/snmpd.pid 
+    fi
+
+%stop -p 200 -u root
+    opServiceEnabled snmp || exit 0
+    snmp_signal TERM
+
+%restart -u root
+    opServiceEnabled snmp || exit 0
+    snmp_signal TERM
+    sleep 2
+    if [ -f @l_prefix@/etc/snmp/snmpd.conf ]; then
+        @l_prefix@/sbin/snmpd -P @l_prefix@/var/snmp/snmpd.pid 
+    fi
+
diff -uN snmp/snmp.spec snmp.new/snmp.spec
--- snmp/snmp.spec	2003-01-18 18:04:28.000000000 +0100
+++ snmp.new/snmp.spec	2003-01-25 01:06:17.420006000 +0100
@@ -35,8 +35,13 @@
 Version:      5.0.7
 Release:      1.2.0
 
+%option       with_host_mib          no
+
+
 #   list of sources
 Source0:      http://osdn.dl.sourceforge.net/net-snmp/net-snmp-%{version}.tar.gz
+Source1:      rc.snmp
+Source2:      snmpd.conf
 
 #   build information
 Prefix:       %{l_prefix}
@@ -67,7 +72,11 @@
         --with-db=%{l_prefix} \
         --enable-silent-libtool \
         --disable-shared \
-        --with-defaults
+        --with-defaults \
+%if "%{with_host_mib}" == "yes"
+        --with-mib-modules="host" \
+%endif 
+
     %{l_make} %{l_mflags} touchit
     %{l_make} %{l_mflags}
 
@@ -84,6 +93,15 @@
        $RPM_BUILD_ROOT%{l_prefix}/bin/snmpinform
     strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
     strip $RPM_BUILD_ROOT%{l_prefix}/sbin/* >/dev/null 2>&1 || true
+    %{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/var/snmp
+    %{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/etc/snmp
+    %{l_shtool} install -c -m 644 \
+        %{SOURCE snmpd.conf} $RPM_BUILD_ROOT%{l_prefix}/etc/snmp/
+
+    %{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d
+    %{l_shtool} install -c -m 755 -e 's;@l_prefix@;%{l_prefix};g'    \
+        %{SOURCE rc.snmp} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
+
     %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
 
 %files -f files
diff -uN snmp/snmpd.conf snmp.new/snmpd.conf
--- snmp/snmpd.conf	1970-01-01 01:00:00.000000000 +0100
+++ snmp.new/snmpd.conf	2003-01-25 00:37:38.670003000 +0100
@@ -0,0 +1,39 @@
+###########################################################################
+#
+# snmpd.conf
+#
+#   - created by the snmpconf configuration program
+#
+###########################################################################
+# SECTION: Access Control Setup
+#
+#   This section defines who is allowed to talk to your running
+#   snmp agent.
+
+# rouser: a SNMPv3 read-only user
+#   arguments:  user [noauth|auth|priv] [restriction_oid]
+
+rouser  nms  
+
+# rocommunity: a SNMPv1/SNMPv2c read-only access community name
+#   arguments:  community [default|hostname|network/bits] [oid]
+
+rocommunity  public 127.0.0.1 
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
