wok-current annotate mpd/receipt @ rev 3699
Up:mpd , fix WGET_URL, improve configure options
author | Rohit Joshi <jozee@slitaz.org> |
---|---|
date | Fri Jul 17 07:53:41 2009 +0000 (2009-07-17) |
parents | 5efc4033292f |
children | 84fc1b67b40b |
rev | line source |
---|---|
paul@1375 | 1 # SliTaz package receipt. |
paul@1375 | 2 |
paul@1375 | 3 PACKAGE="mpd" |
jozee@3699 | 4 VERSION="0.15.1" |
paul@1375 | 5 CATEGORY="multimedia" |
paul@1375 | 6 SHORT_DESC="Music Player Daemon (MPD)." |
paul@1375 | 7 MAINTAINER="paul@slitaz.org" |
pankso@3405 | 8 DEPENDS="libid3tag libmad libogg libvorbis libsamplerate flac alsa-lib" |
paul@1387 | 9 BUILD_DEPENDS="alsa-lib-dev zlib-dev libid3tag-dev libsamplerate-dev \ |
pankso@3405 | 10 libmad-dev libogg-dev libvorbis-dev flac-dev libsamplerate \ |
pankso@3405 | 11 libid3tag" |
jozee@3699 | 12 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
paul@1375 | 13 WEB_SITE="http://www.musicpd.org/" |
jozee@3699 | 14 WGET_URL="$SF_MIRROR/musicpd/$TARBALL" |
jozee@3699 | 15 |
paul@1375 | 16 |
paul@1375 | 17 # Rules to configure and make the package. |
paul@1375 | 18 compile_rules() |
paul@1375 | 19 { |
paul@1375 | 20 cd $src |
paul@1375 | 21 ./configure --prefix=/usr --infodir=/usr/share/info \ |
jozee@3699 | 22 --mandir=/usr/share/man \ |
jozee@3699 | 23 --disable-jack \ |
jozee@3699 | 24 --with-zeroconf=no \ |
jozee@3699 | 25 $CONFIGURE_ARGS && |
pascal@1484 | 26 make && |
paul@1375 | 27 make DESTDIR=$PWD/_pkg install |
paul@1375 | 28 } |
paul@1375 | 29 |
paul@1375 | 30 # Rules to gen a SliTaz package suitable for Tazpkg. |
paul@1375 | 31 genpkg_rules() |
paul@1375 | 32 { |
paul@1375 | 33 mkdir -p $fs/usr/sbin |
paul@1375 | 34 mkdir -p $fs/etc |
paul@1375 | 35 cp -a $_pkg/usr/bin/mpd $fs/usr/sbin |
paul@1375 | 36 cp $_pkg/usr/share/doc/mpd/mpdconf.example $fs/etc/mpd.conf |
paul@1375 | 37 } |
paul@1375 | 38 |
paul@1375 | 39 post_install() |
paul@1375 | 40 { |
paul@1375 | 41 echo "Processing post-install commands..." |
paul@1375 | 42 |
paul@1375 | 43 # Drop root priviledges and enable pid file |
paul@1375 | 44 echo -n "Enabling mpd.conf..." |
paul@1375 | 45 cd $1/etc |
paul@1375 | 46 sed -i 's/#pid_file/pid_file/; \ |
paul@1375 | 47 s/#user/user/; s/#bind_to_address/bind_to_address/; \ |
paul@1375 | 48 s/"nobody"/"tux"/; s/"any"/"localhost"/' mpd.conf |
paul@1375 | 49 status |
paul@1375 | 50 |
paul@1375 | 51 # Make mpd directories and files |
paul@1375 | 52 echo -n "Enabling mpd files and directories" |
paul@1375 | 53 mkdir /home/tux/music |
paul@1375 | 54 mkdir -p /home/tux/.mpd/playlists |
paul@1375 | 55 touch /home/tux/.mpd/mpd.log |
paul@1375 | 56 touch /home/tux/.mpd/mpd.error |
paul@1375 | 57 |
paul@1375 | 58 # And change permissions |
paul@1375 | 59 chown tux:tux /home/tux/music |
paul@1375 | 60 chown -R tux:tux /home/tux/.mpd |
paul@1375 | 61 status |
paul@1375 | 62 } |
paul@1375 | 63 |
paul@1375 | 64 |