diff options
author | Lars Weiler <pylon@gentoo.org> | 2007-10-02 01:29:56 +0000 |
---|---|---|
committer | Lars Weiler <pylon@gentoo.org> | 2007-10-02 01:29:56 +0000 |
commit | afb57ad2f6872712be9eb8c0142d6816b897c638 (patch) | |
tree | 68725e38e3612b4968f8665b9ab35747dc385b60 /net-misc/strongswan | |
parent | Remove old. Fix quoting. (diff) | |
download | gentoo-2-afb57ad2f6872712be9eb8c0142d6816b897c638.tar.gz gentoo-2-afb57ad2f6872712be9eb8c0142d6816b897c638.tar.bz2 gentoo-2-afb57ad2f6872712be9eb8c0142d6816b897c638.zip |
Major version bump. Could only test on x86 and ppc.
(Portage version: 2.1.3.11)
Diffstat (limited to 'net-misc/strongswan')
-rw-r--r-- | net-misc/strongswan/ChangeLog | 7 | ||||
-rw-r--r-- | net-misc/strongswan/files/digest-strongswan-4.1.6 | 3 | ||||
-rw-r--r-- | net-misc/strongswan/strongswan-4.1.6.ebuild | 92 |
3 files changed, 101 insertions, 1 deletions
diff --git a/net-misc/strongswan/ChangeLog b/net-misc/strongswan/ChangeLog index 75c80683028b..f804222408c1 100644 --- a/net-misc/strongswan/ChangeLog +++ b/net-misc/strongswan/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for net-misc/strongswan # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/strongswan/ChangeLog,v 1.55 2007/05/31 11:56:03 pylon Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/strongswan/ChangeLog,v 1.56 2007/10/02 01:29:55 pylon Exp $ + +*strongswan-4.1.6 (02 Oct 2007) + + 02 Oct 2007; Lars Weiler <pylon@gentoo.org> +strongswan-4.1.6.ebuild: + Major version bump. Could only test on x86 and ppc. *strongswan-2.8.4 (31 May 2007) diff --git a/net-misc/strongswan/files/digest-strongswan-4.1.6 b/net-misc/strongswan/files/digest-strongswan-4.1.6 new file mode 100644 index 000000000000..297b1c4ff830 --- /dev/null +++ b/net-misc/strongswan/files/digest-strongswan-4.1.6 @@ -0,0 +1,3 @@ +MD5 2023bb03017f038f05ad7b4120c6e40e strongswan-4.1.6.tar.bz2 1950676 +RMD160 ee1d768cda0dd8d6464e3046e251dab1d3a7da16 strongswan-4.1.6.tar.bz2 1950676 +SHA256 5d22f2f2f95a2c2f6493b60ef22f5ced7cd4200d490ec165f8a49357cd8f5a42 strongswan-4.1.6.tar.bz2 1950676 diff --git a/net-misc/strongswan/strongswan-4.1.6.ebuild b/net-misc/strongswan/strongswan-4.1.6.ebuild new file mode 100644 index 000000000000..b9a623fe1efe --- /dev/null +++ b/net-misc/strongswan/strongswan-4.1.6.ebuild @@ -0,0 +1,92 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/strongswan/strongswan-4.1.6.ebuild,v 1.1 2007/10/02 01:29:55 pylon Exp $ + +inherit eutils linux-info + +UGID="ipsec" + +DESCRIPTION="Open Source implementation of IPsec for the Linux operating system." +HOMEPAGE="http://www.strongswan.org/" +SRC_URI="http://download.strongswan.org/${P}.tar.bz2" + +LICENSE="GPL-2 RSA-MD2 RSA-MD5 RSA-PKCS11 DES" +SLOT="0" +KEYWORDS="~ppc ~x86" +IUSE="cisco curl dbus debug ldap nat smartcard static xml" + +COMMON_DEPEND="!net-misc/openswan + dev-libs/gmp" +DEPEND="${COMMON_DEPEND} + virtual/linux-sources + sys-kernel/linux-headers + curl? ( net-misc/curl ) + dbus? ( sys-apps/dbus net-misc/networkmanager ) + ldap? ( net-nds/openldap ) + smartcard? ( dev-libs/opensc ) + xml? ( dev-libs/libxml2 )" +RDEPEND="${COMMON_DEPEND} + virtual/logger + sys-apps/iproute2" + +pkg_setup() { + linux-info_pkg_setup + + einfo "Linux kernel is version ${KV_FULL}" + + if kernel_is 2 6; then + einfo "This ebuild will set ${P} to use 2.6 native IPsec (KAME)." + else + eerror "Sorry, no support for your kernel version ${KV_FULL}." + die "Install an IPsec enabled 2.6 kernel." + fi + + # install strongswan non-root by default + enewgroup ${UGID} + enewuser ${UGID} -1 -1 -1 ${UGID} +} + +src_compile() { + local myconf="" + + # change to an unauthorised user by default + myconf="${myconf} --with-uid=$(id -u ${UGID}) --with-gid=$(id -g ${UGID})" + # strongswan enables both by default; switch to the user's wish + if use static; then + myconf="${myconf} --enable-static --disable-shared" + else + myconf="${myconf} --disable-static --enable-shared" + fi + + econf \ + $(use_enable curl http) \ + $(use_enable ldap) \ + $(use_enable dbus) \ + $(use_enable xml) \ + $(use_enable smartcard) \ + $(use_enable cisco cisco-quirks) \ + $(use_enable debug leak-detective) \ + $(use_enable nat nat-transport) \ + ${myconf} \ + || die "econf failed" + + emake || die "emake failed" +} + +src_install() { + einstall || die "einstall failed." + + doinitd "${FILESDIR}"/ipsec +} + +pkg_postinst() { + echo + ewarn "Starting with the strongswan-4 branch, the configuration files" + ewarn "will be installed into the default directory \"/etc/\"" + ewarn "instead of the Gentoo-specific directory \"/etc/ipsec/\"." + ewarn "Please adjust your configuration!" + echo + einfo "The up-to-date configuration manual is available online at" + einfo "http://www.strongswan.org/docs/readme.htm" + echo +} |