/[gentoo-x86]/net-misc/gnugk/gnugk-2.0.6.ebuild
Gentoo

Contents of /net-misc/gnugk/gnugk-2.0.6.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (show annotations) (download)
Sat Jul 30 00:53:09 2005 UTC (14 years, 4 months ago) by stkn
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
Removing old version
(Portage version: 2.0.51.19)

1 # Copyright 1999-2005 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/net-misc/gnugk/gnugk-2.0.6.ebuild,v 1.5 2005/03/24 22:14:03 pvdabeel Exp $
4
5 inherit eutils
6
7 IUSE="mysql ldap radius accounting"
8
9 DESCRIPTION="Advanced H.323 gatekeeper"
10 HOMEPAGE="http://www.gnugk.org/"
11 SRC_URI="mirror://sourceforge/openh323gk/gnugk-${PV}.tgz"
12
13 S=${WORKDIR}/openh323gk
14
15 # avoid problems when using portage on e.g. freebsd
16 MY_OS="`uname -s | tr [:upper:] [:lower:]`"
17
18 SLOT="0"
19 KEYWORDS="~x86"
20 LICENSE="GPL-2"
21
22 DEPEND=">=net-libs/openh323-1.12.2-r1
23 mysql? ( >=dev-db/mysql++-1.7.9-r2 )
24 ldap? ( net-nds/openldap )"
25
26 pkg_setup() {
27 # check if under_short does exist
28 if use mysql && [ ! -f /usr/include/mysql++/undef_short ]; then
29 ewarn "mysql USE flag is set, but mysql++ is missing an"
30 ewarn "include file (\"/usr/include/mysql++/undef_short\")"
31 ewarn "if emerge fails, please try again with"
32 ewarn " USE="-mysql" emerge ${PN}"
33 ebeep 5
34 epause 5
35 fi
36 }
37
38 src_unpack() {
39 unpack ${A}
40
41 cd ${S}
42 # change include path for mysql++
43 epatch ${FILESDIR}/gnugk-${PV}-gentoo.diff
44 }
45
46 src_compile() {
47 local myconf
48
49 use ldap && \
50 myconf="${myconf} HAS_LDAP=1"
51
52 use mysql || \
53 myconf="${myconf} NO_MYSQL=1"
54
55 use radius || \
56 myconf="${myconf} NO_RADIUS=1"
57
58 use accounting && \
59 myconf="${myconf} HAS_ACCT=1"
60
61 PWLIBDIR=/usr/share/pwlib \
62 OPENH323DIR=/usr/share/openh323 \
63 emake ${myconf} opt || die
64 }
65
66 src_install() {
67 dodir /usr/sbin /etc/gnugk
68 dosbin obj_${MY_OS}_${ARCH}_r/gnugk
69
70 insinto /etc/gnugk
71 doins etc/*
72
73 # install ldap schema file
74 if use ldap && [ -d /etc/openldap/schema ]; then
75 insinto /etc/openldap/schema
76 doins etc/voip.schema
77 rm -f ${D}/etc/gnugk/voip.schema
78 fi
79
80 dodoc changes.txt readme.txt copying docs/*
81 mv ${D}/etc/gnugk/*.pl ${D}/usr/share/doc/${PF}
82
83 # install old documentation files,
84 # they may be useful...
85 docinto old
86 dodoc docs/old/*
87
88 exeinto /etc/init.d/
89 newexe ${FILESDIR}/gnugk.rc6 gnugk
90
91 insinto /etc/conf.d/
92 newins ${FILESDIR}/gnugk.confd gnugk
93 }

  ViewVC Help
Powered by ViewVC 1.1.20