aboutsummaryrefslogtreecommitdiffstats
path: root/testing
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-09-24 14:49:16 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-09-24 14:51:03 +0000
commitc53bd124b269d71b290459ba629f9eb6454a5521 (patch)
tree26328d7355d3874cc9000e401b06980566127f83 /testing
parentd805da6e2372c61ba946a2263f4c869a5d02ac37 (diff)
downloadaports-c53bd124b269d71b290459ba629f9eb6454a5521.tar.bz2
aports-c53bd124b269d71b290459ba629f9eb6454a5521.tar.xz
main/minidlna: clean up initd
Diffstat (limited to 'testing')
-rw-r--r--testing/minidlna/APKBUILD8
-rwxr-xr-xtesting/minidlna/minidlna.initd10
2 files changed, 9 insertions, 9 deletions
diff --git a/testing/minidlna/APKBUILD b/testing/minidlna/APKBUILD
index baa675baf8..2985b15b98 100644
--- a/testing/minidlna/APKBUILD
+++ b/testing/minidlna/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: Francesco Colista <francesco.colista@gmail.com>
pkgname=minidlna
pkgver=1.1.0
-pkgrel=1
+pkgrel=2
pkgdesc="A small dlna server"
url="http://sourceforge.net/projects/minidlna/"
arch="all"
@@ -55,13 +55,13 @@ package() {
md5sums="26484a84af3fceafdee26595aae097f7 minidlna-1.1.0.tar.gz
452a71cf87d610abbb3722c8dba8e69a headers.patch
-56e2ca0edc0135a2d57ed7954ba5eefa minidlna.initd
+5af7d64de1978260ef7eb441bb249310 minidlna.initd
59d14c1bf3cd637138bfa58db7255d78 minidlna.confd"
sha256sums="c2ef2ebe4311d08a60a87ec0c86fbe5e7f4fd25b947841f1d71b0508c60a90e2 minidlna-1.1.0.tar.gz
737eb9bac19da46a6b6549e551aad5ec576673644ea35c3e8c0f3ded75bef4b7 headers.patch
-9513a21d7b65e41a68f0012879a0ea465aa3a862f806048cc331cf8ae26d1eb2 minidlna.initd
+136b5d944d6104330ef3144501ba2a579baaee4d82704867596d7eb68aeeb0c5 minidlna.initd
67603d65c6bd3918255f050cb5cfd6fc1373b024bca1ce728f03491a90d79e19 minidlna.confd"
sha512sums="9240d857fc3927c06183c04c4d657c1b2b0596f63dbc549f331b52032698349e82244870f2ebf6f8bc8bf0ff5f2ff88df69b53d280f5e5f9b618a5de58ac6f57 minidlna-1.1.0.tar.gz
47c4525881bddb3412183bc89010e17307765baac477a2ee4133f91514399cd56a8674965c17e254151bf5477b4767c3b04cb0f4688f2af28b532dde8ea7f805 headers.patch
-9042ff0370105aef492ee7162fd6d69ccf13948fc517c7323e89ac51d3112ba170d306c76609a9aa53c7ac2d9f035a464d81875150af3c10147c1946c7ad8db4 minidlna.initd
+47579822f25716086a1f69996c60b5f051cf92403a2c56fff094a94468906aef9288d5cf12d9ecf9bf75557a5f2c29ce38c27a3fa9c9a9f3996189e1885e6e0d minidlna.initd
e209848af0d79069ac989ad61d3be610b4c0c2783a207a50463a25ec3811b04d1da3a2acde54749878bec44e1567874ede827b978d5472c00f6a855663e5cbf8 minidlna.confd"
diff --git a/testing/minidlna/minidlna.initd b/testing/minidlna/minidlna.initd
index d04c4b38b3..b53d5ce2fc 100755
--- a/testing/minidlna/minidlna.initd
+++ b/testing/minidlna/minidlna.initd
@@ -3,8 +3,9 @@
name="MiniDLNA"
configfile="${CONFIG:-/etc/minidlna.conf}"
start_stop_daemon_args="--user ${M_USER:-minidlna} --group ${M_GROUP:-minidlna}"
+pidfile="/var/run/minidlna/minidlna.pid"
command=/usr/sbin/minidlnad
-command_args="-f ${configfile}"
+command_args="-f ${configfile} -P $pidfile"
depend() {
need net
@@ -18,9 +19,8 @@ start_pre() {
if yesno "${RESCAN}"; then
command_args="$command_args -R"
fi
-
- if ! [ -d /var/run/minidlna ]; then
- install -d -o ${M_USER:-minidlna} -g ${M_GROUP:-minidlna} /var/run/minidlna
- fi
+
+ checkpath --owner ${M_USER:-minidlna}:${M_GROUP:-minidlna} \
+ --directory ${pidfile%/*}
}