aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLeo <thinkabit.ukim@gmail.com>2019-08-17 22:18:20 -0300
committerLeo <thinkabit.ukim@gmail.com>2019-08-17 23:27:52 -0300
commit1efec22569914404ef369b18b60bf2b9112fe710 (patch)
tree1bc65a7aed52558780c271b8e7853afbe82747bf
parent29013a1f114f401510744ed82224b91fd81dbb26 (diff)
downloadaports-1efec22569914404ef369b18b60bf2b9112fe710.tar.bz2
aports-1efec22569914404ef369b18b60bf2b9112fe710.tar.xz
community/mopidy: upgrade to 2.2.3
-rw-r--r--community/mopidy/APKBUILD40
-rw-r--r--community/mopidy/mopidy.initd15
2 files changed, 29 insertions, 26 deletions
diff --git a/community/mopidy/APKBUILD b/community/mopidy/APKBUILD
index 742986b001..2ed2fdf617 100644
--- a/community/mopidy/APKBUILD
+++ b/community/mopidy/APKBUILD
@@ -3,8 +3,8 @@
# Maintainer: Bart Ribbers <bribbers@disroot.org>
pkgname=mopidy
_pkgname=Mopidy
-pkgver=2.2.2
-pkgrel=1
+pkgver=2.2.3
+pkgrel=0
pkgdesc="Mopidy is an extensible music server"
options="!check" # Requires dependency testing/py-responses
url="https://www.mopidy.com/"
@@ -36,34 +36,34 @@ build() {
package() {
python2 setup.py install --prefix=/usr --root="$pkgdir"
- install -Dm755 extra/mopidyctl/mopidyctl "${pkgdir}/usr/bin/mopidyctl"
+ install -Dm755 extra/mopidyctl/mopidyctl "$pkgdir/usr/bin/mopidyctl"
- install -dm755 "${pkgdir}/usr/share/doc/mopidy"
- cp -r docs/_build/html "${pkgdir}/usr/share/doc/mopidy"
+ install -dm755 "$pkgdir/usr/share/doc/mopidy"
+ cp -r docs/_build/html "$pkgdir/usr/share/doc/mopidy"
- install -dm755 "${pkgdir}/usr/share/man/man1/"
- gzip -c docs/_build/man/mopidy.1 > "${pkgdir}/usr/share/man/man1/mopidy.1.gz"
+ install -dm755 "$pkgdir/usr/share/man/man1/"
+ gzip -c docs/_build/man/mopidy.1 > "$pkgdir/usr/share/man/man1/mopidy.1.gz"
- install -dm755 "${pkgdir}/usr/share/man/man8/"
- gzip -c extra/mopidyctl/mopidyctl.8 > "${pkgdir}/usr/share/man/man8/mopidyctl.8.gz"
+ install -dm755 "$pkgdir/usr/share/man/man8/"
+ gzip -c extra/mopidyctl/mopidyctl.8 > "$pkgdir/usr/share/man/man8/mopidyctl.8.gz"
- install -Dm644 "${srcdir}/mopidy.conf" \
- "${pkgdir}/etc/mopidy/mopidy.conf"
- install -Dm644 "${srcdir}/logging.conf" \
- "${pkgdir}/etc/mopidy/logging.conf"
+ install -Dm644 "$srcdir/mopidy.conf" \
+ "$pkgdir/etc/mopidy/mopidy.conf"
+ install -Dm644 "$srcdir/logging.conf" \
+ "$pkgdir/etc/mopidy/logging.conf"
install -Dm755 "$srcdir/$pkgname.initd" \
"$pkgdir/etc/init.d/$pkgname"
install -dm755 -o mopidy -g audio \
- "${pkgdir}/etc/mopidy/extensions.d" \
- "${pkgdir}/var/log/mopidy" \
- "${pkgdir}/var/cache/mopidy" \
- "${pkgdir}/var/lib/mopidy/media" \
- "${pkgdir}/var/lib/mopidy/playlists"
+ "$pkgdir/etc/mopidy/extensions.d" \
+ "$pkgdir/var/log/mopidy" \
+ "$pkgdir/var/cache/mopidy" \
+ "$pkgdir/var/lib/mopidy/media" \
+ "$pkgdir/var/lib/mopidy/playlists"
}
-sha512sums="3ae9d1c4cc7b002095928a9c1b683ad94c4190c21b1451c176fdcf8c6daa174433a1be967d4143d03d4eeb2bfc680f7ab37d23a10fef9be76fc6e68bd0402ec1 Mopidy-2.2.2.tar.gz
+sha512sums="93c6c9080496f803d3ace36fa93bd1db0829dacda78c4037cd7b054f1cb1d2df058e8069d67d8018896f147a100039506fb0c4a6be505088d64b7f835b6c2292 Mopidy-2.2.3.tar.gz
eb66e8e826640a939b1ba51569ab7fab041b8b5e8823ea2d5f05596faf1de8882fd8c1c32bdb92534e759243fb5ff741bda0d2ebb3282af542d1287c8c68b5ea mopidy.conf
0c438058500ab7559baae21b03b10e2b80b10c77776b240b2100da1f4c84ea8efe24dc7a38a95034e75605eaf5d21604d13e5b8c7358778c555ddb6372a49388 logging.conf
-de23c457de712efa04ccb4a3628710fd7c1be7b00ce73f138f613156d49862060a5a6be8c1491a5f3515537c0228f66aa28a0b751960563b533c2720ddbbe8c8 mopidy.initd"
+8492ac223c32e4a0bb0ae64348ed0a5928cc98c0ce713eff5948b12e09860f83a9de5377117f85fd9ad54643201aadd84f68494e773aa8c1bba97fa992bd9dbe mopidy.initd"
diff --git a/community/mopidy/mopidy.initd b/community/mopidy/mopidy.initd
index 6028d1e754..3b84fc051e 100644
--- a/community/mopidy/mopidy.initd
+++ b/community/mopidy/mopidy.initd
@@ -1,11 +1,14 @@
#!/sbin/openrc-run
-name=mopidy
-command="/usr/bin/mopidy"
+supervisor=supervise-daemon
+
+name="Mopidy"
+description="Extensible music server"
+
+command=/usr/bin/mopidy
command_args="--config /etc/mopidy/mopidy.conf"
-command_user="mopidy"
-start_stop_daemon_args="--background --make-pidfile"
-pidfile="/run/mopidy.pid"
+
+command_user=mopidy:audio
depend() {
need net
@@ -13,6 +16,6 @@ depend() {
}
start_pre() {
- checkpath --directory --owner mopidy:audio --mode 0775 \
+ checkpath --directory --owner "$command_user" --mode 0775 \
/var/log/mopidy
}