talimat 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. # Tanım: MP3'ler, OGG vorbis dosyaları, filmler ve diğer medya formatları için bir akış sunucusu.
  2. # URL: http://www.gnu.org/software/gnump3d/
  3. # Paketçi: Cihan_Alkan
  4. # Gerekler:
  5. # Grup: medya
  6. isim=gnump3d
  7. surum=3.0
  8. devir=1
  9. kaynak=(https://savannah.gnu.org/download/$isim/$isim-$surum.tar.bz2
  10. gnump3d-proxy.patch)
  11. derle() {
  12. cd "$SRC"/$isim-$surum
  13. patch -p1 <"$SRC"/gnump3d-proxy.patch
  14. install -d "$PKG"/var/log/gnump3d
  15. install -d "$PKG"/var/cache/gnump3d/serving
  16. install -d "$PKG"/usr/share/perl5/vendor_perl/gnump3d/plugins
  17. install -d "$PKG"/usr/share/perl5/vendor_perl/gnump3d/lang
  18. install -m 644 lib/gnump3d/*.pm "$PKG"/usr/share/perl5/vendor_perl/gnump3d
  19. install -m 644 lib/gnump3d/plugins/*.pm "$PKG"/usr/share/perl5/vendor_perl/gnump3d/plugins
  20. install -m 644 lib/gnump3d/lang/*.pm "$PKG"/usr/share/perl5/vendor_perl/gnump3d/lang
  21. install -d "$PKG"/usr/bin
  22. install -m 755 bin/gnump3d2 "$PKG"/usr/bin/gnump3d
  23. install -m 755 bin/gnump3d-top bin/gnump3d-index "$PKG"/usr/bin
  24. install -d "$PKG"/usr/share/man/man1
  25. install -m 644 man/gnump3d-top.1 man/gnump3d-index.1 man/gnump3d.1 man/gnump3d.conf.1 "$PKG"/usr/share/man/man1
  26. install -d "$PKG"/usr/share/gnump3d
  27. cp -R templates/* "$PKG"/usr/share/gnump3d
  28. chmod -R a+r "$PKG"/usr/share/gnump3d
  29. chmod +rx "$PKG"/usr/share/gnump3d/*/
  30. sed -i "s|PLUGINDIR|/usr/share/perl5/vendor_perl|g" etc/gnump3d.conf
  31. install -d "$PKG"/etc/gnump3d
  32. install -m 644 etc/gnump3d.conf etc/mime.types "$PKG"/etc/gnump3d
  33. install -m 644 etc/gnump3d.conf etc/file.types "$PKG"/etc/gnump3d
  34. mkdir -p "$PKG"/srv/mp3
  35. sed -i "s|/home/mp3|/srv/mp3|" "$PKG"/etc/gnump3d/gnump3d.conf
  36. }