diff options
author | Alon Bar-Lev <alonbl@gentoo.org> | 2008-01-23 22:15:31 +0000 |
---|---|---|
committer | Alon Bar-Lev <alonbl@gentoo.org> | 2008-01-23 22:15:31 +0000 |
commit | e7f48f7a803a9a920dcc7f4daaa11de384fdc337 (patch) | |
tree | c418c7a393563a1db4e1ef31e5a2a6a117b53462 /net-misc/openvpn | |
parent | Add net-misc/openvpn pkcs11 (diff) | |
download | historical-e7f48f7a803a9a920dcc7f4daaa11de384fdc337.tar.gz historical-e7f48f7a803a9a920dcc7f4daaa11de384fdc337.tar.bz2 historical-e7f48f7a803a9a920dcc7f4daaa11de384fdc337.zip |
Version bump
Package-Manager: portage-2.1.4
Diffstat (limited to 'net-misc/openvpn')
-rw-r--r-- | net-misc/openvpn/ChangeLog | 9 | ||||
-rw-r--r-- | net-misc/openvpn/Manifest | 16 | ||||
-rw-r--r-- | net-misc/openvpn/files/digest-openvpn-2.1_rc5 | 3 | ||||
-rw-r--r-- | net-misc/openvpn/openvpn-2.1_rc5.ebuild | 147 |
4 files changed, 169 insertions, 6 deletions
diff --git a/net-misc/openvpn/ChangeLog b/net-misc/openvpn/ChangeLog index bb3d829094ce..07e1dcda759d 100644 --- a/net-misc/openvpn/ChangeLog +++ b/net-misc/openvpn/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for net-misc/openvpn -# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/openvpn/ChangeLog,v 1.118 2007/12/21 23:44:21 alonbl Exp $ +# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/openvpn/ChangeLog,v 1.119 2008/01/23 22:15:31 alonbl Exp $ + +*openvpn-2.1_rc5 (23 Jan 2008) + + 23 Jan 2008; Alon Bar-Lev <alonbl@gentoo.org> +openvpn-2.1_rc5.ebuild: + Version bump 21 Dec 2007; Alon Bar-Lev <alonbl@gentoo.org> metadata.xml: Take ownership, after Roy left diff --git a/net-misc/openvpn/Manifest b/net-misc/openvpn/Manifest index 0cead2203cac..0b5af8c47f1c 100644 --- a/net-misc/openvpn/Manifest +++ b/net-misc/openvpn/Manifest @@ -34,6 +34,7 @@ DIST openvpn-2.0.6.tar.gz 664816 RMD160 cf3cd807bb657baf317e896b57900958cf442a63 DIST openvpn-2.0.7.tar.gz 665129 RMD160 b89f6df5ff08326f4e07e6cd4abda633627ef9e4 SHA1 74a4d19e42ca226f50ab5bdba16aa4a130c5e431 SHA256 9e29ebfb76375379b4ca12c2270dff3b4b1636eb643747c69249ae206833052e DIST openvpn-2.1-udp6.patch.bz2 16625 RMD160 58f7fa1e9eebdfb267782f409b162e84f227faf8 SHA1 cb13e4f7dd973bb782e2bd5cc9a59f5f5bcb3ef0 SHA256 e98bd77e3098a203b23dde34847ba9647f8f0c75d432559d1c3fb1e9ada66322 DIST openvpn-2.1_rc4.tar.gz 803125 RMD160 d9843c2fb6fda64b5cf9474f42b36068bb4cd845 SHA1 4a22e23e497b7f5269628b1f430207c700cd6ebf SHA256 5d14e101c40e396250727fae7ee9ab734edd4e6e7f55b8209e0e215423775ff3 +DIST openvpn-2.1_rc5.tar.gz 752603 RMD160 e2282a41019783d91f4702894e44eda15bc64c66 SHA1 8c8fbca568af19df615f5ea60ac70e8bd56a314d SHA256 b37b2fd67b2dff43aa3bfad04667421799ca829eb03547929fb64e683e8458fd EBUILD openvpn-2.0.6.ebuild 3992 RMD160 a29b45480578f9ff80a8ab202c57813f6052c350 SHA1 e973ea504b42a90d4de99756a0349d6cee80dea3 SHA256 7fac8d4cecd9595317533ee2d2b79e2c93d350b83cffc63c07168c093ed11e28 MD5 52950cb97246d85e3ea550737b7226cc openvpn-2.0.6.ebuild 3992 RMD160 a29b45480578f9ff80a8ab202c57813f6052c350 openvpn-2.0.6.ebuild 3992 @@ -46,10 +47,14 @@ EBUILD openvpn-2.1_rc4-r2.ebuild 4593 RMD160 6567672b01b354454f3b28c2b827533d65b MD5 97c8d87f26677ee1f6dbb97e55f557f5 openvpn-2.1_rc4-r2.ebuild 4593 RMD160 6567672b01b354454f3b28c2b827533d65b316be openvpn-2.1_rc4-r2.ebuild 4593 SHA256 dce1e19c192f8188992a72eefb3b0b5f8aa3d257d8886d40104686a1698d73fb openvpn-2.1_rc4-r2.ebuild 4593 -MISC ChangeLog 18903 RMD160 999645486ca0389d9d8c5f3778f7782d04e2376b SHA1 f0144bc0d6b54f5d7764b2161a3a0467c4d58172 SHA256 481400b3533b82436b4552675fa9f18343bfeb784191a43bd5b94488376ef12a -MD5 f91e830c2d918eeb0ce84eb854150026 ChangeLog 18903 -RMD160 999645486ca0389d9d8c5f3778f7782d04e2376b ChangeLog 18903 -SHA256 481400b3533b82436b4552675fa9f18343bfeb784191a43bd5b94488376ef12a ChangeLog 18903 +EBUILD openvpn-2.1_rc5.ebuild 4302 RMD160 1f06710359e757bf3ffd2ba7fa6fc690c0ce4cb5 SHA1 cca539b89cb487dc195a404163ab9a1c6a29dad1 SHA256 7a27b4d1548f0cd5d1177a1529057c626f87f847686d71f603ea877ada819f59 +MD5 78136d49d490c1b994be8c494e13ebfe openvpn-2.1_rc5.ebuild 4302 +RMD160 1f06710359e757bf3ffd2ba7fa6fc690c0ce4cb5 openvpn-2.1_rc5.ebuild 4302 +SHA256 7a27b4d1548f0cd5d1177a1529057c626f87f847686d71f603ea877ada819f59 openvpn-2.1_rc5.ebuild 4302 +MISC ChangeLog 19024 RMD160 7fddeafca65193f3af805f501a9b69c64b5747ad SHA1 c0ec945d3cc03d42fec10ad6c2cbe6d0c9baaf39 SHA256 7b2b7de554a4f9ee3eb2d4d526670af649e76d41074d68586c044746af166bb3 +MD5 3c5491b88c1e2ef6ff195f1ac2125c0f ChangeLog 19024 +RMD160 7fddeafca65193f3af805f501a9b69c64b5747ad ChangeLog 19024 +SHA256 7b2b7de554a4f9ee3eb2d4d526670af649e76d41074d68586c044746af166bb3 ChangeLog 19024 MISC metadata.xml 439 RMD160 f706dea5fbe921385d0e2572e8c1f170fdad59f9 SHA1 ce672f573bf5e2a79fa0aed9c4db6a283c94705d SHA256 f9206f410231c68498f39bc887dbd00a3170ae1a0ede8e89adcce27745017baf MD5 cd62c31fec8f65e0a3a3080c5ad9775f metadata.xml 439 RMD160 f706dea5fbe921385d0e2572e8c1f170fdad59f9 metadata.xml 439 @@ -63,3 +68,6 @@ SHA256 a1f31a906a965a6209c5e248a0a36f80423f087dd519d8465503446f23f1446d files/di MD5 927b1ce2be5d2879bf68940e68cbd04c files/digest-openvpn-2.1_rc4-r2 503 RMD160 5a50a471798346526ca5421dc519507ef98eba7a files/digest-openvpn-2.1_rc4-r2 503 SHA256 9f61a1d35bb0c7fe056674478f0251d6ed6cbc19f409c0b8aa2cd6d28e3d7900 files/digest-openvpn-2.1_rc4-r2 503 +MD5 dfc78fd07b523d9b46968ef70dead478 files/digest-openvpn-2.1_rc5 247 +RMD160 703bcf76a33ff28571d3784ff8a637ad20fdca6b files/digest-openvpn-2.1_rc5 247 +SHA256 95f003c8f2b86f2db7928a8e5be41e8a56fe5056a46700a106fc614f2c0659f6 files/digest-openvpn-2.1_rc5 247 diff --git a/net-misc/openvpn/files/digest-openvpn-2.1_rc5 b/net-misc/openvpn/files/digest-openvpn-2.1_rc5 new file mode 100644 index 000000000000..9f1f0f4d9b7e --- /dev/null +++ b/net-misc/openvpn/files/digest-openvpn-2.1_rc5 @@ -0,0 +1,3 @@ +MD5 e49eaad57a72a24901aafd971ea20ffa openvpn-2.1_rc5.tar.gz 752603 +RMD160 e2282a41019783d91f4702894e44eda15bc64c66 openvpn-2.1_rc5.tar.gz 752603 +SHA256 b37b2fd67b2dff43aa3bfad04667421799ca829eb03547929fb64e683e8458fd openvpn-2.1_rc5.tar.gz 752603 diff --git a/net-misc/openvpn/openvpn-2.1_rc5.ebuild b/net-misc/openvpn/openvpn-2.1_rc5.ebuild new file mode 100644 index 000000000000..0382487abf59 --- /dev/null +++ b/net-misc/openvpn/openvpn-2.1_rc5.ebuild @@ -0,0 +1,147 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/openvpn/openvpn-2.1_rc5.ebuild,v 1.1 2008/01/23 22:15:31 alonbl Exp $ + +inherit eutils multilib + +DESCRIPTION="OpenVPN is a robust and highly flexible tunneling application compatible with many OSes." +SRC_URI="http://openvpn.net/beta/${P}.tar.gz" +HOMEPAGE="http://openvpn.net/" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sh ~sparc ~sparc-fbsd ~x86 ~x86-fbsd" +IUSE="examples iproute2 minimal pam passwordsave selinux ssl static pkcs11 threads userland_BSD" + +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 ) + pkcs11? ( >=dev-libs/pkcs11-helper-1.05 )" + +pkg_setup() { + if use iproute2 ; then + if built_with_use sys-apps/iproute2 minimal ; then + eerror "iproute2 support requires that sys-apps/iproute2 was not" + eerror "built with the minimal USE flag" + die "iproute2 support not available" + fi + fi +} + +src_compile() { + local myconf="" + + if use minimal ; then + myconf="${myconf} --disable-plugins" + myconf="${myconf} --disable-pkcs11" + else + myconf="$(use_enable pkcs11)" + fi + + econf ${myconf} \ + $(use_enable passwordsave password-save) \ + $(use_enable ssl) \ + $(use_enable ssl crypto) \ + $(use_enable threads pthread) \ + $(use_enable iproute2) \ + || die "configure failed" + + use static && sed -i -e '/^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 and config file + newinitd "${FILESDIR}/${PN}-2.1.init" openvpn + newconfd "${FILESDIR}/${PN}-2.1.conf" 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" + cd ../.. + + 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 +} |