45 lines
1.1 KiB
Plaintext
45 lines
1.1 KiB
Plaintext
# 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
|
||
|
||
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
|
||
|
||
}
|