diff options
author | Carlo Landmeter <clandmeter@gmail.com> | 2016-02-05 10:25:18 +0100 |
---|---|---|
committer | Carlo Landmeter <clandmeter@gmail.com> | 2016-02-05 10:25:18 +0100 |
commit | 4bdff87db80836966f132389c1d59adae14b76e1 (patch) | |
tree | 9484d66e5acd370349eba8c522610980254e5e6c /main/ympd | |
parent | 19894f2d19d41028fb8a7413b2dc50ab08af6806 (diff) | |
download | aports-4bdff87db80836966f132389c1d59adae14b76e1.tar.bz2 aports-4bdff87db80836966f132389c1d59adae14b76e1.tar.xz |
main/ympd: fix initd
Diffstat (limited to 'main/ympd')
-rw-r--r-- | main/ympd/APKBUILD | 18 | ||||
-rw-r--r-- | main/ympd/ympd.confd | 5 | ||||
-rw-r--r-- | main/ympd/ympd.initd | 7 |
3 files changed, 16 insertions, 14 deletions
diff --git a/main/ympd/APKBUILD b/main/ympd/APKBUILD index fd5e6b07f8..287efc7c15 100644 --- a/main/ympd/APKBUILD +++ b/main/ympd/APKBUILD @@ -2,14 +2,14 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=ympd pkgver=1.2.3 -pkgrel=1 +pkgrel=2 pkgdesc="A standalone MPD Web GUI" url="http://www.ympd.org/" arch="all" license="GPL2" depends="" -depends_dev="libmpdclient-dev" -makedepends="$depends_dev cmake" +depends_dev="" +makedepends="$depends_dev cmake libmpdclient-dev" install="$pkgname.pre-install" subpackages="$pkgname-doc" source="ympd-${pkgver}.tar.gz::https://github.com/notandy/ympd/archive/v$pkgver.tar.gz @@ -45,11 +45,11 @@ package() { } md5sums="865f4370ad26e3020809a274ad4f123d ympd-1.2.3.tar.gz -f86c10de7c6d43f5abfecc9df76948df ympd.initd -9a71d20477e801cefd8398d1216bde9d ympd.confd" +d61ddfc43c152dc019d96723efa3e52f ympd.initd +eeb049caa36608e7b059ab258c228b0e ympd.confd" sha256sums="092c26c51166d1d1f025cd06742981783dea7e42bfe4f73f10c4418fc003de94 ympd-1.2.3.tar.gz -49ed99d69174f70bad288116a8567a9f0ba5fd68c358a0b93247bfa805feac92 ympd.initd -ea2eb0ae943cee4e6036f48f4cc5f31141447bbd685bda796261e3572da26e1c ympd.confd" +99fe804df79d9ce1f804ef05fa5c75b24c05c566313297e2dd65f9f8c06c1204 ympd.initd +045067b2a6ffd38cefc6f4a813d8095d45d349bf6bca5e45b8eaadaf1f84bc24 ympd.confd" sha512sums="09b877981e4f190effaf17f59c5ae6858c18a5c139333fb85e952364d3724ae378b3ef405b58e878e3a46aff0b375a56169c4a50e4f79681310c7f7a708c108d ympd-1.2.3.tar.gz -f3928bac97905141894d5c698b451e1414ab50f77d81e20256d91ccc3e87f5868e2e53311781b0831eca22519f31c03b88a1bd7ecaba56900899b89c99dc2a81 ympd.initd -a2c87d45acfe46efbaea6636a6ea592d17054de7fa6820b26ddd61875700dae268f0ca11a1065c38ea86d910fb54566eb454bbb755ed758e3ff71db4464689c1 ympd.confd" +38ce9d2d168670474a8d8931fde592e7f45ade486fe8ce2fbd7689fa2a121eefd7cbc962be3607d71f090897733ec4e41d67f4703481525bc59fc56b99833bac ympd.initd +3e6e83877baf84762a518cc079992dd94614d59faa26600d4e34faa09285f0f0a7de8f4408488b4d017bf2ffe90f03ac1f0c3670bb95e99a089b920a3ff8df63 ympd.confd" diff --git a/main/ympd/ympd.confd b/main/ympd/ympd.confd index 2f9bf69683..eb33f54467 100644 --- a/main/ympd/ympd.confd +++ b/main/ympd/ympd.confd @@ -1,5 +1,2 @@ ympd_user="ympd" -ympd_host="localhost" -ympd_port="6600" -ympd_webport="8080" -ympd_pid="/var/run/ympd.pid" +ympd_pid="/var/run/ympd/ympd.pid" diff --git a/main/ympd/ympd.initd b/main/ympd/ympd.initd index 4597e761b9..48493ef035 100644 --- a/main/ympd/ympd.initd +++ b/main/ympd/ympd.initd @@ -2,7 +2,7 @@ name=ympd command=/usr/bin/$name -command_args="-u $ympd_user -h $ympd_host -p $ympd_port -w $ympd_webport" +command_args="-u $ympd_user" command_background=YES pidfile=$ympd_pid @@ -11,3 +11,8 @@ depend() { need net after firewall } + +start_pre() { + checkpath --directory --owner "$ympd_user" \ + --mode 0775 /var/run/"$name" +} |