Advertisement
Guest User

Untitled

a guest
Sep 26th, 2016
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.07 KB | None | 0 0
  1. yum install epel-release
  2. yum install mISDN-devel
  3. yum install rpm-build
  4. yum groupinstall "Development Tools"
  5. yum remove epel-release
  6. mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
  7. echo '%_topdir %(echo $HOME)/rpmbuild' > ~/.rpmmacros
  8.  
  9. Now download the FreePBX SRPM and the patch. We also download mISDNuser, it makes building Asterisk easier if this is available. The filenames here are current at time of writing but you should check for newer ones as appropriate. The Asterisk version and the patch version *must* match.
  10.  
  11. cd ~/rpmbuild/SOURCES
  12. wget http://download.opensuse.org/tumbleweed/repo/src-oss/suse/src/mISDNuser-2.0.19-1.7.src.rpm
  13. wget http://docs.acsdata.co.nz/asterisk-cisco/includes/cisco-usecallmanager-13.10.0.patch
  14. wget http://yum.freepbxdistro.org/pbx/SRPMS/asterisk/13/asterisk13-13.10.0-1.shmz65.1.117.src.rpm
  15.  
  16.  
  17.  
  18. Then it's just a case of unpack the files, tell FreePBX about the new patch, compile the files and install them:
  19.  
  20. rpm --nomd5 -ivh ~/rpmbuild/SOURCES/asterisk13-13.10.0-1.shmz65.1.117.src.rpm
  21. rpm --nomd5 -ivh ~/rpmbuild/SOURCES/mISDNuser-2.0.19-1.7.src.rpm
  22. yum-builddep ~/rpmbuild/SPECS/mISDNuser.spec
  23. rpmbuild -bp ~/rpmbuild/SPECS/mISDNuser.spec
  24. rpmbuild -ba ~/rpmbuild/SPECS/mISDNuser.spec
  25. rpm -Uvh ~/rpmbuild/RPMS/x86_64/libmisdn1-*.rpm
  26. rpm -Uvh ~/rpmbuild/RPMS/x86_64/mISDNuser*.rpm
  27. yum-builddep ~/rpmbuild/SPECS/asterisk13.spec
  28. rpmbuild -bp ~/rpmbuild/SPECS/asterisk13.spec
  29. nano ~/rpmbuild/SPECS/asterisk13.spec
  30. [locate the first instance of the word "Patch12" and add this exact line directly below it:]
  31. Patch13: cisco-usecallmanager-13.10.0.patch
  32. [then search for "patch12" (note the change in case) and add this exact line directly below it:]
  33. %patch13 -p1
  34. [save the file and close the editor]
  35. rpmbuild -bp ~/rpmbuild/SPECS/asterisk13.spec
  36. rpmbuild -ba ~/rpmbuild/SPECS/asterisk13.spec
  37. rpm -Uvh ~/rpmbuild/RPMS/x86_64/asterisk13-[a-l]*.rpm --force
  38. rpm -Uvh ~/rpmbuild/RPMS/x86_64/asterisk13-[n-r]*.rpm --force
  39. rpm -Uvh ~/rpmbuild/RPMS/x86_64/asterisk13-t*.rpm --force
  40. rpm -Uvh ~/rpmbuild/RPMS/x86_64/asterisk13-voicemail-13*.rpm --force
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement