diff options
author | Alin Năstac <mrness@gentoo.org> | 2008-06-08 14:06:56 +0000 |
---|---|---|
committer | Alin Năstac <mrness@gentoo.org> | 2008-06-08 14:06:56 +0000 |
commit | 12e33142c5379b7d0dc4e770868abc7a74cb73e7 (patch) | |
tree | 577bbce5388012b86d840e6421d6d26228f5deda /net-misc | |
parent | Remove USE=debug as it does not affect anything anymore (diff) | |
download | historical-12e33142c5379b7d0dc4e770868abc7a74cb73e7.tar.gz historical-12e33142c5379b7d0dc4e770868abc7a74cb73e7.tar.bz2 historical-12e33142c5379b7d0dc4e770868abc7a74cb73e7.zip |
Version bump.
Package-Manager: portage-2.1.4.4
Diffstat (limited to 'net-misc')
-rw-r--r-- | net-misc/openswan/ChangeLog | 9 | ||||
-rw-r--r-- | net-misc/openswan/Manifest | 16 | ||||
-rw-r--r-- | net-misc/openswan/files/openswan-2.4.12-deprecated-ldap.patch | 11 | ||||
-rw-r--r-- | net-misc/openswan/files/openswan-2.4.12-gentoo.patch | 135 | ||||
-rw-r--r-- | net-misc/openswan/openswan-2.4.12.ebuild | 126 |
5 files changed, 295 insertions, 2 deletions
diff --git a/net-misc/openswan/ChangeLog b/net-misc/openswan/ChangeLog index 6b1680835691..af236059da6a 100644 --- a/net-misc/openswan/ChangeLog +++ b/net-misc/openswan/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for net-misc/openswan # Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/openswan/ChangeLog,v 1.44 2008/01/29 12:44:35 mrness Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/openswan/ChangeLog,v 1.45 2008/06/08 14:06:55 mrness Exp $ + +*openswan-2.4.12 (08 Jun 2008) + + 08 Jun 2008; Alin Năstac <mrness@gentoo.org> + +files/openswan-2.4.12-deprecated-ldap.patch, + +files/openswan-2.4.12-gentoo.patch, +openswan-2.4.12.ebuild: + Version bump. *openswan-2.4.11 (29 Jan 2008) diff --git a/net-misc/openswan/Manifest b/net-misc/openswan/Manifest index 7c096de9f2a9..5ffd4c908e9c 100644 --- a/net-misc/openswan/Manifest +++ b/net-misc/openswan/Manifest @@ -1,11 +1,25 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + AUX ipsec 1551 RMD160 9f2480ebfb7549df1cbe3cf5c62575acd78a986a SHA1 53c1826bea6a613a025d34ea3b68e95c2b13e62c SHA256 926aedf5585626202b9817e0d37ef40c4a07ef1f75b77de228eb7f5f8b8e6f21 AUX openswan-2.4.11-gentoo.patch 16263 RMD160 39f72ab5edcc29a46de25398414f434814465fad SHA1 ce0e922722921315eb97acf650a5101b010e0e63 SHA256 1fa4f4323c40ca2d7f61abead7dd4c08ce2df9ed644df277c7b700825f7d9ec5 AUX openswan-2.4.11-implicit-decl.patch 372 RMD160 b9f1ac0ba583d18ca029f4d990d8c2c697ede6c6 SHA1 c1864d0f9cc7d865fcc0df9c270962f4904724c6 SHA256 398ce3760280ec1db3c14a3e073d4a428453c44aaf2bd8de9567ad9ecaf3dc92 +AUX openswan-2.4.12-deprecated-ldap.patch 372 RMD160 3e39f78960828f8552c0e0d9a561a10846bb9f74 SHA1 e2171af09ccdedac0a4839f51bd0ab8215c9158c SHA256 c895706d3dd7f7bf679457c9769d3ca95f62b47a7a42ea943204e3a3db5864cd +AUX openswan-2.4.12-gentoo.patch 6190 RMD160 87cf8d0458caa331b232faac2df339e7938fe035 SHA1 529943df26350751028375ed1e4624407c9bdc9c SHA256 bf39cadd74cea650776cd3bcdfd782405b53d54f5ff664da5e96ab1559ac84bc AUX openswan-2.4.9-gentoo.patch 16145 RMD160 19e8f10a334decad10d5e0bbb9a46c4d7cfbfdc0 SHA1 9294b0da2568bc154a3d8eecf7e29af36e0ed595 SHA256 9f7a970c90bf843360f8e6395279d3035336f1b94bec3c5ee6f9f22701de5182 AUX openswan-2.4.9-mkdir.patch 628 RMD160 5f5ae3b61a89d997dafc26e3df4dd4b1c72979d9 SHA1 90ecce7382a8ea3339da5e23b7cdd05370adfe43 SHA256 2f635f184d0b9fe904a783b1052fb86a822ae52c62df273d4166269c66ae42f8 DIST openswan-2.4.11.tar.gz 3759918 RMD160 c77777aaeba65e92196aad9e7c32ffd7c2e4a49d SHA1 532bf898872ced97888be95adc5814b6155a9574 SHA256 4adea45d7cc413b558f15e4528de4486b62a07cfd2af2bf592b09cea3f16ecae +DIST openswan-2.4.12.tar.gz 3764063 RMD160 09f4454399651d369961aa678205b90e13a124c0 SHA1 225ab28ca970a062160b026570597588883b71d8 SHA256 4024e9a6b6e7171fb195a4228043142dd5e92035325b6cd18deb338f77ca494b DIST openswan-2.4.9.tar.gz 3733727 RMD160 4cb6be6c03ffe6b9311554c0b2f2f1780989e151 SHA1 93d4ad5586c516c3310a059d35db5cb723b1b7c7 SHA256 847cec4af9afa5d975593f3310e50a6913e5a2502222ed4a6216424ab33bc8be EBUILD openswan-2.4.11.ebuild 3752 RMD160 228e226f384508d7ee699391ebff7b4cca9c315d SHA1 44740138c17d38dd884fc3705a18c8db880252bd SHA256 c22c7031d4a971f6d1d1032eb5c5e52e0fc1e77b5893c10c121d63e41d8d24ec +EBUILD openswan-2.4.12.ebuild 3539 RMD160 e891d6fd2c170c4b3a21d4e814062f24e507f185 SHA1 403358de65993b6c23961d786ed34a7d0b8995fa SHA256 4155fa847953bc59aedcc1afb1d4076daea2e887587c9c8a813478106d26308b EBUILD openswan-2.4.9-r1.ebuild 3430 RMD160 f89e230fd80e1327faa10665c7d4cd5324475340 SHA1 36bb197dbbada5e36c6580cdbb170fcaebd85f0c SHA256 279eb6a66dec94bcbb85559bfc44c79b693e9c394ee6fe31aae71f51f520dbd3 -MISC ChangeLog 7801 RMD160 716bd68db6c71b2e278d42c213c32a359df6cff7 SHA1 97fda8fd425c553dc52263b31520b8a2ef226d28 SHA256 3c95e47b168f95a947b2f6ba41772a57273624f10722a50d29d42b4a3066edb9 +MISC ChangeLog 8010 RMD160 d402abe861111ae32f703ff03fa0cf404a0c8d39 SHA1 bff101408747cc3ca9eb06a6aa461412a614df1a SHA256 c2e15d020c796e1ad6cf597f1a843a0c273aa48c89b501a059e120ac12a29193 MISC metadata.xml 615 RMD160 b3d598429d92b809f96a81e5afee71da401805e6 SHA1 b42b5faa0351e1a13a85f169c2f9f571cf5a01c9 SHA256 ea4e1b6588339042b92326e43795dd53d95e3c22851c78184ea91c4c850296b2 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.9 (GNU/Linux) + +iEYEARECAAYFAkhL54kACgkQ+fWpoTWIA9FqKQCeJhxMdBFE12Xytz6qPj/Z+zjc +L5oAn2haa1lSL1yIxr9YwN+R4l9bZiXL +=O4kM +-----END PGP SIGNATURE----- diff --git a/net-misc/openswan/files/openswan-2.4.12-deprecated-ldap.patch b/net-misc/openswan/files/openswan-2.4.12-deprecated-ldap.patch new file mode 100644 index 000000000000..1b800b899324 --- /dev/null +++ b/net-misc/openswan/files/openswan-2.4.12-deprecated-ldap.patch @@ -0,0 +1,11 @@ +diff -Nru openswan-2.4.12.orig/programs/pluto/fetch.c openswan-2.4.12/programs/pluto/fetch.c +--- openswan-2.4.12.orig/programs/pluto/fetch.c 2004-06-14 05:01:32.000000000 +0300 ++++ openswan-2.4.12/programs/pluto/fetch.c 2008-06-08 16:07:07.000000000 +0300 +@@ -28,6 +28,7 @@ + #include <openswan.h> + + #ifdef LDAP_VER ++#define LDAP_DEPRECATED 1 + #include <ldap.h> + #endif + diff --git a/net-misc/openswan/files/openswan-2.4.12-gentoo.patch b/net-misc/openswan/files/openswan-2.4.12-gentoo.patch new file mode 100644 index 000000000000..28b451660698 --- /dev/null +++ b/net-misc/openswan/files/openswan-2.4.12-gentoo.patch @@ -0,0 +1,135 @@ +diff -Nru openswan-2.4.12.orig/Makefile.inc openswan-2.4.12/Makefile.inc +--- openswan-2.4.12.orig/Makefile.inc 2008-06-08 16:37:30.000000000 +0300 ++++ openswan-2.4.12/Makefile.inc 2008-06-08 16:30:13.000000000 +0300 +@@ -46,7 +46,7 @@ + DESTDIR?= + + # "local" part of tree, used in building other pathnames +-INC_USRLOCAL=/usr/local ++INC_USRLOCAL?=/usr + + # PUBDIR is where the "ipsec" command goes; beware, many things define PATH + # settings which are assumed to include it (or at least, to include *some* +@@ -91,7 +91,7 @@ + + # sample configuration files go into + INC_DOCDIR?=share/doc +-FINALEXAMPLECONFDIR=${INC_USRLOCAL}/${INC_DOCDIR}/openswan ++FINALEXAMPLECONFDIR?=${INC_USRLOCAL}/${INC_DOCDIR}/openswan + EXAMPLECONFDIR=${DESTDIR}${FINALEXAMPLECONFDIR} + + FINALDOCDIR?=${INC_USRLOCAL}/${INC_DOCDIR}/openswan +diff -Nru openswan-2.4.12.orig/programs/_confread/_confread.in openswan-2.4.12/programs/_confread/_confread.in +--- openswan-2.4.12.orig/programs/_confread/_confread.in 2008-06-08 16:37:30.000000000 +0300 ++++ openswan-2.4.12/programs/_confread/_confread.in 2008-06-08 16:30:13.000000000 +0300 +@@ -14,7 +14,7 @@ + # + # RCSID $Id: openswan-2.4.12-gentoo.patch,v 1.1 2008/06/08 14:06:56 mrness Exp $ + # +-# Extract configuration info from /etc/ipsec.conf, repackage as assignments ++# Extract configuration info from /etc/ipsec/ipsec.conf, repackage as assignments + # to shell variables or tab-delimited fields. Success or failure is reported + # inline, as extra data, due to the vagaries of shell backquote handling. + # In the absence of --varprefix, output is tab-separated fields, like: +diff -Nru openswan-2.4.12.orig/programs/_confread/ipsec.conf.in openswan-2.4.12/programs/_confread/ipsec.conf.in +--- openswan-2.4.12.orig/programs/_confread/ipsec.conf.in 2008-06-08 16:37:30.000000000 +0300 ++++ openswan-2.4.12/programs/_confread/ipsec.conf.in 2008-06-08 16:30:13.000000000 +0300 +@@ -1,4 +1,4 @@ +-# /etc/ipsec.conf - Openswan IPsec configuration file ++# /etc/ipsec/ipsec.conf - Openswan IPsec configuration file + # RCSID $Id: openswan-2.4.12-gentoo.patch,v 1.1 2008/06/08 14:06:56 mrness Exp $ + + # This file: @FINALEXAMPLECONFDIR@/ipsec.conf-sample +diff -Nru openswan-2.4.12.orig/programs/examples/l2tp-psk.conf.in openswan-2.4.12/programs/examples/l2tp-psk.conf.in +--- openswan-2.4.12.orig/programs/examples/l2tp-psk.conf.in 2007-11-02 03:49:40.000000000 +0200 ++++ openswan-2.4.12/programs/examples/l2tp-psk.conf.in 2008-06-08 16:37:41.000000000 +0300 +@@ -11,7 +11,7 @@ + # + # Use a Preshared Key. Disable Perfect Forward Secrecy. + # +- # PreSharedSecret needs to be specified in /etc/ipsec.secrets as ++ # PreSharedSecret needs to be specified in /etc/ipsec/ipsec.secrets as + # YourIPAddress %any: "sharedsecret" + authby=secret + pfs=no +diff -Nru openswan-2.4.12.orig/programs/_include/_include.in openswan-2.4.12/programs/_include/_include.in +--- openswan-2.4.12.orig/programs/_include/_include.in 2008-06-08 16:37:30.000000000 +0300 ++++ openswan-2.4.12/programs/_include/_include.in 2008-06-08 16:30:13.000000000 +0300 +@@ -47,10 +47,10 @@ + do + if test ! -r "$f" + then +- if test ! "$f" = "/etc/ipsec.conf" ++ if test ! "$f" = "/etc/ipsec/ipsec.conf" + then + echo "#:cannot open configuration file \'$f\'" +- if test "$f" = "/etc/ipsec.secrets" ++ if test "$f" = "/etc/ipsec/ipsec.secrets" + then + echo "#:Your secrets file will be created when you start FreeS/WAN for the first time." + fi +diff -Nru openswan-2.4.12.orig/programs/mailkey/mailkey.in openswan-2.4.12/programs/mailkey/mailkey.in +--- openswan-2.4.12.orig/programs/mailkey/mailkey.in 2008-06-08 16:37:30.000000000 +0300 ++++ openswan-2.4.12/programs/mailkey/mailkey.in 2008-06-08 16:30:13.000000000 +0300 +@@ -60,7 +60,7 @@ + + "$test1st" + +-Common concerns: This account must be able to read /etc/ipsec.secrets. ++Common concerns: This account must be able to read /etc/ipsec/ipsec.secrets. + If you haven't generated your key yet, please run 'ipsec newhostkey'." + exit 0 + } +diff -Nru openswan-2.4.12.orig/programs/pluto/Makefile openswan-2.4.12/programs/pluto/Makefile +--- openswan-2.4.12.orig/programs/pluto/Makefile 2008-06-08 16:37:30.000000000 +0300 ++++ openswan-2.4.12/programs/pluto/Makefile 2008-06-08 16:30:13.000000000 +0300 +@@ -210,7 +210,7 @@ + endif + + ifeq ($(USE_WEAKSTUFF),true) +-WEAK_DEFS=-DUSE_VERYWEAK_DH1=1 #-DUSE_1DES ++WEAK_DEFS=-DUSE_VERYWEAK_DH1=1 -DUSE_1DES + endif + + ifeq ($(USE_EXTRACRYPTO),true) +diff -Nru openswan-2.4.12.orig/programs/setup/Makefile openswan-2.4.12/programs/setup/Makefile +--- openswan-2.4.12.orig/programs/setup/Makefile 2008-06-08 16:37:30.000000000 +0300 ++++ openswan-2.4.12/programs/setup/Makefile 2008-06-08 16:30:13.000000000 +0300 +@@ -33,25 +33,10 @@ + @rm -f $(BINDIR)/setup + @$(INSTALL) $(INSTBINFLAGS) setup $(RCDIR)/ipsec + @ln -s $(FINALRCDIR)/ipsec $(BINDIR)/setup +- -@for i in 0 1 2 3 4 5 6; do mkdir -p $(RCDIR)/../rc$$i.d; done +- -@cd $(RCDIR)/../rc0.d && ln -f -s ../init.d/ipsec K76ipsec +- -@cd $(RCDIR)/../rc1.d && ln -f -s ../init.d/ipsec K76ipsec +- -@cd $(RCDIR)/../rc2.d && ln -f -s ../init.d/ipsec S47ipsec +- -@cd $(RCDIR)/../rc3.d && ln -f -s ../init.d/ipsec S47ipsec +- -@cd $(RCDIR)/../rc4.d && ln -f -s ../init.d/ipsec S47ipsec +- -@cd $(RCDIR)/../rc5.d && ln -f -s ../init.d/ipsec S47ipsec +- -@cd $(RCDIR)/../rc6.d && ln -f -s ../init.d/ipsec K76ipsec + + install_file_list:: + @echo $(RCDIR)/ipsec + @echo $(BINDIR)/setup +- @echo $(RCDIR)/../rc0.d/K76ipsec +- @echo $(RCDIR)/../rc1.d/K76ipsec +- @echo $(RCDIR)/../rc2.d/S47ipsec +- @echo $(RCDIR)/../rc3.d/S47ipsec +- @echo $(RCDIR)/../rc4.d/S47ipsec +- @echo $(RCDIR)/../rc5.d/S47ipsec +- @echo $(RCDIR)/../rc6.d/K76ipsec + + clean:: + @rm -f setup +diff -Nru openswan-2.4.12.orig/programs/showhostkey/showhostkey.in openswan-2.4.12/programs/showhostkey/showhostkey.in +--- openswan-2.4.12.orig/programs/showhostkey/showhostkey.in 2008-06-08 16:37:30.000000000 +0300 ++++ openswan-2.4.12/programs/showhostkey/showhostkey.in 2008-06-08 16:30:13.000000000 +0300 +@@ -18,7 +18,7 @@ + usage="Usage: $me [--file secrets] [--left] [--right] [--txt gateway] [--id id] + [--dhclient] [--ipseckey]" + +-file=/etc/ipsec.secrets ++file=/etc/ipsec/ipsec.secrets + fmt="" + gw= + id= diff --git a/net-misc/openswan/openswan-2.4.12.ebuild b/net-misc/openswan/openswan-2.4.12.ebuild new file mode 100644 index 000000000000..055f2a9db288 --- /dev/null +++ b/net-misc/openswan/openswan-2.4.12.ebuild @@ -0,0 +1,126 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/openswan/openswan-2.4.12.ebuild,v 1.1 2008/06/08 14:06:55 mrness Exp $ + +inherit eutils linux-info + +DESCRIPTION="Open Source implementation of IPsec for the Linux operating system (was SuperFreeS/WAN)." +HOMEPAGE="http://www.openswan.org/" +SRC_URI="http://www.openswan.org/download/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~sparc ~x86" +IUSE="curl ldap smartcard extra-algorithms weak-algorithms" + +COMMON_DEPEND="!net-misc/strongswan + >=dev-libs/gmp-4.2.1 + dev-lang/perl + smartcard? ( dev-libs/opensc ) + curl? ( net-misc/curl ) + ldap? ( net-nds/openldap )" +DEPEND="${COMMON_DEPEND} + virtual/linux-sources" +RDEPEND="${COMMON_DEPEND} + virtual/logger + sys-apps/iproute2" + +pkg_setup() { + linux-info_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." + MYMAKE="programs" + + elif kernel_is 2 4; then + if ! [[ -d "${KERNEL_DIR}/net/ipsec" ]]; then + 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" + die + fi + + einfo "Using patched-in IPsec code for kernel 2.4" + einfo "Your kernel only supports KLIPS for kernel level IPsec." + MYMAKE="confcheck programs" + + else + die "Unsupported kernel version" + fi +} + +src_unpack() { + unpack ${A} + + cd "${S}" + epatch "${FILESDIR}"/${P}-gentoo.patch + epatch "${FILESDIR}"/${P}-deprecated-ldap.patch + + find . -regex '.*[.][1-8]\' -exec sed -i \ + -e s:/usr/local:/usr:g \ + -e s:/etc/ipsec[.]conf:/etc/ipsec/ipsec.conf:g \ + -e s:/etc/ipsec[.]secrets:/etc/ipsec/ipsec.secrets:g '{}' \; || + die "failed to replace text in xml docs" +} + +get_make_options() { + echo KERNELSRC=\"${KERNEL_DIR}\" \ + FINALCONFDIR=/etc/ipsec \ + FINALCONFFILE=/etc/ipsec/ipsec.conf \ + FINALEXAMPLECONFDIR=/usr/share/doc/${P} \ + INC_RCDEFAULT=/etc/init.d \ + INC_USRLOCAL=/usr \ + INC_MANDIR=share/man \ + FINALDOCDIR=/usr/share/doc/${P} \ + DESTDIR=\"${D}\" \ + USERCOMPILE=\"${CFLAGS}\" + if use smartcard ; then + echo USE_SMARTCARD=true + fi + if use extra-algorithms ; then + echo USE_EXTRACRYPTO=true + fi + if use weak-algorithms ; then + echo USE_WEAKSTUFF=true + fi + echo USE_OE=false # by default, turn off Opportunistic Encryption + echo USE_LWRES=false # needs bind9 with lwres support + local USETHREADS=false + if use curl; then + echo USE_LIBCURL=true + USETHREADS=true + fi + if use ldap; then + echo USE_LDAP=true + USETHREADS=true + fi + echo HAVE_THREADS=${USETHREADS} +} + +src_compile() { + eval set -- $(get_make_options) + emake "$@" \ + ${MYMAKE} || die "emake failed" +} + +src_install() { + eval set -- $(get_make_options) + emake "$@" \ + install || die "emake install failed" + + dosym /etc/ipsec/ipsec.d /etc/ipsec.d + + doinitd "${FILESDIR}"/ipsec || die "failed to install init script" + + dodir /var/run/pluto || die "failed to create /var/run/pluto" +} + +pkg_postinst() { + if kernel_is 2 6; then + CONFIG_CHECK="~NET_KEY ~INET_XFRM_MODE_TRANSPORT ~INET_XFRM_MODE_TUNNEL ~INET_AH ~INET_ESP ~INET_IPCOMP" + WARNING_INET_AH="CONFIG_INET_AH:\tmissing IPsec AH support (needed if you want only authentication)" + WARNING_INET_ESP="CONFIG_INET_ESP:\tmissing IPsec ESP support (needed if you want authentication and encryption)" + WARNING_INET_IPCOMP="CONFIG_INET_IPCOMP:\tmissing IPsec Payload Compression (required for compress=yes)" + check_extra_config + fi +} |