diff --git a/network/net-snmp/net-snmp.conf b/network/net-snmp/net-snmp.conf index fada92c28..3260b4ab8 100644 --- a/network/net-snmp/net-snmp.conf +++ b/network/net-snmp/net-snmp.conf @@ -33,3 +33,10 @@ if pkginstalled openssl; then else var_append extraconfopt ' ' --without-openssl fi + +pkg_net_snmp_postmake() { + # create $sysconfdit/snmp and copy example snmpd.conf + mkdir $root$sysconfdir/snmp + install -m 600 EXAMPLE.conf $root$sysconfdir/snmp/snmpd.conf.sample +} +hook_add postmake 9 'pkg_net_snmp_postmake'