wok view mpd/receipt @ rev 4808

mpd: edit receipt
author Paul Issott <paul@slitaz.org>
date Mon Jan 18 16:06:04 2010 +0000 (2010-01-18)
parents f3cbdc461ad8
children 408064d37bb0
line source
1 # SliTaz package receipt.
3 PACKAGE="mpd"
4 VERSION="0.15.7"
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 --with-zeroconf=no \
25 $CONFIGURE_ARGS &&
26 make &&
27 make DESTDIR=$PWD/_pkg install
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 mkdir -p $fs/usr/sbin
34 mkdir -p $fs/etc
35 cp -a $_pkg/usr/bin/mpd $fs/usr/sbin
36 cp $_pkg/usr/share/doc/mpd/mpdconf.example $fs/etc/mpd.conf
37 }
39 post_install()
40 {
41 echo "Processing post-install commands..."
43 # Drop root priviledges and enable pid file
44 echo -n "Enabling mpd.conf..."
45 cd $1/etc
46 sed -i 's/#music_directory/music_directory/; \
47 s/#playlist_directory/playlist_directory/; \
48 s/#db_file/db_file/; \
49 s/#pid_file/pid_file/; \
50 s/#user "nobody"/user "tux"/; \
51 s/#bind_to_address "any"/bind_to_address "localhost"/' mpd.conf
52 status
54 # Make mpd directories and files
55 echo -n "Enabling mpd files and directories..."
56 mkdir /home/tux/music
57 mkdir -p /home/tux/.mpd/playlists
58 touch /home/tux/.mpd/mpd.log
59 #touch /home/tux/.mpd/mpd.error
61 # And change permissions
62 chown tux:tux /home/tux/music
63 chown -R tux:tux /home/tux/.mpd
64 status
65 }