summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoy Marples <uberlord@gentoo.org>2006-09-12 23:50:11 +0000
committerRoy Marples <uberlord@gentoo.org>2006-09-12 23:50:11 +0000
commit63d5e80a8032ef6120c96e25748d6e9b0be70200 (patch)
treea9feecea4398fa9454f108ac6041eb0ba7fafd72 /net-misc
parentmark stable (diff)
downloadhistorical-63d5e80a8032ef6120c96e25748d6e9b0be70200.tar.gz
historical-63d5e80a8032ef6120c96e25748d6e9b0be70200.tar.bz2
historical-63d5e80a8032ef6120c96e25748d6e9b0be70200.zip
Version bump, #147308 thanks to Alon Bar-Lev.
Package-Manager: portage-2.1.1
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/openvpn/ChangeLog9
-rw-r--r--net-misc/openvpn/Manifest24
-rw-r--r--net-misc/openvpn/files/digest-openvpn-2.1_beta153
-rwxr-xr-xnet-misc/openvpn/files/up.sh16
-rw-r--r--net-misc/openvpn/openvpn-2.1_beta15.ebuild140
5 files changed, 179 insertions, 13 deletions
diff --git a/net-misc/openvpn/ChangeLog b/net-misc/openvpn/ChangeLog
index 8c7cc5ee3c1b..e53cb1696b9b 100644
--- a/net-misc/openvpn/ChangeLog
+++ b/net-misc/openvpn/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for net-misc/openvpn
# Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/openvpn/ChangeLog,v 1.92 2006/09/10 03:08:27 uberlord Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/openvpn/ChangeLog,v 1.93 2006/09/12 23:50:11 uberlord Exp $
+
+*openvpn-2.1_beta15 (12 Sep 2006)
+
+ 12 Sep 2006; Roy Marples <uberlord@gentoo.org> files/up.sh,
+ +openvpn-2.1_beta15.ebuild:
+ Version bump, #147308 thanks to Alon Bar-Lev.
+ Fix up.sh for FreeBSD.
10 Sep 2006; Roy Marples <uberlord@gentoo.org> files/openvpn-2.1.init:
Add FreeBSD support
diff --git a/net-misc/openvpn/Manifest b/net-misc/openvpn/Manifest
index ed4a87fe807c..c3d056140a6e 100644
--- a/net-misc/openvpn/Manifest
+++ b/net-misc/openvpn/Manifest
@@ -14,13 +14,14 @@ AUX openvpn.init 1457 RMD160 233cf3953ee341f025a9bc863e7ad0fac91369ab SHA1 b625d
MD5 35cb74384ed5232c68dbf19f9107bd8e files/openvpn.init 1457
RMD160 233cf3953ee341f025a9bc863e7ad0fac91369ab files/openvpn.init 1457
SHA256 bfb8ac1e2d8a7d2a0313741e45f6e14ab4076581ba4166709dbe05ab110cb80a files/openvpn.init 1457
-AUX up.sh 1477 RMD160 5d398f10b66a75447b227338ffdf03a16bf0fa16 SHA1 b5decc72a0ed6135f1b3bd59d76f9eda9e0abcfd SHA256 eca10ae245785fc0781da26826a15e9499337260d40417015ead148270dacbd2
-MD5 d2f67510ae745e92ed2eb79580425c94 files/up.sh 1477
-RMD160 5d398f10b66a75447b227338ffdf03a16bf0fa16 files/up.sh 1477
-SHA256 eca10ae245785fc0781da26826a15e9499337260d40417015ead148270dacbd2 files/up.sh 1477
+AUX up.sh 1606 RMD160 1b1180ee687c3276dcad6ba3191b5cd87719fb36 SHA1 210fd62bbd361484f30d62ea312cf7edf09f6c02 SHA256 2440d2d1cedc192c083c771d84ecd9feb127402c78e4b9a1b3af1faf469902fb
+MD5 8b4061c2b60b1f4ed91fcc9ca9d7adca files/up.sh 1606
+RMD160 1b1180ee687c3276dcad6ba3191b5cd87719fb36 files/up.sh 1606
+SHA256 2440d2d1cedc192c083c771d84ecd9feb127402c78e4b9a1b3af1faf469902fb files/up.sh 1606
DIST openvpn-2.0.6.tar.gz 664816 RMD160 cf3cd807bb657baf317e896b57900958cf442a63 SHA256 1074c9fb5a7881e6d4ff0b125cf1e44a9fb650beef187f061785698522453003
DIST openvpn-2.0.7.tar.gz 665129 RMD160 b89f6df5ff08326f4e07e6cd4abda633627ef9e4 SHA1 74a4d19e42ca226f50ab5bdba16aa4a130c5e431 SHA256 9e29ebfb76375379b4ca12c2270dff3b4b1636eb643747c69249ae206833052e
DIST openvpn-2.1_beta14.tar.gz 775042 RMD160 1c7845405b33153c1380aa48eaa88308a5eadd2c SHA1 ec146d3f35aa6eed43701751e84a50c6a3930446 SHA256 da61d236047b9a5985765961930446a706aeef87dc2b4ce0f7e2c9f2831566ea
+DIST openvpn-2.1_beta15.tar.gz 776778 RMD160 514246341a9979f1aec4c28b203d8a8f2c64408b SHA1 51bc91cb09f9863cf85c5b3c83755d2dc74dab5a SHA256 35daa28523095d637bc694d4e22f9a0e075f9e8b910998ca7bf2576fa9d8cc05
EBUILD openvpn-2.0.6.ebuild 3861 RMD160 ab1cebb22bd90f5b9f7ad51d61e3c71ac429edd1 SHA1 b5c9bb2b4bfa325ede656cfee0a7e4c14f2f919d SHA256 9b173588e955a0b5da9a4b3a8fb2a5f95566ca210c64d0660b590139bb1879aa
MD5 997c0652659de943e575acd3f553fc51 openvpn-2.0.6.ebuild 3861
RMD160 ab1cebb22bd90f5b9f7ad51d61e3c71ac429edd1 openvpn-2.0.6.ebuild 3861
@@ -33,10 +34,14 @@ EBUILD openvpn-2.1_beta14.ebuild 4198 RMD160 ea68edb2496bb772d7e5248bdff7b507f59
MD5 732ac0e7ab0e5e61b682f18ab72a8855 openvpn-2.1_beta14.ebuild 4198
RMD160 ea68edb2496bb772d7e5248bdff7b507f59f04bc openvpn-2.1_beta14.ebuild 4198
SHA256 6906cd804695c03af240f9ee37091b940aa640cb01059304846493f564ca2c0a openvpn-2.1_beta14.ebuild 4198
-MISC ChangeLog 14111 RMD160 59c1d98d21cead218205ac599c19ccc5ab9ce6ad SHA1 754e6ba9b946332142e3fd8eaeff78c3d9a77ad2 SHA256 70ad2a27faacd64dfb168ab9fbc5a1d88825d865ae47539b03a1eb3843c2f6d6
-MD5 4580689fcfe27ae599bfa6687899632d ChangeLog 14111
-RMD160 59c1d98d21cead218205ac599c19ccc5ab9ce6ad ChangeLog 14111
-SHA256 70ad2a27faacd64dfb168ab9fbc5a1d88825d865ae47539b03a1eb3843c2f6d6 ChangeLog 14111
+EBUILD openvpn-2.1_beta15.ebuild 4124 RMD160 a3a9bcd130e8cc37cd9f89b999e7edd143e46ea5 SHA1 56ac3c1163d1a2600ef9088b132310e6a6e55950 SHA256 b7d55c3f384fa5052430a8d72ddb310e5882326d334a896ceb58adc4fee501d4
+MD5 eb58910f22796dcb419c0ed85b0795e8 openvpn-2.1_beta15.ebuild 4124
+RMD160 a3a9bcd130e8cc37cd9f89b999e7edd143e46ea5 openvpn-2.1_beta15.ebuild 4124
+SHA256 b7d55c3f384fa5052430a8d72ddb310e5882326d334a896ceb58adc4fee501d4 openvpn-2.1_beta15.ebuild 4124
+MISC ChangeLog 14312 RMD160 72dc17f95b5d8e0a0ac81b25d3105cbc64fd76e5 SHA1 6d2a58d4c0e413174ed0c9d9ca185ebe17950b75 SHA256 f3e57941c2d3bb81bd46c308678bd2ea08a35df33be5b4cb3759f21c52625f2a
+MD5 0ea693fcb1b5b8cf21cee67c8da2ea10 ChangeLog 14312
+RMD160 72dc17f95b5d8e0a0ac81b25d3105cbc64fd76e5 ChangeLog 14312
+SHA256 f3e57941c2d3bb81bd46c308678bd2ea08a35df33be5b4cb3759f21c52625f2a ChangeLog 14312
MISC metadata.xml 440 RMD160 120089ec9c799161dfeeacd9a3adfc40b4317f06 SHA1 23d2975ef0f709dc2e754a5867942e679ee60740 SHA256 408ca4fc4f58fa21e629582d0a44a759f9695a018479d70efbd3338b6bdbcfd6
MD5 62aa0438042b29eba4a6afd971037761 metadata.xml 440
RMD160 120089ec9c799161dfeeacd9a3adfc40b4317f06 metadata.xml 440
@@ -50,3 +55,6 @@ SHA256 a1f31a906a965a6209c5e248a0a36f80423f087dd519d8465503446f23f1446d files/di
MD5 9f3dee432a917a273baf3b721d3f01e2 files/digest-openvpn-2.1_beta14 256
RMD160 8b38bd1027c85531c3483c2f290d37854f461750 files/digest-openvpn-2.1_beta14 256
SHA256 2f60d11bdb0d5795151caf35752124cb849b1baf757f58aa1bb6aef2b67d2af6 files/digest-openvpn-2.1_beta14 256
+MD5 edd5005236b15c7b772b04361e7305e1 files/digest-openvpn-2.1_beta15 256
+RMD160 d0a07032e4976f9cb95e82c0d20471c8da28f971 files/digest-openvpn-2.1_beta15 256
+SHA256 a8696ba07f2abf7c9cab1ee3a0bd28527ccaee5d522635b9d19fb6d79173216d files/digest-openvpn-2.1_beta15 256
diff --git a/net-misc/openvpn/files/digest-openvpn-2.1_beta15 b/net-misc/openvpn/files/digest-openvpn-2.1_beta15
new file mode 100644
index 000000000000..3c069678b83b
--- /dev/null
+++ b/net-misc/openvpn/files/digest-openvpn-2.1_beta15
@@ -0,0 +1,3 @@
+MD5 2ddc1878c99ea3a9b348275338f7d502 openvpn-2.1_beta15.tar.gz 776778
+RMD160 514246341a9979f1aec4c28b203d8a8f2c64408b openvpn-2.1_beta15.tar.gz 776778
+SHA256 35daa28523095d637bc694d4e22f9a0e075f9e8b910998ca7bf2576fa9d8cc05 openvpn-2.1_beta15.tar.gz 776778
diff --git a/net-misc/openvpn/files/up.sh b/net-misc/openvpn/files/up.sh
index f950577532b7..0a18876aae93 100755
--- a/net-misc/openvpn/files/up.sh
+++ b/net-misc/openvpn/files/up.sh
@@ -11,11 +11,19 @@
# and will use the first one that responds - maybe the LAN ones?
# non resolvconf users just the the VPN resolv.conf
-DNS="$(set | sed -n "s/^foreign_option_.* DNS \(.*\)'/nameserver \1/; T next; p;
- :next; s/^foreign_option_.* DOMAIN \(.*\)'/domain \1/; T; p;")"
+NS=
+DOMAIN=
+for var in ${!foreign_option_*} ; do
+ opt="${!var}"
+ if [[ ${opt} =~ "dhcp-option DOMAIN (.*)" ]] ; then
+ DOMAIN="${DNS}domain ${BASH_REMATCH[1]}\n"
+ elif [[ ${opt} =~ "dhcp-option DNS (.*)" ]] ; then
+ NS="${DNS}nameserver ${BASH_REMATCH[1]}\n"
+ fi
+done
-if [[ -n ${DNS} ]] ; then
- DNS="# Generated by openvpn for interface ${dev}\n${DNS}"
+if [[ -n ${NS} ]] ; then
+ DNS="# Generated by openvpn for interface ${dev}\n${DOMAIN}${NS}"
if [[ -x /sbin/resolvconf ]] ; then
echo -e "${DNS}" | /sbin/resolvconf -a "${dev}"
else
diff --git a/net-misc/openvpn/openvpn-2.1_beta15.ebuild b/net-misc/openvpn/openvpn-2.1_beta15.ebuild
new file mode 100644
index 000000000000..13f07e521e9d
--- /dev/null
+++ b/net-misc/openvpn/openvpn-2.1_beta15.ebuild
@@ -0,0 +1,140 @@
+# Copyright 1999-2006 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/openvpn/openvpn-2.1_beta15.ebuild,v 1.1 2006/09/12 23:50:11 uberlord Exp $
+
+inherit eutils gnuconfig multilib
+
+DESCRIPTION="OpenVPN is a robust and highly flexible tunneling application compatible with many OSes."
+SRC_URI="http://openvpn.net/release/openvpn-${PV}.tar.gz"
+HOMEPAGE="http://openvpn.net/"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc-macos ~sparc ~x86 ~x86-fbsd"
+IUSE="examples iproute2 minimal pam passwordsave selinux ssl static threads"
+
+DEPEND=">=dev-libs/lzo-1.07
+ kernel_linux? (
+ iproute2? ( sys-apps/iproute2 ) !iproute2? ( sys-apps/net-tools )
+ )
+ !minimal? ( pam? ( virtual/pam ) )
+ selinux? ( sec-policy/selinux-openvpn )
+ ssl? ( >=dev-libs/openssl-0.9.6 )"
+
+src_unpack() {
+ unpack ${A}
+ gnuconfig_update
+ cd "${S}"
+ epatch "${FILESDIR}/${PN}"-2.0.4-darwin.patch
+}
+
+src_compile() {
+ local myconf=""
+ # We cannot use use_enable with iproute2 as the Makefile stupidly
+ # enables it with --disable-iproute2
+ use iproute2 && myconf="${myconf} --enable-iproute2"
+ if use minimal ; then
+ myconf="${myconf} --disable-plugins"
+ myconf="${myconf} --disable-pkcs11"
+ fi
+
+ econf ${myconf} \
+ $(use_enable passwordsave password-save) \
+ $(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
+ cd plugin
+ for i in $( ls 2>/dev/null ); do
+ [[ ${i} == "README" || ${i} == "examples" ]] && continue
+ [[ ${i} == "auth-pam" ]] && ! use pam && continue
+ einfo "Building ${i} plugin"
+ cd "${i}"
+ emake || die "make failed"
+ cd ..
+ done
+ cd ..
+ fi
+}
+
+src_install() {
+ make DESTDIR="${D}" install || die "make install failed"
+
+ # install documentation
+ dodoc AUTHORS ChangeLog PORTS README
+
+ # Empty dir
+ dodir /etc/openvpn
+ keepdir /etc/openvpn
+
+ # Install some helper scripts
+ exeinto /etc/openvpn
+ doexe "${FILESDIR}/up.sh"
+ doexe "${FILESDIR}/down.sh"
+
+ # Install the init script
+ newinitd "${FILESDIR}/openvpn-2.1.init" openvpn
+
+ # install examples, controlled by the respective useflag
+ if use examples ; then
+ # dodoc does not supportly support directory traversal, #15193
+ insinto /usr/share/doc/${PF}/examples
+ doins -r sample-{config-files,keys,scripts} contrib
+ prepalldocs
+ fi
+
+ # Install plugins and easy-rsa
+ if ! use minimal ; then
+ cd easy-rsa/2.0
+ make install "DESTDIR=${D}/usr/share/${PN}/easy-rsa"
+
+ exeinto "/usr/$(get_libdir)/${PN}"
+ doexe plugin/*/*.so
+ fi
+}
+
+pkg_postinst() {
+ # Add openvpn user so openvpn servers can drop privs
+ # Clients should run as root so they can change ip addresses,
+ # dns information and other such things.
+ enewgroup openvpn
+ enewuser openvpn "" "" "" openvpn
+
+ if [[ -n $(ls /etc/openvpn/*/local.conf 2>/dev/null) ]] ; then
+ ewarn "WARNING: The openvpn init script has changed"
+ ewarn ""
+ fi
+
+ einfo "The openvpn init script expects to find the configuration file"
+ einfo "openvpn.conf in /etc/openvpn along with any extra files it may need."
+ einfo ""
+ einfo "To create more VPNs, simply create a new .conf file for it and"
+ einfo "then create a symlink to the openvpn init script from a link called"
+ einfo "openvpn.newconfname - like so"
+ einfo " cd /etc/openvpn"
+ einfo " ${EDITOR##*/} foo.conf"
+ einfo " cd /etc/init.d"
+ einfo " ln -s openvpn openvpn.foo"
+ einfo ""
+ einfo "You can then treat openvpn.foo as any other service, so you can"
+ einfo "stop one vpn and start another if you need to."
+
+ if grep -Eq "^[ \t]*(up|down)[ \t].*" ${ROOT}/etc/openvpn/*.conf 2>/dev/null ; then
+ ewarn ""
+ ewarn "WARNING: If you use the remote keyword then you are deemed to be"
+ ewarn "a client by our init script and as such we force up,down scripts."
+ ewarn "These scripts call /etc/openvpn/\$SVCNAME-{up,down}.sh where you"
+ ewarn "can move your scripts to."
+ fi
+
+ if ! use minimal ; then
+ einfo ""
+ einfo "plugins have been installed into /usr/$(get_libdir)/${PN}"
+ fi
+}