From 5b21f20be384b1526d77edcfc933b0467013e06c Mon Sep 17 00:00:00 2001 From: Christian Wiese Date: Thu, 16 Aug 2012 16:20:34 +0200 Subject: [PATCH] net-snmp: changed to install an example snmpd.conf into $sysconfdir/snmp --- network/net-snmp/net-snmp.conf | 7 +++++++ 1 file changed, 7 insertions(+) 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'