summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Gilbert <floppym@gentoo.org>2015-08-12 22:32:35 -0400
committerMike Gilbert <floppym@gentoo.org>2015-08-12 22:32:35 -0400
commit46bdcfca9bcc35711b84bb5ebfb71d1b33ec335c (patch)
tree34834e622f7bb7f0bc8921d15c1c6cd973797096 /net-misc/libreswan
parentReplace $Header: $ with $Id$ where it has accidentally been reverted (diff)
downloadgentoo-46bdcfca9bcc35711b84bb5ebfb71d1b33ec335c.tar.gz
gentoo-46bdcfca9bcc35711b84bb5ebfb71d1b33ec335c.tar.bz2
gentoo-46bdcfca9bcc35711b84bb5ebfb71d1b33ec335c.zip
net-misc/libreswan: Bump to 3.14
Package-Manager: portage-2.2.20_p134
Diffstat (limited to 'net-misc/libreswan')
-rw-r--r--net-misc/libreswan/Manifest1
-rw-r--r--net-misc/libreswan/libreswan-3.14.ebuild101
-rw-r--r--net-misc/libreswan/libreswan-9999.ebuild4
3 files changed, 105 insertions, 1 deletions
diff --git a/net-misc/libreswan/Manifest b/net-misc/libreswan/Manifest
index 9e20181db59f..4887078cc673 100644
--- a/net-misc/libreswan/Manifest
+++ b/net-misc/libreswan/Manifest
@@ -1,6 +1,7 @@
DIST libreswan-3.10.tar.gz 9787915 SHA256 aa6bb559c27dfaef58a9bc3e194c6633a2423bbfcb4888591596f1678eec4c1e SHA512 fe3dbe0c8779050e5787da08541c312a79b091c2669cec102b3bb07ce1d4a53f2f7f99cbe60665cde4002c8e98597485f2039ea73640194c317d2d3fb15626d9 WHIRLPOOL 93c3542a74d4cef97b5f0b8af6e43078aed8af5aa15810b31a29285bad5f64520924470e5b3a924fcb078497ce40be51a95e40d988e01781d8543e568fc6d101
DIST libreswan-3.12.tar.gz 9793222 SHA256 044dc63a69637e99ee4c0b86c2d9775d14b14e9e22ebd5a27caf504a956cf1be SHA512 d378d9290ba4a552b5c5eacb324651733b28094c4e4d72123bcc7ca9c6c651679bdf514b48585db16731bd18059c62cb950140066d0cbb5c3aa8c85b8b23652c WHIRLPOOL c0e7bde2dc1f5e09da3e5fda43a9c50225f793ac5b72d5b860249459c73a67387f4a2ea006a04b612a38f2d72feede2d4ab0af9e393b8aa33e313e778d71e2c9
DIST libreswan-3.13.tar.gz 9797529 SHA256 25a6888f850a83eb17d7f041783babb316b07f88a4a327f276d760a273b86f32 SHA512 81385a566b736a97836e70fb4e7827864f6bd27387d29aaaf49c126af305fd8b82c92021186eecceb830418e27ed1d775d70b47a1d1cfe159bc9f2b9c2430e2d WHIRLPOOL 805f9b3adef86367fe9de44908705254693bc1036bac2dca2addd4fb9c661efeb84334d1b77f25612ade5e5a203b33c9cc78b5c117a8b12c3e530b1e01f5600a
+DIST libreswan-3.14.tar.gz 9245651 SHA256 0a9d1d59936884a4c072004bee6c51e4034b97dd02edea53620ee6e5c9cf2c21 SHA512 2f9eb8dde8677b9dd94ca3471858975b8fad441f78345e242629d4e8a7cb33df5b86968e4dae385f9450ed106abd5305610a548658313682fa0485e40737cadf WHIRLPOOL 99a1fc7220404f5d6399a74b79ba63ddae1260b4bc99cb3720aaba913064eb61d1062f1562be38a52804d8521b3a730c8ee3070b15452e198f4474364d9e6c8c
DIST libreswan-3.7.tar.gz 11135078 SHA256 7d62d11d30d3b7a4c011dfff4385e0eb778d99ccb2cdf2e8c35b37b34bd156c9 SHA512 b612d956ac4fe1dc102898e5a0a500a0a855654cd30363cae41d4ef4bcb9091c8f058a962ceab1c00348e301b17258f31b6814120c4578d6a119abede30ecff3 WHIRLPOOL 171014eef323a2d49019452f1bb429f76ca091f736e567aea906a3e811fc9c3b67794ec6c42ee6513b4087bb94c44776051b7e975224ddbae1bedfe26bf64c6f
DIST libreswan-3.8.tar.gz 11104943 SHA256 a2e285fc9d20d2819a8fd8e3742d3aa5b1b33f0fd371584788800b7a5ebf12e4 SHA512 de2c7b92a22762bb3fb2d10c5efd60d9de2cc8289f31e61c23ee6c9e876a8f3fd327b3613de7c38b1fc4979cdf047baa5d78f7f809196c59f62d2b51b93cb246 WHIRLPOOL fe515ea5923b7f0161f056788d20991e243b67cb237b6b954c6385652148afac3df1ab5235b36f31bfbcf3bb680b718e32a80734abc047e1e9110d4030073294
DIST libreswan-3.9.tar.gz 9720359 SHA256 3b586a8f6121c982757a09c1711a86c853be6f7bb7bf81a8a265dba31728f74b SHA512 59b2a461ed6877886e3e64603ae9adf83840c8348be96fb719a2b268a62d15495c049a8aebeb3d76156b1e6cda806fd7fe674c7006e8c1bd727996717f31e5e9 WHIRLPOOL 62f9be12b25fd9e0f36b778290674313f40b2da9be9525217285882250a184f38ce0ce48781b74ff6aa358e0525e04aeaf0ee15a8f7dcb10909d14e6268f48d4
diff --git a/net-misc/libreswan/libreswan-3.14.ebuild b/net-misc/libreswan/libreswan-3.14.ebuild
new file mode 100644
index 000000000000..c4f69d342b73
--- /dev/null
+++ b/net-misc/libreswan/libreswan-3.14.ebuild
@@ -0,0 +1,101 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils systemd toolchain-funcs
+
+if [[ ${PV} != 9999 ]]; then
+ SRC_URI="https://download.libreswan.org/${P}.tar.gz"
+ KEYWORDS="~amd64 ~ppc ~x86"
+else
+ inherit git-r3
+ EGIT_REPO_URI="https://github.com/libreswan/libreswan.git"
+fi
+
+DESCRIPTION="IPsec implementation for Linux, fork of Openswan"
+HOMEPAGE="https://libreswan.org/"
+
+LICENSE="GPL-2 BSD-4 RSA DES"
+SLOT="0"
+IUSE="caps curl dnssec ldap pam"
+
+COMMON_DEPEND="
+ dev-libs/gmp:0=
+ dev-libs/nspr
+ caps? ( sys-libs/libcap-ng )
+ curl? ( net-misc/curl )
+ dnssec? ( net-dns/unbound net-libs/ldns )
+ ldap? ( net-nds/openldap )
+ pam? ( sys-libs/pam )
+"
+DEPEND="${COMMON_DEPEND}
+ app-text/docbook-xml-dtd:4.1.2
+ app-text/xmlto
+ dev-libs/nss
+ sys-devel/bison
+ sys-devel/flex
+ virtual/pkgconfig
+"
+RDEPEND="${COMMON_DEPEND}
+ dev-libs/nss[utils(+)]
+ sys-apps/iproute2
+ !net-misc/openswan
+ !net-misc/strongswan
+"
+
+src_prepare() {
+ epatch_user
+}
+
+usetf() {
+ usex "$1" true false
+}
+
+src_configure() {
+ tc-export AR CC
+ export INC_USRLOCAL=/usr
+ export INC_MANDIR=share/man
+ export FINALEXAMPLECONFDIR=/usr/share/doc/${PF}
+ export FINALDOCDIR=/usr/share/doc/${PF}/html
+ export INITSYSTEM=openrc
+ export INC_RCDIRS=
+ export INC_RCDEFAULT=/etc/init.d
+ export USERCOMPILE=
+ export USERLINK=
+ export USE_DNSSEC=$(usetf dnssec)
+ export USE_LIBCAP_NG=$(usetf caps)
+ export USE_LIBCURL=$(usetf curl)
+ export USE_LDAP=$(usetf ldap)
+ export USE_XAUTHPAM=$(usetf pam)
+ export DEBUG_CFLAGS=
+ export OPTIMIZE_CFLAGS=
+}
+
+src_compile() {
+ emake all
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+
+ echo "include /etc/ipsec.d/*.secrets" > "${D}"/etc/ipsec.secrets
+ fperms 0600 /etc/ipsec.secrets
+
+ systemd_dounit "${FILESDIR}/ipsec.service"
+
+ dodoc CHANGES README
+ dodoc -r docs
+
+ find "${D}" -type d -empty -delete || die
+}
+
+pkg_postinst() {
+ local IPSEC_CONFDIR=${ROOT%/}/etc/ipsec.d
+ if [[ ! -f ${IPSEC_CONFDIR}/cert8.db ]]; then
+ ebegin "Setting up NSS database in ${IPSEC_CONFDIR}"
+ certutil -N -d "${IPSEC_CONFDIR}" -f <(echo)
+ eend $?
+ fi
+}
diff --git a/net-misc/libreswan/libreswan-9999.ebuild b/net-misc/libreswan/libreswan-9999.ebuild
index b4c24412356b..c4f69d342b73 100644
--- a/net-misc/libreswan/libreswan-9999.ebuild
+++ b/net-misc/libreswan/libreswan-9999.ebuild
@@ -69,10 +69,12 @@ src_configure() {
export USE_LIBCURL=$(usetf curl)
export USE_LDAP=$(usetf ldap)
export USE_XAUTHPAM=$(usetf pam)
+ export DEBUG_CFLAGS=
+ export OPTIMIZE_CFLAGS=
}
src_compile() {
- emake programs
+ emake all
}
src_install() {