# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils DESCRIPTION="A native SIP communications system for voice, presence, messaging and collaboration - sipXregistry" HOMEPAGE="http://www.sipfoundry.org/" SRC_URI="http://sipxecs.sipfoundry.org/pub/sipXecs/${PV/.0/}/SRC/${P}.tar.gz" SIPXUSER="sipx" SIPXGROUP=${SIPXUSER} SIPXHOMEDIR="/usr" LICENSE="LGPL-2" SLOT="0" KEYWORDS="~x86" IUSE="doc latex ssl" RESTRICT="nomirror" DEPEND=" >=dev-util/cppunit-1.10.2 doc? ( >=app-doc/doxygen-1.4.2 ) ssl? ( >=dev-libs/openssl-0.9.7l ) =net-misc/sipx-base-${PV} =net-misc/sipxcommserverlib-${PV} " RDEPEND="" src_unpack() { unpack ${A} } src_compile() { econf \ SIPXPBXUSER=${SIPXUSER} \ `use_enable doc doxygen` \ `use_enable latex latex-docs` \ `use_enable ssl sip-tls` \ --prefix=/usr \ --localstatedir=/var \ --with-sipxportinc=/usr/include \ --with-sipxportlib=/usr/lib \ --with-sipxmediainc=/usr/include \ --with-sipxmedialib=/usr/lib \ --with-sipxtackinc=/usr/include \ --with-sipxtacklib=/usr/lib \ || die "Error: econf failed" emake || die "Error: emake failed" } src_install() { make DESTDIR=${D} install || die "Error: install failed." chown ${SIPXUSER}:${SIPXGROUP} ${D}/etc/sipxpbx/mappingrules.xml.in chown ${SIPXUSER}:${SIPXGROUP} ${D}/etc/sipxpbx/fallbackrules.xml.in chown ${SIPXUSER}:${SIPXGROUP} ${D}/etc/sipxpbx/registrar-config.in chown ${SIPXUSER}:${SIPXGROUP} \ ${D}/etc/sipxpbx/process.d/sipregistrar.process.xml }