diff options
Diffstat (limited to 'package')
-rw-r--r-- | package/openswan/Makefile | 18 | ||||
-rw-r--r-- | package/strongswan/Makefile | 60 | ||||
-rw-r--r-- | package/strongswan/patches/patch-src_pluto_alg_info_c | 11 |
3 files changed, 75 insertions, 14 deletions
diff --git a/package/openswan/Makefile b/package/openswan/Makefile index a85dd29a2..4406fe3e2 100644 --- a/package/openswan/Makefile +++ b/package/openswan/Makefile @@ -4,16 +4,15 @@ include ${TOPDIR}/rules.mk PKG_NAME:= openswan -PKG_VERSION:= 2.6.26 +PKG_VERSION:= 2.6.27 PKG_RELEASE:= 1 -PKG_MD5SUM:= ac514a8c09d871407b16848c67d0d806 +PKG_MD5SUM:= 5177b7401bb89e84ca1c89029143441e PKG_DESCR:= IPSec software PKG_SECTION:= net/security PKG_DEPENDS:= ip libgmp PKG_BUILDDEP+= gmp -PKG_URL:= http://www.openswan.org -PKG_SITES:= http://www.openswan.org/download/ \ - ftp://ftp.openswan.org/openswan/ +PKG_URL:= http://www.openswan.org/ +PKG_SITES:= http://www.openswan.org/download/ PKG_NOPARALLEL:= 1 @@ -21,16 +20,7 @@ include ${TOPDIR}/mk/package.mk $(eval $(call PKG_template,OPENSWAN,${PKG_NAME},${PKG_VERSION}-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) -#ifeq ($(ADK_COMPILE_OPENSWAN_WITH_NETKEY),y) -#XAKE_FLAGS+= USE_KLIPS=false USE_NETKEY=true -#endif - -#ifeq ($(ADK_COMPILE_OPENSWAN_WITH_KLIPS),y) -#XAKE_FLAGS+= USE_KLIPS=true USE_NETKEY=false -#endif - CONFIG_STYLE:= manual - XAKE_FLAGS+= KERNELSRC="${LINUX_DIR}" \ IPSECDIR="/usr/lib/ipsec" \ INC_USRLOCAL="/usr" \ diff --git a/package/strongswan/Makefile b/package/strongswan/Makefile new file mode 100644 index 000000000..c5c364c5a --- /dev/null +++ b/package/strongswan/Makefile @@ -0,0 +1,60 @@ +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +include $(TOPDIR)/rules.mk + +PKG_NAME:= strongswan +PKG_VERSION:= 4.4.0 +PKG_RELEASE:= 1 +PKG_MD5SUM:= 22dae13782f493ec675d54b67d79a66d +PKG_DESCR:= IPsec software +PKG_SECTION:= net/security +PKG_DEPENDS:= libgmp ip libpthread kmod-net-key kmod-xfrm-user +PKG_DEPENDS+= kmod-inet-ah kmod-inet-esp kmod-inet-ipcomp +PKG_DEPENDS+= kmod-inet-xfrm-mode-tunnel kmod-inet-xfrm-mode-transport +PKG_BUILDDEP+= gmp +PKG_URL:= http://strongswan.org/index.htm +PKG_SITES:= http://download.strongswan.org/ + +include $(TOPDIR)/mk/package.mk + +$(eval $(call PKG_template,STRONGSWAN,$(PKG_NAME),$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) + +post-install: + $(INSTALL_DIR) $(IDIR_STRONGSWAN)/etc + $(INSTALL_DIR) $(IDIR_STRONGSWAN)/usr/sbin + $(INSTALL_DIR) $(IDIR_STRONGSWAN)/usr/lib + $(INSTALL_DIR) $(IDIR_STRONGSWAN)/usr/libexec/ipsec/plugins + $(CP) $(WRKINST)/usr/libexec/ipsec/plugins/*.so \ + $(IDIR_STRONGSWAN)/usr/libexec/ipsec/plugins + $(CP) $(WRKINST)/etc/* $(IDIR_STRONGSWAN)/etc + $(INSTALL_BIN) $(WRKINST)/usr/libexec/ipsec/charon \ + $(IDIR_STRONGSWAN)/usr/libexec/ipsec + $(INSTALL_BIN) $(WRKINST)/usr/libexec/ipsec/openac \ + $(IDIR_STRONGSWAN)/usr/libexec/ipsec + $(INSTALL_BIN) $(WRKINST)/usr/libexec/ipsec/_pluto_adns \ + $(IDIR_STRONGSWAN)/usr/libexec/ipsec + $(INSTALL_BIN) $(WRKINST)/usr/libexec/ipsec/starter \ + $(IDIR_STRONGSWAN)/usr/libexec/ipsec + $(INSTALL_BIN) $(WRKINST)/usr/libexec/ipsec/_updown \ + $(IDIR_STRONGSWAN)/usr/libexec/ipsec + $(INSTALL_BIN) $(WRKINST)/usr/libexec/ipsec/whack \ + $(IDIR_STRONGSWAN)/usr/libexec/ipsec + $(INSTALL_BIN) $(WRKINST)/usr/libexec/ipsec/_copyright \ + $(IDIR_STRONGSWAN)/usr/libexec/ipsec + $(INSTALL_BIN) $(WRKINST)/usr/libexec/ipsec/pki \ + $(IDIR_STRONGSWAN)/usr/libexec/ipsec + $(INSTALL_BIN) $(WRKINST)/usr/libexec/ipsec/pluto \ + $(IDIR_STRONGSWAN)/usr/libexec/ipsec + $(INSTALL_BIN) $(WRKINST)/usr/libexec/ipsec/scepclient \ + $(IDIR_STRONGSWAN)/usr/libexec/ipsec + $(INSTALL_BIN) $(WRKINST)/usr/libexec/ipsec/stroke \ + $(IDIR_STRONGSWAN)/usr/libexec/ipsec + $(INSTALL_BIN) $(WRKINST)/usr/libexec/ipsec/_updown_espmark \ + $(IDIR_STRONGSWAN)/usr/libexec/ipsec + $(INSTALL_BIN) $(WRKINST)/usr/sbin/ipsec \ + $(IDIR_STRONGSWAN)/usr/sbin + $(CP) $(WRKINST)/usr/lib/lib*.so* \ + $(IDIR_STRONGSWAN)/usr/lib + +include ${TOPDIR}/mk/pkg-bottom.mk diff --git a/package/strongswan/patches/patch-src_pluto_alg_info_c b/package/strongswan/patches/patch-src_pluto_alg_info_c new file mode 100644 index 000000000..8c65188c2 --- /dev/null +++ b/package/strongswan/patches/patch-src_pluto_alg_info_c @@ -0,0 +1,11 @@ +--- strongswan-4.4.0.orig/src/pluto/alg_info.c 2010-03-15 21:52:51.000000000 +0100 ++++ strongswan-4.4.0/src/pluto/alg_info.c 2010-07-13 22:49:11.775081075 +0200 +@@ -414,7 +414,7 @@ struct alg_info_esp *alg_info_esp_create + alg_info_esp = malloc_thing (struct alg_info_esp); + zero(alg_info_esp); + +- pfs_name=index (alg_str, ';'); ++ pfs_name=strchr (alg_str, ';'); + if (pfs_name) + { + memcpy(esp_buf, alg_str, pfs_name-alg_str); |