milis/talimatname/genel/m/minidlna/talimat

45 lines
1.1 KiB
Plaintext
Raw Normal View History

2017-10-27 20:46:27 +02:00
# Tanım: Bir DLNA / UPnP-AV Medya sunucusu (ReadyDLNA olarak da bilinir)
2017-04-04 13:36:06 +02:00
# URL: http://minidlna.sourceforge.net/
2017-10-27 20:46:27 +02:00
# Paketçi: milisarge
# Gerekler: libexif libjpeg-turbo libid3tag flac libvorbis ffmpeg sqlite
2017-04-04 13:36:06 +02:00
2017-10-28 14:10:23 +02:00
isim=minidlna
surum=1.1.4
devir=1
2016-02-24 01:27:23 +01:00
2017-10-28 14:10:23 +02:00
kaynak=(http://downloads.sourceforge.net/project/$isim/$isim/$surum/minidlna-$surum.tar.gz
2016-02-24 01:27:23 +01:00
minidlna)
2017-10-27 23:59:41 +02:00
derle() {
2017-10-28 14:10:23 +02:00
cd $isim-$surum
2016-02-24 01:27:23 +01:00
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
}