Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- yum install epel-release
- yum install mISDN-devel
- yum install rpm-build
- yum groupinstall "Development Tools"
- yum remove epel-release
- mkdir -p ~/rpmbuild/{BUILD,RPMS,SOURCES,SPECS,SRPMS}
- echo '%_topdir %(echo $HOME)/rpmbuild' > ~/.rpmmacros
- 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.
- cd ~/rpmbuild/SOURCES
- wget http://download.opensuse.org/tumbleweed/repo/src-oss/suse/src/mISDNuser-2.0.19-1.7.src.rpm
- wget http://docs.acsdata.co.nz/asterisk-cisco/includes/cisco-usecallmanager-13.10.0.patch
- wget http://yum.freepbxdistro.org/pbx/SRPMS/asterisk/13/asterisk13-13.10.0-1.shmz65.1.117.src.rpm
- Then it's just a case of unpack the files, tell FreePBX about the new patch, compile the files and install them:
- rpm --nomd5 -ivh ~/rpmbuild/SOURCES/asterisk13-13.10.0-1.shmz65.1.117.src.rpm
- rpm --nomd5 -ivh ~/rpmbuild/SOURCES/mISDNuser-2.0.19-1.7.src.rpm
- yum-builddep ~/rpmbuild/SPECS/mISDNuser.spec
- rpmbuild -bp ~/rpmbuild/SPECS/mISDNuser.spec
- rpmbuild -ba ~/rpmbuild/SPECS/mISDNuser.spec
- rpm -Uvh ~/rpmbuild/RPMS/x86_64/libmisdn1-*.rpm
- rpm -Uvh ~/rpmbuild/RPMS/x86_64/mISDNuser*.rpm
- yum-builddep ~/rpmbuild/SPECS/asterisk13.spec
- rpmbuild -bp ~/rpmbuild/SPECS/asterisk13.spec
- nano ~/rpmbuild/SPECS/asterisk13.spec
- [locate the first instance of the word "Patch12" and add this exact line directly below it:]
- Patch13: cisco-usecallmanager-13.10.0.patch
- [then search for "patch12" (note the change in case) and add this exact line directly below it:]
- %patch13 -p1
- [save the file and close the editor]
- rpmbuild -bp ~/rpmbuild/SPECS/asterisk13.spec
- rpmbuild -ba ~/rpmbuild/SPECS/asterisk13.spec
- rpm -Uvh ~/rpmbuild/RPMS/x86_64/asterisk13-[a-l]*.rpm --force
- rpm -Uvh ~/rpmbuild/RPMS/x86_64/asterisk13-[n-r]*.rpm --force
- rpm -Uvh ~/rpmbuild/RPMS/x86_64/asterisk13-t*.rpm --force
- rpm -Uvh ~/rpmbuild/RPMS/x86_64/asterisk13-voicemail-13*.rpm --force
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement