mopidy: update to 2.0.0
This commit is contained in:
parent
f9dbe973ca
commit
e3d68a6c1c
|
@ -1,4 +1,6 @@
|
||||||
Edit /etc/mopidy.conf and let 'media_dir' point to your
|
To run mopidy as a service: edit '/etc/mopidy/mopidy.conf' and let
|
||||||
music directory. Install additional plugins via python-pip.
|
'media_dir' point to your music directory (readable for the system
|
||||||
To get a list of plugins use »pip search Mopidy«. There is no
|
user 'mopidy'). Then run »mopidyctl local scan« and enable the service.
|
||||||
man page available... check https://docs.mopidy.com/
|
Install additional extensions via python-pip. To get a list of
|
||||||
|
extensions use »pip search Mopidy«.
|
||||||
|
See also: file:///usr/share/doc/mopidy/index.html
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
case "$ACTION" in
|
case "$ACTION" in
|
||||||
purge) test -d var/lib/mopidy &&
|
purge) test -d var/cache/mopidy &&
|
||||||
rm -rf var/lib/mopidy
|
rm -rf var/cache/mopidy
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
|
@ -0,0 +1,20 @@
|
||||||
|
[loggers]
|
||||||
|
keys = root
|
||||||
|
|
||||||
|
[handlers]
|
||||||
|
keys = syslogHandler
|
||||||
|
|
||||||
|
[formatters]
|
||||||
|
keys = simpleFormatter
|
||||||
|
|
||||||
|
[logger_root]
|
||||||
|
handlers = syslogHandler
|
||||||
|
|
||||||
|
[handler_syslogHandler]
|
||||||
|
class=handlers.SysLogHandler
|
||||||
|
level=INFO
|
||||||
|
formatter=simpleFormatter
|
||||||
|
args=(('/dev/log'), handlers.SysLogHandler.LOG_DAEMON)
|
||||||
|
|
||||||
|
[formatter_simpleFormatter]
|
||||||
|
format = %(name)s: %(message)s
|
|
@ -1,7 +1,10 @@
|
||||||
|
[core]
|
||||||
|
cache_dir = /var/cache/mopidy
|
||||||
|
config_dir = /etc/mopidy
|
||||||
|
data_dir = /var/lib/mopidy
|
||||||
|
|
||||||
[logging]
|
[logging]
|
||||||
color = false
|
config_file = /etc/mopidy/logging.conf
|
||||||
console_format = %(levelname)-8s %(message)s
|
|
||||||
config_file =
|
|
||||||
|
|
||||||
[audio]
|
[audio]
|
||||||
mixer = software
|
mixer = software
|
||||||
|
@ -9,18 +12,10 @@ mixer_volume =
|
||||||
output = autoaudiosink
|
output = autoaudiosink
|
||||||
visualizer =
|
visualizer =
|
||||||
|
|
||||||
[proxy]
|
|
||||||
#scheme =
|
|
||||||
#hostname =
|
|
||||||
#port =
|
|
||||||
#username =
|
|
||||||
#password =
|
|
||||||
|
|
||||||
[local]
|
[local]
|
||||||
enabled = true
|
enabled = true
|
||||||
library = json
|
library = json
|
||||||
media_dir =
|
media_dir =
|
||||||
data_dir = /var/lib/mopidy/
|
|
||||||
playlists_dir = /var/lib/mopidy/playlists
|
playlists_dir = /var/lib/mopidy/playlists
|
||||||
scan_timeout = 1000
|
scan_timeout = 1000
|
||||||
scan_flush_threshold = 1000
|
scan_flush_threshold = 1000
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
#!/bin/sh
|
|
||||||
exec logger -p daemon.info -t mopidy
|
|
|
@ -1,6 +1,4 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
# scan local lib on first run
|
exec chpst -u mopidy:audio \
|
||||||
test -f /var/lib/mopidy/library.json.gz \
|
mopidy --config /etc/mopidy/mopidy.conf \
|
||||||
|| chpst -umopidy mopidy --config /etc/mopidy.conf local scan
|
>/dev/null 2>&1
|
||||||
|
|
||||||
exec chpst -u mopidy:audio mopidy --config /etc/mopidy.conf 2>&1
|
|
||||||
|
|
|
@ -1,28 +1,39 @@
|
||||||
# Template file for 'mopidy'
|
# Template file for 'mopidy'
|
||||||
pkgname=mopidy
|
pkgname=mopidy
|
||||||
version=1.1.1
|
version=2.0.0
|
||||||
revision=2
|
revision=1
|
||||||
wrksrc="Mopidy-$version"
|
wrksrc="Mopidy-$version"
|
||||||
noarch=yes
|
noarch=yes
|
||||||
build_style=python-module
|
build_style=python-module
|
||||||
pycompile_module=mopidy
|
pycompile_module=mopidy
|
||||||
hostmakedepends="python-setuptools"
|
hostmakedepends="python-setuptools python-Sphinx"
|
||||||
depends="gst-python gst-plugins-good1 gst-plugins-ugly1 gst-plugins-bad1 python-tornado python-pykka python-setuptools"
|
depends="gst1-python gst-plugins-good1 gst-plugins-ugly1 gst-plugins-bad1
|
||||||
conf_files="/etc/mopidy.conf"
|
python-tornado python-pykka python-setuptools python-requests"
|
||||||
|
conf_files="/etc/mopidy/*.conf"
|
||||||
system_accounts="mopidy"
|
system_accounts="mopidy"
|
||||||
mopidy_homedir="/var/lib/mopidy/"
|
mopidy_homedir="/var/lib/mopidy/"
|
||||||
mopidy_groups="audio"
|
mopidy_groups="audio"
|
||||||
make_dirs="/var/lib/mopidy 0755 mopidy mopidy"
|
make_dirs="
|
||||||
|
/var/lib/mopidy 0755 mopidy mopidy
|
||||||
|
/var/cache/mopidy 0755 mopidy mopidy"
|
||||||
short_desc="Music server for MPD, Spotify, SoundClound and others"
|
short_desc="Music server for MPD, Spotify, SoundClound and others"
|
||||||
maintainer="allan <mail@may.mooo.com>"
|
maintainer="allan <mail@may.mooo.com>"
|
||||||
license="Apache-2.0"
|
license="Apache-2.0"
|
||||||
homepage="http://www.mopidy.com"
|
homepage="http://www.mopidy.com"
|
||||||
distfiles="${PYPI_SITE}/M/Mopidy/Mopidy-${version}.tar.gz"
|
distfiles="${PYPI_SITE}/M/Mopidy/Mopidy-${version}.tar.gz"
|
||||||
checksum=823e1ba8781a107c69e8c1cd8fad9be81dc003c946e9d54fe41cadaad3a0e78e
|
checksum=14a04c249f83d42f2012b580f3a05853f56320f1bb68ac91c4068b64c81a9265
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vmkdir usr/share/applications/
|
vmkdir usr/share/applications/
|
||||||
vcopy extra/desktop/mopidy.desktop usr/share/applications/
|
vcopy extra/desktop/mopidy.desktop usr/share/applications/
|
||||||
vconf $FILESDIR/mopidy.conf
|
vbin extra/mopidyctl/mopidyctl
|
||||||
|
vman extra/mopidyctl/mopidyctl.8
|
||||||
|
make -C docs man
|
||||||
|
vman docs/_build/man/mopidy.1
|
||||||
|
make -C docs html
|
||||||
|
vmkdir usr/share/doc/mopidy/
|
||||||
|
cp -r docs/_build/html/* ${DESTDIR}/usr/share/doc/mopidy/
|
||||||
|
vinstall ${FILESDIR}/mopidy.conf 644 etc/mopidy/
|
||||||
|
vinstall ${FILESDIR}/logging.conf 644 etc/mopidy/
|
||||||
vsv mopidy
|
vsv mopidy
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue