summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Knoblich <stkn@gentoo.org>2003-10-26 19:46:52 +0000
committerStefan Knoblich <stkn@gentoo.org>2003-10-26 19:46:52 +0000
commitace670076e648ea747c64610cb326ac56e77c59a (patch)
treefe17d2bfb1d3f3ed1f677fdff846fc69d29afac5
parentVersion bumped. (diff)
downloadhistorical-ace670076e648ea747c64610cb326ac56e77c59a.tar.gz
historical-ace670076e648ea747c64610cb326ac56e77c59a.tar.bz2
historical-ace670076e648ea747c64610cb326ac56e77c59a.zip
new package
-rw-r--r--net-misc/gnugk/ChangeLog11
-rw-r--r--net-misc/gnugk/Manifest7
-rw-r--r--net-misc/gnugk/files/digest-gnugk-2.0.61
-rw-r--r--net-misc/gnugk/files/gnugk-2.0.6-gentoo.diff39
-rw-r--r--net-misc/gnugk/files/gnugk.confd12
-rw-r--r--net-misc/gnugk/files/gnugk.rc621
-rw-r--r--net-misc/gnugk/gnugk-2.0.6.ebuild102
-rw-r--r--net-misc/gnugk/metadata.xml9
8 files changed, 202 insertions, 0 deletions
diff --git a/net-misc/gnugk/ChangeLog b/net-misc/gnugk/ChangeLog
new file mode 100644
index 000000000000..8c7bf2be0e90
--- /dev/null
+++ b/net-misc/gnugk/ChangeLog
@@ -0,0 +1,11 @@
+# ChangeLog for net-misc/gnugk
+# Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/gnugk/ChangeLog,v 1.1 2003/10/26 19:45:46 stkn Exp $
+
+*gnugk-2.0.6 (26 Oct 2003)
+
+ 26 Oct 2003; Stefan Knoblich <stkn@gentoo.org> gnugk-2.0.6.ebuild,
+ metadata.xml, files/gnugk-2.0.6-gentoo.diff, files/gnugk.confd,
+ files/gnugk.rc6:
+ initial import.
+
diff --git a/net-misc/gnugk/Manifest b/net-misc/gnugk/Manifest
new file mode 100644
index 000000000000..a3dd6b58716f
--- /dev/null
+++ b/net-misc/gnugk/Manifest
@@ -0,0 +1,7 @@
+MD5 44cf247f04cc83413fcb40ed59d0847a metadata.xml 248
+MD5 c003ba05f7fecfcb5b0ebf9a7bf82f07 gnugk-2.0.6.ebuild 2494
+MD5 07109080ee834f3906186070ba6afcaa ChangeLog 409
+MD5 77873cbff07e8b3b0dbc12ea5d4f0060 files/gnugk.rc6 538
+MD5 bde2e8379cf391b3ffffa57c618f5e40 files/digest-gnugk-2.0.6 60
+MD5 7c2af84d098f7e49f119f6eb3694b0e7 files/gnugk-2.0.6-gentoo.diff 972
+MD5 97a9cd44c630d1ff61d3b0f2b8e4b61e files/gnugk.confd 397
diff --git a/net-misc/gnugk/files/digest-gnugk-2.0.6 b/net-misc/gnugk/files/digest-gnugk-2.0.6
new file mode 100644
index 000000000000..013d6c4d3b24
--- /dev/null
+++ b/net-misc/gnugk/files/digest-gnugk-2.0.6
@@ -0,0 +1 @@
+MD5 cdef1c436e0abe729a5f079a363e0ed4 gnugk-2.0.6.tgz 365345
diff --git a/net-misc/gnugk/files/gnugk-2.0.6-gentoo.diff b/net-misc/gnugk/files/gnugk-2.0.6-gentoo.diff
new file mode 100644
index 000000000000..38abe1dd1bd0
--- /dev/null
+++ b/net-misc/gnugk/files/gnugk-2.0.6-gentoo.diff
@@ -0,0 +1,39 @@
+--- Makefile.ori 2003-09-28 20:23:17.000000000 +0200
++++ Makefile 2003-09-28 20:27:40.000000000 +0200
+@@ -130,23 +130,34 @@
+ # MySQL support
+ # has to be added after LDAP support because order of -I options is crucial
+ ifndef NO_MYSQL
++ifndef MYSQLPPDIR
++ifneq (,$(wildcard /usr/include/mysql++))
++MYSQLPPDIR := /usr/include/mysql++
++export MYSQLPPDIR
++endif
++endif
++
+ ifndef MYSQLDIR
+-ifneq (,$(wildcard /usr/include/mysql/mysql++))
++ifneq (,$(wildcard /usr/include/mysql))
+ MYSQLDIR := /usr/include/mysql
+ export MYSQLDIR
+ endif
+ endif
+
++ifdef MYSQLPPDIR
+ ifdef MYSQLDIR
++ifneq (,$(wildcard $(MYSQLPPDIR)))
+ ifneq (,$(wildcard $(MYSQLDIR)))
+ STDCCFLAGS_stub := $(STDCCFLAGS)
+-STDCCFLAGS = -DHAS_MYSQL=1 -I$(MYSQLDIR) $(STDCCFLAGS_stub)
++STDCCFLAGS = -DHAS_MYSQL=1 -I$(MYSQLDIR) -I$(MYSQLPPDIR) $(STDCCFLAGS_stub)
+ #LDFLAGS += -L$(MYSQLDIR)/lib
+ ENDLDLIBS += -lsqlplus
+ HAS_MYSQL = 1
+ endif
+ endif
+ endif
++endif
++endif
+ # end of MySQL configuration
+
+ ifndef NO_WAITARQ
diff --git a/net-misc/gnugk/files/gnugk.confd b/net-misc/gnugk/files/gnugk.confd
new file mode 100644
index 000000000000..32d3164ffab2
--- /dev/null
+++ b/net-misc/gnugk/files/gnugk.confd
@@ -0,0 +1,12 @@
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# $Header: /var/cvsroot/gentoo-x86/net-misc/gnugk/files/gnugk.confd,v 1.1 2003/10/26 19:45:46 stkn Exp $
+
+#
+# see gnugk --help for a complete list of options
+#
+OPTS=""
+
+### DON'T EDIT ANYTHING BELOW ###
+
+OPTIONS="-c /etc/gnugk/gnugk.ini --pid /var/run/gnugk.pid ${OPTS}"
diff --git a/net-misc/gnugk/files/gnugk.rc6 b/net-misc/gnugk/files/gnugk.rc6
new file mode 100644
index 000000000000..e5e127ed9988
--- /dev/null
+++ b/net-misc/gnugk/files/gnugk.rc6
@@ -0,0 +1,21 @@
+#!/sbin/runscript
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# $Header: /var/cvsroot/gentoo-x86/net-misc/gnugk/files/gnugk.rc6,v 1.1 2003/10/26 19:45:46 stkn Exp $
+
+depend() {
+ need net
+}
+
+start() {
+ ebegin "Starting H.323 Gatekeeper"
+ start-stop-daemon --start --quiet --background \
+ --exec /usr/sbin/gnugk -- ${OPTIONS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping H.323 Gatekeeper"
+ start-stop-daemon --stop --quiet --pidfile /var/run/gnugk.pid
+ eend $?
+}
diff --git a/net-misc/gnugk/gnugk-2.0.6.ebuild b/net-misc/gnugk/gnugk-2.0.6.ebuild
new file mode 100644
index 000000000000..e2d7462cf76d
--- /dev/null
+++ b/net-misc/gnugk/gnugk-2.0.6.ebuild
@@ -0,0 +1,102 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/gnugk/gnugk-2.0.6.ebuild,v 1.1 2003/10/26 19:45:46 stkn Exp $
+
+inherit eutils
+
+IUSE="mysql ldap radius accounting"
+
+DESCRIPTION="Advanced H.323 gatekeeper"
+HOMEPAGE="http://www.gnugk.org/"
+SRC_URI="mirror://sourceforge/openh323gk/gnugk-${PV}.tgz"
+
+S=${WORKDIR}/openh323gk
+
+# avoid problems when using portage on e.g. freebsd
+MY_OS="`uname -s | tr [:upper:] [:lower:]`"
+
+SLOT="0"
+KEYWORDS="~x86"
+LICENSE="GPL-2"
+
+DEPEND=">=net-libs/openh323-1.12.2-r1
+ mysql? ( >=dev-db/mysql++-1.7.9-r2 )
+ ldap? ( net-nds/openldap )"
+
+pkg_setup() {
+ # check if under_short does exist
+ if [ -n "`use mysql`" -a ! -f /usr/include/mysql++/undef_short ]
+ then
+ ewarn "mysql USE flag is set, but mysql++ is missing an"
+ ewarn "include file (\"/usr/include/mysql++/undef_short\")"
+ ewarn "if emerge fails, please try again with"
+ ewarn " USE="-mysql" emerge ${PN}"
+ echo -en "\a"; sleep 0.2 &>/dev/null; sleep 0,2 &>/dev/null
+ echo -en "\a"; sleep 1
+ echo -en "\a"; sleep 0.2 &>/dev/null; sleep 0,2 &>/dev/null
+ echo -en "\a"; sleep 1
+ echo -en "\a"; sleep 0.2 &>/dev/null; sleep 0,2 &>/dev/null
+ echo -en "\a"; sleep 1
+ echo -en "\a"; sleep 0.2 &>/dev/null; sleep 0,2 &>/dev/null
+ echo -en "\a"; sleep 1
+ echo -en "\a"; sleep 0.2 &>/dev/null; sleep 0,2 &>/dev/null
+ sleep 8
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+
+ cd ${S}
+ # change include path for mysql++
+ epatch ${FILESDIR}/gnugk-${PV}-gentoo.diff
+}
+
+src_compile() {
+ local myconf
+
+ use ldap && \
+ myconf="${myconf} HAS_LDAP=1"
+
+ use mysql || \
+ myconf="${myconf} NO_MYSQL=1"
+
+ use radius || \
+ myconf="${myconf} NO_RADIUS=1"
+
+ use accounting && \
+ myconf="${myconf} HAS_ACCT=1"
+
+ PWLIBDIR=/usr/share/pwlib \
+ OPENH323DIR=/usr/share/openh323 \
+ emake ${myconf} opt || die
+}
+
+src_install() {
+ dodir /usr/sbin /etc/gnugk
+ dosbin obj_${MY_OS}_${ARCH}_r/gnugk
+
+ insinto /etc/gnugk
+ doins etc/*
+
+ # install ldap schema file
+ if [ -n "`use ldap`" ] && [ -d /etc/openldap/schema ]; then
+ insinto /etc/openldap/schema
+ doins etc/voip.schema
+ rm -f ${D}/etc/gnugk/voip.schema
+ fi
+
+ dodoc changes.txt readme.txt copying docs/*
+ mv ${D}/etc/gnugk/*.pl ${D}/usr/share/doc/${PF}
+
+ # install old documentation files,
+ # they may be useful...
+ docinto old
+ dodoc docs/old/*
+
+ exeinto /etc/init.d/
+ newexe ${FILESDIR}/gnugk.rc6 gnugk
+
+ insinto /etc/conf.d/
+ newins ${FILESDIR}/gnugk.confd gnugk
+}
diff --git a/net-misc/gnugk/metadata.xml b/net-misc/gnugk/metadata.xml
new file mode 100644
index 000000000000..10f27dc5e06a
--- /dev/null
+++ b/net-misc/gnugk/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>voip</herd>
+<maintainer>
+ <email>stkn@gentoo.org</email>
+ <name>Stefan Knoblich</name>
+</maintainer>
+</pkgmetadata>