fix ifup hotplug event for static
[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.4
13 PKG_RELEASE:=1
14
15 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
16 PKG_SOURCE_URL:=@SF/ipsec-tools
17 PKG_MD5SUM:=d0242a943c82c0cbf28005966ff35e21
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 define Build/Configure
35 (cd $(PKG_BUILD_DIR); rm -f config.cache; \
36 touch configure.ac; \
37 touch aclocal.m4; \
38 touch Makefile.in; \
39 touch config.h.in; \
40 touch configure; \
41 $(TARGET_CONFIGURE_OPTS) \
42 CFLAGS="$(TARGET_CFLAGS)" \
43 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
44 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
45 ./configure \
46 --target=$(GNU_TARGET_NAME) \
47 --host=$(GNU_TARGET_NAME) \
48 --build=$(GNU_HOST_NAME) \
49 --program-prefix="" \
50 --program-suffix="" \
51 --prefix=/usr \
52 --exec-prefix=/usr \
53 --bindir=/usr/bin \
54 --datadir=/usr/share \
55 --includedir=/usr/include \
56 --infodir=/usr/share/info \
57 --libdir=/usr/lib \
58 --libexecdir=/usr/lib \
59 --localstatedir=/var \
60 --mandir=/usr/share/man \
61 --sbindir=/usr/sbin \
62 --sysconfdir=/etc \
63 $(DISABLE_LARGEFILE) \
64 $(DISABLE_NLS) \
65 --enable-shared \
66 --enable-static \
67 --disable-rpath \
68 --with-gnu-ld \
69 --with-kernel-headers="$(LINUX_DIR)/include" \
70 --without-readline \
71 --with-openssl="$(STAGING_DIR)/usr" \
72 --without-libradius \
73 --without-libpam \
74 --enable-dpd \
75 --enable-natt \
76 );
77 endef
78
79 define Build/Compile
80 $(call Build/Compile/Default, \
81 DESTDIR="$(PKG_INSTALL_DIR)" \
82 all install \
83 )
84 endef
85
86 define Package/ipsec-tools/install
87 install -d -m0755 $(1)/etc
88 install -m0600 $(PKG_BUILD_DIR)/src/racoon/samples/racoon.conf $(1)/etc/
89 install -d -m0755 $(1)/usr/lib/
90 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libipsec.so.* $(1)/usr/lib/
91 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libracoon.so.* $(1)/usr/lib/
92 install -d -m0755 $(1)/usr/sbin
93 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/plainrsa-gen $(1)/usr/sbin/
94 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/racoon $(1)/usr/sbin/
95 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/racoonctl $(1)/usr/sbin/
96 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/setkey $(1)/usr/sbin/
97 endef
98
99 $(eval $(call BuildPackage,ipsec-tools))
This page took 0.049042 seconds and 5 git commands to generate.