New package: mopidy-0.19.4
This commit is contained in:
parent
9eec5447ed
commit
4e2f7bfb08
6 changed files with 90 additions and 0 deletions
4
srcpkgs/mopidy/INSTALL.msg
Normal file
4
srcpkgs/mopidy/INSTALL.msg
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
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/en/v0.19.4/
|
5
srcpkgs/mopidy/REMOVE
Normal file
5
srcpkgs/mopidy/REMOVE
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
case "$ACTION" in
|
||||||
|
purge) test -d var/lib/mopidy &&
|
||||||
|
rm -rf var/lib/mopidy
|
||||||
|
;;
|
||||||
|
esac
|
43
srcpkgs/mopidy/files/mopidy.conf
Normal file
43
srcpkgs/mopidy/files/mopidy.conf
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
[logging]
|
||||||
|
color = false
|
||||||
|
console_format = %(levelname)-8s %(message)s
|
||||||
|
config_file =
|
||||||
|
|
||||||
|
[audio]
|
||||||
|
mixer = software
|
||||||
|
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
|
||||||
|
excluded_file_extensions =
|
||||||
|
.directory
|
||||||
|
.html
|
||||||
|
.jpeg
|
||||||
|
.jpg
|
||||||
|
.log
|
||||||
|
.nfo
|
||||||
|
.png
|
||||||
|
.txt
|
||||||
|
|
||||||
|
[mpd]
|
||||||
|
enabled = true
|
||||||
|
hostname = 127.0.0.1
|
||||||
|
port = 6600
|
||||||
|
password =
|
||||||
|
max_connections = 20
|
||||||
|
|
2
srcpkgs/mopidy/files/mopidy/log/run
Executable file
2
srcpkgs/mopidy/files/mopidy/log/run
Executable file
|
@ -0,0 +1,2 @@
|
||||||
|
#!/bin/sh
|
||||||
|
exec logger -p daemon.info -t mopidy
|
6
srcpkgs/mopidy/files/mopidy/run
Executable file
6
srcpkgs/mopidy/files/mopidy/run
Executable file
|
@ -0,0 +1,6 @@
|
||||||
|
#!/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 -umopidy mopidy --config /etc/mopidy.conf
|
30
srcpkgs/mopidy/template
Normal file
30
srcpkgs/mopidy/template
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
# Template file for 'mopidy'
|
||||||
|
pkgname=mopidy
|
||||||
|
version=0.19.4
|
||||||
|
revision=1
|
||||||
|
build_style=python-module
|
||||||
|
short_desc="An extensible music server in python"
|
||||||
|
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="887af8619182770867d9cf3d3ce9b8cacc7eb62763cfa7d3edfacb846d68a52b"
|
||||||
|
|
||||||
|
noarch=yes
|
||||||
|
python_versions=2.7
|
||||||
|
pycompile_module=mopidy
|
||||||
|
makedepends="python-devel"
|
||||||
|
hostmakedepends="python-devel python-setuptools python-pykka"
|
||||||
|
depends="gst-python gst-plugins-good1 gst-plugins-ugly1 gst-plugins-bad1 python-tornado python-pykka python-setuptools"
|
||||||
|
wrksrc="Mopidy-$version"
|
||||||
|
|
||||||
|
conf_files="/etc/mopidy.conf"
|
||||||
|
system_accounts="mopidy"
|
||||||
|
mopidy_homedir="/var/lib/mopidy/"
|
||||||
|
mopidy_groups="audio"
|
||||||
|
make_dirs="/var/lib/mopidy 0755 mopidy mopidy"
|
||||||
|
|
||||||
|
post_install() {
|
||||||
|
vconf $FILESDIR/mopidy.conf
|
||||||
|
vsv mopidy
|
||||||
|
}
|
Loading…
Reference in a new issue