3 include $(TOPDIR
)/rules.mk
8 PKG_MD5SUM
:=3dcf1cd7efcbe8db3148fc288d429db1
10 PKG_SOURCE_URL
:=http
://www.openswan.org
/download
11 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
12 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)-$(PKG_VERSION
)
15 include $(TOPDIR
)/package
/rules.mk
18 KERNEL_DIR
:=$(LINUX_DIR
)
21 $(eval
$(call PKG_template
,KMOD_OPENSWAN
,kmod-openswan
,$(LINUX_VERSION
)$(BOARD
)+$(PKG_VERSION
)-$(PKG_RELEASE
),$(ARCH
),kernel
($(LINUX_VERSION
)-$(BOARD
)-$(KERNEL_RELEASE
))))
23 FLAGS
:= $(TARGET_CFLAGS
) -I
$(PKG_BUILD_DIR
)/linux
/include -L
$(STAGING_DIR
)/usr
/lib
-I
$(STAGING_DIR
)/usr
/include
25 $(PKG_BUILD_DIR
)/.built
:
26 $(MAKE
) -C
$(PKG_BUILD_DIR
) \
27 $(TARGET_CONFIGURE_OPTS
) \
28 KERNELSRC
="$(KERNEL_DIR)" \
30 USERCOMPILE
="$(FLAGS)" \
33 $(IPKG_KMOD_OPENSWAN
):
34 mkdir
-p
$(IDIR_KMOD_OPENSWAN
)/lib
/modules
/$(LINUX_VERSION
)
35 cp
$(PKG_BUILD_DIR
)/modobj
/ipsec.
*o
$(IDIR_KMOD_OPENSWAN
)/lib
/modules
/$(LINUX_VERSION
)/
36 $(IPKG_BUILD
) $(IDIR_KMOD_OPENSWAN
) $(PACKAGE_DIR
)