diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2015-10-20 06:09:53 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-10-20 07:04:18 +0000 |
commit | 5ffb92306aad9af577fb29a93b354c30b9c57e45 (patch) | |
tree | 5819a0906dc07a7c03aece3c4d3ec6f73e2f2948 /main/net-snmp | |
parent | 42785f65cf2e4f1c28a2d45243d32de396c169d3 (diff) | |
download | aports-5ffb92306aad9af577fb29a93b354c30b9c57e45.tar.bz2 aports-5ffb92306aad9af577fb29a93b354c30b9c57e45.tar.xz |
main/net-snmp: install initscript as symlink
Diffstat (limited to 'main/net-snmp')
-rw-r--r-- | main/net-snmp/APKBUILD | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/main/net-snmp/APKBUILD b/main/net-snmp/APKBUILD index 5db4e753d..bafba626c 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 |