From 0e8e1ffed78483d25af9673a8d94d5631e7ed9b8 Mon Sep 17 00:00:00 2001 From: milisbir Date: Tue, 28 Nov 2017 00:42:10 +0200 Subject: [PATCH] mpd.paketlendi --- talimatname/genel/m/mpd/servis | 28 ++++++++++++++++++++++++++++ talimatname/genel/m/mpd/talimat | 8 +++++--- 2 files changed, 33 insertions(+), 3 deletions(-) create mode 100644 talimatname/genel/m/mpd/servis diff --git a/talimatname/genel/m/mpd/servis b/talimatname/genel/m/mpd/servis new file mode 100644 index 000000000..40ce0fdd1 --- /dev/null +++ b/talimatname/genel/m/mpd/servis @@ -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 diff --git a/talimatname/genel/m/mpd/talimat b/talimatname/genel/m/mpd/talimat index 48b7862b9..813f691d7 100644 --- a/talimatname/genel/m/mpd/talimat +++ b/talimatname/genel/m/mpd/talimat @@ -1,12 +1,13 @@ # Tanım: Esnek,güçlü sunucu bazlı müzik çalıcısı # URL: https://www.musicpd.org/ # 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 surum=0.20.12 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() { cd $isim-$surum @@ -25,6 +26,7 @@ derle() { make DESTDIR=$PKG install mkdir -p $PKG/etc 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 }