From 0982183a8d7313a63718c86e3524caea1910b886 Mon Sep 17 00:00:00 2001 From: Bernhard Reutner-Fischer Date: Mon, 25 Jun 2007 09:41:35 +0000 Subject: [PATCH] - bump version - add SUSV legacy fixups --- ...6.7.100-do_not_use_addr_as_truthval.patch} | 0 ...ipsec-tools-0.6.7.101-string_legacy.patch} | 0 ...=> ipsec-tools-0.6.7.102-GLOB_TILDE.patch} | 0 package/ipsec-tools/ipsec-tools.mk | 26 ++++++++++++------- 4 files changed, 16 insertions(+), 10 deletions(-) rename package/ipsec-tools/{ipsec-tools-0.6.6.100-do_not_use_addr_as_truthval.patch => ipsec-tools-0.6.7.100-do_not_use_addr_as_truthval.patch} (100%) rename package/ipsec-tools/{ipsec-tools-0.6.6.101-string_legacy.patch => ipsec-tools-0.6.7.101-string_legacy.patch} (100%) rename package/ipsec-tools/{ipsec-tools-0.6.6.102-GLOB_TILDE.patch => ipsec-tools-0.6.7.102-GLOB_TILDE.patch} (100%) diff --git a/package/ipsec-tools/ipsec-tools-0.6.6.100-do_not_use_addr_as_truthval.patch b/package/ipsec-tools/ipsec-tools-0.6.7.100-do_not_use_addr_as_truthval.patch similarity index 100% rename from package/ipsec-tools/ipsec-tools-0.6.6.100-do_not_use_addr_as_truthval.patch rename to package/ipsec-tools/ipsec-tools-0.6.7.100-do_not_use_addr_as_truthval.patch diff --git a/package/ipsec-tools/ipsec-tools-0.6.6.101-string_legacy.patch b/package/ipsec-tools/ipsec-tools-0.6.7.101-string_legacy.patch similarity index 100% rename from package/ipsec-tools/ipsec-tools-0.6.6.101-string_legacy.patch rename to package/ipsec-tools/ipsec-tools-0.6.7.101-string_legacy.patch diff --git a/package/ipsec-tools/ipsec-tools-0.6.6.102-GLOB_TILDE.patch b/package/ipsec-tools/ipsec-tools-0.6.7.102-GLOB_TILDE.patch similarity index 100% rename from package/ipsec-tools/ipsec-tools-0.6.6.102-GLOB_TILDE.patch rename to package/ipsec-tools/ipsec-tools-0.6.7.102-GLOB_TILDE.patch diff --git a/package/ipsec-tools/ipsec-tools.mk b/package/ipsec-tools/ipsec-tools.mk index e90f2dabf3..d6b9c7bbe1 100644 --- a/package/ipsec-tools/ipsec-tools.mk +++ b/package/ipsec-tools/ipsec-tools.mk @@ -4,7 +4,7 @@ # ############################################################# -IPSEC_TOOLS_VER:=0.6.6 +IPSEC_TOOLS_VER:=0.6.7 IPSEC_TOOLS_SOURCE:=ipsec-tools-$(IPSEC_TOOLS_VER).tar.bz2 IPSEC_TOOLS_CAT:=$(BZCAT) IPSEC_TOOLS_DIR:=$(BUILD_DIR)/ipsec-tools-$(IPSEC_TOOLS_VER) @@ -63,17 +63,15 @@ endif $(DL_DIR)/$(IPSEC_TOOLS_SOURCE): $(WGET) -P $(DL_DIR) $(IPSEC_TOOLS_SITE)/$(IPSEC_TOOLS_SOURCE) - -$(IPSEC_TOOLS_DIR)/.source: $(DL_DIR)/$(IPSEC_TOOLS_SOURCE) +$(IPSEC_TOOLS_DIR)/.patched: $(DL_DIR)/$(IPSEC_TOOLS_SOURCE) $(IPSEC_TOOLS_CAT) $(DL_DIR)/$(IPSEC_TOOLS_SOURCE) | tar -C $(BUILD_DIR) $(TAR_OPTIONS) - toolchain/patch-kernel.sh $(IPSEC_TOOLS_DIR) package/ipsec-tools ipsec-tools-$(IPSEC_TOOLS_VER)\*.patch - touch $(IPSEC_TOOLS_DIR)/.source + $(CONFIG_UPDATE) $(IPSEC_TOOLS_DIR) + touch $@ -$(IPSEC_TOOLS_DIR)/.configured: $(IPSEC_TOOLS_DIR)/.source - ( cd $(IPSEC_TOOLS_DIR); \ +$(IPSEC_TOOLS_DIR)/.configured: $(IPSEC_TOOLS_DIR)/.patched + ( cd $(IPSEC_TOOLS_DIR); rm -rf config.cache ; \ $(TARGET_CONFIGURE_OPTS) \ - CFLAGS="$(TARGET_CFLAGS)" \ - LDFLAGS="$(TARGET_LDFLAGS)" \ ./configure \ --target=$(GNU_TARGET_NAME) \ --host=$(GNU_TARGET_NAME) \ @@ -83,10 +81,18 @@ $(IPSEC_TOOLS_DIR)/.configured: $(IPSEC_TOOLS_DIR)/.source --disable-hybrid \ --without-libpam \ --disable-gssapi \ - --with-kernel-headers=$(STAGING_DIR)/include \ + --with-kernel-headers=$(STAGING_DIR)/usr/include \ $(IPSEC_TOOLS_CONFIG_FLAGS) \ ); - touch $(IPSEC_TOOLS_DIR)/.configured + # simpler than patching that cruft.. + (echo '#undef bzero' ; \ + echo '#define bzero(a, b) memset((a), 0, (b))' ; \ + echo '#undef bcopy' ; \ + echo '#define bcopy(src, dest, len) memmove(dest, src, len)' ; \ + echo '#undef index' ; \ + echo '#define index(a, b) strchr(a, b)' ; \ + ) >> $(IPSEC_TOOLS_DIR)/config.h + touch $@ $(IPSEC_TOOLS_DIR)/$(IPSEC_TOOLS_BINARY_SETKEY) \ $(IPSEC_TOOLS_DIR)/$(IPSEC_TOOLS_BINARY_RACOON) \ -- 2.30.2