mpd: install example config file
This commit is contained in:
parent
8a29154a58
commit
9c01326a05
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'mpd'
|
# Template file for 'mpd'
|
||||||
pkgname=mpd
|
pkgname=mpd
|
||||||
version=0.18.12
|
version=0.18.12
|
||||||
revision=1
|
revision=2
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="
|
configure_args="
|
||||||
--enable-soundcloud --enable-pipe-output --disable-twolame-encoder
|
--enable-soundcloud --enable-pipe-output --disable-twolame-encoder
|
||||||
|
@ -19,7 +19,7 @@ mpd_homedir="/var/lib/mpd"
|
||||||
make_dirs="/var/lib/mpd/playlists 0755 mpd mpd"
|
make_dirs="/var/lib/mpd/playlists 0755 mpd mpd"
|
||||||
short_desc="Flexible, powerful, server-side application for playing music"
|
short_desc="Flexible, powerful, server-side application for playing music"
|
||||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||||
license="GPL-3"
|
license="GPL-2"
|
||||||
homepage="http://www.musicpd.org/"
|
homepage="http://www.musicpd.org/"
|
||||||
distfiles="http://www.musicpd.org/download/mpd/${version%.*}/mpd-${version}.tar.xz"
|
distfiles="http://www.musicpd.org/download/mpd/${version%.*}/mpd-${version}.tar.xz"
|
||||||
checksum=30cd1f6f396a6433f7f27a6c0ec0de5e061cec6ad1bd2f7de9095c16aac0d86c
|
checksum=30cd1f6f396a6433f7f27a6c0ec0de5e061cec6ad1bd2f7de9095c16aac0d86c
|
||||||
|
@ -71,8 +71,13 @@ else
|
||||||
configure_args+=" --disable-wavpack"
|
configure_args+=" --disable-wavpack"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
pre_configure() {
|
||||||
|
sed -i '/^doc_DATA =/s,doc/mpdconf.example,,' Makefile.in
|
||||||
|
}
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vinstall doc/mpdconf.example 644 etc mpd.conf
|
vconf doc/mpdconf.example mpd.conf
|
||||||
|
vsconf doc/mpdconf.example
|
||||||
sed \
|
sed \
|
||||||
-e '/^#playlist_directory/c playlist_directory "/var/lib/mpd/playlists"' \
|
-e '/^#playlist_directory/c playlist_directory "/var/lib/mpd/playlists"' \
|
||||||
-e '/^#db_file/c db_file "/var/lib/mpd/mpd.db"' \
|
-e '/^#db_file/c db_file "/var/lib/mpd/mpd.db"' \
|
||||||
|
|
Loading…
Reference in New Issue