aboutsummaryrefslogtreecommitdiffstats
path: root/main/haveged
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2016-08-08 18:56:06 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2016-08-09 11:52:35 +0000
commit079a304860d44dc322028ccc42b9bbaba19d83c2 (patch)
treecb56496a4acb868a361a312d87b37cc6776cce1b /main/haveged
parent4c65999655fbf02a94e7308aa1578bef991f9e2a (diff)
downloadaports-079a304860d44dc322028ccc42b9bbaba19d83c2.tar.bz2
aports-079a304860d44dc322028ccc42b9bbaba19d83c2.tar.xz
main/haveged: simplify runscript
Diffstat (limited to 'main/haveged')
-rw-r--r--main/haveged/APKBUILD8
-rw-r--r--main/haveged/haveged.initd19
2 files changed, 10 insertions, 17 deletions
diff --git a/main/haveged/APKBUILD b/main/haveged/APKBUILD
index 707db780a4..0f90b99e99 100644
--- a/main/haveged/APKBUILD
+++ b/main/haveged/APKBUILD
@@ -4,7 +4,7 @@
pkgname=haveged
pkgver=1.9.1
-pkgrel=1
+pkgrel=2
pkgdesc="Entropy harvesting daemon using CPU timings"
url="http://www.issihosts.com/haveged/"
arch="all"
@@ -47,11 +47,11 @@ package() {
}
md5sums="015ff58cd10607db0e0de60aeca2f5f8 haveged-1.9.1.tar.gz
-4ea15c364f7a6fadc2a2729b8601cc8b haveged.initd
+12228310b4379e1791769b5c2e8e35ef haveged.initd
242300ea7948a16018d1b0f77fb5ec96 haveged.confd"
sha256sums="9c2363ed9542a6784ff08e247182137e71f2ddb79e8e6c1ac4ad50d21ced3715 haveged-1.9.1.tar.gz
-49aa38c2ef41d4c313a10b3f0773ba0ad351940fad8189a728373822e8e78aea haveged.initd
+386e20b94634a8144ca6cdacc947124cf9b5c66cabd0fd0faf3fdb7891f6356d haveged.initd
54f692941e4d15108683daa0e37240f834beaa216aeee462ef94f24c2382abf7 haveged.confd"
sha512sums="267d62cfeb886ea00fa412de1a91a34821460d0f4ad789dcfb3547018300e1cbf480917571b19652f2d449369293031d9534f9533bbf6a59560f4f10608c9cd2 haveged-1.9.1.tar.gz
-96f4ee48ee85d388331905c09ebfbd03b7c3d61ea4cd97f25681e3a31e72d15d479f5604589863ab240fd961cb2dc10b86731174935cb50e5b9925ee9860dfd5 haveged.initd
+5d1e4186580951d4e6e01193e9c8827ceddaf3c2e28a981fc9176cb446bed32b059304796a77d9db6fb761a21f8fd27dd3d31e06a0fb7a5985b4ea94978fcd64 haveged.initd
57201472fc659aaab919562a00d474d3823d5becea62e8b13ef93eda05e1fd667721c968f224fcae871d13cfcd16d1924403d9181e0899fa214fa00bf4fefc75 haveged.confd"
diff --git a/main/haveged/haveged.initd b/main/haveged/haveged.initd
index 2ce8335737..86660e9c31 100644
--- a/main/haveged/haveged.initd
+++ b/main/haveged/haveged.initd
@@ -1,18 +1,11 @@
#!/sbin/openrc-run
-depend() {
- need net
-}
+command="/usr/sbin/haveged"
+command_args="$HAVEGED_OPTS"
+command_background="yes"
-start() {
- ebegin "Starting haveged"
- start-stop-daemon --start --quiet --exec /usr/sbin/haveged -- ${HAVEGED_OPTS}
- eend $?
-}
+pidfile="/run/$RC_SVCNAME.pid"
-stop() {
- ebegin "Stopping haveged"
- start-stop-daemon --stop --quiet --pidfile /var/run/haveged.pid
- result=$?
- eend $result
+depend() {
+ need net
}