Browse Source

use better defaults

Waldemar Brodkorb 14 năm trước cách đây
mục cha
commit
208ac48fbc
2 tập tin đã thay đổi với 4 bổ sung3 xóa
  1. 2 2
      package/net-snmp/Makefile
  2. 2 1
      package/net-snmp/files/snmpd.postinst

+ 2 - 2
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 \

+ 2 - 1
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'