summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan Phillips <rphillips@gentoo.org>2003-05-20 18:05:19 +0000
committerRyan Phillips <rphillips@gentoo.org>2003-05-20 18:05:19 +0000
commit2ed9fd793d875cd292d3ea9de7a43149ae3a06c0 (patch)
tree5588f0b5afd0aa9ef1b62dab8b0e9c2ed730640d /net-misc/openvpn
parentnon-blocking solution of bug #20857 (diff)
downloadgentoo-2-2ed9fd793d875cd292d3ea9de7a43149ae3a06c0.tar.gz
gentoo-2-2ed9fd793d875cd292d3ea9de7a43149ae3a06c0.tar.bz2
gentoo-2-2ed9fd793d875cd292d3ea9de7a43149ae3a06c0.zip
Added init script
Diffstat (limited to 'net-misc/openvpn')
-rw-r--r--net-misc/openvpn/ChangeLog7
-rw-r--r--net-misc/openvpn/files/openvpn31
-rw-r--r--net-misc/openvpn/openvpn-1.3.2-r1.ebuild37
3 files changed, 74 insertions, 1 deletions
diff --git a/net-misc/openvpn/ChangeLog b/net-misc/openvpn/ChangeLog
index c7f3dc98c2e8..a8db8dff5784 100644
--- a/net-misc/openvpn/ChangeLog
+++ b/net-misc/openvpn/ChangeLog
@@ -1,9 +1,14 @@
# ChangeLog for net-misc/openvpn
# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/openvpn/ChangeLog,v 1.7 2003/02/12 08:30:01 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/openvpn/ChangeLog,v 1.8 2003/05/20 18:05:19 rphillips Exp $
06 Dec 2002; Rodney Rees <manson@gentoo.org> : changed sparc ~sparc keywords
+*openvpn-1.3.2-r1 (20 May 2003)
+
+ 20 May 2003; Ryan Phillips <rphillips@gentoo.org> openvpn-1.3.2-r1.ebuild :
+ Included init script. Bug #20085 Fixed. Submitted by Warp Zero
+
*openvpn-1.3.2 (31 Jan 2003)
31 Jan 2003; Ryan Phillips <rphillips@gentoo.org> openvpn-1.3.2 :
diff --git a/net-misc/openvpn/files/openvpn b/net-misc/openvpn/files/openvpn
new file mode 100644
index 000000000000..b025eae0e103
--- /dev/null
+++ b/net-misc/openvpn/files/openvpn
@@ -0,0 +1,31 @@
+#!/sbin/runscript
+
+VPNDIR="/etc/openvpn"
+
+depend() {
+ need net
+}
+
+start() {
+ cd $VPNDIR
+ for VPN in *
+ do
+ ebegin "Starting openvpn for $VPN"
+ start-stop-daemon --start --pidfile \
+ /var/run/openvpn-$VPN.pid --startas /usr/sbin/openvpn \
+ -- --config $VPN/local.conf --writepid \
+ /var/run/openvpn-$VPN.pid \
+ --daemon --cd $VPN
+ eend $?
+ done
+}
+
+stop() {
+ cd $VPNDIR
+ for VPN in *
+ do
+ ebegin "Stoping openvpn for $VPN"
+ start-stop-daemon --stop --pidfile /var/run/openvpn-$VPN.pid
+ eend $?
+ done
+}
diff --git a/net-misc/openvpn/openvpn-1.3.2-r1.ebuild b/net-misc/openvpn/openvpn-1.3.2-r1.ebuild
new file mode 100644
index 000000000000..f3596382b4b6
--- /dev/null
+++ b/net-misc/openvpn/openvpn-1.3.2-r1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/openvpn/openvpn-1.3.2-r1.ebuild,v 1.1 2003/05/20 18:05:19 rphillips Exp $
+
+IUSE="ssl"
+
+S=${WORKDIR}/${P}
+DESCRIPTION="OpenVPN is a robust and highly flexible tunneling application"
+SRC_URI="http://unc.dl.sourceforge.net/sourceforge/openvpn/${P}.tar.gz"
+HOMEPAGE="http://openvpn.sourceforge.net/"
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="~x86 ~sparc"
+
+DEPEND=">=dev-libs/lzo-1.07
+ virtual/linux-sources
+ ssl? ( >=dev-libs/openssl-0.9.6 )"
+
+src_compile() {
+
+ local myconf
+
+ use ssl || myconf='--disable-ssl --disable-crypto'
+
+ ./autogen.sh || die
+ econf || die
+ emake || die
+}
+
+src_install() {
+
+ make DESTDIR=${D} install || die
+
+ dodoc COPYING CHANGES INSTALL PORTS README
+ insinto /etc/init.d ; doins ${FILESDIR}/openvpn
+
+}