rename openwrt-ar7-zimage.bin to openwrt-ar7-2.4-kernel.bin
[openwrt.git] / target / linux / package / openswan / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=openswan
6 PKG_VERSION:=2.3.1
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=3dcf1cd7efcbe8db3148fc288d429db1
9
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)
13 PKG_CAT:=zcat
14
15 include $(TOPDIR)/package/rules.mk
16
17 ifeq ($(KERNEL_DIR),)
18 KERNEL_DIR:=$(LINUX_DIR)
19 endif
20
21 $(eval $(call PKG_template,KMOD_OPENSWAN,kmod-openswan,$(LINUX_VERSION)$(BOARD)+$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH),kernel ($(LINUX_VERSION)-$(BOARD)-$(KERNEL_RELEASE))))
22
23 FLAGS := $(TARGET_CFLAGS) -I$(PKG_BUILD_DIR)/linux/include -L$(STAGING_DIR)/usr/lib -I$(STAGING_DIR)/usr/include
24
25 $(PKG_BUILD_DIR)/.built:
26 $(MAKE) -C $(PKG_BUILD_DIR) \
27 $(TARGET_CONFIGURE_OPTS) \
28 KERNELSRC="$(KERNEL_DIR)" \
29 ARCH="mips" \
30 USERCOMPILE="$(FLAGS)" \
31 module
32
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)
This page took 0.038102 seconds and 5 git commands to generate.