3 include $(TOPDIR
)/rules.mk
9 PKG_MD5SUM
:=6cbba783658eb62b87cbf4937f5e8464
11 PKG_SOURCE_URL
:=http
://www.openswan.org
/download
12 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
13 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
16 include $(TOPDIR
)/package
/rules.mk
19 KERNEL_DIR
:=$(LINUX_DIR
)
22 $(eval
$(call PKG_template
,KMOD_OPENSWAN
,kmod-openswan
,$(LINUX_VERSION
)+$(PKG_VERSION
)-$(BOARD
)-$(PKG_RELEASE
),$(ARCH
),kernel
($(LINUX_VERSION
)-$(BOARD
)-$(KERNEL_RELEASE
))))
24 FLAGS
:= $(TARGET_CFLAGS
) -I
$(PKG_BUILD_DIR
)/linux
/include -L
$(STAGING_DIR
)/usr
/lib
-I
$(STAGING_DIR
)/usr
/include
26 $(PKG_BUILD_DIR
)/.built
:
27 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
28 $(TARGET_CONFIGURE_OPTS
) \
29 KERNELSRC
="$(KERNEL_DIR)" \
30 ARCH
="$(LINUX_KARCH)" \
31 CROSS_COMPILE
="$(TARGET_CROSS)" \
32 USERCOMPILE
="$(FLAGS)" \
35 $(IPKG_KMOD_OPENSWAN
):
36 mkdir
-p
$(IDIR_KMOD_OPENSWAN
)/lib
/modules
/$(LINUX_VERSION
)
37 cp
-fpR
$(PKG_BUILD_DIR
)/modobj
*/ipsec.
$(LINUX_KMOD_SUFFIX
) $(IDIR_KMOD_OPENSWAN
)/lib
/modules
/$(LINUX_VERSION
)/
38 $(IPKG_BUILD
) $(IDIR_KMOD_OPENSWAN
) $(PACKAGE_DIR
)