summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--net-misc/iputils/ChangeLog6
-rw-r--r--net-misc/iputils/files/iputils-021109-pfkey.patch133
-rw-r--r--net-misc/iputils/iputils-021109-r3.ebuild33
3 files changed, 10 insertions, 162 deletions
diff --git a/net-misc/iputils/ChangeLog b/net-misc/iputils/ChangeLog
index 83bb5eb11e1a..12a2378001eb 100644
--- a/net-misc/iputils/ChangeLog
+++ b/net-misc/iputils/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for net-misc/iputils
# Copyright 2002-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/iputils/ChangeLog,v 1.36 2005/01/04 04:47:37 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/iputils/ChangeLog,v 1.37 2005/01/19 01:09:46 vapier Exp $
+
+ 18 Jan 2005; Mike Frysinger <vapier@gentoo.org>
+ -files/iputils-021109-pfkey.patch, iputils-021109-r3.ebuild:
+ Punt setkey since ipsec-tools exists now to handle it #78588.
03 Jan 2005; Mike Frysinger <vapier@gentoo.org> iputils-021109-r3.ebuild:
Restore USE=doc with an extra check in case we're in the middle of a
diff --git a/net-misc/iputils/files/iputils-021109-pfkey.patch b/net-misc/iputils/files/iputils-021109-pfkey.patch
deleted file mode 100644
index 6dd815188212..000000000000
--- a/net-misc/iputils/files/iputils-021109-pfkey.patch
+++ /dev/null
@@ -1,133 +0,0 @@
-#ifndef __NET_PFKEYV2_H_
-#define __NET_PFKEYV2_H_ 1
-
-#include <stdint.h>
-#include <linux/pfkeyv2.h>
-
-#ifndef SADB_X_AALG_NULL
-# define SADB_X_AALG_NULL 5 /*251*/ /* null authentication */
-#endif
-#ifndef SADB_AALG_SHA2_256
-# define SADB_AALG_SHA2_256 5
-#endif
-#ifndef SADB_AALG_SHA2_384
-# define SADB_AALG_SHA2_384 6
-#endif
-#ifndef SADB_AALG_SHA2_512
-# define SADB_AALG_SHA2_512 7
-#endif
-#ifndef SADB_X_AALG_SHA2_256
-# define SADB_X_AALG_SHA2_256 SADB_AALG_SHA2_256
-#endif
-#ifndef SADB_X_AALG_SHA2_384
-# define SADB_X_AALG_SHA2_384 SADB_AALG_SHA2_384
-#endif
-#ifndef SADB_X_AALG_SHA2_512
-# define SADB_X_AALG_SHA2_512 SADB_AALG_SHA2_512
-#endif
-#ifndef SADB_AALG_RIPEMD160HMAC
-# define SADB_AALG_RIPEMD160HMAC 8
-#endif
-#ifndef SADB_X_AALG_MD5
-# define SADB_X_AALG_MD5 249
-#endif
-#ifndef SADB_X_AALG_SHA
-# define SADB_X_AALG_SHA 250
-#endif
-
-/* private allocations - based on RFC2407/IANA assignment */
-#ifndef SADB_X_EALG_CAST128CBC
-# define SADB_X_EALG_CAST128CBC 5 /*6*/
-#endif
-#ifndef SADB_X_EALG_BLOWFISHCBC
-# define SADB_X_EALG_BLOWFISHCBC 4 /*7*/
-#endif
-#ifndef SADB_X_EALG_RIJNDAELCBC
-# define SADB_X_EALG_RIJNDAELCBC 12
-#endif
-#ifndef SADB_X_EALG_AES
-# define SADB_X_EALG_AES 12
-#endif
-
-#ifndef SADB_X_CALG_NONE
-# define SADB_X_CALG_NONE 0
-#endif
-#ifndef SADB_X_CALG_OUI
-# define SADB_X_CALG_OUI 1
-#endif
-#ifndef SADB_X_CALG_DEFLATE
-# define SADB_X_CALG_DEFLATE 2
-#endif
-#ifndef SADB_X_CALG_LZS
-# define SADB_X_CALG_LZS 3
-#endif
-#ifndef SADB_X_CALG_MAX
-# define SADB_X_CALG_MAX 4
-#endif
-
-#ifndef SADB_X_ENT_NONE
-# define SADB_X_EXT_NONE 0x0000 /* i.e. new format. */
-#endif
-#ifndef SADB_X_EXT_OLD
-# define SADB_X_EXT_OLD 0x0001 /* old format. */
-#endif
-
-#ifndef SADB_X_EXT_IV48
-# define SADB_X_EXT_IV4B 0x0010 /* IV length of 4 bytes in use */
-#endif
-#ifndef SADB_X_EXT_DERIV
-# define SADB_X_EXT_DERIV 0x0020 /* DES derived */
-#endif
-#ifndef SADB_X_EXT_CYCSEQ
-# define SADB_X_EXT_CYCSEQ 0x0040 /* allowing to cyclic sequence. */
-#endif
-
- /* three of followings are exclusive flags each them */
-#ifndef SADB_X_EXT_PSEQ
-# define SADB_X_EXT_PSEQ 0x0000 /* sequencial padding for ESP */
-#endif
-#ifndef SADB_X_EXT_PRAND
-# define SADB_X_EXT_PRAND 0x0100 /* random padding for ESP */
-#endif
-#ifndef SADB_X_EXT_PZERO
-# define SADB_X_EXT_PZERO 0x0200 /* zero padding for ESP */
-#endif
-#ifndef SADB_X_EXT_PMASK
-# define SADB_X_EXT_PMASK 0x0300 /* mask for padding flag */
-#endif
-#ifndef SADB_X_EXT_RAWCPI
-# define SADB_X_EXT_RAWCPI 0x0080 /* use well known CPI (IPComp) */
-#endif
-
-#ifndef PFKEY_SOFT_LIFETIME_RATE
-# define PFKEY_SOFT_LIFETIME_RATE 80
-#endif
-
-#ifndef SADB_X_LIFETIME_ALLOCATIONS
-# define SADB_X_LIFETIME_ALLOCATIONS 0
-#endif
-#ifndef SADB_X_LIFETIME_BYTES
-# define SADB_X_LIFETIME_BYTES 1
-#endif
-#ifndef SADB_X_LIFETIME_ADDTIME
-# define SADB_X_LIFETIME_ADDTIME 2
-#endif
-#ifndef SADB_X_LIFETIME_USETIME
-# define SADB_X_LIFETIME_USETIME 3
-#endif
-
-#define PFKEY_ALIGN8(a) (1 + (((a) - 1) | (8 - 1)))
-#define PFKEY_EXTLEN(msg) \
- PFKEY_UNUNIT64(((struct sadb_ext *)(msg))->sadb_ext_len)
-#define PFKEY_ADDR_PREFIX(ext) \
- (((struct sadb_address *)(ext))->sadb_address_prefixlen)
-#define PFKEY_ADDR_PROTO(ext) \
- (((struct sadb_address *)(ext))->sadb_address_proto)
-#define PFKEY_ADDR_SADDR(ext) \
- ((struct sockaddr *)((caddr_t)(ext) + sizeof(struct sadb_address)))
-
-/* in 64bits */
-#define PFKEY_UNUNIT64(a) ((a) << 3)
-#define PFKEY_UNIT64(a) ((a) >> 3)
-
-#endif
diff --git a/net-misc/iputils/iputils-021109-r3.ebuild b/net-misc/iputils/iputils-021109-r3.ebuild
index be5f49762f83..aa81f8553b8b 100644
--- a/net-misc/iputils/iputils-021109-r3.ebuild
+++ b/net-misc/iputils/iputils-021109-r3.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/iputils/iputils-021109-r3.ebuild,v 1.18 2005/01/04 23:41:43 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/iputils/iputils-021109-r3.ebuild,v 1.19 2005/01/19 01:09:46 vapier Exp $
inherit flag-o-matic gnuconfig eutils toolchain-funcs
@@ -16,8 +16,6 @@ IUSE="static ipv6 uclibc doc"
DEPEND="virtual/libc
virtual/os-headers
- sys-devel/bison
- sys-devel/flex
dev-libs/openssl
sys-devel/autoconf
doc? (
@@ -34,7 +32,6 @@ src_unpack() {
unpack ${A}
cd ${S}
- cp ${FILESDIR}/iputils-021109-pfkey.patch include-glibc/net/pfkeyv2.h
use static && append-ldflags -static
epatch ${FILESDIR}/${PV}-gcc34.patch
@@ -49,44 +46,25 @@ src_unpack() {
sed -i \
-e "/^CCOPT=/s:-O2:${CFLAGS}:" \
-e "/^CC=/s:.*::" \
- Makefile \
- || die "sed Makefile opts failed"
- sed -i \
-e '/^all:/s:check-kernel::' \
-e 's:-I$(KERNEL_INCLUDE)::' \
-e 's:-I/usr/src/linux/include::' \
- Makefile libipsec/Makefile setkey/Makefile \
- || die "sed /usr/include failed"
+ Makefile \
+ || die "sed Makefile failed"
use ipv6 || sed -i -e 's:IPV6_TARGETS=:#IPV6_TARGETS=:' Makefile
-
- sed -i "s:-ll:-lfl ${LDFLAGS}:" setkey/Makefile || die "sed setkey failed"
-
- sed -i 's:yacc:bison -y:' libipsec/Makefile #59191
}
src_compile() {
tc-export CC AR
-
- # We have to make sure ipsec.h is usuable #67569
- echo '#include <linux/ipsec.h>' > "${T}"/test.c
- if ${CC} -c "${T}"/test.c >&/dev/null ; then
- cd ${S}/libipsec
- emake || die "libipsec failed"
-
- cd ${S}/setkey
- emake || die "setkey failed"
- fi
-
- cd ${S}
emake || die "make main failed"
# We include the extra check for docbook2html
# because when we emerge from a stage1/stage2,
# it may not exist #23156
if use doc && type -p docbook2html ; then
- make html || die
+ emake -j1 html || die
fi
- make man || die "make man failed"
+ emake -j1 man || die "make man failed"
}
src_install() {
@@ -95,7 +73,6 @@ src_install() {
use ipv6 && dobin ping6
dosbin arping
into /usr
- [[ -x setkey/setkey ]] && dobin setkey/setkey
dosbin tracepath
use ipv6 && dosbin trace{path,route}6
dosbin clockdiff rarpd rdisc ipg tftpd