HowTo install sipX 3.6 on Gentoo

From SIPfoundry sipx, The Open Source SIP PBX for Linux - Calivia

Jump to: navigation, search
Important note: These are extremely raw notes of the latest install I did with sipX-3.6 on a fresh Gentoo. See also SipX_Ebuilds_for_Gentoo_Linux_-_Stable_3.4. -- mike


Contents

[edit] Install Java 1.5

If setting up a new system, you only need to add everything to /etc/portage/package.keywords (taken verbatim from the Gentoo Java Guide). If you are upgrading, follow the Gento Java Upgrade Guide and make sure java-check-environment does not report any errors.

For a fresh Gentoo install:

cat <<EOF>> /etc/portage/package.keywords
# Core Gentoo/Java Packagesdev-java/ant-core
dev-java/ant-tasks
dev-java/ant
dev-java/java-config
dev-java/java-config-wrapper
dev-java/javatoolkit
dev-java/sun-jce-bin
# JDKs
=dev-java/sun-jdk-1.4*
=dev-java/sun-jdk-1.5*
=dev-java/ibm-jdk-bin-1.4*
=dev-java/ibm-jdk-bin-1.5*
=dev-java/jrockit-jdk-bin-1.4*
=dev-java/jrockit-jdk-bin-1.5*
=dev-java/blackdown-jdk-1.4*
dev-java/kaffe
# JREs
=dev-java/sun-jre-bin-1.4*
=dev-java/sun-jre-bin-1.5*
=dev-java/ibm-jre-bin-1.4*
=dev-java/blackdown-jre-1.4*
# Virtuals
virtual/jdk
virtual/jre
# Compilers
dev-java/eclipse-ecj
dev-java/jikes
# Documentation
dev-java/java-sdk-docs
# Misc packages that have been updated to generation-2,
# where the generation-1 won't build and/or run properly
dev-java/lucene
# These have optional Java support, but need ~arch to function properly
# with generation-2
dev-util/subversion
sys-libs/db

[edit] Install Layman

Gentoo uses a program called Layman to manage portage tree overlays. If you do not yet have it installed, you will need to before you can setup the sipX overlay.

Code: Install Layman
emerge --ask app-portage/layman

Be sure the follow the post-installation instructions to complete setup.

The sipX overlay is a Subversion overlay. To use it, you will also need to have Subversion installed.

Code: Install Subversion
emerge --ask subversion

[edit] Setup the sipX Overlay

You can use Layman to install the sipX overlay on your system.

Code: Install sipx Overlay
layman -o file:///tmp/overlay.xml -a sipx

[edit] Configure Portage for masked Apache 2.2

cat <<EOF>>/etc/portage/package.unmask
=net-www/apache-2.2.2-r1
=dev-libs/apr-1.2.7-r2
=dev-libs/apr-util-1.2.7
EOF
cat <<EOF>>/etc/portage/package.keywords
=net-www/apache-2.2.2-r1 ~x86
=dev-libs/apr-1.2.7-r2 ~x86
=dev-libs/apr-util-1.2.7 ~x86 

[edit] Configure Portage for masked sipX-3.6 beta

cat <<EOF>>/etc/portage/package.keywords
>=www-apache/mod_cplusplus-1.5.2 ~x86
=net-misc/sipxportlib-3.6.0 ~x86
=net-misc/sipxtacklib-3.6.0 ~x86
=net-misc/sipxmedialib-3.6.0 ~x86
=net-misc/sipxmediaadapterlib-3.6.0 ~x86
=net-misc/sipxcalllib-3.6.0 ~x86
=net-misc/sipxcommserverlib-3.6.0 ~x86
=net-misc/sipxvxml-3.6.0 ~x86
=net-misc/sipxpublisher-3.6.0 ~x86
=net-misc/sipxregistry-3.6.0 ~x86
=net-misc/sipxproxy-3.6.0 ~x86
=net-misc/sipxconfig-3.6.0 ~x86
=net-misc/sipxpbx-3.6.0 ~x86
EOF

[edit] Configure for CDRs (optional)

Building support for CDRs will pull in Rubygems and other additional dependencies.

cat <<EOF>>/etc/portage/package.use
net-misc/sipxproxy calldetail
EOF

[edit] Emerge sipXpbx and all its dependencies

Emerging net-misc/sipxpbx will resolve all required dependencies and install all sipX packages.

emerge -av sipxpbx
Personal tools