2 # Copyright (C) 2006 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
10 include $(INCLUDE_DIR
)/kernel.mk
15 PKG_MD5SUM
:=b34d71ca49dedad017879b0e912d40dd
17 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
18 PKG_SOURCE_URL
:=http
://www.openswan.org
/download
19 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
22 include $(INCLUDE_DIR
)/package.mk
24 define Package
/kmod-openswan
28 TITLE
:=Openswan kernel module
29 DESCRIPTION
:=Openswan kernel module
\\\
30 Openswan is an implementation of IPsec for Linux.
31 URL
:=http
://www.openswan.org
/
32 VERSION
:=$(LINUX_VERSION
)+$(PKG_VERSION
)-$(BOARD
)-$(PKG_RELEASE
)
36 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
37 $(TARGET_CONFIGURE_OPTS
) \
38 LINUX_RELEASE
="$(LINUX_RELEASE)" \
39 KERNELSRC
="$(LINUX_DIR)" \
40 ARCH
="$(LINUX_KARCH)" \
41 CROSS_COMPILE
="$(TARGET_CROSS)" \
42 USERCOMPILE
="$(TARGET_CFLAGS) -I$(PKG_BUILD_DIR)/linux/include -I$(STAGING_DIR)/usr/include -L$(STAGING_DIR)/usr/lib " \
43 AS
="$(TARGET_CC) -c $(TARGET_CFLAGS)" \
47 define Package
/kmod-openswan
/install
48 mkdir
-p
$(1)/lib
/modules
/$(LINUX_VERSION
)
49 $(CP
) $(PKG_BUILD_DIR
)/modobj
*/ipsec.
$(LINUX_KMOD_SUFFIX
) \
50 $(1)/lib
/modules
/$(LINUX_VERSION
)/
53 $(eval
$(call BuildPackage
,kmod-openswan
))