wok-6.x view mpd/receipt @ rev 11278
Up: libgnutls to 3.0.7.
author | Christopher Rogers <slaxemulator@gmail.com> |
---|---|
date | Wed Nov 09 20:13:22 2011 +0000 (2011-11-09) |
parents | ac6070d06f4c |
children | 60ed77963c48 |
line source
1 # SliTaz package receipt.
3 PACKAGE="mpd"
4 VERSION="0.15.16"
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 --disable-wavpack \
30 --with-zeroconf=no \
31 $CONFIGURE_ARGS &&
32 make &&
33 make DESTDIR=$PWD/_pkg install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/sbin
40 mkdir -p $fs/etc
41 cp -a $_pkg/usr/bin/mpd $fs/usr/sbin
42 cp $_pkg/usr/share/doc/mpd/mpdconf.example $fs/etc/mpd.conf
43 cp -a $stuff/* $fs
44 }
46 post_install()
47 {
48 echo "Processing post-install commands..."
50 # Drop root priviledges and enable pid file
51 echo -n "Enabling mpd.conf..."
52 cd $1/etc
53 sed -i 's/#music_directory/music_directory/; \
54 s/#playlist_directory/playlist_directory/; \
55 s/#db_file/db_file/; \
56 s/#pid_file/pid_file/; \
57 s/#user "nobody"/user "tux"/; \
58 s/#bind_to_address "any"/bind_to_address "localhost"/' mpd.conf
59 status
61 # Make mpd directories and files
62 echo -n "Enabling mpd files and directories..."
63 mkdir /home/tux/music
64 mkdir -p /home/tux/.mpd/playlists
65 touch /home/tux/.mpd/mpd.log
66 #touch /home/tux/.mpd/mpd.error
68 # And change permissions
69 chown tux:tux /home/tux/music
70 chown -R tux:tux /home/tux/.mpd
71 status
72 }