mpd.paketlendi

This commit is contained in:
milisbir 2017-11-28 00:42:10 +02:00
parent c57602e44e
commit 0e8e1ffed7
2 changed files with 33 additions and 3 deletions

View File

@ -0,0 +1,28 @@
#!/bin/sh
#
# /etc/init.d/mpd: start/stop mpd daemon
#
case $1 in
start)
/usr/bin/mpd
;;
stop)
if [ -f /var/run/mpd.pid ]; then
kill $(< /var/run/mpd.pid)
rm -f /var/run/mpd.pid
else
pkill /usr/bin/mpd
fi
;;
restart)
$0 stop
sleep 2
$0 start
;;
*)
echo "usage: $0 [start|stop|restart|status]"
;;
esac
# End of file

View File

@ -1,12 +1,13 @@
# Tanım: Esnek,güçlü sunucu bazlı müzik çalıcısı # Tanım: Esnek,güçlü sunucu bazlı müzik çalıcısı
# URL: https://www.musicpd.org/ # URL: https://www.musicpd.org/
# Paketçi: milisarge # Paketçi: milisarge
# Gerekler: libmad libvorbis libid3tag glib faad2 flac libshout fluidsynth # Gerekler: libmad libvorbis libid3tag glib faad2 flac libshout fluidsynth boost ffmpeg
isim=mpd isim=mpd
surum=0.20.12 surum=0.20.12
devir=1 devir=1
kaynak=(http://www.musicpd.org/download/$isim/0.20/$isim-$surum.tar.xz mpd) kaynak=(http://www.musicpd.org/download/$isim/0.20/$isim-$surum.tar.xz
servis)
derle() { derle() {
cd $isim-$surum cd $isim-$surum
@ -25,6 +26,7 @@ derle() {
make DESTDIR=$PKG install make DESTDIR=$PKG install
mkdir -p $PKG/etc mkdir -p $PKG/etc
install -m 0644 doc/mpdconf.example $PKG/etc/mpd.conf install -m 0644 doc/mpdconf.example $PKG/etc/mpd.conf
install -D $SRC/mpd $PKG/etc/rc.d/mpd mkdir -p $PKG/etc/rc.d/init.d
install -D $SRC/servis $PKG/etc/rc.d/init.d/mpd
rm -r $PKG/usr/share/doc rm -r $PKG/usr/share/doc
} }