talimat 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # Description: Bir DLNA / UPnP-AV Medya sunucusu (ReadyDLNA olarak da bilinir)
  2. # URL: http://minidlna.sourceforge.net/
  3. # Packager: milisarge
  4. # Depends on: libexif libjpeg-turbo libid3tag flac libvorbis ffmpeg sqlite
  5. name=minidlna
  6. version=1.1.4
  7. release=1
  8. source=(http://downloads.sourceforge.net/project/$name/$name/$version/minidlna-$version.tar.gz
  9. minidlna)
  10. build() {
  11. cd $name-$version
  12. sed -i 's|#user=.*|user=nobody|g' minidlna.conf
  13. ./configure --prefix=/usr
  14. make
  15. make DESTDIR=$PKG install
  16. install -Dm644 minidlna.conf $PKG/etc/minidlna.conf
  17. # Man
  18. install -Dm644 minidlna.conf.5 \
  19. $PKG/usr/share/man/man5/minidlna.conf.5
  20. install -Dm644 minidlnad.8 \
  21. $PKG/usr/share/man/man8/minidlnad.8
  22. # Service
  23. mkdir -p $PKG/etc/rc.d/init.d
  24. install -Dm754 $SRC/minidlna $PKG/etc/rc.d/init.d/minidlna
  25. for i in 0 1 6
  26. do
  27. mkdir -p $PKG/etc/rc.d/rc${i}.d
  28. cd $PKG/etc/rc.d/rc${i}.d
  29. ln -s ../init.d/minidlna K10minidlna
  30. done
  31. for i in 2 3 4 5
  32. do
  33. mkdir -p $PKG/etc/rc.d/rc${i}.d
  34. cd $PKG/etc/rc.d/rc${i}.d
  35. ln -s ../init.d/minidlna S90minidlna
  36. done
  37. }