Fix nfs kernel modules for 2.4 kernels
[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 include $(INCLUDE_DIR)/kernel.mk
11
12 PKG_NAME:=ipsec-tools
13 PKG_VERSION:=0.7
14 PKG_RELEASE:=1
15
16 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
17 PKG_SOURCE_URL:=@SF/ipsec-tools
18 PKG_MD5SUM:=c0a586924edde35264ecfe94ad1c261f
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/ipsec-tools
23 SECTION:=net
24 CATEGORY:=Network
25 DEPENDS:=@LINUX_2_6 +libopenssl
26 TITLE:=IPsec management tools
27 URL:=http://ipsec-tools.sourceforge.net/
28 endef
29
30 CONFIGURE_ARGS += \
31 --enable-shared \
32 --enable-static \
33 --with-kernel-headers="$(LINUX_DIR)/include" \
34 --without-readline \
35 --with-openssl="$(STAGING_DIR)/usr" \
36 --without-libradius \
37 --without-libpam \
38 --enable-dpd \
39 --enable-hybrid \
40 --enable-security-context=no \
41 --enable-natt \
42 --enable-adminport \
43 --enable-ipv6
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 echo "#undef HAVE_SHADOW_H" >> $(PKG_BUILD_DIR)/config.h
55 endef
56
57 # override CFLAGS holding "-Werror" that break builds on compile warnings
58 define Build/Compile
59 $(MAKE) -C $(PKG_BUILD_DIR) \
60 DESTDIR="$(PKG_INSTALL_DIR)" \
61 CFLAGS="$(TARGET_CFLAGS)" \
62 all install
63 endef
64
65 define Package/ipsec-tools/install
66 $(INSTALL_DIR) $(1)/etc
67 $(INSTALL_CONF) $(PKG_BUILD_DIR)/src/racoon/samples/racoon.conf $(1)/etc/
68 $(SED) 's|@sysconfdir_x@|/etc|g' $(1)/etc/racoon.conf
69 $(INSTALL_DIR) $(1)/etc/racoon
70 $(INSTALL_CONF) $(PKG_BUILD_DIR)/src/racoon/samples/psk.txt $(1)/etc/racoon/
71 $(INSTALL_DIR) $(1)/usr/lib
72 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libipsec.so.* $(1)/usr/lib/
73 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libracoon.so.* $(1)/usr/lib/
74 $(INSTALL_DIR) $(1)/usr/sbin
75 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/plainrsa-gen $(1)/usr/sbin/
76 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/racoon $(1)/usr/sbin/
77 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/racoonctl $(1)/usr/sbin/
78 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/setkey $(1)/usr/sbin/
79 endef
80
81 define Package/ipsec-tools/conffiles
82 /etc/racoon.conf
83 /etc/racoon/psk.txt
84 endef
85
86 $(eval $(call BuildPackage,ipsec-tools))
This page took 0.063972 seconds and 5 git commands to generate.