summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoy Marples <uberlord@gentoo.org>2005-10-14 13:04:32 +0000
committerRoy Marples <uberlord@gentoo.org>2005-10-14 13:04:32 +0000
commit439c0337843846048bf8274841be6f62241c8aa1 (patch)
tree35d1bdf5558e9dcc2ad0380bb5a9db1933d678b3 /net-misc/openvpn
parentmake pycairo >=0.9.0 due to #107331 (diff)
downloadgentoo-2-439c0337843846048bf8274841be6f62241c8aa1.tar.gz
gentoo-2-439c0337843846048bf8274841be6f62241c8aa1.tar.bz2
gentoo-2-439c0337843846048bf8274841be6f62241c8aa1.zip
init script now modprobes tun if /dev/tun does not exist and errors
if tun/tap support is not enabled in the kernel iproute2 USE flag fixed as --disable-iproute2 also enables it in the Makefile (Portage version: 2.0.51.22-r3)
Diffstat (limited to 'net-misc/openvpn')
-rw-r--r--net-misc/openvpn/ChangeLog11
-rw-r--r--net-misc/openvpn/Manifest5
-rw-r--r--net-misc/openvpn/files/digest-openvpn-2.0.2-r3 (renamed from net-misc/openvpn/files/digest-openvpn-2.0.2-r2)0
-rw-r--r--net-misc/openvpn/files/openvpn.init10
-rw-r--r--net-misc/openvpn/openvpn-2.0.2-r3.ebuild (renamed from net-misc/openvpn/openvpn-2.0.2-r2.ebuild)12
5 files changed, 30 insertions, 8 deletions
diff --git a/net-misc/openvpn/ChangeLog b/net-misc/openvpn/ChangeLog
index dbf36688de07..bfde44451277 100644
--- a/net-misc/openvpn/ChangeLog
+++ b/net-misc/openvpn/ChangeLog
@@ -1,6 +1,15 @@
# ChangeLog for net-misc/openvpn
# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/openvpn/ChangeLog,v 1.45 2005/10/14 11:37:59 uberlord Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/openvpn/ChangeLog,v 1.46 2005/10/14 13:04:32 uberlord Exp $
+
+*openvpn-2.0.2-r3 (14 Oct 2005)
+
+ 14 Oct 2005; Roy Marples <uberlord@gentoo.org> files/openvpn.init,
+ -openvpn-2.0.2-r2.ebuild, +openvpn-2.0.2-r3.ebuild:
+ init script now modprobes tun if /dev/tun does not exist and errors
+ if tun/tap support is not enabled in the kernel
+
+ iproute2 USE flag fixed as --disable-iproute2 also enables it in the Makefile
*openvpn-2.0.2-r2 (14 Oct 2005)
diff --git a/net-misc/openvpn/Manifest b/net-misc/openvpn/Manifest
index 28a747bd308b..51045c6f9a85 100644
--- a/net-misc/openvpn/Manifest
+++ b/net-misc/openvpn/Manifest
@@ -1,14 +1,15 @@
MD5 57db3db67cafcb3a5bb7a07eb4a3b884 openvpn-1.5.0-r1.ebuild 1334
MD5 39940f47a19b6f46fd8bef9cc133d15b openvpn-2.0.2.ebuild 2164
MD5 41623f5bd4f728bd9018e69514149bc5 metadata.xml 452
-MD5 0a0d7825c4b81baf467fac99c257ec49 openvpn-2.0.2-r2.ebuild 3316
MD5 08f262baff75478abcdd394904973810 ChangeLog 6962
+MD5 88a4fa618cec77f4d7e53e58ef76b12a openvpn-2.0.2-r3.ebuild 3482
MD5 c0bb9d10424cda8d9361368015b324ca openvpn-1.6.0.ebuild 1338
MD5 eb2aeb437e7815de4810170acb79480c openvpn-2.0.1.ebuild 2159
MD5 64180e225493c8fc2e085071ff65897b files/digest-openvpn-1.6.0 65
MD5 e173c8d27fc623ce79d2c5e83854b28a files/openvpn 1318
-MD5 e11cacd58f0b6b9900317d4d0d4edb8f files/openvpn.init 975
+MD5 9a4a53360a88a0c7d9b9c020921e48a8 files/openvpn.init 1116
MD5 7668c8296962628c96186d860d6a878d files/digest-openvpn-2.0.1 65
+MD5 378f09becb8ef03cad8e76a44c7210f9 files/digest-openvpn-2.0.2-r3 65
MD5 51eea8a2c9a5189571de49ad32b88ac1 files/digest-openvpn-1.5.0-r1 65
MD5 378f09becb8ef03cad8e76a44c7210f9 files/digest-openvpn-2.0.2-r2 65
MD5 378f09becb8ef03cad8e76a44c7210f9 files/digest-openvpn-2.0.2 65
diff --git a/net-misc/openvpn/files/digest-openvpn-2.0.2-r2 b/net-misc/openvpn/files/digest-openvpn-2.0.2-r3
index 02f141ce8f39..02f141ce8f39 100644
--- a/net-misc/openvpn/files/digest-openvpn-2.0.2-r2
+++ b/net-misc/openvpn/files/digest-openvpn-2.0.2-r3
diff --git a/net-misc/openvpn/files/openvpn.init b/net-misc/openvpn/files/openvpn.init
index 332a86f55f56..6933efc4d529 100644
--- a/net-misc/openvpn/files/openvpn.init
+++ b/net-misc/openvpn/files/openvpn.init
@@ -14,6 +14,12 @@ depend() {
}
checktundevice() {
+ if [[ ! -e /dev/net/tun ]]; then
+ if ! modprobe tun ; then
+ eerror "TUN/TAP support is not available in this kernel"
+ return 1
+ fi
+ fi
if [[ -h /dev/net/tun && -c /dev/misc/net/tun ]]; then
ebegin "Detected broken /dev/net/tun symlink, fixing..."
rm -f /dev/net/tun
@@ -23,10 +29,10 @@ checktundevice() {
}
start() {
+ ebegin "Starting ${myservice}"
+
checktundevice || return 1
- ebegin "Starting ${myservice}"
-
if [[ ! -e "${VPNCONF}" ]]; then
eend 1 "${VPNCONF} does not exist"
return 1
diff --git a/net-misc/openvpn/openvpn-2.0.2-r2.ebuild b/net-misc/openvpn/openvpn-2.0.2-r3.ebuild
index 84741fb5e21d..05a1679eac2d 100644
--- a/net-misc/openvpn/openvpn-2.0.2-r2.ebuild
+++ b/net-misc/openvpn/openvpn-2.0.2-r3.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/openvpn/openvpn-2.0.2-r2.ebuild,v 1.1 2005/10/14 11:37:59 uberlord Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/openvpn/openvpn-2.0.2-r3.ebuild,v 1.1 2005/10/14 13:04:32 uberlord Exp $
inherit eutils gnuconfig multilib
@@ -26,13 +26,19 @@ src_unpack() {
}
src_compile() {
- econf \
- $(use_enable iproute2) \
+ local myconf=""
+ # We cannot use use_enable with iproute2 as the Makefile stupidly
+ # enables it with --disable-iproute2
+ use iproute2 && myconf="${myconf} --enable-iproute2"
+
+ econf ${myconf} \
$(use_enable ssl) \
$(use_enable ssl crypto) \
$(use_enable threads pthread) \
|| die "configure failed"
+
use static && sed -e -i '/^LIBS/s/LIBS = /LIBS = -static /' Makefile
+
emake || die "make failed"
if ! use minimal ; then