aboutsummaryrefslogtreecommitdiffstats
path: root/community/knot
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2016-10-02 17:01:43 +0200
committerJakub Jirutka <jakub@jirutka.cz>2016-10-02 17:48:20 +0200
commitea67f45fe1840ad3991066593657d2487f0a0862 (patch)
tree60898d4416f1c4fe22964185959f6900dc48569f /community/knot
parent7727450408dbac359441a173e62935b809764c43 (diff)
downloadaports-ea67f45fe1840ad3991066593657d2487f0a0862.tar.bz2
aports-ea67f45fe1840ad3991066593657d2487f0a0862.tar.xz
community/knot: rename /var/run to /run
Diffstat (limited to 'community/knot')
-rw-r--r--community/knot/APKBUILD11
-rw-r--r--community/knot/knotd.initd4
2 files changed, 7 insertions, 8 deletions
diff --git a/community/knot/APKBUILD b/community/knot/APKBUILD
index add8197bba..3deda3691b 100644
--- a/community/knot/APKBUILD
+++ b/community/knot/APKBUILD
@@ -31,7 +31,7 @@ build() {
--prefix=/usr \
--sysconfdir=/etc \
--libexecdir=/usr/lib/knot \
- --with-rundir=/var/run/knot \
+ --with-rundir=/run/knot \
--with-storage=/var/lib/knot \
--disable-silent-rules \
|| return 1
@@ -44,10 +44,9 @@ package() {
make DESTDIR="$pkgdir" install || return 1
+ rm -Rf "$pkgdir"/run
chown $pkgusers:$pkggroups "$pkgdir"/var/lib/$pkgname || return 1
chmod 750 "$pkgdir"/var/lib/$pkgname || return 1
- chown $pkgusers:$pkggroups "$pkgdir"/var/run/$pkgname || return 1
- chmod 750 "$pkgdir"/var/run/$pkgname || return 1
install -Dm 644 "$srcdir"/knotd.confd \
"$pkgdir"/etc/conf.d/knotd || return 1
@@ -57,10 +56,10 @@ package() {
md5sums="7ca754f972fb07faa4f30e50d8a4385b knot-2.3.0.tar.xz
66f3111080662280d95bc928d6ca92d5 knotd.confd
-e243f6266fa6c84ea664678630896fa1 knotd.initd"
+f79e35b48c3afc236cf7a9dc20dc3d11 knotd.initd"
sha256sums="8abf9a6562ecf2f7f4222d16ca6c75463399870db360eda7caa40530b469533c knot-2.3.0.tar.xz
ff384d428c9e67139ed21b0c78eabf6a26d96f31775f6143ce0c4f9c4f6beaf3 knotd.confd
-bb2b3815c180086cfd566250c4ba529efe9650dfec3297ddf923dffa2b15d56c knotd.initd"
+da7b93cf442a3ede972d1239b40e2d5f07227e0a2846c2c7286c0f5f343f8284 knotd.initd"
sha512sums="28f0f6a00af3feb95ebd9af0c324ffeff1093f8e74136ce81f5a6e7f4434f22b9e371715b4b116de9b8faf39776be4d943c2ae09fb786e6061cc0394a767e8b6 knot-2.3.0.tar.xz
471d3c639a8235ba09491c99d36c0a4f1074d6055ccfd3807be02a30d3ed5bbe69a84f0414ea7810db6bbc1e38f5837108e5744fc59f949ed78a262a7de4597e knotd.confd
-c7ca9ec5dcbf9cf99a3805c7ca040fb43f65945a9ec689d2ee8ead1314f17ecb51147ca2c496ca9289c48a78b71dd2e3d8066c855c42ba8c2fe6d425518f2203 knotd.initd"
+979f06a83dd4326920a682f8190319577faf904e0e379b3c55e0420eb43dcb55d86c6727015634fa0c2dff1dddac43bbd5a216ff04f217ad91d670eb899dbefa knotd.initd"
diff --git a/community/knot/knotd.initd b/community/knot/knotd.initd
index 8ec8600a9b..781346216c 100644
--- a/community/knot/knotd.initd
+++ b/community/knot/knotd.initd
@@ -16,7 +16,7 @@ depend() {
}
start_pre() {
- checkpath -d -m 0750 -o knot:knot /var/run/knot/ /var/lib/knot/
+ checkpath -d -m 0750 -o knot:knot /run/knot/ /var/lib/knot/
}
stop() {
@@ -24,7 +24,7 @@ stop() {
/usr/sbin/knotc stop >/dev/null 2>&1
# Mark service as stopped if remote control was successful
if [ $? -eq 0 ]; then
- start-stop-daemon --stop --quiet --pidfile /var/run/knot/knot.pid
+ start-stop-daemon --stop --quiet --pidfile /run/knot/knot.pid
fi
eend $?
}