From 208ac48fbc74fdc67bac5e39531710be516ce50e Mon Sep 17 00:00:00 2001 From: Waldemar Brodkorb Date: Mon, 13 Dec 2010 19:38:25 +0100 Subject: use better defaults --- package/net-snmp/Makefile | 4 ++-- package/net-snmp/files/snmpd.postinst | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) (limited to 'package/net-snmp') 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' -- cgit v1.2.3