summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Olexa <darkside@gentoo.org>2009-02-12 04:47:00 +0000
committerJeremy Olexa <darkside@gentoo.org>2009-02-12 04:47:00 +0000
commit602bc34c1ad589499ea3e0b2e1619ce446c55960 (patch)
treedb019259180d4c3605fb163456eb621ddc127107 /net-voip/gnugk
parentFix building with gcc-4.3 for bug #256218. Thanks to Nick S. Novikov for (diff)
downloadgentoo-2-602bc34c1ad589499ea3e0b2e1619ce446c55960.tar.gz
gentoo-2-602bc34c1ad589499ea3e0b2e1619ce446c55960.tar.bz2
gentoo-2-602bc34c1ad589499ea3e0b2e1619ce446c55960.zip
version bump by Mounir Lamouri, bug 251571
(Portage version: 2.2_rc23/cvs/Linux x86_64)
Diffstat (limited to 'net-voip/gnugk')
-rw-r--r--net-voip/gnugk/ChangeLog9
-rw-r--r--net-voip/gnugk/gnugk-2.2.7.ebuild115
2 files changed, 122 insertions, 2 deletions
diff --git a/net-voip/gnugk/ChangeLog b/net-voip/gnugk/ChangeLog
index e9e84bc135a8..13ed3640d66f 100644
--- a/net-voip/gnugk/ChangeLog
+++ b/net-voip/gnugk/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for net-voip/gnugk
-# Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-voip/gnugk/ChangeLog,v 1.5 2008/08/16 16:22:29 tove Exp $
+# Copyright 2000-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-voip/gnugk/ChangeLog,v 1.6 2009/02/12 04:47:00 darkside Exp $
+
+*gnugk-2.2.7 (12 Feb 2009)
+
+ 12 Feb 2009; Jeremy Olexa <darkside@gentoo.org> +gnugk-2.2.7.ebuild:
+ version bump by Mounir Lamouri, bug 251571
16 Aug 2008; Torsten Veller <tove@gentoo.org> metadata.xml:
Remove stkn from metadata.xml (#27693)
diff --git a/net-voip/gnugk/gnugk-2.2.7.ebuild b/net-voip/gnugk/gnugk-2.2.7.ebuild
new file mode 100644
index 000000000000..c259daba46cb
--- /dev/null
+++ b/net-voip/gnugk/gnugk-2.2.7.ebuild
@@ -0,0 +1,115 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-voip/gnugk/gnugk-2.2.7.ebuild,v 1.1 2009/02/12 04:47:00 darkside Exp $
+
+EAPI="2"
+
+inherit eutils
+
+DESCRIPTION="GNU H.323 gatekeeper"
+HOMEPAGE="http://www.gnugk.org/"
+SRC_URI="mirror://sourceforge/openh323gk/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+# dev-db/firebird isn't keyworded for ppc but firebird IUSE is masked for ppc
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE="doc firebird mysql postgres radius linguas_en linguas_es linguas_fr"
+
+# TODO: when h323plus will be in portage tree, add it as || dep with openh323
+RDEPEND=">=dev-libs/pwlib-1.7.5.2
+ >=net-libs/openh323-1.14.2
+ dev-libs/openssl
+ firebird? ( dev-db/firebird )
+ mysql? ( virtual/mysql )
+ postgres? ( virtual/postgresql-base )"
+DEPEND="${RDEPEND}
+ doc? ( app-text/linuxdoc-tools )"
+
+pkg_setup() {
+ if use doc && ! use linguas_en && ! use linguas_es && ! use linguas_fr; then
+ elog "No linguas specified."
+ elog "English documentation will be installed."
+ fi
+}
+
+src_prepare() {
+ if use firebird; then
+ # fix build with firebird 2.1
+ epatch "${FILESDIR}"/${P}-firebird-2.1.patch
+
+ # build sqlauth and sqlacc when firebird is supported
+ epatch "${FILESDIR}"/${P}-configure.patch
+ fi
+}
+
+src_configure() {
+ # --with-large-fdset=4096 is added because of bug #128102
+ # and it is recommanded in the online manual
+ econf \
+ $(use_enable firebird) \
+ $(use_enable mysql) \
+ $(use_enable postgres pgsql) \
+ $(use_enable radius) \
+ --with-large-fdset=4096
+}
+
+src_compile() {
+ # PASN_NOPRINT should be set for -debug but it's buggy
+ # better to prevent issues and keep default settings
+ # `make debugdepend debugshared` and `make debug` failed (so no debug)
+ # `make optdepend optnoshared` also failed (so no static)
+
+ # fails with -j2
+ emake -j1 optdepend optshared || die "emake failed"
+
+ # build tool addpasswd
+ emake addpasswd || die "emake addpasswd failed"
+
+ if use doc; then
+ cd docs/manual
+
+ if use linguas_en || ( ! use linguas_es && ! use linguas_fr ); then
+ emake html || die "emake en doc failed"
+ fi
+
+ if use linguas_es; then
+ emake html-es || die "emake es doc failed"
+ fi
+
+ if use linguas_fr; then
+ emake html-fr || die "emake fr doc failed"
+ fi
+ cd ../..
+ fi
+}
+
+src_install() {
+ dosbin obj_*_*_*/${PN} || die "dosbin failed"
+ dosbin obj_*_*_*/addpasswd || die "dosbin failed"
+
+ dodir /etc/${PN}
+ insinto /etc/${PN}
+ doins etc/* || die "doins etc/* failed"
+
+ dodoc changes.txt readme.txt || die "dodoc failed"
+
+ if use doc; then
+ dodoc docs/*.txt docs/*.pdf || die "dodoc failed"
+
+ if use linguas_en || ( ! use linguas_es && ! use linguas_fr ); then
+ dohtml docs/manual/manual*.html || die "dohtml failed"
+ fi
+ if use linguas_fr; then
+ dohtml docs/manual/fr/manual-fr*.html || die "dohtml failed"
+ fi
+ if use linguas_es; then
+ dohtml docs/manual/es/manual-es*.html || die "dohtml failed"
+ fi
+ fi
+
+ doman docs/${PN}.1 || die "doman failed"
+
+ newinitd "${FILESDIR}"/${PN}.rc6 ${PN}
+ newconfd "${FILESDIR}"/${PN}.confd ${PN}
+}