# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/net-misc/partysip/partysip-2.2.3.ebuild,v 1.2 2005/07/18 11:51:31 dholm Exp $ IUSE="berkdb debug syslog" inherit eutils DESCRIPTION="Modular and extensible SIP proxy" HOMEPAGE="http://savannah.nongnu.org/projects/partysip/" SRC_URI="http://savannah.gnu.org/download/${PN}/${P}.tar.gz" SLOT="0" LICENSE="LGPL-2" # not 100% about -2, but core is LGPL KEYWORDS="~ppc ~sparc ~x86" DEPEND="virtual/libc >=net-libs/libosip-2.2.1 berkdb? ( =sys-libs/db-3* )" # gdbm? ( sys-libs/gdbm )" src_unpack() { unpack ${A} cd ${S} epatch ${FILESDIR}/${P}-configure.diff # put partysip binary into /usr/sbin sed -i -e "s:^bin_PROGRAMS:sbin_PROGRAMS:" \ src/Makefile.am tools/Makefile.am # recreate configure autoreconf libtoolize --copy --force } src_compile() { local myconf # berkdb3 (preferred) / gdbm (no-worky) / no db... if use berkdb; then myconf="--with-db=susedb3" # elif use gdbm; then # myconf="--with-db=gdbm" else myconf="--with-db=no" fi econf \ --sbindir=/usr/sbin \ --enable-semaphore \ --enable-sysv \ `use_enable debug trace` \ `use_enable debug debug` \ `use_enable syslog` \ ${myconf} || die emake || die } src_install () { make DESTDIR=${D} install || die insinto /etc/partysip doins conf/partysip.conf chmod 750 ${D}etc/partysip chmod 640 ${D}etc/partysip/partysip.conf newinitd ${FILESDIR}/partysip.rc6 partysip newconfd ${FILESDIR}/partysip.confd partysip dodoc README ChangeLog COPYING COPYING-2 TODO AUTHORS INSTALL NEWS } pkg_postinst() { einfo "Please edit /etc/partysip/partysip.conf!" }