diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2015-10-12 11:58:57 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-10-13 09:01:43 +0000 |
commit | 230447c778ee8f47d5e3230da7a58c233e7f1a7d (patch) | |
tree | c16f2bed169001d636c8c3df6fc9ec3e1cf775ca /main | |
parent | 6cdfd9595d06afd36edd0b9f4a68cfcd35ea8819 (diff) | |
download | aports-230447c778ee8f47d5e3230da7a58c233e7f1a7d.tar.bz2 aports-230447c778ee8f47d5e3230da7a58c233e7f1a7d.tar.xz |
net-snmp: fix init script to be backwards compatible
Diffstat (limited to 'main')
-rw-r--r-- | main/net-snmp/APKBUILD | 10 | ||||
-rw-r--r-- | main/net-snmp/snmpd.initd (renamed from main/net-snmp/initd) | 5 |
2 files changed, 10 insertions, 5 deletions
diff --git a/main/net-snmp/APKBUILD b/main/net-snmp/APKBUILD index f7ccf8105e..5db4e753d3 100644 --- a/main/net-snmp/APKBUILD +++ b/main/net-snmp/APKBUILD @@ -2,7 +2,7 @@ # Maintainer: Carlo Landmeter <clandmeter@gmail.com> pkgname=net-snmp pkgver=5.7.3 -pkgrel=4 +pkgrel=5 pkgdesc="Simple Network Management Protocol" url="http://www.net-snmp.org/" arch="all" @@ -19,7 +19,7 @@ source="http://downloads.sourceforge.net/$pkgname/$pkgname-$pkgver.tar.gz fix-includes.patch CVE-2015-5621.patch - initd + snmpd.initd snmpd.confd snmptrapd.confd " @@ -159,20 +159,20 @@ md5sums="d4a3459e1577d0efa8d96ca70a885e53 net-snmp-5.7.3.tar.gz 4fd189ec7154114c9bd19f2b0058ae9c netsnmp-swinst-crash.patch 0fe11859a55f8e2489d5de629971a242 fix-includes.patch 2267947dd243b4fa85a3cf0c23dbaa76 CVE-2015-5621.patch -5d02ca50ba04fd9421cd059700dfabf5 initd +b6621a2e8d6299874cc3589026f1d0cb snmpd.initd c7658acd05090f52c6a9e4b195d65b01 snmpd.confd 8095341bc4bb23bfc3be1d7e2d51bb4f snmptrapd.confd" sha256sums="12ef89613c7707dc96d13335f153c1921efc9d61d3708ef09f3fc4a7014fb4f0 net-snmp-5.7.3.tar.gz 2de23959acf74d8f893129819149d016cc22f2d60e15f875e4d17de33931013e netsnmp-swinst-crash.patch 7528f7d368a0a4536915805c065f8496c37cb99dbc74d508bed89831cd5af37e fix-includes.patch 4cfe532b39877d90836d04079ab7bff14727719e8ca719ead9d615b21cade255 CVE-2015-5621.patch -30258e0e6e6699fbb655be378b5096b2bfefd77fad2a7aff98b32cf3e0ccb282 initd +faa6f7de3e9e4b6606668b1c064b61977c095f7c95a5ca8aaaf46bcd9116f3f9 snmpd.initd 21ced816652de3dbae04970db8e465ffb119a2a0c1bddf9f12867d1c81eb0aac snmpd.confd 2ff4dc5a94a3b78aeb88c85dc94e55bf01ef342cf02d536b5c71bb6654a9c025 snmptrapd.confd" sha512sums="0758bba5844cfd6c80959ac16b83906a2f830ba49fd0ab1bf9e191dc6a79d312a2e4760bd53b3e1a1c82759481f0064d088d5a3cf475d84b25679a6bd0f049bb net-snmp-5.7.3.tar.gz 4ad92f50b14d5e27ba86256cc532a2dd055502f4d5fbb1700434f9f01f881fd09bb1eadb94e727554e1470f036707558314c64a66d0376b54e71ab31d5e4baa3 netsnmp-swinst-crash.patch 87a552bd2e41684bba6e87fbcf6454a85ee912d7a339411fda24cebddf7661f0856729e076a917920a542cf84b687ffd90a091daa15f2c48f0ff64f3a53c0ddb fix-includes.patch 2b2a7be54a570e3c1bb701f8ccfb98ea8e50a19fda021f43a521d4e968ded1bc5e794fc4348dff7fcdf57da34ff6b555398851bbccfcf92bb75ad6f365a80dba CVE-2015-5621.patch -32b93dd00d1fbf84edebb177b52caa26ac577e33f14f2c0af5dc04fcefd924adf28bd506cb377711eef5e543476f822f1aac0607f24a668e9d0df6268a06685e initd +896ef65a6f420073746470cdbd0de8f356c5b936d35e131754905b3d4323c24dcd3a09e0cc8bd90b12e3402f01e478f927f0e4163cb85cb0cc03db3c2e0491f4 snmpd.initd fb101aa758d741ed3ea88b11f1cd49cfd04bd03ce62435f3acb17724748131c57f00b71fd45cb7e7871d65a1aab576652cd6e158b6406aa6d0998582b8235ef5 snmpd.confd 073fd2b83eedd6eda1f7345350268ce7946ef6d67a8f26f7c232e46feb75babf68272ae12071a2f9ea76ede71393b3ae4672d3cd47cfd14ab77e3a6482f2e124 snmptrapd.confd" diff --git a/main/net-snmp/initd b/main/net-snmp/snmpd.initd index 3790d770f0..5d509cc3d9 100644 --- a/main/net-snmp/initd +++ b/main/net-snmp/snmpd.initd @@ -1,5 +1,10 @@ #!/sbin/openrc-run +# for backward compat +case "$SVCNAME" in +snmpd) : ${OPTS:=$SNMPD_FLAGS} ;; +esac + pidfile="/var/run/${SVCNAME}.pid" command="/usr/sbin/${SVCNAME}" command_args="-p ${pidfile} ${OPTS}" |