# Copyright 1999-2007 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 - sipXpublisher" HOMEPAGE="http://www.sipfoundry.org/" SRC_URI="http://sipxecs.sipfoundry.org/temp/sipXecs/3.8/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-libs/libpcre-4.5 >=dev-util/cppunit-1.9 doc? ( app-doc/doxygen ) ssl? ( >=dev-libs/openssl-0.9.8d ) =net-misc/sipx-base-${PV} =net-misc/sipxtacklib-${PV} =net-misc/sipxportlib-${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/lib/sipx \ --bindir=/usr/lib/sipx \ --sbindir=/usr/lib/sipx \ --libexecdir=/usr/lib/sipx \ --libdir=/usr/lib \ --includedir=/usr/include \ --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/sipxpbx/status-config.in chown ${SIPXUSER}:${SIPXGROUP} ${D}etc/sipxpbx/sipxpbx/status-plugin.xml.in chown ${SIPXUSER}:${SIPXGROUP} ${D}etc/sipxpbx/status-config.in chown ${SIPXUSER}:${SIPXGROUP} ${D}etc/sipxpbx/status-plugin.xml.in chown ${SIPXUSER}:${SIPXGROUP} \ ${D}etc/sipxpbx/sipxpbx/process.d/sipstatus.process.xml }