From SIPfoundry sipx, The Open Source SIP PBX for Linux - Calivia
| Important note:
|
|
This ebuild is still work in progress. At this point sipXezPhone does not yet properly compile and work under Gentoo Linux.
|
Configure the Portage Overlay directory
Ebuilds should not be placed within the standard portage tree. Every time an 'emerge sync' is performed, local changes are lost. Portage can be configured to look for ebuilds in 'overlay directories'.
| Code: Create the portage overlay directory
|
mkdir /usr/local/portage
|
| Code: Add Portage overlay to /etc/make.conf
|
echo 'PORTDIR_OVERLAY="/usr/local/portage"' >> /etc/make.conf
|
Checkout Ebuilds and Related Files using Subversion
The fastest way to get the ebuilds is by checking them out using Subversion. If you do not have Subversion itself on your system, emerge it now. You can disable the installation of Apache by adding USE="-apache2".
| Code: Emerge Subversion
|
USE=-apache2" emerge --ask subversion
|
If you get the error: "svn: Unrecognized URL scheme"
you need to re-emerge subversion with the nowebdav USE flag unset
Emerge sipXezPhone
| Code: Unmask sipXezPhone ebuild
|
echo 'net-misc/sipxportlib ~x86' >> /etc/portage/package.keywords
echo 'net-misc/sipxtacklib ~x86' >> /etc/portage/package.keywords
echo 'net-misc/sipxcalllib ~x86' >> /etc/portage/package.keywords
echo 'net-misc/sipxmedialib ~x86' >> /etc/portage/package.keywords
echo 'net-misc/sipxezphone ~x86' >> /etc/portage/package.keywords
echo 'net-misc/sipxmediaadapterlib ~x86' >> /etc/portage/package.keywords
|
| Code: Emerge sipXezPhone Note: Does not build yet, see below
|
emerge --ask net-misc/sipxezphone
|
Debugging build of sipXezPhone
Use the following to check out the latest source from SVN at SIPfoundry.org and change into the source directory.
| Code: Download sipXezPhone source to /var/tmp/portage/sipxezphone-2.7_alpha/work
|
# download and copy to /var/tmp/portage/sipxezphone-2.7_alpha/work
ebuild /usr/local/portage/net-misc/sipxezphone/sipxezphone-2.7_alpha.ebuild unpack
cd /var/tmp/portage/sipxezphone-2.7_alpha/work
# set version of automake to use
export WANT_AUTOMAKE_1_6=1
# reconfigure (needed with subversion check-out)
autoreconf --install --force
|
Start sipXezPhone
-
Configure sipXezPhone