aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--main/net-snmp/APKBUILD11
1 files changed, 7 insertions, 4 deletions
diff --git a/main/net-snmp/APKBUILD b/main/net-snmp/APKBUILD
index 5db4e753d3..bafba626c0 100644
--- a/main/net-snmp/APKBUILD
+++ b/main/net-snmp/APKBUILD
@@ -91,10 +91,13 @@ package() {
|| return 1
ln -s snmptrap "$pkgdir"/usr/bin/snmpinform || return 1
- install -m755 -D "$srcdir"/initd "$pkgdir"/etc/init.d/snmpd
- install -m755 -D "$srcdir"/initd "$pkgdir"/etc/init.d/snmptrapd
- install -m644 -D "$srcdir"/snmpd.confd "$pkgdir"/etc/conf.d/snmpd
- install -m644 -D "$srcdir"/snmptrapd.confd "$pkgdir"/etc/conf.d/snmptrapd
+ install -m755 -D "$srcdir"/snmpd.initd "$pkgdir"/etc/init.d/snmpd \
+ || return 1
+ ln -s snmpd "$pkgdir"/etc/init.d/snmptrapd || return 1
+ install -m644 -D "$srcdir"/snmpd.confd "$pkgdir"/etc/conf.d/snmpd \
+ || return 1
+ install -m644 -D "$srcdir"/snmptrapd.confd \
+ "$pkgdir"/etc/conf.d/snmptrapd || return 1
install -m644 -D EXAMPLE.conf "$pkgdir"/etc/snmp/snmpd.conf
echo "authCommunity log,execute,net public" > "$pkgdir"/etc/snmp/snmptrapd.conf
mkdir -p "$pkgdir"/var/lib/net-snmp