3 include $(TOPDIR
)/rules.mk
4 include $(INCLUDE_DIR
)/kernel.mk
9 PKG_MD5SUM
:=a9a8e88313faceebfc5ceb1a9da9a3c4
11 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
12 PKG_SOURCE_URL
:=http
://www.openswan.org
/download
13 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 include $(INCLUDE_DIR
)/package.mk
18 define Package
/kmod-openswan
22 TITLE
:=Openswan kernel module
23 DESCRIPTION
:=Openswan kernel module
\\\
24 Openswan is an implementation of IPsec for Linux.
25 URL
:=http
://www.openswan.org
/
26 VERSION
:=$(LINUX_VERSION
)+$(PKG_VERSION
)-$(BOARD
)-$(PKG_RELEASE
)
30 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
31 $(TARGET_CONFIGURE_OPTS
) \
32 LINUX_RELEASE
="$(LINUX_RELEASE)" \
33 KERNELSRC
="$(LINUX_DIR)" \
34 ARCH
="$(LINUX_KARCH)" \
35 CROSS_COMPILE
="$(TARGET_CROSS)" \
36 USERCOMPILE
="$(TARGET_CFLAGS) -I$(PKG_BUILD_DIR)/linux/include -I$(STAGING_DIR)/usr/include -L$(STAGING_DIR)/usr/lib " \
37 AS
="$(TARGET_CC) -c $(TARGET_CFLAGS)" \
41 define Package
/kmod-openswan
/install
42 mkdir
-p
$(1)/lib
/modules
/$(LINUX_VERSION
)
43 $(CP
) $(PKG_BUILD_DIR
)/modobj
*/ipsec.
$(LINUX_KMOD_SUFFIX
) \
44 $(1)/lib
/modules
/$(LINUX_VERSION
)/
47 $(eval
$(call BuildPackage
,kmod-openswan
))