talimat 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. # Tanım: PBX yazılım implementasyonu.
  2. # URL: http://www.asterisk.org
  3. # Paketçi: milisarge
  4. # Gerekler: openssl ncurses jansson opus libxml2 doxygen
  5. # Grup: ağ
  6. isim=asterisk
  7. surum=13.6.0
  8. devir=1
  9. kaynak=(http://downloads.digium.com/pub/asterisk/releases/asterisk-$surum.tar.gz
  10. https://github.com/seanbright/asterisk-opus/archive/bb2925fc4eaad5b30b93eece851297de5c12e06c.tar.gz
  11. asterisk.rc
  12. build-enable-aelparse.patch
  13. build-disable-astcanary.patch
  14. build-enable-cdr-mysql.patch
  15. build-enable-ilbc.patch
  16. build-disable-moh-wav.patch
  17. build-enable-opus-vp8.patch
  18. build-disable-sounds-en-gsm.patch
  19. )
  20. derle() {
  21. cd asterisk-$surum
  22. # patch to add Opus transcoding and VP8 passthrough
  23. # https://github.com/seanbright/asterisk-opus
  24. if [ -f /usr/include/opus/opus.h ]; then
  25. cp $SRC/asterisk-opus-*/codecs/* codecs/
  26. cp $SRC/asterisk-opus-*/formats/* formats/
  27. ./bootstrap.sh
  28. fi
  29. ./configure \
  30. --prefix=/usr \
  31. --mandir=/usr/man \
  32. --with-ncurses \
  33. --with-ssl \
  34. --disable-xmldoc \
  35. --with-sounds-cache=/tmp
  36. # Generate a menuselect-tree file
  37. make menuselect-tree
  38. # Enable Opus and VP8
  39. if [ -f /usr/include/opus/opus.h ]; then
  40. patch -p1 -i $SRC/asterisk-opus-*/asterisk.patch
  41. patch -p1 -i $SRC/build-enable-opus-vp8.patch
  42. fi
  43. # Add aelparse utility
  44. patch -p1 -i $SRC/build-enable-aelparse.patch
  45. # Remove astcanary
  46. patch -p1 -i $SRC/build-disable-astcanary.patch
  47. # Add cdr_mysql
  48. patch -p1 -i $SRC/build-enable-cdr-mysql.patch
  49. # Add iLBC
  50. patch -p1 -i $SRC/build-enable-ilbc.patch
  51. # Remove music on hold files
  52. patch -p1 -i $SRC/build-disable-moh-wav.patch
  53. # Remove english gsm core sounds (sounds are available in separate port)
  54. patch -p1 -i $SRC/build-disable-sounds-en-gsm.patch
  55. make # NOISY_BUILD=yes
  56. make DESTDIR=$PKG install
  57. # Init script
  58. install -m 755 -D $SRC/asterisk.rc $PKG/etc/rc.d/asterisk
  59. # This man page is missing
  60. install -m 644 -D doc/aelparse.8 $PKG/usr/man/man8/aelparse.8
  61. # Install default config files
  62. install -d -m 750 $PKG/etc/asterisk $PKG/etc/asterisk/default
  63. for i in configs/samples/*.sample; do
  64. install -m 640 $i $PKG/etc/asterisk/default/$(basename $i .sample)
  65. done
  66. }