diff options
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.bb | 44 |
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 @@ | |||
1 | DESCRIPTION = "Music Player Daemon" | ||
2 | LICENSE = "GPLv2" | ||
3 | LIC_FILES_CHKSUM = "file://COPYING;md5=751419260aa954499f7abaabaa882bbe" | ||
4 | HOMEPAGE ="http://sourceforge.net/projects/musicpd" | ||
5 | |||
6 | DEPENDS = "alsa-lib libsamplerate0 libsndfile1 libvorbis libogg faad2 ffmpeg curl sqlite bzip2 pulseaudio \ | ||
7 | ${@base_conditional('ENTERPRISE_DISTRO', '1', '', 'libmad lame libid3tag', d)}" | ||
8 | |||
9 | SRC_URI = " \ | ||
10 | ${SOURCEFORGE_MIRROR}/musicpd/${PN}/${PV}/${PN}-${PV}.tar.bz2 \ | ||
11 | file://mpd.conf.in \ | ||
12 | " | ||
13 | |||
14 | SRC_URI[md5sum] = "da3f3d6617a877192db4c6f53504cd38" | ||
15 | SRC_URI[sha256sum] = "b18cdb1b779ca2ab323e212a0af4a567b7da4881a4e96868a8979bdfdbe7c2e8" | ||
16 | |||
17 | inherit autotools useradd | ||
18 | |||
19 | EXTRA_OECONF = "enable_bzip2=yes" | ||
20 | |||
21 | do_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 | |||
39 | USERADD_PACKAGES = "${PN}" | ||
40 | USERADD_PARAM_${PN} = " \ | ||
41 | --system --no-create-home \ | ||
42 | --home ${localstatedir}/lib/mpd \ | ||
43 | --groups audio \ | ||
44 | --user-group mpd" | ||