# HG changeset patch # User Michael Schloh von Bennewitz # Date 1301079971 -3600 # Node ID 6601d28cfe52c9cfae8d541a3862826e7624b2ae # Parent d423aaf007214714ed7c2ab8974d6980160520a2 Import package vendor original specs for necessary manipulations. diff -r d423aaf00721 -r 6601d28cfe52 snmp/fsl.snmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/snmp/fsl.snmp Fri Mar 25 20:06:11 2011 +0100 @@ -0,0 +1,16 @@ +## +## fsl.snmp -- OSSP fsl configuration +## + +ident (snmpd|snmptrapd|net-snmp)/.+ q{ + prefix( + prefix="%b %d %H:%M:%S %N <%L> $1[%P]: " + ) + -> { + debug: file( + path="@l_prefix@/var/snmp/snmp.log", + perm=0644 + ) + } +}; + diff -r d423aaf00721 -r 6601d28cfe52 snmp/rc.snmp --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/snmp/rc.snmp Fri Mar 25 20:06:11 2011 +0100 @@ -0,0 +1,71 @@ +#!@l_prefix@/bin/openpkg rc +## +## rc.snmp -- Run-Commands +## + +%config + snmp_enable="$openpkg_rc_def" + snmp_daemons="snmpd snmptrapd" + snmp_listen="127.0.0.1" + snmp_listentrap="127.0.0.1" + snmp_log_prolog="true" + snmp_log_epilog="true" + snmp_log_numfiles="10" + snmp_log_minsize="1M" + snmp_log_complevel="9" + +%common + snmp_pidfile_snmptrapd="@l_prefix@/var/snmp/snmptrapd.pid" + snmp_pidfile_snmpd="@l_prefix@/var/snmp/snmpd.pid" + snmp_signal () { + [ -f $snmp_pidfile_snmptrapd ] \ + && kill -$1 `cat $snmp_pidfile_snmptrapd` + local rc_snmptrapd=$? + [ -f $snmp_pidfile_snmpd ] \ + && kill -$1 `cat $snmp_pidfile_snmpd` + local rc_snmpd=$? + [ $rc_snmptrapd -eq 0 -o $rc_snmpd -eq 0 ] + } + +%status -u @l_susr@ -o + snmp_usable="no" + snmp_active="no" + rcService snmp enable yes && \ + snmp_usable="yes" + rcService snmp enable yes && \ + snmp_signal 0 && snmp_active="yes" + echo "snmp_enable=\"$snmp_enable\"" + echo "snmp_usable=\"$snmp_usable\"" + echo "snmp_active=\"$snmp_active\"" + +%start -u @l_susr@ + rcService snmp enable yes || exit 0 + rcService snmp active yes && exit 0 + for daemon in $snmp_daemons; do + case "$daemon" in + snmpd ) @l_prefix@/sbin/snmpd -Lsd $snmp_listen ;; + snmptrapd ) @l_prefix@/sbin/snmptrapd -Lsd $snmp_listentrap ;; + esac + done + +%stop -u @l_susr@ + rcService snmp enable yes || exit 0 + rcService snmp active no && exit 0 + snmp_signal TERM + +%restart -u @l_susr@ + rcService snmp enable yes || exit 0 + rcService snmp active no && exit 0 + rc snmp stop + sleep 2 + rc snmp start + +%daily -u @l_susr@ + rcService snmp enable yes || exit 0 + shtool rotate -f \ + -n ${snmp_log_numfiles} -s ${snmp_log_minsize} -d \ + -z ${snmp_log_complevel} -o @l_rusr@ -g @l_rgrp@ -m 644 \ + -P "${snmp_log_prolog}" \ + -E "${snmp_log_epilog}" \ + @l_prefix@/var/snmp/snmp.log + diff -r d423aaf00721 -r 6601d28cfe52 snmp/snmp.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/snmp/snmp.patch Fri Mar 25 20:06:11 2011 +0100 @@ -0,0 +1,196 @@ +Index: Makefile.in +--- Makefile.in.orig 2010-09-10 06:23:07.000000000 +0200 ++++ Makefile.in 2010-10-09 09:56:09.000000000 +0200 +@@ -18,7 +18,7 @@ + INCLUDESUBDIR=system + INCLUDESUBDIRHEADERS= aix.h bsd.h bsdi3.h bsdi4.h bsdi.h cygwin.h \ + darwin.h darwin7.h darwin8.h darwin9.h darwin10.h dragonfly.h dynix.h \ +- freebsd2.h freebsd3.h freebsd4.h freebsd5.h freebsd6.h freebsd.h \ ++ freebsd2.h freebsd3.h freebsd4.h freebsd5.h freebsd6.h freebsd7.h freebsd8.h freebsd9.h freebsd.h \ + generic.h \ + hpux.h irix.h linux.h mingw32.h mips.h netbsd.h openbsd.h osf5.h \ + solaris2.3.h solaris2.4.h solaris2.5.h solaris2.6.h \ +Index: agent/auto_nlist.c +--- agent/auto_nlist.c.orig 2010-07-29 16:58:47.000000000 +0200 ++++ agent/auto_nlist.c 2010-10-09 09:08:23.000000000 +0200 +@@ -53,6 +53,7 @@ + } + if (*ptr == 0) { + *ptr = (struct autonlist *) malloc(sizeof(struct autonlist)); ++ memset(*ptr, 0, sizeof(struct autonlist)); + it = *ptr; + it->left = 0; + it->right = 0; +Index: agent/mibgroup/mibII/tcp.c +--- agent/mibgroup/mibII/tcp.c.orig 2010-08-13 17:04:33.000000000 +0200 ++++ agent/mibgroup/mibII/tcp.c 2010-10-09 09:08:23.000000000 +0200 +@@ -87,7 +87,7 @@ + * But only define it under FreeBSD, since it + * breaks other systems (notable AIX) + */ +-#ifdef freebsd4 ++#if defined (freebsd4) || defined (__NetBSD__) + int hz = 1000; + #endif + +Index: agent/mibgroup/mibII/tcpTable.c +--- agent/mibgroup/mibII/tcpTable.c.orig 2010-06-16 15:13:25.000000000 +0200 ++++ agent/mibgroup/mibII/tcpTable.c 2010-10-09 09:08:23.000000000 +0200 +@@ -104,6 +104,11 @@ + #define TCPTABLE_REMOTEPORT pcb.inp_fport + #define TCPTABLE_IS_LINKED_LIST + ++#if defined(__FreeBSD__) ++#undef INP_NEXT_SYMBOL ++#define INP_NEXT_SYMBOL inp_next ++#endif ++ + #endif /* linux */ + #endif /* WIN32 cygwin */ + #endif /* solaris2 */ +@@ -867,12 +872,17 @@ + nnew = SNMP_MALLOC_TYPEDEF(netsnmp_inpcb); + if (!nnew) + break; ++#if defined(__FreeBSD__) ++ memcpy(&(nnew->pcb), &(((struct xinpcb *) xig)->xi_inp), ++ sizeof(struct inpcb)); ++#else + nnew->state = StateMap[((NS_ELEM *) xig)->xt_tp.t_state]; + if (nnew->state == 5 /* established */ || + nnew->state == 8 /* closeWait */ ) + tcp_estab++; + memcpy(&(nnew->pcb), &(((NS_ELEM *) xig)->xt_inp), + sizeof(struct inpcb)); ++#endif + + nnew->inp_next = tcp_head; + tcp_head = nnew; +Index: agent/mibgroup/ucd-snmp/diskio.c +--- agent/mibgroup/ucd-snmp/diskio.c.orig 2010-08-13 17:04:33.000000000 +0200 ++++ agent/mibgroup/ucd-snmp/diskio.c 2010-10-09 09:08:23.000000000 +0200 +@@ -618,6 +618,20 @@ + case DISKIO_DEVICE: + *var_len = strlen(stat->dinfo->devices[indx].device_name); + return (u_char *) stat->dinfo->devices[indx].device_name; ++#if defined(freebsd5) && (__FreeBSD_version >= 500107) ++ case DISKIO_NREAD: ++ long_ret = (signed long) stat->dinfo->devices[indx].bytes[DEVSTAT_READ]; ++ return (u_char *) & long_ret; ++ case DISKIO_NWRITTEN: ++ long_ret = (signed long) stat->dinfo->devices[indx].bytes[DEVSTAT_WRITE]; ++ return (u_char *) & long_ret; ++ case DISKIO_READS: ++ long_ret = (signed long) stat->dinfo->devices[indx].operations[DEVSTAT_READ]; ++ return (u_char *) & long_ret; ++ case DISKIO_WRITES: ++ long_ret = (signed long) stat->dinfo->devices[indx].operations[DEVSTAT_WRITE]; ++ return (u_char *) & long_ret; ++#else + case DISKIO_NREAD: + #if defined(freebsd5) && __FreeBSD_version >= 500107 + long_ret = (signed long) stat->dinfo->devices[indx].bytes[DEVSTAT_READ]; +@@ -675,6 +689,7 @@ + case DISKIO_LA15: + long_ret = devloads[indx].la15; + return (u_char *) & long_ret; ++#endif + + default: + ERROR_MSG("diskio.c: don't know how to handle this request."); +Index: agent/mibgroup/ucd-snmp/memory_solaris2.c +--- agent/mibgroup/ucd-snmp/memory_solaris2.c.orig 2008-10-21 23:10:43.000000000 +0200 ++++ agent/mibgroup/ucd-snmp/memory_solaris2.c 2010-10-09 09:08:23.000000000 +0200 +@@ -1,3 +1,4 @@ ++#undef _FILE_OFFSET_BITS /* swapctl doesn't support 64bit off_t */ + #include /* local SNMP configuration details */ + #if HAVE_STRING_H + #include +Index: agent/mibgroup/ucd-snmp/proc.c +--- agent/mibgroup/ucd-snmp/proc.c.orig 2010-07-29 16:58:47.000000000 +0200 ++++ agent/mibgroup/ucd-snmp/proc.c 2010-10-09 09:08:23.000000000 +0200 +@@ -1,3 +1,6 @@ ++#ifdef solaris2 ++#undef _FILE_OFFSET_BITS /* solaris procfs doesn't support 64bit off_t */ ++#endif + #include + + #ifdef solaris2 +Index: agent/mibgroup/util_funcs.c +--- agent/mibgroup/util_funcs.c.orig 2010-05-16 20:12:40.000000000 +0200 ++++ agent/mibgroup/util_funcs.c 2010-10-09 09:08:23.000000000 +0200 +@@ -457,6 +457,9 @@ + int fd[2][2], i, cnt; + char ctmp[STRMAX], *cptr1, *cptr2, argvs[STRMAX], **argv, + **aptr; ++ ++ *pid = -1; /* open_persist_pipe ignores return code but checks *pid */ ++ + /* + * Setup our pipes + */ +Index: agent/snmpd.c +--- agent/snmpd.c.orig 2010-08-17 20:31:31.000000000 +0200 ++++ agent/snmpd.c 2010-10-09 09:08:23.000000000 +0200 +@@ -429,7 +429,7 @@ + int uid = 0, gid = 0; + int agent_mode = -1; + char *cptr, **argvptr; +- char *pid_file = NULL; ++ char *pid_file = "@l_prefix@/var/snmp/snmpd.pid"; + char option_compatability[] = "-Le"; + #if HAVE_GETPID + int fd; +Index: apps/snmptrapd.c +--- apps/snmptrapd.c.orig 2010-08-13 20:50:07.000000000 +0200 ++++ apps/snmptrapd.c 2010-10-09 09:08:23.000000000 +0200 +@@ -652,6 +652,7 @@ + */ + #if HAVE_GETPID + strcat(options, "p:"); ++ parse_config_pidFile(NULL, "@l_prefix@/var/snmp/snmptrapd.pid"); + #endif + + #ifdef WIN32 +Index: include/net-snmp/library/system.h +--- include/net-snmp/library/system.h.orig 2010-03-25 16:06:26.000000000 +0100 ++++ include/net-snmp/library/system.h 2010-10-09 09:56:40.000000000 +0200 +@@ -141,7 +141,8 @@ + #endif + #ifndef HAVE_SETENV + NETSNMP_IMPORT +- int setenv(const char *, const char *, int); ++ int __netsnmp_setenv(const char *, const char *, int); ++# define setenv(a,b,c) __netsnmp_setenv(a,b,c) + #endif + + NETSNMP_IMPORT +Index: include/net-snmp/system/freebsd8.h +--- include/net-snmp/system/freebsd8.h.orig 2010-02-14 20:29:08.000000000 +0100 ++++ include/net-snmp/system/freebsd8.h 2010-10-09 09:08:23.000000000 +0200 +@@ -1,3 +1,6 @@ ++/* freebsd8 is a superset of freebsd7 */ ++#include "freebsd7.h" ++#define freebsd7 freebsd7 + /* freebsd8 is a superset of freebsd4 */ + #include "freebsd4.h" + #define freebsd4 freebsd4 +Index: include/net-snmp/system/freebsd9.h +--- include/net-snmp/system/freebsd9.h.orig 2010-10-09 09:08:23.000000000 +0200 ++++ include/net-snmp/system/freebsd9.h 2010-10-09 09:08:23.000000000 +0200 +@@ -0,0 +1,3 @@ ++/* freebsd9 is a superset of freebsd8 */ ++#include "freebsd8.h" ++#define freebsd8 freebsd8 +Index: snmplib/system.c +--- snmplib/system.c.orig 2010-07-29 16:58:47.000000000 +0200 ++++ snmplib/system.c 2010-10-09 09:08:23.000000000 +0200 +@@ -837,7 +837,7 @@ + + #ifndef HAVE_SETENV + int +-setenv(const char *name, const char *value, int overwrite) ++__netsnmp_setenv(const char *name, const char *value, int overwrite) + { + char *cp; + int ret; diff -r d423aaf00721 -r 6601d28cfe52 snmp/snmp.spec --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/snmp/snmp.spec Fri Mar 25 20:06:11 2011 +0100 @@ -0,0 +1,243 @@ +## +## snmp.spec -- OpenPKG RPM Package Specification +## Copyright (c) 2000-2011 OpenPKG Foundation e.V. +## +## Permission to use, copy, modify, and distribute this software for +## any purpose with or without fee is hereby granted, provided that +## the above copyright notice and this permission notice appear in all +## copies. +## +## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED +## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. +## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR +## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT +## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF +## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT +## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF +## SUCH DAMAGE. +## + +# package information +Name: snmp +Summary: Simple Network Management Protocol (SNMP) Toolkit +URL: http://www.net-snmp.org/ +Vendor: The NET-SNMP Project +Packager: OpenPKG Foundation e.V. +Distribution: OpenPKG Community +Class: BASE +Group: Network +License: BSD +Version: 5.6.1 +Release: 20110104 + +# package options +%option with_fsl yes +%option with_perl no +%option with_shared no +%option with_mib_host no +%option with_mib_smux no +%option with_mib_tables no +%option with_mib_sendmail no + +# list of sources +Source0: http://switch.dl.sourceforge.net/net-snmp/net-snmp-%{version}.tar.gz +Source1: rc.snmp +Source2: fsl.snmp +Source3: snmpd.conf +Source4: snmptrapd.conf +Patch0: snmp.patch + +# build information +BuildPreReq: OpenPKG, openpkg >= 20100101, gcc +PreReq: OpenPKG, openpkg >= 20100101 +BuildPreReq: openssl +PreReq: openssl +%if "%{with_fsl}" == "yes" +BuildPreReq: fsl +PreReq: fsl +%endif +%if "%{with_perl}" == "yes" +BuildPreReq: perl +PreReq: perl +%endif + +%description + This is a toolkit relating to the Simple Network Management Protocol + (SNMP), including an extensible agent, an SNMP library, tools to + request or set information from SNMP agents, tools to generate and + handle SNMP traps, a version of the unix 'netstat' command using + SNMP, etc. + +%track + prog snmp = { + version = %{version} + url = http://sourceforge.net/projects/net-snmp/files/ + regex = net-snmp-(\d+\.\d+\.\d+[a-z]?)\.tar\.gz + } + +%prep + # unpack and patch package + %setup -q -n net-snmp-%{version} + %patch -p0 + + # provide a default PID file location + %{l_shtool} subst %{l_value -s -a} \ + agent/snmpd.c \ + apps/snmptrapd.c + + # adjust package for RPM support in Host MIB + # (because OpenPKG RPM is a little bit different) + %{l_shtool} subst \ + -e 's;/usr/include/rpm;%{l_prefix}/include/rpm;g' \ + -e 's;-lpopt\([^a-z]\);-lrpmpopt\1;g' \ + -e 's;db-3\.1;rpmdb;g' \ + -e 's;-lz\([^a-z]\);-lrpz\1;g' \ + -e 's;-lrpm\([^a-z]\);-lrpm -lrpmio\1;g' \ + -e 's;-lrpmio\([^a-z]\);-lrpmio -lrpmpopt -lrpmbz2 -lrpmz\1;g' \ + configure + + # adjust package for not requiring --enable-shared for --with-perl-modules + # (because it technically working also with static libraries on most platforms) + %{l_shtool} subst \ + -e 's/if test "x$enable_shared" != "xyes"; then/if false; then/g' \ + configure + + # adjust package to install Perl packages into RPM_BUILD_ROOT + %{l_shtool} subst \ + -e "s;perl Makefile.PL;perl Makefile.PL PERL=$perl FULLPERL=$perl PREFIX=${RPM_BUILD_ROOT}%{l_prefix} INSTALLDIRS=vendor;g" \ + -e 's/cd perl ; $(MAKE))/cd perl ; $(MAKE) pure_all)/g' \ + -e 's/cd perl ; $(MAKE) install/cd perl ; $(MAKE) pure_install/g' \ + Makefile.in + +%build + # disable search for db library + ( echo "ac_cv_lib_db1_dbopen=no" + echo "ac_cv_lib_db_dbopen=no" + echo "ac_cv_lib_rpmdb_db_create=yes" + echo "ac_cv_lib_db_3_0_db_create=no" + ) >config.cache + + # determine additional MIBs to include + mibs="" +%if "%{with_mib_host}" == "yes" + mibs="$mibs host" +%endif +%if "%{with_mib_smux}" == "yes" + mibs="$mibs smux" +%endif +%if "%{with_mib_sendmail}" == "yes" + mibs="$mibs mibII/mta_sendmail" +%endif + + # use correct libraries for platform + case "%{l_platform -t}" in + *-hpux* ) loclibs="-lnm" ;; + esac + + # configure package + ./configure \ + --cache-file=./config.cache \ + --with-cc="%{l_cc}" \ + --with-cflags="%{l_cflags -O} %{l_cppflags}" \ + --with-ldflags="%{l_ldflags} %{l_fsl_ldflags}" \ + --with-libs="%{l_fsl_libs} $loclibs" \ + --prefix=%{l_prefix} \ + --with-logfile=/dev/null \ + --with-persistent-directory=%{l_prefix}/var/snmp \ + --with-openssl=%{l_prefix} \ + --enable-silent-libtool \ +%if "%{with_shared}" == "no" + --disable-shared \ +%endif +%if "%{with_mib_host}" == "yes" || "%{with_mib_smux}" == "yes" || "%{with_mib_sendmail}" == "yes" + --with-mib-modules="$mibs" \ +%endif +%if "%{with_mib_tables}" == "no" + --with-out-mib-modules="mibII/tcpTable mibII/udpTable" \ +%endif +%if "%{with_perl}" == "yes" + --with-perl-modules \ + --enable-embedded-perl \ +%else + --without-perl-modules \ + --disable-embedded-perl \ +%endif + --with-defaults + + # build package + %{l_make} %{l_mflags} touchit + %{l_make} %{l_mflags} + +%install + + # install package + %{l_shtool} subst -v \ + -e "s;^\\(prefix.*=\\).*;\\1 $RPM_BUILD_ROOT%{l_prefix};g" \ + -e "s;^\\(exec_prefix.*=\\).*;\\1 $RPM_BUILD_ROOT%{l_prefix};g" \ + -e "s;^\\(persistentdir.*=\\).*;\\1 $RPM_BUILD_ROOT%{l_prefix}/var/snmp;g" \ + `find . -type f -name Makefile -print` + %{l_make} %{l_mflags} install + + # create additional directories + %{l_shtool} mkdir -f -p -m 755 \ + $RPM_BUILD_ROOT%{l_prefix}/var/snmp \ + $RPM_BUILD_ROOT%{l_prefix}/var/snmp \ + $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d \ + $RPM_BUILD_ROOT%{l_prefix}/etc/snmp + + # install default configuration + %{l_shtool} install -c -m 644 \ + %{SOURCE snmpd.conf} %{SOURCE snmptrapd.conf} \ + $RPM_BUILD_ROOT%{l_prefix}/etc/snmp/ + + # strip down installation + rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/snmpinform + rm -f $RPM_BUILD_ROOT%{l_prefix}/bin/ipf-mod.pl + ln $RPM_BUILD_ROOT%{l_prefix}/bin/snmptrap \ + $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 +%if "%{with_perl}" == "yes" + find ${RPM_BUILD_ROOT}${l_prefix} -name .packlist -print | xargs rm -f +%endif + + # install run-command script + %{l_shtool} mkdir -f -p -m 755 \ + $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d + %{l_shtool} install -c -m 755 %{l_value -s -a} \ + %{SOURCE rc.snmp} $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/ + + # install OSSP fsl configuration + %{l_shtool} mkdir -f -p -m 755 $RPM_BUILD_ROOT%{l_prefix}/etc/fsl + %{l_shtool} install -c -m 644 %{l_value -s -a} \ + %{SOURCE fsl.snmp} \ + $RPM_BUILD_ROOT%{l_prefix}/etc/fsl/ + + # determine installation files + %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \ + %{l_files_std} \ + '%config %{l_prefix}/etc/fsl/fsl.snmp' \ + '%config %{l_prefix}/etc/snmp/*.conf' + +%files -f files + +%clean + +%post + # after upgrade, restart service + [ $1 -eq 2 ] || exit 0 + eval `%{l_rc} snmp status 2>/dev/null` + [ ".$snmp_active" = .yes ] && %{l_rc} snmp restart + exit 0 + +%preun + # before erase, stop service and remove log files + [ $1 -eq 0 ] || exit 0 + %{l_rc} snmp stop 2>/dev/null + rm -f $RPM_INSTALL_PREFIX/var/snmp/* + exit 0 + diff -r d423aaf00721 -r 6601d28cfe52 snmp/snmpd.conf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/snmp/snmpd.conf Fri Mar 25 20:06:11 2011 +0100 @@ -0,0 +1,12 @@ +## +## snmpd.conf +## + +# rouser: a SNMPv3 read-only user +# arguments: user [noauth|auth|priv] [restriction_oid] +rouser openpkg + +# rocommunity: a SNMPv1/SNMPv2c read-only access community name +# arguments: community [default|hostname|network/bits] [oid] +rocommunity public 127.0.0.1 + diff -r d423aaf00721 -r 6601d28cfe52 snmp/snmptrapd.conf --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/snmp/snmptrapd.conf Fri Mar 25 20:06:11 2011 +0100 @@ -0,0 +1,4 @@ +## +## snmptrapd.conf +## +