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
|
||||
music directory. Install additional plugins via python-pip.
|
||||
To get a list of plugins use »pip search Mopidy«. There is no
|
||||
man page available... check https://docs.mopidy.com/
|
||||
To run mopidy as a service: edit '/etc/mopidy/mopidy.conf' and let
|
||||
'media_dir' point to your music directory (readable for the system
|
||||
user 'mopidy'). Then run »mopidyctl local scan« and enable the service.
|
||||
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
|
||||
purge) test -d var/lib/mopidy &&
|
||||
rm -rf var/lib/mopidy
|
||||
purge) test -d var/cache/mopidy &&
|
||||
rm -rf var/cache/mopidy
|
||||
;;
|
||||
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]
|
||||
color = false
|
||||
console_format = %(levelname)-8s %(message)s
|
||||
config_file =
|
||||
config_file = /etc/mopidy/logging.conf
|
||||
|
||||
[audio]
|
||||
mixer = software
|
||||
|
@ -9,18 +12,10 @@ mixer_volume =
|
|||
output = autoaudiosink
|
||||
visualizer =
|
||||
|
||||
[proxy]
|
||||
#scheme =
|
||||
#hostname =
|
||||
#port =
|
||||
#username =
|
||||
#password =
|
||||
|
||||
[local]
|
||||
enabled = true
|
||||
library = json
|
||||
media_dir =
|
||||
data_dir = /var/lib/mopidy/
|
||||
playlists_dir = /var/lib/mopidy/playlists
|
||||
scan_timeout = 1000
|
||||
scan_flush_threshold = 1000
|
||||
|
|
|
@ -1,2 +0,0 @@
|
|||
#!/bin/sh
|
||||
exec logger -p daemon.info -t mopidy
|
|
@ -1,6 +1,4 @@
|
|||
#!/bin/sh
|
||||
# scan local lib on first run
|
||||
test -f /var/lib/mopidy/library.json.gz \
|
||||
|| chpst -umopidy mopidy --config /etc/mopidy.conf local scan
|
||||
|
||||
exec chpst -u mopidy:audio mopidy --config /etc/mopidy.conf 2>&1
|
||||
exec chpst -u mopidy:audio \
|
||||
mopidy --config /etc/mopidy/mopidy.conf \
|
||||
>/dev/null 2>&1
|
||||
|
|
|
@ -1,28 +1,39 @@
|
|||
# Template file for 'mopidy'
|
||||
pkgname=mopidy
|
||||
version=1.1.1
|
||||
revision=2
|
||||
version=2.0.0
|
||||
revision=1
|
||||
wrksrc="Mopidy-$version"
|
||||
noarch=yes
|
||||
build_style=python-module
|
||||
pycompile_module=mopidy
|
||||
hostmakedepends="python-setuptools"
|
||||
depends="gst-python gst-plugins-good1 gst-plugins-ugly1 gst-plugins-bad1 python-tornado python-pykka python-setuptools"
|
||||
conf_files="/etc/mopidy.conf"
|
||||
hostmakedepends="python-setuptools python-Sphinx"
|
||||
depends="gst1-python gst-plugins-good1 gst-plugins-ugly1 gst-plugins-bad1
|
||||
python-tornado python-pykka python-setuptools python-requests"
|
||||
conf_files="/etc/mopidy/*.conf"
|
||||
system_accounts="mopidy"
|
||||
mopidy_homedir="/var/lib/mopidy/"
|
||||
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"
|
||||
maintainer="allan <mail@may.mooo.com>"
|
||||
license="Apache-2.0"
|
||||
homepage="http://www.mopidy.com"
|
||||
distfiles="${PYPI_SITE}/M/Mopidy/Mopidy-${version}.tar.gz"
|
||||
checksum=823e1ba8781a107c69e8c1cd8fad9be81dc003c946e9d54fe41cadaad3a0e78e
|
||||
checksum=14a04c249f83d42f2012b580f3a05853f56320f1bb68ac91c4068b64c81a9265
|
||||
|
||||
post_install() {
|
||||
vmkdir 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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue