summaryrefslogtreecommitdiffstats
path: root/meta-multimedia/recipes-multimedia/musicpd/mpd_0.17.1.bb
diff options
context:
space:
mode:
authorAndreas Müller <schnitzeltony@googlemail.com>2012-06-05 16:44:12 +0200
committerAndreas Müller <schnitzeltony@googlemail.com>2012-09-18 15:54:03 +0200
commit242c9725021059fd72fed0e37306f070f6e0709c (patch)
tree856a41989771153bd125e9108b56ea789e7f3cb7 /meta-multimedia/recipes-multimedia/musicpd/mpd_0.17.1.bb
parent1eed7a33047a907924b5710fa11ef049e494dfd5 (diff)
downloadmeta-openembedded-242c9725021059fd72fed0e37306f070f6e0709c.tar.gz
mpd: Initial add 0.17.1
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Diffstat (limited to 'meta-multimedia/recipes-multimedia/musicpd/mpd_0.17.1.bb')
-rw-r--r--meta-multimedia/recipes-multimedia/musicpd/mpd_0.17.1.bb44
1 files changed, 44 insertions, 0 deletions
diff --git a/meta-multimedia/recipes-multimedia/musicpd/mpd_0.17.1.bb b/meta-multimedia/recipes-multimedia/musicpd/mpd_0.17.1.bb
new file mode 100644
index 000000000..b3b82c4cb
--- /dev/null
+++ b/meta-multimedia/recipes-multimedia/musicpd/mpd_0.17.1.bb
@@ -0,0 +1,44 @@
1DESCRIPTION = "Music Player Daemon"
2LICENSE = "GPLv2"
3LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe"
4HOMEPAGE ="http://sourceforge.net/projects/musicpd"
5
6DEPENDS = "alsa-lib libsamplerate0 libsndfile1 libvorbis libogg faad2 ffmpeg curl sqlite bzip2 pulseaudio \
7 ${@base_conditional('ENTERPRISE_DISTRO', '1', '', 'libmad lame libid3tag', d)}"
8
9SRC_URI = " \
10 ${SOURCEFORGE_MIRROR}/musicpd/${PN}/${PV}/${PN}-${PV}.tar.bz2 \
11 file://mpd.conf.in \
12"
13
14SRC_URI[md5sum] = "da3f3d6617a877192db4c6f53504cd38"
15SRC_URI[sha256sum] = "b18cdb1b779ca2ab323e212a0af4a567b7da4881a4e96868a8979bdfdbe7c2e8"
16
17inherit autotools useradd
18
19EXTRA_OECONF = "enable_bzip2=yes"
20
21do_install_append() {
22 install -d ${D}/${localstatedir}/lib/mpd/music
23 chmod 775 ${D}/${localstatedir}/lib/mpd/music
24 install -d ${D}/${localstatedir}/lib/mpd/playlists
25 chown -R mpd ${D}/${localstatedir}/lib/mpd
26 chown mpd:mpd ${D}/${localstatedir}/lib/mpd/music
27
28 install -d ${D}/${sysconfdir}
29 install -m 644 ${WORKDIR}/mpd.conf.in ${D}/${sysconfdir}/mpd.conf
30 sed -i \
31 -e 's|%music_directory%|${localstatedir}/lib/mpd/music|' \
32 -e 's|%playlist_directory%|${localstatedir}/lib/mpd/playlists|' \
33 -e 's|%db_file%|${localstatedir}/lib/mpd/mpd.db|' \
34 -e 's|%log_file%|${localstatedir}/log/mpd.log|' \
35 -e 's|%state_file%|${localstatedir}/lib/mpd/state|' \
36 ${D}/${sysconfdir}/mpd.conf
37}
38
39USERADD_PACKAGES = "${PN}"
40USERADD_PARAM_${PN} = " \
41 --system --no-create-home \
42 --home ${localstatedir}/lib/mpd \
43 --groups audio \
44 --user-group mpd"