Commit 5ffb9230 authored by Natanael Copa's avatar Natanael Copa

main/net-snmp: install initscript as symlink

parent 42785f65
......@@ -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
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment