upgrade the ixp4xx ethernet driver to v0.3.1, split the Gateway 7001 support to two...
[openwrt.git] / package / ipsec-tools / 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
11 PKG_NAME:=ipsec-tools
12 PKG_VERSION:=0.6.6
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=@SF/ipsec-tools
17 PKG_MD5SUM:=e908f3cf367e31c7902df5ab16fbe5c3
18 PKG_CAT:=bzcat
19
20 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
21 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
22
23 include $(INCLUDE_DIR)/package.mk
24 include $(INCLUDE_DIR)/kernel.mk
25
26 define Package/ipsec-tools
27 SECTION:=net
28 CATEGORY:=Network
29 DEPENDS:=@LINUX_2_6 +libopenssl
30 TITLE:=IPsec management tools
31 URL:=http://ipsec-tools.sourceforge.net/
32 endef
33
34 CONFIGURE_ARGS += \
35 --enable-shared \
36 --enable-static \
37 --with-kernel-headers="$(LINUX_DIR)/include" \
38 --without-readline \
39 --with-openssl="$(STAGING_DIR)/usr" \
40 --without-libradius \
41 --without-libpam \
42 --enable-dpd \
43 --enable-natt
44
45 define Build/Configure
46 (cd $(PKG_BUILD_DIR); touch \
47 configure.ac \
48 aclocal.m4 \
49 Makefile.in \
50 config.h.in \
51 configure \
52 );
53 $(call Build/Configure/Default)
54 endef
55
56 # override CFLAGS holding "-Werror" that break builds on compile warnings
57 define Build/Compile
58 $(MAKE) -C $(PKG_BUILD_DIR) \
59 DESTDIR="$(PKG_INSTALL_DIR)" \
60 CFLAGS="$(TARGET_CFLAGS)" \
61 all install
62 endef
63
64 define Package/ipsec-tools/install
65 $(INSTALL_DIR) $(1)/etc
66 $(INSTALL_CONF) $(PKG_BUILD_DIR)/src/racoon/samples/racoon.conf $(1)/etc/
67 $(INSTALL_DIR) $(1)/usr/lib/
68 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libipsec.so.* $(1)/usr/lib/
69 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libracoon.so.* $(1)/usr/lib/
70 $(INSTALL_DIR) $(1)/usr/sbin
71 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/plainrsa-gen $(1)/usr/sbin/
72 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/racoon $(1)/usr/sbin/
73 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/racoonctl $(1)/usr/sbin/
74 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/setkey $(1)/usr/sbin/
75 endef
76
77 $(eval $(call BuildPackage,ipsec-tools))
This page took 0.055363 seconds and 5 git commands to generate.