summaryrefslogtreecommitdiff
path: root/package/net-snmp
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2010-12-13 19:38:25 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2010-12-13 19:38:25 +0100
commit208ac48fbc74fdc67bac5e39531710be516ce50e (patch)
tree1c447fdab4f8794248df076486a379d8ddff98a0 /package/net-snmp
parentb3bc3160d41554de9da49503d8b7a50588e66daf (diff)
use better defaults
Diffstat (limited to 'package/net-snmp')
-rw-r--r--package/net-snmp/Makefile4
-rw-r--r--package/net-snmp/files/snmpd.postinst3
2 files changed, 4 insertions, 3 deletions
diff --git a/package/net-snmp/Makefile b/package/net-snmp/Makefile
index 7352a3d07..96a78a1cf 100644
--- a/package/net-snmp/Makefile
+++ b/package/net-snmp/Makefile
@@ -40,8 +40,8 @@ SNMP_TRANSPORTS_EXCLUDED:= TCPIPv6 UDPIPv6
endif
TLDFLAGS+= -pthread
-CONFIGURE_ARGS+= --with-logfile=/var/log/snmpd.log \
- --with-persistent-directory=/usr/lib/snmp/ \
+CONFIGURE_ARGS+= --with-defaults \
+ --with-persistent-directory=/etc/snmp \
--with-default-snmp-version=3 \
--with-sys-contact=root@localhost \
--with-sys-location=Unknown \
diff --git a/package/net-snmp/files/snmpd.postinst b/package/net-snmp/files/snmpd.postinst
index 3f053bd5d..d6af32a4f 100644
--- a/package/net-snmp/files/snmpd.postinst
+++ b/package/net-snmp/files/snmpd.postinst
@@ -1,3 +1,4 @@
#!/bin/sh
. $IPKG_INSTROOT/etc/functions.sh
-add_rcconf 'e.g. "-Lf /dev/null -p /var/run/snmpd.pid"' snmpd_flags
+add_rcconf snmpd
+add_rcconf 'use "-Ls info" to log to syslog' snmpd_flags '-Ls info'