add INCLUDE_DIR variable for $(TOPDIR)/include
[openwrt.git] / package / openswan / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4 include $(INCLUDE_DIR)/kernel.mk
5
6 PKG_NAME:=openswan
7 PKG_VERSION:=2.4.5
8 PKG_RELEASE:=1
9 PKG_MD5SUM:=a9a8e88313faceebfc5ceb1a9da9a3c4
10
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
14 PKG_CAT:=zcat
15
16 include $(INCLUDE_DIR)/package.mk
17
18 define Package/kmod-openswan
19 SECTION:=drivers
20 CATEGORY:=Drivers
21 DEPENDS:=
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)
27 endef
28
29 define Build/Compile
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)" \
38 module
39 endef
40
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)/
45 endef
46
47 $(eval $(call BuildPackage,kmod-openswan))
This page took 0.045608 seconds and 5 git commands to generate.