From 9c01326a050dd41d07b1fe942c669f1600573440 Mon Sep 17 00:00:00 2001 From: Alessio Sergi Date: Tue, 12 Aug 2014 09:29:28 +0200 Subject: [PATCH] mpd: install example config file --- srcpkgs/mpd/template | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/srcpkgs/mpd/template b/srcpkgs/mpd/template index e6e00ae62ca..24dff932b58 100644 --- a/srcpkgs/mpd/template +++ b/srcpkgs/mpd/template @@ -1,7 +1,7 @@ # Template file for 'mpd' pkgname=mpd version=0.18.12 -revision=1 +revision=2 build_style=gnu-configure configure_args=" --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" short_desc="Flexible, powerful, server-side application for playing music" maintainer="Juan RP " -license="GPL-3" +license="GPL-2" homepage="http://www.musicpd.org/" distfiles="http://www.musicpd.org/download/mpd/${version%.*}/mpd-${version}.tar.xz" checksum=30cd1f6f396a6433f7f27a6c0ec0de5e061cec6ad1bd2f7de9095c16aac0d86c @@ -71,8 +71,13 @@ else configure_args+=" --disable-wavpack" fi +pre_configure() { + sed -i '/^doc_DATA =/s,doc/mpdconf.example,,' Makefile.in +} + post_install() { - vinstall doc/mpdconf.example 644 etc mpd.conf + vconf doc/mpdconf.example mpd.conf + vsconf doc/mpdconf.example sed \ -e '/^#playlist_directory/c playlist_directory "/var/lib/mpd/playlists"' \ -e '/^#db_file/c db_file "/var/lib/mpd/mpd.db"' \