/[gentoo-x86]/net-misc/vtun/vtun-2.5-r1.ebuild
Gentoo

Contents of /net-misc/vtun/vtun-2.5-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.13 - (show annotations) (download)
Sun Oct 29 09:24:47 2006 UTC (12 years, 10 months ago) by dragonheart
Branch: MAIN
CVS Tags: HEAD
Changes since 1.12: +1 -1 lines
FILE REMOVED
embarrasing QA fixes as per bug #150112 thanks Patrick
(Portage version: 2.1.2_rc1)
 (Signed Manifest commit)

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/vtun/vtun-2.5-r1.ebuild,v 1.12 2005/11/13 06:21:54 dragonheart Exp $
4
5 IUSE="ssl"
6
7 DESCRIPTION="Tunneling software to use the universal tunnel"
8 HOMEPAGE="http://vtun.sourceforge.net"
9 KEYWORDS="x86 sparc "
10 LICENSE="GPL-2"
11 SLOT="0"
12 DEPEND=">=sys-libs/zlib-1.1.4
13 =dev-libs/lzo-1*
14 ssl? ( >=dev-libs/openssl-0.9.6c-r1 )
15 >=sys-kernel/linux-headers-2.4.18"
16 #RDEPEND=""
17 SRC_URI="mirror://sourceforge/vtun/${P}.tar.gz"
18 S=${WORKDIR}/vtun
19
20 src_compile() {
21 if ! use ssl
22 then
23 use_opts="--disable-ssl"
24 fi
25
26 ./configure \
27 --host=${CHOST} \
28 --prefix=/usr \
29 --infodir=/usr/share/info \
30 --mandir=/usr/share/man \
31 $use_opts || die "./configure failed"
32 mv config.h config.h.orig
33 mv cfg_file.y cfg_file.y.orig
34 sed "s,/* #undef HAVE_LINUX_IF_TUN_H */,#define HAVE_LINUX_IF_TUN_H 1," \
35 config.h.orig >config.h
36 sed "s,expect 18,expect 20," \
37 cfg_file.y.orig >cfg_file.y
38
39 # Rename this, because its from cyrus, we want the openssl one.
40 if [ -f /usr/include/md5.h ]; then
41 mv /usr/include/md5.h /usr/include/md5.h.vtun_compile
42 fi
43
44 # If this doesnt work, we only remember that we failed, so
45 # we always rename the /etc/include/md5.h file back.
46 emake \
47 ETC_DIR=/etc \
48 VAR_DIR=/var || FAILED=1
49
50 # OK, we're done, rename the cyrus one back to what it was.
51 if [ -f /usr/include/md5.h.vtun_compile -a
52 ! -f /usr/include/md5.h ]; then
53 mv /usr/include/md5.h.vtun_compile /usr/include/md5.h
54 fi
55 if [ 0$FAILED -ne 0 ]; then
56 die
57 fi
58 }
59
60 src_install () {
61 make \
62 prefix=${D}/usr \
63 ETC_DIR=${D}/etc \
64 VAR_DIR=${D}/var \
65 INFO_DIR=${D}/usr/share/info \
66 MAN_DIR=${D}/usr/share/man install || die
67
68 dodoc ChangeLog Credits FAQ README* TODO vtund.conf
69
70 exeinto etc/init.d;
71 newexe ${FILESDIR}/vtun.rc vtun
72
73 insinto etc
74 doins ${FILESDIR}/vtund-start.conf
75 }

  ViewVC Help
Powered by ViewVC 1.1.20