/[gentoo-x86]/net-misc/partysip/partysip-2.2.3.ebuild
Gentoo

Contents of /net-misc/partysip/partysip-2.2.3.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Tue Dec 25 13:13:30 2012 UTC (7 years, 1 month ago) by pacho
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +1 -1 lines
FILE REMOVED
Drop masked for removal package

1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/partysip/partysip-2.2.3.ebuild,v 1.6 2008/04/29 20:02:10 drac Exp $
4
5 inherit eutils autotools
6
7 DESCRIPTION="Modular and extensible SIP proxy"
8 HOMEPAGE="http://savannah.nongnu.org/projects/partysip/"
9 SRC_URI="http://savannah.gnu.org/download/${PN}/${P}.tar.gz"
10
11 LICENSE="LGPL-2" # not 100% about -2, but core is LGPL
12 SLOT="0"
13 KEYWORDS="~ppc ~sparc ~x86"
14 IUSE="berkdb debug syslog"
15
16 DEPEND="=net-libs/libosip-2*
17 berkdb? ( >=sys-libs/db-3.2 )"
18
19 src_unpack() {
20 unpack ${A}
21 cd "${S}"
22 epatch "${FILESDIR}"/${P}-configure.diff
23
24 # fix libresolv check in configure.in (#107885)
25 # instead of res_query, we search for the real (internal)
26 # function name __res_query, because res_query isn't in the symbol
27 # list of libresolv on amd64
28 epatch "${FILESDIR}"/${P}-libresolv-check.diff
29
30 # remove unused check in auth plugin (#107886)
31 # breaks authentication otherwise
32 epatch "${FILESDIR}"/${P}-fix_auth.diff
33
34 # put partysip binary into /usr/sbin
35 sed -i -e "s:^bin_PROGRAMS:sbin_PROGRAMS:" \
36 src/Makefile.am tools/Makefile.am
37
38 AT_M4DIR="scripts" eautoreconf
39 }
40
41 src_compile() {
42 local myconf
43
44 # berkdb3 (preferred) / gdbm (no-worky) / no db...
45 if use berkdb; then
46 myconf="--with-db=susedb3"
47 # elif use gdbm; then
48 # myconf="--with-db=gdbm"
49 # else
50 # myconf="--with-db=no"
51 fi
52
53 econf \
54 --sbindir=/usr/sbin \
55 --enable-semaphore \
56 --enable-sysv \
57 `use_enable debug trace` \
58 `use_enable debug debug` \
59 `use_enable syslog` \
60 ${myconf} || die
61
62 emake || die
63 }
64
65 src_install () {
66 make DESTDIR="${D}" install || die
67
68 insinto /etc/partysip
69 doins conf/partysip.conf
70
71 chmod 750 "${D}"etc/partysip
72 chmod 640 "${D}"etc/partysip/partysip.conf
73
74 newinitd "${FILESDIR}"/partysip.rc6 partysip
75 newconfd "${FILESDIR}"/partysip.confd partysip
76
77 dodoc README ChangeLog TODO AUTHORS NEWS
78 }
79
80 pkg_postinst() {
81 elog "Remember to edit /etc/partysip/partysip.conf!"
82 }

  ViewVC Help
Powered by ViewVC 1.1.20