fix CATEGORY
[openwrt.git] / package / openswan / Makefile
1 #
2 # Copyright (C) 2006 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7 # $Id$
8
9 include $(TOPDIR)/rules.mk
10 include $(INCLUDE_DIR)/kernel.mk
11
12 PKG_NAME:=openswan
13 PKG_VERSION:=2.4.5
14 PKG_RELEASE:=1
15 PKG_MD5SUM:=a9a8e88313faceebfc5ceb1a9da9a3c4
16
17 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
18 PKG_SOURCE_URL:=http://www.openswan.org/download
19 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
20 PKG_CAT:=zcat
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/kmod-openswan
25 SECTION:=drivers
26 CATEGORY:=Drivers
27 DEPENDS:=
28 TITLE:=Openswan kernel module
29 DESCRIPTION:=Openswan kernel module \\\
30 Openswan is an implementation of IPsec for Linux.
31 URL:=http://www.openswan.org/
32 VERSION:=$(LINUX_VERSION)+$(PKG_VERSION)-$(BOARD)-$(PKG_RELEASE)
33 endef
34
35 define Build/Compile
36 $(MAKE) -C $(PKG_BUILD_DIR) \
37 $(TARGET_CONFIGURE_OPTS) \
38 LINUX_RELEASE="$(LINUX_RELEASE)" \
39 KERNELSRC="$(LINUX_DIR)" \
40 ARCH="$(LINUX_KARCH)" \
41 CROSS_COMPILE="$(TARGET_CROSS)" \
42 USERCOMPILE="$(TARGET_CFLAGS) -I$(PKG_BUILD_DIR)/linux/include -I$(STAGING_DIR)/usr/include -L$(STAGING_DIR)/usr/lib " \
43 AS="$(TARGET_CC) -c $(TARGET_CFLAGS)" \
44 module
45 endef
46
47 define Package/kmod-openswan/install
48 mkdir -p $(1)/lib/modules/$(LINUX_VERSION)
49 $(CP) $(PKG_BUILD_DIR)/modobj*/ipsec.$(LINUX_KMOD_SUFFIX) \
50 $(1)/lib/modules/$(LINUX_VERSION)/
51 endef
52
53 $(eval $(call BuildPackage,kmod-openswan))
This page took 0.041622 seconds and 5 git commands to generate.