summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDirkjan Ochtman <djc@gentoo.org>2014-11-16 15:37:26 +0000
committerDirkjan Ochtman <djc@gentoo.org>2014-11-16 15:37:26 +0000
commit23b71cf99e95d9bc2100469ca958099d896f0550 (patch)
tree625e4ff9ae3f8b1827d8ec2a879c41d4c45659b9 /net-misc
parentVersion bump openvpn to 2.3.5 (diff)
downloadhistorical-23b71cf99e95d9bc2100469ca958099d896f0550.tar.gz
historical-23b71cf99e95d9bc2100469ca958099d896f0550.tar.bz2
historical-23b71cf99e95d9bc2100469ca958099d896f0550.zip
Remove old versions of openvpn
Package-Manager: portage-2.2.14/cvs/Linux x86_64 Manifest-Sign-Key: 0x30380381
Diffstat (limited to 'net-misc')
-rw-r--r--net-misc/openvpn/ChangeLog6
-rw-r--r--net-misc/openvpn/Manifest31
-rw-r--r--net-misc/openvpn/openvpn-2.3.1.ebuild127
-rw-r--r--net-misc/openvpn/openvpn-2.3.4.ebuild130
4 files changed, 19 insertions, 275 deletions
diff --git a/net-misc/openvpn/ChangeLog b/net-misc/openvpn/ChangeLog
index 2eb9aad529d3..5da0b7164f7d 100644
--- a/net-misc/openvpn/ChangeLog
+++ b/net-misc/openvpn/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for net-misc/openvpn
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/openvpn/ChangeLog,v 1.303 2014/11/16 15:32:34 djc Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/openvpn/ChangeLog,v 1.304 2014/11/16 15:36:26 djc Exp $
+
+ 16 Nov 2014; Dirkjan Ochtman <djc@gentoo.org> -openvpn-2.3.1.ebuild,
+ -openvpn-2.3.4.ebuild:
+ Remove old versions of openvpn
*openvpn-2.3.5 (16 Nov 2014)
diff --git a/net-misc/openvpn/Manifest b/net-misc/openvpn/Manifest
index 59b559eb812f..e5b0ead0cc3d 100644
--- a/net-misc/openvpn/Manifest
+++ b/net-misc/openvpn/Manifest
@@ -9,34 +9,31 @@ AUX openvpn.init 1486 SHA256 c4b9e0899fa5ee0b90c5100da7711dc7a6a5658f10042b0feda
AUX openvpn.service 335 SHA256 1f6350d4ed7d9700d460a33e4c03cf01c122e8503f9ab5fb976312d9adbb0ec1 SHA512 997e6b16f0427ad7e3bdda7201ef46aa64c58e248a8049a8b5633355e3813028df0975c3952a4e4df478ab678c1bbeb3699527ac6b45f7d37405e5afd2b8cc15 WHIRLPOOL e0df78e274d750ebe3cf3ef51f7f7b23b51fec282f75304aab6dff5c56e79ad2750ddd64de4d333158179e646ddec38841adafff44d98b7bee47ff14a40fe10a
AUX openvpn.tmpfile 39 SHA256 ef3453056a26487d27908d5ced124285403d8e88deb843fccdba9f6724966826 SHA512 659713b35eee340f2b6578796f4335dda391aa635892e802e3f2531f31c9470460b4e4b3be45457f81f3b08b7d60ce15d16f8d70b968fbf24f846ef5f8611a58 WHIRLPOOL 19e4611ffda68a99851921ccaf3a99d04350cd3e0d8833136da151119c267edc383ff96162aa47a2f77171ae908ad011e4119a7a18961ed0bddcbf38d997b976
AUX up.sh 2865 SHA256 d887ee065261affd849227fa27e092cf66549d824a698f302312d15f787dd840 SHA512 35201b0e60ad20358080007e595eb4f96d186ba8e88f0485c55d164c28e3d78a12f3e09347ba3d76abb9b8b03fb4a53664bd74ab484be1548090022b956925fd WHIRLPOOL 8d25a66d192a6710466d149aec7a1719dfe91558205e8ba7e25b93e58869c8fedc96ba4ce2aedb0595b7e0b63299e6e41be1ba82c6b93ae6bbbb26d409c9bf51
-DIST openvpn-2.3.1.tar.gz 1145382 SHA256 bd2d7d85b39d4586bcdb74b36eb48d0ac4ab1e6812654c719b04826fdc70fb3c SHA512 1f74d86cae164c6807a30f70012462b9304a648765c49a79f390b8c054b9aaaeac535f53804cf5400d00cbe388a8a4aaf71b7c77d034b2b71d3dd374b8e11d75 WHIRLPOOL 227993e7fc38f1b0bf9008bf1bfcb31ef9dc37b78e66ac5be011b8f20696a4a567e6c48951ab16652e84879d719a5a925382e28ced22a6c1131c7554f98a19fb
DIST openvpn-2.3.2.tar.gz 1145108 SHA256 20bda3f9debb9a52db262aecddfa4e814050a9404a9106136b7e3b6f7ef36ffc SHA512 9936a8b3a71073239ca25e0d3cf24862e95c29218b2bba9663369eca80b4c9f83ef12dd41eb9998165d4819f041335606eeb0257b6805e1cdd1ae4761bb9dddf WHIRLPOOL f2ef45c76e968e022483d15ec1e4ff2a4f495d05e3e355d46c6f74af8a96341252b56933391d211f8eec955ee31c0538de81dd300d4ba30353f3785469bd2dbc
DIST openvpn-2.3.3.tar.gz 1161137 SHA256 f025d14631105a66e501ca897830cd4d26a1438530cd9174dc6169536ae4b113 SHA512 05d6eff0db7137772a90c3d04ebd109eeb5f149b57f05edab211052754032cac3132f0a6f6e689dcab65db89cfed6065f82ac4fcf7f18b230900f6108570263f WHIRLPOOL f4bf6c5e5b8266c9cdc2d89003300a720423fd296d281ebd2a52d70b6aaeaee57b5506042a807771c0a271aaff8772f3794eef9124270d3fc9d0b1cd3fe40657
DIST openvpn-2.3.4.tar.gz 1191101 SHA256 af506d5f48568fa8d2f2435cb3fad35f9a9a8f263999ea6df3ba296960cec85a SHA512 6837e9ff48181ffd7cb36fe7f6943b580f68df7e840a5bd3c7ab01845592627275c6bfcc929cfa1570aef1af54b49df320ae4d7999968969ac23f1b244a37ec8 WHIRLPOOL 8b7b949f3f61f7b85f400d197bcc92ed4991ef1cc979f8b7f5a9e64740e3260ed23668775fbbd2404c751e4163d255cebfd4c1da176e959d0c80e90eef659a58
DIST openvpn-2.3.5.tar.gz 1196464 SHA256 d93b447b014a41ec1550c3b760871aa72d7c09f1b5c6fc1e013d3073ac29ca21 SHA512 937a3846a7638e3eb1e452d01c1e78a43c5b29adf4ba5f169508c40488e32e4ee317661dfbd1396c9103a8cf9101c4f02ed586dc3fd91b89b5afb35e4e5291dd WHIRLPOOL 335c737662be7b7179b503b99376c7902fe1141bcac496de4b0a54a82dd0dca3aa5c2c49f66622be2163dbc6fa89bc79940b81ffdd419d27c004f53e6c92b0e7
-EBUILD openvpn-2.3.1.ebuild 4143 SHA256 8dad20422d32628c0ee91b6d3ccb103e75c2c901ce9c1240ef95102f4c02dc53 SHA512 6792c68e8a5bbe43a93a3c9a128ae853edd21e0c918cf689d2db088b984aecdc570d5281bff263aca6078b07ddd0ba172c3c9b4ccace0fc690357d5fb13aff00 WHIRLPOOL 33cdd572f00952748a2ab05c39924495173e217df315a56f91036b45a268da1e8c687de381d8cdd5850a26ee6a6d3010053fee671db0901be55c664697900e6b
EBUILD openvpn-2.3.2.ebuild 4131 SHA256 c3c95da613ac170ca6db06e721e0d3add9724fb3a2dbc07111aa9f0e36c6cc69 SHA512 d35632f2719f50fd0cb4202d737bd1cdbeeee96e5bc455070316a79b5b4bd61f5f47e76cdf27e136a15ee1883ba7e67db723a28d8597eca6629cf93e430e6715 WHIRLPOOL 689bcc9ffb76dc12987df2b57d9cb7e5c4f28079a1540cd8b32e10b392205798a72e6a9ec35cf016f421c3d9a985af2530d444258ff7deaceb1b19076a1451bf
EBUILD openvpn-2.3.3.ebuild 4199 SHA256 da464758cfef3297d9dfa80846d4ab830120c1b77cd7fe745eadd3f89f873819 SHA512 6ac487774770bf22a4054bc39a51274949ea63500a12719c6de91afb4a37500a0155897c0866202df85f5998466bf3dc2de0d2f1a52c7208288c9c60ea7ded62 WHIRLPOOL 82a59b5227872e6aacb681c04e157c590dc3c0daeb233d4dde31dd142b022d9115bf0b1fbc179255d4c7d5eb25efc8c6057f95921194020e620495cbde59d962
EBUILD openvpn-2.3.4-r1.ebuild 4375 SHA256 c510a3a8e4f356e44f54fbef48d481cf2575c341dc1cb19ee042d358821c3928 SHA512 77cd510de2b05a2917c3fa2fa77e2d67348241f4282f4b0435e2ae74880151c1ad5b5dc61c84aa663f98d4b143d234b80a69e9a434d5b271136c7701245fc222 WHIRLPOOL b62edda803249d8d51e01448a9181808a521e2880a94ae521b63f0b434743d833cc4059f16a1399719ba6b4ac159bad2c3e7ab0f4125c6fafcbefbb567b6773a
-EBUILD openvpn-2.3.4.ebuild 4206 SHA256 452c241a0db076bb8437e380bdb34615ec7d8e88bfa3808b49deb6db9a418819 SHA512 ccaa9b84e94aa9777e483b5ff9683e729bd6d81b5c9ab6314e4a35be7d378a12dd251bc660b9adf4d3d608e798cf78119d8f3eece60856b481ebeb9598851d1d WHIRLPOOL d265b81a17cf2bfd6da215c6a609235adb0f63a3edd75ce904c131f4d717a077aa045024ffadf700fe05dcc1a4b89e9e0d90c01e4974b566fa63e1175796068c
EBUILD openvpn-2.3.5.ebuild 4373 SHA256 b4081ba2ea699be52cfad0514ab14c884504f0190705fa096902d8132a83d2e8 SHA512 145d220fdfd456023a419c9330b261f7302f92644535decc26c7070f851159518e19a83506c6c7e8e428718675fd779edcc752e71351eccc248c22c8550bedd1 WHIRLPOOL b818a4561e26533593a006c40cbf2ef56ec5ef2a1575d17f38e5559c0a824fd49c0846519ad1c1dc27aed115c1af8701ccd2ddd1717c8125d6aef3cf70d148ed
EBUILD openvpn-9999.ebuild 3941 SHA256 ef975ee9157e25b16aa4c59144b1fc0814c67def458a71e5166c70e7c41e5081 SHA512 7030ee666c7372b86a198f3780797a4253baed6e61e4bbb3f1bb166b95268b4ee00992c770c689ab6bb9326eb2d66a6c52cec65739e887ef39e6da1da6ce49b6 WHIRLPOOL 174bee3dc113263b7ebc24048613cc3039cd49f52cee4c9eff55d80d9436cead408d3c09cb6dad1318a4812fb00f7eb22b286f329499346240db2f38a066b2ff
-MISC ChangeLog 42422 SHA256 3a8ead43ac2764552b65f651fd1a217767a31ddb0870fca44281ce4b6003a843 SHA512 a1488d2c79f08ac72654bd414891adea5b4155d0bfdf3565cd195f045c2b3a1cf0a92bef68959934cef354919a2bd39052898ca1aae36d012739d5d34bf63e29 WHIRLPOOL 9d6a04846173fc09c035debd148ba69813a71a5c04acb3c76faf8831109e345af6e6ff0f025d9ddc967dbe16d329d7103e2be1b018835d68a8675f454f18e4d4
+MISC ChangeLog 42552 SHA256 19f8f2069a97d36bc9359f50699484c55d474f2749f62324b79d4d482a75e5c9 SHA512 0fb14fb31cc24e2ed661b933debc4b7ba84e6714bd3d07a79d7f40504b79e92e2d8a59f991690695df3c5e7f3f97cc31b249e9365af2aaefa53a058a5f1fd6ce WHIRLPOOL a8f6040ce6dcf471359eb1c68e1cbc0f3633cb6e7394862a54e28dcfca1b740aa3f55dff507e700e3c91a9e09b01c5f6c90df6877d1ac9d2ec39df48b28d8608
MISC metadata.xml 937 SHA256 3dfcc28012f2c92f044882c39d56b6ef82bb80749ce688b75d526cc6c8836dd3 SHA512 ad3f218ccc64249fda19d87fe79494280eb880841f2d1e69757e7093e62b446f273fecd074ccac02c28894924b02d6a9c9fbbc1bd12ab13493f7f77e50e5b1ce WHIRLPOOL 65bf683e35f44c306c9ed3297cd954eb490f658f97a2d03af2cba0484030b1eccdf401fdc867a5c35a602bd67bf7052d555c2a48b7bebb4469158e26a530a742
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
-iQIcBAEBCAAGBQJUaMTLAAoJEJ+WuSkwOAOB/koQAIAus0ABuVrXq58lO80tbQwd
-+gTVbgFeEv1VQyKaH7oXsFkRvLOcwoew6bipIR15N3vE8n2tVJ+LxLI1iyIRgKpP
-zVwC3/WzMswjDPPXcUuJiUUFQqTZ8TR1FR3nF5GozZo6tA/79SXA1s82oQGeYXIM
-jmxTQQoMioMzqtmCLR1QC53ueCF9zqnze+JL/+b3BDI3gn6zuxcJoFwcvUknUJYY
-xb1Qda9tFFEl+knmKeLk0X/Z4uwEvH2fFK4BE+beuuSjPG+YspPfw4v0YaX2z5fC
-DeY0ML6JhmsNn09uqWhcKSEi1qPmpZaHdrh+IJYO60pK/neXWMqii0O7Otwms0mI
-1vQaMw79gLhCsdhJWpDbR4zMhK4eDR26r+GPQm389gWgTYLZB0ek52d+dE9qMtxP
-YDIbfjzMXa+24le2yUIqW4a3wZL1XJKdNw1VgBWaJKUphC7Sk/SaQDP8HjcACtMF
-BKv7Ei1jLoPB2678Q652n4WWuVScDSzRfkVbsxkcsHy9vOBHSdR2wK+WP+/I8ZJ2
-0TnGs/h3+UrXadCn7bzPZHgHHxeys9PwRUT3xGFDGxUcM9R5hHuAX4Bx0rOEJEkD
-rMMeafBcnTb4oiKPoEGaHWv4fbVJZa+pr1VEgFrniSIV94+wSKLaZX31s9YCDtcI
-ew3LUNXTh99g9/oie6ew
-=YslM
+iQIcBAEBCAAGBQJUaMW9AAoJEJ+WuSkwOAOBpm8QAKce5Sk8/Y4l4bjiaSx+55XJ
+hN0paALNfPdQUhS9iOIgAsXOsght2JNdR3wuJR/PuJbzXYTF6XotykeutqgWSYCz
+Hsc+sl9n5G8xKGycnl5jNKM3tq7Czpqyv3eyRg34oif7hjd6Q2TsWLqUC+88wJpC
+EoecWdJua8eOKwKztwCQRKhRddU5ZcbRrDnzCANnVBsUmDZn704FdSby1zxPjSRw
+xR8oAiAmmFD8KqeShYRLdfxr1kdUpXK2xlqD/eEePSR0/5FVcG0PNpQdz2RDAnbV
+Nva39xkcAwcO/8JLKfOXnm2BM5lA4Jk656R0GSbCtc2LdgJLvwMQ9Y+9acv5kZhb
+o8KEgErJBQbT3JtT7ZgTeEQF5WFKW6kqlljC4s6icsVUukvs4zgfXhBfGWJ4WJ7f
+Hx94mgS8KtJmj1rmlTPkPYO0pvM8OtoSMLqGD2bBUjkKwePg5js8A22clO2gz3/r
+KF90xmsocHx3pS12m/bXMP9VeavPI2MQW/bbyUDRKbD8QE3q7qGvYc4ry8M5dcML
+fK5tJDeKQ1vQhmeLLChC3ByDa56VzvMCPXTRP+yGhr2Rodru8aJR3oZeKN9g8bMB
+w3/nM07TBwDTa/OpMnk0ntzOfm62AvP3xEKvehgXyqDhDA4BH37K2jc+DkbXA7Xo
+JA063r0KWErbS7lLhjgt
+=6Uit
-----END PGP SIGNATURE-----
diff --git a/net-misc/openvpn/openvpn-2.3.1.ebuild b/net-misc/openvpn/openvpn-2.3.1.ebuild
deleted file mode 100644
index 477e97c55fa7..000000000000
--- a/net-misc/openvpn/openvpn-2.3.1.ebuild
+++ /dev/null
@@ -1,127 +0,0 @@
-# Copyright 1999-2013 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/openvpn/openvpn-2.3.1.ebuild,v 1.13 2013/06/09 16:02:39 ago Exp $
-
-EAPI=4
-
-inherit multilib autotools flag-o-matic user systemd
-
-DESCRIPTION="Robust and highly flexible tunneling application compatible with many OSes"
-SRC_URI="http://swupdate.openvpn.net/community/releases/${P}.tar.gz"
-HOMEPAGE="http://openvpn.net/"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 s390 sh sparc x86 ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~arm-linux ~x86-linux"
-IUSE="examples down-root iproute2 pam passwordsave pkcs11 +plugins polarssl selinux +ssl +lzo static userland_BSD"
-
-REQUIRED_USE="static? ( !plugins !pkcs11 )
- polarssl? ( ssl )
- !plugins? ( !pam !down-root )"
-
-DEPEND="
- kernel_linux? (
- iproute2? ( sys-apps/iproute2[-minimal] ) !iproute2? ( sys-apps/net-tools )
- )
- pam? ( virtual/pam )
- selinux? ( sec-policy/selinux-openvpn )
- ssl? (
- !polarssl? ( >=dev-libs/openssl-0.9.7 ) polarssl? ( >=net-libs/polarssl-1.1.0 )
- )
- lzo? ( >=dev-libs/lzo-1.07 )
- pkcs11? ( >=dev-libs/pkcs11-helper-1.05 )"
-RDEPEND="${DEPEND}"
-
-src_prepare() {
- eautoreconf
-}
-
-src_configure() {
- use static && LDFLAGS="${LDFLAGS} -Xcompiler -static"
- local myconf
- use polarssl && myconf="--with-crypto-library=polarssl"
- econf \
- ${myconf} \
- --docdir="${EPREFIX}/usr/share/doc/${PF}" \
- --with-plugindir="${ROOT}/usr/$(get_libdir)/$PN" \
- $(use_enable passwordsave password-save) \
- $(use_enable ssl) \
- $(use_enable ssl crypto) \
- $(use_enable lzo) \
- $(use_enable pkcs11) \
- $(use_enable plugins) \
- $(use_enable iproute2) \
- $(use_enable pam plugin-auth-pam) \
- $(use_enable down-root plugin-down-root)
-}
-
-src_install() {
- default
- find "${ED}/usr" -name '*.la' -delete
- # install documentation
- dodoc AUTHORS ChangeLog PORTS README README.IPv6
-
- # Install some helper scripts
- keepdir /etc/openvpn
- 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 contrib
- fi
-
- systemd_newtmpfilesd "${FILESDIR}"/${PN}.tmpfile ${PN}.conf || die
- systemd_newunit "${FILESDIR}"/${PN}.service 'openvpn@.service' || die
-}
-
-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 [ path_exists -o "${ROOT}/etc/openvpn/*/local.conf" ] ; then
- ewarn "WARNING: The openvpn init script has changed"
- ewarn ""
- fi
-
- elog "The openvpn init script expects to find the configuration file"
- elog "openvpn.conf in /etc/openvpn along with any extra files it may need."
- elog ""
- elog "To create more VPNs, simply create a new .conf file for it and"
- elog "then create a symlink to the openvpn init script from a link called"
- elog "openvpn.newconfname - like so"
- elog " cd /etc/openvpn"
- elog " ${EDITOR##*/} foo.conf"
- elog " cd /etc/init.d"
- elog " ln -s openvpn openvpn.foo"
- elog ""
- elog "You can then treat openvpn.foo as any other service, so you can"
- elog "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 plugins ; then
- einfo ""
- einfo "plugins have been installed into /usr/$(get_libdir)/${PN}"
- fi
-
- einfo ""
- einfo "OpenVPN 2.3.0 no longer includes the easy-rsa suite of utilities."
- einfo "They can now be emerged via app-crypt/easy-rsa."
-}
diff --git a/net-misc/openvpn/openvpn-2.3.4.ebuild b/net-misc/openvpn/openvpn-2.3.4.ebuild
deleted file mode 100644
index 29dc4c0fa5f4..000000000000
--- a/net-misc/openvpn/openvpn-2.3.4.ebuild
+++ /dev/null
@@ -1,130 +0,0 @@
-# Copyright 1999-2014 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/openvpn/openvpn-2.3.4.ebuild,v 1.2 2014/07/21 09:29:28 djc Exp $
-
-EAPI=4
-
-inherit multilib autotools flag-o-matic user systemd
-
-DESCRIPTION="Robust and highly flexible tunneling application compatible with many OSes"
-SRC_URI="http://swupdate.openvpn.net/community/releases/${P}.tar.gz"
-HOMEPAGE="http://openvpn.net/"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~sparc-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~arm-linux ~x86-linux"
-IUSE="examples down-root iproute2 pam passwordsave pkcs11 +plugins +polarssl selinux +ssl +lzo static userland_BSD"
-
-REQUIRED_USE="static? ( !plugins !pkcs11 )
- polarssl? ( ssl )
- pkcs11? ( ssl )
- !plugins? ( !pam !down-root )"
-
-DEPEND="
- kernel_linux? (
- iproute2? ( sys-apps/iproute2[-minimal] ) !iproute2? ( sys-apps/net-tools )
- )
- pam? ( virtual/pam )
- selinux? ( sec-policy/selinux-openvpn )
- ssl? (
- !polarssl? ( >=dev-libs/openssl-0.9.7 ) polarssl? ( >=net-libs/polarssl-1.2.10 )
- )
- lzo? ( >=dev-libs/lzo-1.07 )
- pkcs11? ( >=dev-libs/pkcs11-helper-1.05 )"
-RDEPEND="${DEPEND}"
-
-src_prepare() {
- eautoreconf
-}
-
-src_configure() {
- use static && LDFLAGS="${LDFLAGS} -Xcompiler -static"
- local myconf
- echo "DROPPY"
- use polarssl && echo "FLOZZY"
- use polarssl && myconf="--with-crypto-library=polarssl"
- econf \
- ${myconf} \
- --docdir="${EPREFIX}/usr/share/doc/${PF}" \
- --with-plugindir="${ROOT}/usr/$(get_libdir)/$PN" \
- $(use_enable passwordsave password-save) \
- $(use_enable ssl) \
- $(use_enable ssl crypto) \
- $(use_enable lzo) \
- $(use_enable pkcs11) \
- $(use_enable plugins) \
- $(use_enable iproute2) \
- $(use_enable pam plugin-auth-pam) \
- $(use_enable down-root plugin-down-root)
-}
-
-src_install() {
- default
- find "${ED}/usr" -name '*.la' -delete
- # install documentation
- dodoc AUTHORS ChangeLog PORTS README README.IPv6
-
- # Install some helper scripts
- keepdir /etc/openvpn
- 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 contrib
- fi
-
- systemd_newtmpfilesd "${FILESDIR}"/${PN}.tmpfile ${PN}.conf
- systemd_newunit "${FILESDIR}"/${PN}.service 'openvpn@.service'
-}
-
-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 [ path_exists -o "${ROOT}/etc/openvpn/*/local.conf" ] ; then
- ewarn "WARNING: The openvpn init script has changed"
- ewarn ""
- fi
-
- elog "The openvpn init script expects to find the configuration file"
- elog "openvpn.conf in /etc/openvpn along with any extra files it may need."
- elog ""
- elog "To create more VPNs, simply create a new .conf file for it and"
- elog "then create a symlink to the openvpn init script from a link called"
- elog "openvpn.newconfname - like so"
- elog " cd /etc/openvpn"
- elog " ${EDITOR##*/} foo.conf"
- elog " cd /etc/init.d"
- elog " ln -s openvpn openvpn.foo"
- elog ""
- elog "You can then treat openvpn.foo as any other service, so you can"
- elog "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 plugins ; then
- einfo ""
- einfo "plugins have been installed into /usr/$(get_libdir)/${PN}"
- fi
-
- einfo ""
- einfo "OpenVPN 2.3.x no longer includes the easy-rsa suite of utilities."
- einfo "They can now be emerged via app-crypt/easy-rsa."
-}