wok-stable view mpd/receipt @ rev 7208
Up: mc to 4.7.0.10.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Tue Nov 09 21:10:51 2010 +0000 (2010-11-09) |
parents | 53d5434182de |
children | de583bba63df |
line source
1 # SliTaz package receipt.
3 PACKAGE="mpd"
4 VERSION="0.15.15"
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 \
9 audiofile faad2 lame sqlite libcurl glib libcrypto"
10 BUILD_DEPENDS="alsa-lib-dev zlib-dev libid3tag-dev libsamplerate-dev \
11 libmad-dev libogg-dev libvorbis-dev flac-dev libsamplerate \
12 libid3tag audiofile audiofile-dev faad2 faad2-dev pkg-config glib-dev lame-dev"
13 TARBALL="$PACKAGE-$VERSION.tar.bz2"
14 WEB_SITE="http://www.musicpd.org/"
15 WGET_URL="$SF_MIRROR/musicpd/$TARBALL"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 cd $src
22 ./configure --prefix=/usr --infodir=/usr/share/info \
23 --mandir=/usr/share/man \
24 --disable-jack \
25 --disable-ao \
26 --disable-modplug \
27 --disable-mms \
28 --disable-ffmpeg \
29 --with-zeroconf=no \
30 $CONFIGURE_ARGS &&
31 make &&
32 make DESTDIR=$PWD/_pkg install
33 }
35 # Rules to gen a SliTaz package suitable for Tazpkg.
36 genpkg_rules()
37 {
38 mkdir -p $fs/usr/sbin
39 mkdir -p $fs/etc
40 cp -a $_pkg/usr/bin/mpd $fs/usr/sbin
41 cp $_pkg/usr/share/doc/mpd/mpdconf.example $fs/etc/mpd.conf
42 }
44 post_install()
45 {
46 echo "Processing post-install commands..."
48 # Drop root priviledges and enable pid file
49 echo -n "Enabling mpd.conf..."
50 cd $1/etc
51 sed -i 's/#music_directory/music_directory/; \
52 s/#playlist_directory/playlist_directory/; \
53 s/#db_file/db_file/; \
54 s/#pid_file/pid_file/; \
55 s/#user "nobody"/user "tux"/; \
56 s/#bind_to_address "any"/bind_to_address "localhost"/' mpd.conf
57 status
59 # Make mpd directories and files
60 echo -n "Enabling mpd files and directories..."
61 mkdir /home/tux/music
62 mkdir -p /home/tux/.mpd/playlists
63 touch /home/tux/.mpd/mpd.log
64 #touch /home/tux/.mpd/mpd.error
66 # And change permissions
67 chown tux:tux /home/tux/music
68 chown -R tux:tux /home/tux/.mpd
69 status
70 }