From 36980be2589fae0f7d0d78fecc9720219c371f41 Mon Sep 17 00:00:00 2001 From: Lars Weiler Date: Thu, 7 Dec 2006 20:26:19 +0000 Subject: [PATCH] Version bump with complete ebuild-review. Currently package.masked due to connection errors which need to be debugged. Package-Manager: portage-2.1.2_rc2-r5 --- net-misc/strongswan/ChangeLog | 8 +- net-misc/strongswan/Manifest | 32 ++++-- .../strongswan/files/digest-strongswan-2.8.0 | 3 + net-misc/strongswan/strongswan-2.8.0.ebuild | 104 ++++++++++++++++++ 4 files changed, 134 insertions(+), 13 deletions(-) create mode 100644 net-misc/strongswan/files/digest-strongswan-2.8.0 create mode 100644 net-misc/strongswan/strongswan-2.8.0.ebuild diff --git a/net-misc/strongswan/ChangeLog b/net-misc/strongswan/ChangeLog index 4d0f25776e68..8236e45b1090 100644 --- a/net-misc/strongswan/ChangeLog +++ b/net-misc/strongswan/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for net-misc/strongswan # Copyright 2002-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/strongswan/ChangeLog,v 1.42 2006/05/01 23:02:52 weeve Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/strongswan/ChangeLog,v 1.43 2006/12/07 20:26:19 pylon Exp $ + +*strongswan-2.8.0 (07 Dec 2006) + + 07 Dec 2006; Lars Weiler +strongswan-2.8.0.ebuild: + Version bump with complete ebuild-review. Currently package.masked due to + connection errors which need to be debugged. 01 May 2006; Jason Wever strongswan-2.5.7.ebuild: Stable on SPARC. diff --git a/net-misc/strongswan/Manifest b/net-misc/strongswan/Manifest index 01693b9eea89..987776316fef 100644 --- a/net-misc/strongswan/Manifest +++ b/net-misc/strongswan/Manifest @@ -1,30 +1,35 @@ -AUX ipsec 1538 RMD160 eaecc2b05c66aa3d6140fe3b6b01147c34c9ead3 SHA1 cd80b639a4ddfc832b81eb747f89baafca768091 SHA256 a405d35526f0017b6cf95ed67f5cab1e325a1850ae85f763cdb7d7b2a913b51a size 1538 +AUX ipsec 1538 RMD160 eaecc2b05c66aa3d6140fe3b6b01147c34c9ead3 SHA1 cd80b639a4ddfc832b81eb747f89baafca768091 SHA256 a405d35526f0017b6cf95ed67f5cab1e325a1850ae85f763cdb7d7b2a913b51a MD5 d35f8aea878066e110e6ff3d09a4f50e files/ipsec 1538 RMD160 eaecc2b05c66aa3d6140fe3b6b01147c34c9ead3 files/ipsec 1538 SHA256 a405d35526f0017b6cf95ed67f5cab1e325a1850ae85f763cdb7d7b2a913b51a files/ipsec 1538 -AUX strongswan-2.5.7-gentoo.patch 11561 RMD160 7073faf7422117dde68857db5a1c9fccc1c7cd01 SHA1 e791272675388bca783454ed12749394ebb3f972 SHA256 5ba19c6cdd47dc35f0e711b9838c2ba807bf34ffbbddf7c238561a41d920d612 size 11561 +AUX strongswan-2.5.7-gentoo.patch 11561 RMD160 7073faf7422117dde68857db5a1c9fccc1c7cd01 SHA1 e791272675388bca783454ed12749394ebb3f972 SHA256 5ba19c6cdd47dc35f0e711b9838c2ba807bf34ffbbddf7c238561a41d920d612 MD5 3c4497cd3d13f2c5e42de1e36579b2f8 files/strongswan-2.5.7-gentoo.patch 11561 RMD160 7073faf7422117dde68857db5a1c9fccc1c7cd01 files/strongswan-2.5.7-gentoo.patch 11561 SHA256 5ba19c6cdd47dc35f0e711b9838c2ba807bf34ffbbddf7c238561a41d920d612 files/strongswan-2.5.7-gentoo.patch 11561 -AUX strongswan-2.6.2-gentoo.patch 11564 RMD160 62dec97fccb460c49bc585b302094321ed0aa819 SHA1 e9c086881ae5ee7b347408e4409d2da7a167eb54 SHA256 926e9d664c195c003d4038a2f289d6ec54f19c2c4147d13bd902d3b0fa8ce9e1 size 11564 +AUX strongswan-2.6.2-gentoo.patch 11564 RMD160 62dec97fccb460c49bc585b302094321ed0aa819 SHA1 e9c086881ae5ee7b347408e4409d2da7a167eb54 SHA256 926e9d664c195c003d4038a2f289d6ec54f19c2c4147d13bd902d3b0fa8ce9e1 MD5 b4bf5e5d10c4f0fc9ba8ecaf61066bd8 files/strongswan-2.6.2-gentoo.patch 11564 RMD160 62dec97fccb460c49bc585b302094321ed0aa819 files/strongswan-2.6.2-gentoo.patch 11564 SHA256 926e9d664c195c003d4038a2f289d6ec54f19c2c4147d13bd902d3b0fa8ce9e1 files/strongswan-2.6.2-gentoo.patch 11564 -DIST strongswan-2.5.7.tar.bz2 2458893 RMD160 e2c8f799c1ef68cdd0327c415efb6ced0bc48d0e SHA256 8195ce5c5576ba63fec4e12f23fa4f91cc90e4ca35b004b1a59bc272949b64bb size 2458893 -DIST strongswan-2.6.2.tar.bz2 2634571 RMD160 600aa3c523f9db432441f7c9c4c4898a6b89edb4 SHA256 713fbd4bebecf9e4293251aa8b1b2f0bd308f698633b0fc727b7570135434385 size 2634571 -EBUILD strongswan-2.5.7.ebuild 3713 RMD160 f525690169e29ae6d681363ec42cf9dd57b02937 SHA1 c06dda74efa5b628b368416c72a37716b5f256df SHA256 1f4ce8ffc8bc6a7cdf2bf7e4f314800cdd1607099bd23fefd33d0ce0ff99b353 size 3713 +DIST strongswan-2.5.7.tar.bz2 2458893 RMD160 e2c8f799c1ef68cdd0327c415efb6ced0bc48d0e SHA256 8195ce5c5576ba63fec4e12f23fa4f91cc90e4ca35b004b1a59bc272949b64bb +DIST strongswan-2.6.2.tar.bz2 2634571 RMD160 600aa3c523f9db432441f7c9c4c4898a6b89edb4 SHA256 713fbd4bebecf9e4293251aa8b1b2f0bd308f698633b0fc727b7570135434385 +DIST strongswan-2.8.0.tar.bz2 2534893 RMD160 c5ff3e675bbf02d243775e4418858bd2cb1ddaac SHA1 d946d508b33b1afd7fef8ffac4c141a853a58f70 SHA256 998231c62cc2a27060fe9523c64cfd12f42865a9e3a0bf1a2f27e5a7aa900fa2 +EBUILD strongswan-2.5.7.ebuild 3713 RMD160 f525690169e29ae6d681363ec42cf9dd57b02937 SHA1 c06dda74efa5b628b368416c72a37716b5f256df SHA256 1f4ce8ffc8bc6a7cdf2bf7e4f314800cdd1607099bd23fefd33d0ce0ff99b353 MD5 e97bed99891047b86ce76be2101a4849 strongswan-2.5.7.ebuild 3713 RMD160 f525690169e29ae6d681363ec42cf9dd57b02937 strongswan-2.5.7.ebuild 3713 SHA256 1f4ce8ffc8bc6a7cdf2bf7e4f314800cdd1607099bd23fefd33d0ce0ff99b353 strongswan-2.5.7.ebuild 3713 -EBUILD strongswan-2.6.2.ebuild 3781 RMD160 558be3e7c0cb4013c09abcd4176a113743ff6a64 SHA1 781603cf129342100f5b2281b0b47be9ef8843a6 SHA256 de1182eea9f6799f1253ef14383fa9252784d575a52fb2d88ab12d6106dc1810 size 3781 +EBUILD strongswan-2.6.2.ebuild 3781 RMD160 558be3e7c0cb4013c09abcd4176a113743ff6a64 SHA1 781603cf129342100f5b2281b0b47be9ef8843a6 SHA256 de1182eea9f6799f1253ef14383fa9252784d575a52fb2d88ab12d6106dc1810 MD5 1b405815ac0e7b4aa894ff6b1ca04ef7 strongswan-2.6.2.ebuild 3781 RMD160 558be3e7c0cb4013c09abcd4176a113743ff6a64 strongswan-2.6.2.ebuild 3781 SHA256 de1182eea9f6799f1253ef14383fa9252784d575a52fb2d88ab12d6106dc1810 strongswan-2.6.2.ebuild 3781 -MISC ChangeLog 7116 RMD160 1f553ff41e800d84523adcfe0ea57093e3dd06c9 SHA1 9f79c38f0a2cfd4c4098d4ddd901ed16f9a0bb5d SHA256 db60309e0a7c5be2ddd94b3182b4abe4d719a38c56ef5c76894ac97e4eed921e size 7116 -MD5 67891be910f97aaf6c0aa718dedeffd2 ChangeLog 7116 -RMD160 1f553ff41e800d84523adcfe0ea57093e3dd06c9 ChangeLog 7116 -SHA256 db60309e0a7c5be2ddd94b3182b4abe4d719a38c56ef5c76894ac97e4eed921e ChangeLog 7116 -MISC metadata.xml 634 RMD160 24c570ea95443f70aa0e077267719bd31746a2f6 SHA1 7c6047e87df52c99839edabfafdd4f91895d09b0 SHA256 9b0a5ff28d7243716eb1d42dd87633df10b94606bf7f095dba8bbff6fa01bb32 size 634 +EBUILD strongswan-2.8.0.ebuild 3060 RMD160 52c88e230147846ecf70697bf05a8e65d22a479a SHA1 67dabe003b8cece95375e5ba347bf6ebbedce599 SHA256 7bde85f63c2409b26c88fb29027ceb249610bb147c4f7756c74250341cb7deee +MD5 b6501e7cc837870ce63388710e0d9d53 strongswan-2.8.0.ebuild 3060 +RMD160 52c88e230147846ecf70697bf05a8e65d22a479a strongswan-2.8.0.ebuild 3060 +SHA256 7bde85f63c2409b26c88fb29027ceb249610bb147c4f7756c74250341cb7deee strongswan-2.8.0.ebuild 3060 +MISC ChangeLog 7345 RMD160 9bc8a7a380ca0efb8c8a1e7b9dd97bd66a7a7480 SHA1 8a41e5b8ce42e8cf191deb2611648fbe55f0c4d3 SHA256 78fce5aaf75b7f13682c46d7db96904633378611e393239f2ce80199ed8b7c4d +MD5 17ccc947277e3698e5c81a9a0e6b6e2e ChangeLog 7345 +RMD160 9bc8a7a380ca0efb8c8a1e7b9dd97bd66a7a7480 ChangeLog 7345 +SHA256 78fce5aaf75b7f13682c46d7db96904633378611e393239f2ce80199ed8b7c4d ChangeLog 7345 +MISC metadata.xml 634 RMD160 24c570ea95443f70aa0e077267719bd31746a2f6 SHA1 7c6047e87df52c99839edabfafdd4f91895d09b0 SHA256 9b0a5ff28d7243716eb1d42dd87633df10b94606bf7f095dba8bbff6fa01bb32 MD5 48d78406890387afe4b0d4bba793f8d1 metadata.xml 634 RMD160 24c570ea95443f70aa0e077267719bd31746a2f6 metadata.xml 634 SHA256 9b0a5ff28d7243716eb1d42dd87633df10b94606bf7f095dba8bbff6fa01bb32 metadata.xml 634 @@ -34,3 +39,6 @@ SHA256 12e4d1abff9ac7ab9b672990c9b7021e97531df3022f3d50811f858c012e6c44 files/di MD5 d63440e5cfb21a5d4e14913ce2c0e924 files/digest-strongswan-2.6.2 256 RMD160 1e6833fc4b4143fd046e9474216173f9635c1974 files/digest-strongswan-2.6.2 256 SHA256 4b58d838783aa458b7b08d5121e73b62a0d8e6b8ea58b72c6b1e6ccb5d8543c9 files/digest-strongswan-2.6.2 256 +MD5 f04ac4c8ffc55846156d429b1d862acb files/digest-strongswan-2.8.0 256 +RMD160 1ad72b5c437748c0f1e60d1e3ebc3783070c2ef1 files/digest-strongswan-2.8.0 256 +SHA256 f253313e21d90546455ed6d4b3b19bebf555303540f0e1f54105a5046fc9b9b5 files/digest-strongswan-2.8.0 256 diff --git a/net-misc/strongswan/files/digest-strongswan-2.8.0 b/net-misc/strongswan/files/digest-strongswan-2.8.0 new file mode 100644 index 000000000000..993cd463f3c9 --- /dev/null +++ b/net-misc/strongswan/files/digest-strongswan-2.8.0 @@ -0,0 +1,3 @@ +MD5 57626f52a18aa8894c090052346c9729 strongswan-2.8.0.tar.bz2 2534893 +RMD160 c5ff3e675bbf02d243775e4418858bd2cb1ddaac strongswan-2.8.0.tar.bz2 2534893 +SHA256 998231c62cc2a27060fe9523c64cfd12f42865a9e3a0bf1a2f27e5a7aa900fa2 strongswan-2.8.0.tar.bz2 2534893 diff --git a/net-misc/strongswan/strongswan-2.8.0.ebuild b/net-misc/strongswan/strongswan-2.8.0.ebuild new file mode 100644 index 000000000000..69363d732e9e --- /dev/null +++ b/net-misc/strongswan/strongswan-2.8.0.ebuild @@ -0,0 +1,104 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/strongswan/strongswan-2.8.0.ebuild,v 1.1 2006/12/07 20:26:19 pylon Exp $ + +inherit linux-info +DESCRIPTION="IPsec-based VPN Solution for Linux" +HOMEPAGE="http://www.strongswan.org/" +SRC_URI="http://download.strongswan.org/${P}.tar.bz2" + +LICENSE="GPL-2 RSA-MD2 RSA-MD5 RSA-PKCS11" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~sparc ~x86 " +IUSE="curl ldap smartcard" + +DEPEND="!net-misc/openswan + dev-libs/gmp + sys-apps/iproute2 + curl? ( net-misc/curl ) + ldap? ( net-nds/openldap ) + smartcard? ( dev-libs/opensc )" +RDEPEND="" + +pkg_setup() { + if kernel_is 2 6; then + einfo "This ebuild will set ${P} to use 2.6 native IPsec (KAME)." + einfo "KLIPS will not be compiled/installed." + export MYMAKE="programs" + + elif kernel_is 2 4; then + [ -d /usr/src/linux/net/ipsec ] || { + eerror "You need to have an IPsec enabled 2.4.x kernel." + eerror "Ensure you have one running and make a symlink to it in /usr/src/linux" + } + einfo "Using patched-in IPsec code for kernel 2.4." + einfo "Your kernel only supports KLIPS for kernel level IPsec." + export MYMAKE="confcheck programs" + + else + eerror "Sorry, no support for your kernel version ${KV_FULL}." + die "Install an IPsec enabled 2.4 or 2.6 kernel." + fi +} + +src_unpack() { + unpack ${A} + + # The Destination dir for documentation which will be included in man-pages + cd ${S} + sed -i -e "s:FINALEXAMPLECONFDIR=\(.*\)/strongswan:FINALEXAMPLECONFDIR=\1/${P}:g" Makefile.inc || die + sed -i -e "s:FINALDOCDIR?=\(.*\)/strongswan:FINALDOCDIR?=\1/${P}:g" Makefile.inc || die + + if use curl ; then + ebegin "Curl support requested. Enabling curl support" + sed -i -e 's:\(USE_LIBCURL?=\)false:\1true:g' Makefile.inc || die + eend $? + fi + + if use ldap ; then + ebegin "LDAP support requested. Enabling LDAPv3 support" + sed -i -e 's:\(USE_LDAP?=\)false:\1true:g' Makefile.inc || die + eend $? + fi + + if use smartcard ; then + ebegin "Smartcard support requested. Enabling opensc support" + sed -i -e 's:\(USE_SMARTCARD?=\)false:\1true:g' Makefile.inc || die + sed -i -e 's:\(PKCS11_DEFAULT_LIB=\\\"/usr/lib/pkcs11/opensc-pkcs11.so\\\"\):#\1:g' Makefile.inc || die + sed -i -e 's:#\(PKCS11_DEFAULT_LIB=\\\"/usr/lib/opensc-pkcs11.so\\\"\):\1:g' Makefile.inc || die + eend $? + fi +} + +src_compile() { + make \ + DESTDIR=${D} \ + USERCOMPILE="${CFLAGS}" \ + FINALCONFDIR=/etc/ipsec \ + INC_RCDEFAULT=/etc/init.d \ + INC_USRLOCAL=/usr \ + INC_MANDIR=share/man \ + ${MYMAKE} || die "Failed compiling ${P}" +} + +src_install() { + # make install wants this directory + dodir /etc/init.d + + make \ + DESTDIR=${D} \ + USERCOMPILE="${CFLAGS}" \ + FINALCONFDIR=/etc/ipsec \ + INC_RCDEFAULT=/etc/init.d \ + INC_USRLOCAL=/usr \ + INC_MANDIR=share/man \ + install || die "Failed compiling ${P}" + + dohtml doc/*html + rm -f ${S}/doc/*.html + dodoc CHANGES COPYING CREDITS INSTALL LICENSE README doc/* + + doinitd ${FILESDIR}/ipsec || die "doinitd failed" + + einfo "Configuration files are installed into /etc/ipsec/" +} -- 2.26.2