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