milis/talimatname/genel/m/minidlna/talimat

46 lines
1.1 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Tanım: Bir DLNA/UPnP-AV Medya sunucusu (ReadyDLNA olarak da bilinir)
# URL: http://minidlna.sourceforge.net/
# Paketçi: milisarge
# Gerekler: libexif libjpeg-turbo libid3tag flac libvorbis ffmpeg sqlite
# Grup: medya
isim=minidlna
surum=1.1.4
devir=1
kaynak=(http://downloads.sourceforge.net/project/$isim/$isim/$surum/minidlna-$surum.tar.gz
minidlna)
derle() {
cd $isim-$surum
sed -i 's|#user=.*|user=nobody|g' minidlna.conf
./configure --prefix=/usr
make
make DESTDIR=$PKG install
install -Dm644 minidlna.conf $PKG/etc/minidlna.conf
# Man
install -Dm644 minidlna.conf.5 \
$PKG/usr/share/man/man5/minidlna.conf.5
install -Dm644 minidlnad.8 \
$PKG/usr/share/man/man8/minidlnad.8
# Service
mkdir -p $PKG/etc/rc.d/init.d
install -Dm754 $SRC/minidlna $PKG/etc/rc.d/init.d/minidlna
for i in 0 1 6
do
mkdir -p $PKG/etc/rc.d/rc${i}.d
cd $PKG/etc/rc.d/rc${i}.d
ln -s ../init.d/minidlna K10minidlna
done
for i in 2 3 4 5
do
mkdir -p $PKG/etc/rc.d/rc${i}.d
cd $PKG/etc/rc.d/rc${i}.d
ln -s ../init.d/minidlna S90minidlna
done
}