summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net-misc/strongswan/ChangeLog5
-rw-r--r--net-misc/strongswan/Manifest20
-rw-r--r--net-misc/strongswan/strongswan-5.1.1.ebuild270
3 files changed, 8 insertions, 287 deletions
diff --git a/net-misc/strongswan/ChangeLog b/net-misc/strongswan/ChangeLog
index bf0a6b8a6b47..9644ebe544e4 100644
--- a/net-misc/strongswan/ChangeLog
+++ b/net-misc/strongswan/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for net-misc/strongswan
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/strongswan/ChangeLog,v 1.142 2014/05/10 14:00:53 ago Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/strongswan/ChangeLog,v 1.143 2014/05/10 15:22:51 gurligebis Exp $
+
+ 10 May 2014; <gurligebis@gentoo.org> -strongswan-5.1.1.ebuild:
+ Removing old version, with known issues, fixing bug #507722 and #509832
10 May 2014; Agostino Sarubbo <ago@gentoo.org> strongswan-5.1.3.ebuild:
Stable for ppc, wrt bug #507722
diff --git a/net-misc/strongswan/Manifest b/net-misc/strongswan/Manifest
index 32d43195191a..093ade7cb093 100644
--- a/net-misc/strongswan/Manifest
+++ b/net-misc/strongswan/Manifest
@@ -2,26 +2,14 @@
Hash: SHA256
AUX ipsec 445 SHA256 5ba492de6d612d7def1cb7ceacadf8397e50f8433b91c4f2f09bf216eed34da6 SHA512 fb786be3c356b22d32b86132d11ebc2eca34414aa0961dc66374697c4cf0fc2fe57e8638b3bbd247f1a0fbf5539bd496200d4c70633a855a88591cf113a69754 WHIRLPOOL d90910b657330b84ab3e89456a1fdc49d8bd6bbae377e883cdd073cdf8e6e44f6f45e7118ac76874fa950ad7245fe2a89876ac6a8ffb3d6e4f6cf75bed39b807
-DIST strongswan-5.1.1.tar.bz2 3673200 SHA256 fbf2a668221fc4a36a34bdeac2dfeda25b96f572d551df022585177953622406 SHA512 77b5f51e2e8d2c87c97984ddaf271f6c30ec418e3564bb131a9be6393e9aeb838e53fe90e0f271d8714c05975c655bba0762349f04984aa9b176f6b08c2c966f WHIRLPOOL d740e1a48198f8629f18ab31262d3aa2cf73a5d7a1e95e6ae33c99b91b127c0614b46c796eee4b62eea2c360d12e4334c44b9455a154e36a1b2b3b1b943ec1ef
DIST strongswan-5.1.3.tar.bz2 3807212 SHA256 84e46d5ce801e1b874e2bfba8d21dbd78b432e23b7fb1f4f2d637359e7a183a8 SHA512 05f4afbf778de54c593692a8117a5fae05c0539cdb7545bc53657deb32d09bec7e0aef07d509dc682af15d57adf569242715447bc1a87785c1f80a21076cb8cb WHIRLPOOL f808f47879504c09364ad326e404555f60754980f728121de80d41645e06bf740b2814eb39ae8a3d9239b83de68978d3281ac6f2fdfd68d1c14ac3447c9f9c6b
-EBUILD strongswan-5.1.1.ebuild 8460 SHA256 90af16dd0f59b105ec4d8997a0e6e88d10e4f143098e6780aee820de2904ea2f SHA512 123d6484a43e8ffedf6cc416522ba3601ca6f14f522ec737b171d5ea8dd077870140d4751b73dd4994bb810c60141090d3adc34f1a02e232733a9950d24c6418 WHIRLPOOL 79226a475455d4710be0cc7937f3bec04fe7809b182d7870bbc9cf79a9801491c8d3b5303e72863cf3d903d59817781cbda2853394e5fcb83b7e2e665d758278
EBUILD strongswan-5.1.3.ebuild 8500 SHA256 03b24aa4875a3da05b4442c44f31ebd8482647b31cf0a4f3a2ac6e697c901b29 SHA512 a7339bcb0635c223173a7982111d58bf8f0da9cf245e57f23ecc91bcddb9c0c2b31d7792778f4d48992171f95063eb2e50c5a1627019215f5e9a8ace120a1947 WHIRLPOOL fb1d2e49682bbbb7f7313a540fe7205ef6f2e7ae8ad886e42b58e3538eebd2ce1213a54be0e94cd8fb696bda29a26a66c126c24fc69f5d91877efa6cd9e9914e
-MISC ChangeLog 24162 SHA256 1c954a27da306a9c497ec06da6df0d9f6c45e4fb6a1bcc22ebec4e746ced8ef6 SHA512 0a4fd50146f3f0a940d851e13f5d2c68fb07f172521a4b225f5cee4be7fce146b1bcf0610935cd8234cdfd4a828947f761d18afef5c0a6426f9d2dbd45bdea04 WHIRLPOOL b8153a810b7d4d86adf150059f0b4d882fca8ec1885b5faec499434458af1bb91d30f114426a31a5c610486786eef628a605b5291eb0f13c8e32123010c1cbce
+MISC ChangeLog 24309 SHA256 c8665e127315b648ab960a9761b0fe10ed32e25701182c4e566149ada1eb57ca SHA512 5ac0ad22a6dd32d0956ff56d5bebdaabdb1e7093081987d7d4478c0ff98fbf3c905e62729622b654adb06db134620d6dd651bb652a929cc659ccd81a28c57e4f WHIRLPOOL ca1c4ba6a98f54a33b4249981b3b9bb55883c5f98f335873c3e9c95804ea5a18fa3c8a92f65faacea59514db2d0608157ba4c7c7b48c68bf86c1daaeb2a110a2
MISC metadata.xml 2430 SHA256 385af43c591467507befc7c6b17042e355d377aec7c511fee2a50399ee41af87 SHA512 04e0fc93db680159b8a090398948a80b8720c9955267919434c3703fe3a8b404fef0d51600a5a21e58c7d0bfe94af774effd6930de1dba0d1851eac33890dd4a WHIRLPOOL bbba382932dcfe239e99ba767aca1a3dfadd312f70072041b089d6d736a46c27c4d535d93551d851fffb74a920a9a39bb8236b6ddf573cbddee5d55c2db8e09d
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (GNU/Linux)
-iQIcBAEBCAAGBQJTbjEXAAoJELp701BxlEWfcmAP/jyGnUngk8jWzXWeC7NYn5S2
-JL0wHwvzczlLe6VU/6ivFRE9M62Q4GjaLdmU/v/qjJ7ORmJF7K95FK4bbMxAdU5W
-03bQi1dGl61nP6tLHxGv1MDMQrGfAjmM2QTH//pYMb+9VsuhHl/KjIRrslnx/bTZ
-dQe6aR+Ua6l3n3dEinOySwpHmWcpwWWpXq4xRWph/YBe4EYvXC5BOSAiWwae9x8e
-MijXd1kC46qbxtmkhuzUGD7oDuz0VOFp7Q+3D8nagSZTn6Z8MeUhnaXfu1ED1Zef
-eVyLnvwIzw6Lyj0urUGKG8EJcqvBkX+noNcOH47YDfP9Uz2co+2QvYZTUegdSRWP
-b5Qh+Kny9N8MEi18j8jAa9BeNPzu6dtvfm0L2FRxtc5ak9VdKJEAaZ5fzs33bTXt
-DHPwpvAr0yLRif1SL8weAbzFrY/xrbawk0W5OjbmpZuoLW4A9DY209LFb+Ml756f
-K/9uO/9i1JEtSgCaPzLknKyEh37TbTPgBMrqm2a/AZ1+sd68UQfZUUFWwEGOZE4f
-jT7oziESorq3EYeL+AnJDnsNbx0L0gOv8BdBOZBNyQ3unkd2aBNg4ZvhjLGyS3i4
-fe8QqC0BC+ouhwbJDFjVQX6+QZfgr2mGJUBLdcts/VgEGCr3R+11QQ8GQJk5h3PN
-EYDXfUZ2qiGSoBvRrHSX
-=R6Jz
+iEYEAREIAAYFAlNuREwACgkQsR7PQhRXYEnoLwCdFIq2VP6p2DDIRtfBeLIBrDWv
+U6YAnizBeGQ9xDRPZhim/uh20Z1VgjM8
+=Yam3
-----END PGP SIGNATURE-----
diff --git a/net-misc/strongswan/strongswan-5.1.1.ebuild b/net-misc/strongswan/strongswan-5.1.1.ebuild
deleted file mode 100644
index 2c46b18906e8..000000000000
--- a/net-misc/strongswan/strongswan-5.1.1.ebuild
+++ /dev/null
@@ -1,270 +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/strongswan/strongswan-5.1.1.ebuild,v 1.7 2014/03/01 22:21:33 mgorny Exp $
-
-EAPI=5
-inherit eutils linux-info systemd user
-
-DESCRIPTION="IPsec-based VPN solution focused on security and ease of use, supporting IKEv1/IKEv2 and MOBIKE"
-HOMEPAGE="http://www.strongswan.org/"
-SRC_URI="http://download.strongswan.org/${P}.tar.bz2"
-
-LICENSE="GPL-2 RSA DES"
-SLOT="0"
-KEYWORDS="amd64 arm ppc ~ppc64 x86"
-IUSE="+caps curl debug dhcp eap farp gcrypt ldap mysql networkmanager +non-root +openssl sqlite pam"
-
-COMMON_DEPEND="!net-misc/openswan
- >=dev-libs/gmp-4.1.5
- gcrypt? ( dev-libs/libgcrypt:0 )
- caps? ( sys-libs/libcap )
- curl? ( net-misc/curl )
- ldap? ( net-nds/openldap )
- openssl? ( >=dev-libs/openssl-0.9.8[-bindist] )
- mysql? ( virtual/mysql )
- sqlite? ( >=dev-db/sqlite-3.3.1 )
- networkmanager? ( net-misc/networkmanager )
- pam? ( sys-libs/pam )"
-DEPEND="${COMMON_DEPEND}
- virtual/linux-sources
- sys-kernel/linux-headers"
-RDEPEND="${COMMON_DEPEND}
- virtual/logger
- sys-apps/iproute2
- !net-misc/libreswan"
-
-UGID="ipsec"
-
-pkg_setup() {
- linux-info_pkg_setup
- elog "Linux kernel version: ${KV_FULL}"
-
- if ! kernel_is -ge 2 6 16; then
- eerror
- eerror "This ebuild currently only supports ${PN} with the"
- eerror "native Linux 2.6 IPsec stack on kernels >= 2.6.16."
- eerror
- fi
-
- if kernel_is -lt 2 6 34; then
- ewarn
- ewarn "IMPORTANT KERNEL NOTES: Please read carefully..."
- ewarn
-
- if kernel_is -lt 2 6 29; then
- ewarn "[ < 2.6.29 ] Due to a missing kernel feature, you have to"
- ewarn "include all required IPv6 modules even if you just intend"
- ewarn "to run on IPv4 only."
- ewarn
- ewarn "This has been fixed with kernels >= 2.6.29."
- ewarn
- fi
-
- if kernel_is -lt 2 6 33; then
- ewarn "[ < 2.6.33 ] Kernels prior to 2.6.33 include a non-standards"
- ewarn "compliant implementation for SHA-2 HMAC support in ESP and"
- ewarn "miss SHA384 and SHA512 HMAC support altogether."
- ewarn
- ewarn "If you need any of those features, please use kernel >= 2.6.33."
- ewarn
- fi
-
- if kernel_is -lt 2 6 34; then
- ewarn "[ < 2.6.34 ] Support for the AES-GMAC authentification-only"
- ewarn "ESP cipher is only included in kernels >= 2.6.34."
- ewarn
- ewarn "If you need it, please use kernel >= 2.6.34."
- ewarn
- fi
- fi
-
- if use non-root; then
- enewgroup ${UGID}
- enewuser ${UGID} -1 -1 -1 ${UGID}
- fi
-}
-
-src_prepare() {
- epatch_user
-}
-
-src_configure() {
- local myconf=""
-
- if use non-root; then
- myconf="${myconf} --with-user=${UGID} --with-group=${UGID}"
- fi
-
- # If a user has already enabled db support, those plugins will
- # most likely be desired as well. Besides they don't impose new
- # dependencies and come at no cost (except for space).
- if use mysql || use sqlite; then
- myconf="${myconf} --enable-attr-sql --enable-sql"
- fi
-
- # strongSwan builds and installs static libs by default which are
- # useless to the user (and to strongSwan for that matter) because no
- # header files or alike get installed... so disabling them is safe.
- if use pam && use eap; then
- myconf="${myconf} --enable-eap-gtc"
- else
- myconf="${myconf} --disable-eap-gtc"
- fi
- econf \
- --disable-static \
- --enable-ikev1 \
- --enable-ikev2 \
- $(use_with caps capabilities libcap) \
- $(use_enable curl) \
- $(use_enable ldap) \
- $(use_enable debug leak-detective) \
- $(use_enable eap eap-sim) \
- $(use_enable eap eap-sim-file) \
- $(use_enable eap eap-simaka-sql) \
- $(use_enable eap eap-simaka-pseudonym) \
- $(use_enable eap eap-simaka-reauth) \
- $(use_enable eap eap-identity) \
- $(use_enable eap eap-md5) \
- $(use_enable eap eap-aka) \
- $(use_enable eap eap-aka-3gpp2) \
- $(use_enable eap eap-mschapv2) \
- $(use_enable eap eap-radius) \
- $(use_enable eap eap-tls) \
- $(use_enable openssl) \
- $(use_enable gcrypt) \
- $(use_enable mysql) \
- $(use_enable sqlite) \
- $(use_enable dhcp) \
- $(use_enable farp) \
- $(use_enable networkmanager nm) \
- "$(systemd_with_unitdir)" \
- ${myconf}
-}
-
-src_install() {
- emake DESTDIR="${D}" install
-
- doinitd "${FILESDIR}"/ipsec
-
- local dir_ugid
- if use non-root; then
- fowners ${UGID}:${UGID} \
- /etc/ipsec.conf \
- /etc/strongswan.conf
-
- dir_ugid="${UGID}"
- else
- dir_ugid="root"
- fi
-
- diropts -m 0750 -o ${dir_ugid} -g ${dir_ugid}
- dodir /etc/ipsec.d \
- /etc/ipsec.d/aacerts \
- /etc/ipsec.d/acerts \
- /etc/ipsec.d/cacerts \
- /etc/ipsec.d/certs \
- /etc/ipsec.d/crls \
- /etc/ipsec.d/ocspcerts \
- /etc/ipsec.d/private \
- /etc/ipsec.d/reqs
-
- dodoc NEWS README TODO || die
-
- # shared libs are used only internally and there are no static libs,
- # so it's safe to get rid of the .la files
- find "${D}" -name '*.la' -delete || die "Failed to remove .la files."
-}
-
-pkg_preinst() {
- has_version "<net-misc/strongswan-4.3.6-r1"
- upgrade_from_leq_4_3_6=$(( !$? ))
-
- has_version "<net-misc/strongswan-4.3.6-r1[-caps]"
- previous_4_3_6_with_caps=$(( !$? ))
-}
-
-pkg_postinst() {
- if ! use openssl && ! use gcrypt; then
- elog
- elog "${PN} has been compiled without both OpenSSL and libgcrypt support."
- elog "Please note that this might effect availability and speed of some"
- elog "cryptographic features. You are advised to enable the OpenSSL plugin."
- elif ! use openssl; then
- elog
- elog "${PN} has been compiled without the OpenSSL plugin. This might effect"
- elog "availability and speed of some cryptographic features. There will be"
- elog "no support for Elliptic Curve Cryptography (Diffie-Hellman groups 19-21,"
- elog "25, 26) and ECDSA."
- fi
-
- if [[ $upgrade_from_leq_4_3_6 == 1 ]]; then
- chmod 0750 "${ROOT}"/etc/ipsec.d \
- "${ROOT}"/etc/ipsec.d/aacerts \
- "${ROOT}"/etc/ipsec.d/acerts \
- "${ROOT}"/etc/ipsec.d/cacerts \
- "${ROOT}"/etc/ipsec.d/certs \
- "${ROOT}"/etc/ipsec.d/crls \
- "${ROOT}"/etc/ipsec.d/ocspcerts \
- "${ROOT}"/etc/ipsec.d/private \
- "${ROOT}"/etc/ipsec.d/reqs
-
- ewarn
- ewarn "The default permissions for /etc/ipsec.d/* have been tightened for"
- ewarn "security reasons. Your system installed directories have been"
- ewarn "updated accordingly. Please check if necessary."
- ewarn
-
- if [[ $previous_4_3_6_with_caps == 1 ]]; then
- if ! use non-root; then
- ewarn
- ewarn "IMPORTANT: You previously had ${PN} installed without root"
- ewarn "privileges because it was implied by the 'caps' USE flag."
- ewarn "This has been changed. If you want ${PN} with user privileges,"
- ewarn "you have to re-emerge it with the 'non-root' USE flag enabled."
- ewarn
- fi
- fi
- fi
- if ! use caps && ! use non-root; then
- ewarn
- ewarn "You have decided to run ${PN} with root privileges and built it"
- ewarn "without support for POSIX capability dropping. It is generally"
- ewarn "strongly suggested that you reconsider- especially if you intend"
- ewarn "to run ${PN} as server with a public ip address."
- ewarn
- ewarn "You should re-emerge ${PN} with at least the 'caps' USE flag enabled."
- ewarn
- fi
- if use non-root; then
- elog
- elog "${PN} has been installed without superuser privileges (USE=non-root)."
- elog "This imposes several limitations mainly to the IKEv1 daemon 'pluto'"
- elog "but also a few to the IKEv2 daemon 'charon'."
- elog
- elog "Please carefully read: http://wiki.strongswan.org/wiki/nonRoot"
- elog
- elog "pluto uses a helper script by default to insert/remove routing and"
- elog "policy rules upon connection start/stop which requires superuser"
- elog "privileges. charon in contrast does this internally and can do so"
- elog "even with reduced (user) privileges."
- elog
- elog "Thus if you require IKEv1 (pluto) or need to specify a custom updown"
- elog "script to pluto or charon which requires superuser privileges, you"
- elog "can work around this limitation by using sudo to grant the"
- elog "user \"ipsec\" the appropriate rights."
- elog "For example (the default case):"
- elog "/etc/sudoers:"
- elog " ipsec ALL=(ALL) NOPASSWD: SETENV: /usr/sbin/ipsec"
- elog "Under the specific connection block in /etc/ipsec.conf:"
- elog " leftupdown=\"sudo -E ipsec _updown iptables\""
- elog
- fi
- elog
- elog "Make sure you have _all_ required kernel modules available including"
- elog "the appropriate cryptographic algorithms. A list is available at:"
- elog " http://wiki.strongswan.org/projects/strongswan/wiki/KernelModules"
- elog
- elog "The up-to-date manual is available online at:"
- elog " http://wiki.strongswan.org/"
- elog
-}