2005-05-28 12:17:29 +03:00
|
|
|
# $Id$
|
|
|
|
|
|
|
|
include $(TOPDIR)/rules.mk
|
2005-08-15 11:49:02 +03:00
|
|
|
include ../../rules.mk
|
2005-05-28 12:17:29 +03:00
|
|
|
|
|
|
|
PKG_NAME:=openswan
|
2005-11-24 06:11:08 +02:00
|
|
|
PKG_VERSION:=2.4.4
|
2005-12-25 06:10:50 +02:00
|
|
|
PKG_RELEASE:=2
|
2005-11-24 06:11:08 +02:00
|
|
|
PKG_MD5SUM:=bd1a46c64727674149de61da2a32ca63
|
2005-05-28 12:17:29 +03:00
|
|
|
|
|
|
|
PKG_SOURCE_URL:=http://www.openswan.org/download
|
|
|
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
|
|
|
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
|
|
|
|
PKG_CAT:=zcat
|
|
|
|
|
|
|
|
include $(TOPDIR)/package/rules.mk
|
|
|
|
|
2006-01-10 21:43:00 +02:00
|
|
|
$(eval $(call PKG_template,KMOD_OPENSWAN,kmod-openswan,$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE),$(ARCH),kernel ($(LINUX_VERSION)-$(BOARD)-$(LINUX_RELEASE))))
|
2005-05-28 12:17:29 +03:00
|
|
|
|
|
|
|
FLAGS := $(TARGET_CFLAGS) -I$(PKG_BUILD_DIR)/linux/include -L$(STAGING_DIR)/usr/lib -I$(STAGING_DIR)/usr/include
|
|
|
|
|
|
|
|
$(PKG_BUILD_DIR)/.built:
|
|
|
|
$(MAKE) -C $(PKG_BUILD_DIR) \
|
|
|
|
$(TARGET_CONFIGURE_OPTS) \
|
2006-01-10 21:43:00 +02:00
|
|
|
LINUX_RELEASE="$(LINUX_RELEASE)" \
|
|
|
|
KERNELSRC="$(LINUX_DIR)" \
|
2005-08-15 11:49:02 +03:00
|
|
|
ARCH="$(LINUX_KARCH)" \
|
2005-11-02 04:42:06 +02:00
|
|
|
CROSS_COMPILE="$(TARGET_CROSS)" \
|
2005-05-28 12:17:29 +03:00
|
|
|
USERCOMPILE="$(FLAGS)" \
|
2005-11-13 13:35:29 +02:00
|
|
|
AS="$(TARGET_CC) -c $(TARGET_CFLAGS)" \
|
2005-05-28 12:17:29 +03:00
|
|
|
module
|
|
|
|
|
|
|
|
$(IPKG_KMOD_OPENSWAN):
|
|
|
|
mkdir -p $(IDIR_KMOD_OPENSWAN)/lib/modules/$(LINUX_VERSION)
|
2006-02-02 01:53:19 +02:00
|
|
|
$(CP) $(PKG_BUILD_DIR)/modobj*/ipsec.$(LINUX_KMOD_SUFFIX) $(IDIR_KMOD_OPENSWAN)/lib/modules/$(LINUX_VERSION)/
|
2005-05-28 12:17:29 +03:00
|
|
|
$(IPKG_BUILD) $(IDIR_KMOD_OPENSWAN) $(PACKAGE_DIR)
|