wok-current view mpd/receipt @ rev 4974

add/improve TAGS u* receipts
author Rohit Joshi <jozee@slitaz.org>
date Wed Feb 24 12:19:54 2010 +0000 (2010-02-24)
parents e46fec8366e6
children 5b44af8c1257
line source
1 # SliTaz package receipt.
3 PACKAGE="mpd"
4 VERSION="0.15.8"
5 CATEGORY="multimedia"
6 SHORT_DESC="Music Player Daemon (MPD)."
7 MAINTAINER="paul@slitaz.org"
8 DEPENDS="libid3tag libmad libogg libvorbis libsamplerate flac alsa-lib audiofile faad2 lame"
9 BUILD_DEPENDS="alsa-lib-dev zlib-dev libid3tag-dev libsamplerate-dev \
10 libmad-dev libogg-dev libvorbis-dev flac-dev libsamplerate \
11 libid3tag audiofile audiofile-dev faad2 faad2-dev pkg-config glib-dev lame-dev"
12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
13 WEB_SITE="http://www.musicpd.org/"
14 WGET_URL="$SF_MIRROR/musicpd/$TARBALL"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 ./configure --prefix=/usr --infodir=/usr/share/info \
22 --mandir=/usr/share/man \
23 --disable-jack \
24 --disable-ao \
25 --disable-modplug \
26 --disable-mms \
27 --disable-ffmpeg \
28 --with-zeroconf=no \
29 $CONFIGURE_ARGS &&
30 make &&
31 make DESTDIR=$PWD/_pkg install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/sbin
38 mkdir -p $fs/etc
39 cp -a $_pkg/usr/bin/mpd $fs/usr/sbin
40 cp $_pkg/usr/share/doc/mpd/mpdconf.example $fs/etc/mpd.conf
41 }
43 post_install()
44 {
45 echo "Processing post-install commands..."
47 # Drop root priviledges and enable pid file
48 echo -n "Enabling mpd.conf..."
49 cd $1/etc
50 sed -i 's/#music_directory/music_directory/; \
51 s/#playlist_directory/playlist_directory/; \
52 s/#db_file/db_file/; \
53 s/#pid_file/pid_file/; \
54 s/#user "nobody"/user "tux"/; \
55 s/#bind_to_address "any"/bind_to_address "localhost"/' mpd.conf
56 status
58 # Make mpd directories and files
59 echo -n "Enabling mpd files and directories..."
60 mkdir /home/tux/music
61 mkdir -p /home/tux/.mpd/playlists
62 touch /home/tux/.mpd/mpd.log
63 #touch /home/tux/.mpd/mpd.error
65 # And change permissions
66 chown tux:tux /home/tux/music
67 chown -R tux:tux /home/tux/.mpd
68 status
69 }