aboutsummaryrefslogtreecommitdiffstats
path: root/main/smokeping
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-12-07 12:03:40 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-12-07 12:03:40 +0000
commit348a311a42701fe5c2a9a609f5f622c235d278cc (patch)
tree3fcb1f31f2ba2e75d97ef4d983fe103d3d4d6f3e /main/smokeping
parent2b07323da607f92eb39310f6301c0e07aa320a7d (diff)
downloadaports-348a311a42701fe5c2a9a609f5f622c235d278cc.tar.bz2
aports-348a311a42701fe5c2a9a609f5f622c235d278cc.tar.xz
main/smokeping: use checkpath to create dir for pidfile
Diffstat (limited to 'main/smokeping')
-rw-r--r--main/smokeping/APKBUILD8
-rw-r--r--main/smokeping/smokeping.initd6
2 files changed, 5 insertions, 9 deletions
diff --git a/main/smokeping/APKBUILD b/main/smokeping/APKBUILD
index 9ee65e4f0a..05d90819d7 100644
--- a/main/smokeping/APKBUILD
+++ b/main/smokeping/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Natanael Copa <ncopa@alpinelinux.org>
pkgname=smokeping
pkgver=2.6.10
-pkgrel=1
+pkgrel=2
pkgdesc="Smokeping network latency monitoring"
pkgusers="smokeping"
pkggroups="smokeping"
@@ -130,11 +130,11 @@ package() {
}
md5sums="139f0c456088c3527a55d51898885fe4 smokeping-2.6.10.tar.gz
-2fe386f2fb52d85bdf6635942b080dd6 smokeping.initd
+cabaa0ab3bde87b4e5a6aaa38ea38a37 smokeping.initd
5b0bac1be9c63c1f36ff7c2979af4317 musl-lc_numeric-utf8.patch"
sha256sums="0121672951f47bd45575898c3e4d767e22cc692dd272d723b422515fd3cc641c smokeping-2.6.10.tar.gz
-97ac64cdadfb173f4d9422befb0e002d0e67399f3b006c44fd03590e9ffb316e smokeping.initd
+bae4acc9bae890df5e6a547a346f7589c645deaab00c6c6892728a0c96ba35fb smokeping.initd
5cb6dd9ce63446b5cfc3f1bba9e39fb91a6d18c512e5a7e153bb6007660466dd musl-lc_numeric-utf8.patch"
sha512sums="e91ac80ceafccb945ec48cc80020b8cbf2afe29b5f422dc5aaf7c52387eafc498180c293cf82dccc4fdec88ec56f80fb1bd08ebcb2ae9aea563475a069b91f13 smokeping-2.6.10.tar.gz
-0429e2ea82e2d10fbe84a83ab4ca8ce6bae76dfda4bdc48c3711b699caac2f8dc1420a894ebe9e404b50ee9ce0d704009f88f6f1b37e84efb6ed33564575d993 smokeping.initd
+d532fd8c0abc6b3d619f7e5b32d5101fbc29293b58abc5a048671a3cb18f051e8e8890c9f87ae37d4442d2d8ed0bed248a7d97f9b408cab246b1206a86320f4d smokeping.initd
e6bc389d8edbc000f5ad65848308197b3eb1ddb24bfa9df9c05fa027103952484383b7e021bea86795dceccdcf3f3d51a24c22cae3a68dc5afa30a72b2dbf803 musl-lc_numeric-utf8.patch"
diff --git a/main/smokeping/smokeping.initd b/main/smokeping/smokeping.initd
index e7b5106442..cbe2ed6dd0 100644
--- a/main/smokeping/smokeping.initd
+++ b/main/smokeping/smokeping.initd
@@ -20,11 +20,7 @@ checkconfig() {
start() {
checkconfig || return 1
-
- if [ ! -d /var/run/smokeping/ ]; then
- mkdir /var/run/smokeping/
- fi
- chown smokeping:smokeping /var/run/smokeping/
+ checkpath --directory --owner smokeping:smokeping /var/run/smokeping
ebegin "Starting smokeping"
LC_ALL=C \