Receipt for package "mpd"
# SliTaz package receipt. PACKAGE="mpd" VERSION="0.15.16" CATEGORY="multimedia" SHORT_DESC="Music Player Daemon (MPD)." MAINTAINER="paul@slitaz.org" DEPENDS="libid3tag libmad libogg libvorbis libsamplerate flac alsa-lib \ audiofile faad2 lame sqlite libcurl glib libcrypto" BUILD_DEPENDS="alsa-lib-dev zlib-dev libid3tag-dev libsamplerate-dev \ libmad-dev libogg-dev libvorbis-dev flac-dev libsamplerate \ libid3tag audiofile audiofile-dev faad2 faad2-dev pkg-config glib-dev lame-dev" TARBALL="$PACKAGE-$VERSION.tar.bz2" WEB_SITE="http://www.musicpd.org/" WGET_URL="$SF_MIRROR/musicpd/$TARBALL" # Rules to configure and make the package. compile_rules() { cd $src ./configure --prefix=/usr --infodir=/usr/share/info \ --mandir=/usr/share/man \ --disable-jack \ --disable-ao \ --disable-modplug \ --disable-mms \ --disable-ffmpeg \ --disable-wavpack \ --with-zeroconf=no \ $CONFIGURE_ARGS && make && make DESTDIR=$PWD/_pkg install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { mkdir -p $fs/usr/sbin mkdir -p $fs/etc cp -a $_pkg/usr/bin/mpd $fs/usr/sbin cp $_pkg/usr/share/doc/mpd/mpdconf.example $fs/etc/mpd.conf cp -a $stuff/* $fs } post_install() { echo "Processing post-install commands..." # Drop root priviledges and enable pid file echo -n "Enabling mpd.conf..." cd $1/etc sed -i 's/#music_directory/music_directory/; \ s/#playlist_directory/playlist_directory/; \ s/#db_file/db_file/; \ s/#pid_file/pid_file/; \ s/#user "nobody"/user "tux"/; \ s/#bind_to_address "any"/bind_to_address "localhost"/' mpd.conf status # Make mpd directories and files echo -n "Enabling mpd files and directories..." mkdir /home/tux/music mkdir -p /home/tux/.mpd/playlists touch /home/tux/.mpd/mpd.log #touch /home/tux/.mpd/mpd.error # And change permissions chown tux:users /home/tux/music chown -R tux:users /home/tux/.mpd status }
3382 packages and 430813 files in stable database (Mon Mar 4 17:53:49 2019)