diff options
author | Bjarke Istrup Pedersen <gurligebis@gentoo.org> | 2014-03-03 17:30:22 +0000 |
---|---|---|
committer | Bjarke Istrup Pedersen <gurligebis@gentoo.org> | 2014-03-03 17:30:22 +0000 |
commit | 0ed3443d7dfbe3e66662c506e8e99ebbb56caf71 (patch) | |
tree | f3c66568e09503c64213097dd341a2258abac0c0 /net-misc/strongswan | |
parent | python-single-r1 fixes, shouldn't affect installed users (diff) | |
download | historical-0ed3443d7dfbe3e66662c506e8e99ebbb56caf71.tar.gz historical-0ed3443d7dfbe3e66662c506e8e99ebbb56caf71.tar.bz2 historical-0ed3443d7dfbe3e66662c506e8e99ebbb56caf71.zip |
Bumping to 5.1.2
Package-Manager: portage-2.2.8-r1/cvs/Linux i686
Manifest-Sign-Key: 0x15AE484C
Diffstat (limited to 'net-misc/strongswan')
-rw-r--r-- | net-misc/strongswan/ChangeLog | 7 | ||||
-rw-r--r-- | net-misc/strongswan/Manifest | 22 | ||||
-rw-r--r-- | net-misc/strongswan/strongswan-5.1.2.ebuild | 270 |
3 files changed, 282 insertions, 17 deletions
diff --git a/net-misc/strongswan/ChangeLog b/net-misc/strongswan/ChangeLog index 6aa7517a05ef..65acaf27ef57 100644 --- a/net-misc/strongswan/ChangeLog +++ b/net-misc/strongswan/ChangeLog @@ -1,6 +1,11 @@ # 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.134 2014/03/01 22:21:33 mgorny Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/strongswan/ChangeLog,v 1.135 2014/03/03 17:30:13 gurligebis Exp $ + +*strongswan-5.1.2 (03 Mar 2014) + + 03 Mar 2014; <gurligebis@gentoo.org> +strongswan-5.1.2.ebuild: + Bumping to 5.1.2 01 Mar 2014; Michał Górny <mgorny@gentoo.org> strongswan-5.1.1.ebuild: Update libgcrypt dep to use slot :0. diff --git a/net-misc/strongswan/Manifest b/net-misc/strongswan/Manifest index 8d30fc8a59d5..d122e9bdb3b8 100644 --- a/net-misc/strongswan/Manifest +++ b/net-misc/strongswan/Manifest @@ -3,25 +3,15 @@ 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.2.tar.bz2 3767546 SHA256 fb4c3066461dade176408840edbc9d830255f4816b0991baebbbedee501fddd6 SHA512 d699795c2ac1a9d6c94f02ded8b372175690337b7a3afcf08355020a246ddfec514986cda5d389e51ed88212f45830a5f19d105cc08efacd3117cc25f9d2f6e8 WHIRLPOOL 7c644d975be6c1ecf845f77a1561594153c715c4916c4997d54e5f5253f8663d2dfb57940b7ff331f39f50df83ef390d5f348d4aa83036b4e582cc05f17064df EBUILD strongswan-5.1.1.ebuild 8460 SHA256 90af16dd0f59b105ec4d8997a0e6e88d10e4f143098e6780aee820de2904ea2f SHA512 123d6484a43e8ffedf6cc416522ba3601ca6f14f522ec737b171d5ea8dd077870140d4751b73dd4994bb810c60141090d3adc34f1a02e232733a9950d24c6418 WHIRLPOOL 79226a475455d4710be0cc7937f3bec04fe7809b182d7870bbc9cf79a9801491c8d3b5303e72863cf3d903d59817781cbda2853394e5fcb83b7e2e665d758278 -MISC ChangeLog 23163 SHA256 be5cf7ce53f6de1a61a839efd02a10e4495d01f83adabfea8f9bc750fceec616 SHA512 521ce56a04fbe71074a0a9c883288eaf634db3f19092ba0ce458861d29784c3ce57c8db52e22012c5e58891e431862ad03a58786c86480147b1a8230e0646f36 WHIRLPOOL c39d1340d126504524b020aca1332348ecfda571af6e0189a3ec9884491a18478da0bdb0378fd166afd15a38932acf2e6f3a0c9d18cc93d3f6572bba2e0a7b8e +EBUILD strongswan-5.1.2.ebuild 8468 SHA256 1aa38881f4ed9f42ba18148767339c7b48124357035dd19c1f6a8d5cde85db1b SHA512 e750306e4714c3a3c9756087d2d95b3a414372fc8eb5a0dcc0fec03dbd8c7b861065d6d7a4e6ab14ed851502f54837f20cbb5a114692bca9a958a33d7f01e01c WHIRLPOOL 78186e05821aa0358b97d9c2da6cc0a7664aad7899e6a34a2a2353952cc6b93f53d01d9ef6d457560bc074b06a8d4a04871d2d94f2455b603729d5d6caec0e1d +MISC ChangeLog 23285 SHA256 6acf5491c12cf7421ec9caaf15fe32989ba58f5c0f910204257760945c8aa67e SHA512 a459de615427c9f1750040c20368c32464acebb30ed88e55819098fce40a19c2348509cbd976f5e69c8736038ca60688adf718c2b8f70b332c269c57ad5e4145 WHIRLPOOL 601b174af7a64cb6fb3946a29f755fa64b619418948e092ced6cecbfc05178b3d3a37c4327819c455347fcda59b692ccc7fa640a963e98277076970c34ae4e17 MISC metadata.xml 2341 SHA256 694e5612e1cd59825a17b207c2094f3cbba8ab37f53ce0ada624c2ab6d35860e SHA512 d77b598f5848132460ae3a11a51b84218ae92b3e00172a22343153e206c08705a28e691b97ee931ff39131617a16e570b69df6b55dfb755461a5bc5d17990a3d WHIRLPOOL 40b3bba52742b4c1edc203ba7e00c722a5bef071e78ded7351ab62d4f7f11d9f3f1c925d0b0a13f44ada3546cf080cac3487824de762b6960e4ff5bf4cbfe78d -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.22 (GNU/Linux) -iQJ8BAEBCABmBQJTEl1wXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w -ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQ2REJCMDdDQzRGMERBRDA2RUEwQUZFNDFC -MDdBMUFFQUVGQjQ0NjRFAAoJELB6GurvtEZODVwP/iPFeRgXc6OERHYjpGPo7fJM -MzaNFv5/muRMMVCfAQlpqM9bSaiHMboUzhAGbl6Njk+qDmuY/8araq9iRectSudz -Ifszwyej4tTQY2lvR7XR9PWCmWu/voQyp6ZPcyGRWqx820d0rT17vEvb72Hb0X04 -nuO1vhgTIaaLsfONSkYpAOFEk86+OjZmBQODXAsWKUAGitkxwUBfJLA/rfb5WcoE -me0fJ8U4EdM6BuBgeLxVZy+Ocx68JV0dj/7Y5cBzXG+Eskd+XiNUvIwquwPdyjtO -yFz2qyHhJAbqlK3LTvZqSnUe9XGPF0th+Uh09iDDM3i9kYzCp2jlW/srsD1r1ul+ -4OAzEJQGPCxVH/rl2nPASaQ2QGUewmCX9X+pBQwSlIRBhTNdT8aRO/twwg8kIymj -TeltG9jy07tOqdoGB0m4qYggM/tCDOX7TKuQiBquSIOVrdR/G+CroUq7SkpXOrZc -W8x9BK+enAPYXeZ+f3uQxmVOpy6tbvTOCMFz7a1Lkj1/YJttZ52Gx64GE9CbetM5 -dQW7p6yS0HybFopnIPXlMzNfbNzcWW62rO3JdK57Ef9O5yczmMLYqthMgjN0fOGR -blWZloimnquV4wlp23BfUjhbQtupeepn/GORam8gt3IDyMEEAHiMBJ62j6GwA4A7 -e66rjbVqjWm1sVtry/7T -=Rle8 +iEYEAREIAAYFAlMUuoEACgkQsR7PQhRXYEnHdgCfWCLMdyhM0xSa1kDYZdy8p4UL +HD8AniYgV6sZGjAIecAdXWn9aaPP9Bko +=h6vF -----END PGP SIGNATURE----- diff --git a/net-misc/strongswan/strongswan-5.1.2.ebuild b/net-misc/strongswan/strongswan-5.1.2.ebuild new file mode 100644 index 000000000000..405e9f64fe5c --- /dev/null +++ b/net-misc/strongswan/strongswan-5.1.2.ebuild @@ -0,0 +1,270 @@ +# 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.2.ebuild,v 1.1 2014/03/03 17:30:13 gurligebis 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 +} |