replace $(IDIR_*) with $(1)
[openwrt.git] / package / ipsec-tools / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=ipsec-tools
6 PKG_VERSION:=0.6.4
7 PKG_RELEASE:=1
8
9 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
10 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
11 PKG_SOURCE_URL:=@SF/ipsec-tools
12 PKG_MD5SUM:=d0242a943c82c0cbf28005966ff35e21
13 PKG_CAT:=bzcat
14
15 include $(TOPDIR)/package/rules.mk
16
17 define Package/ipsec-tools
18 SECTION:=base
19 CATEGORY:=Network
20 DEFAULT:=y
21 TITLE:=IPsec management tools
22 DESCRIPTION:=IPsec management tools
23 URL:=http://ipsec-tools.sourceforge.net/
24 endef
25
26 define Build/Configure
27 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status}; \
28 touch configure.ac; \
29 touch aclocal.m4; \
30 touch Makefile.in; \
31 touch config.h.in; \
32 touch configure; \
33 $(TARGET_CONFIGURE_OPTS) \
34 CFLAGS="$(TARGET_CFLAGS)" \
35 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
36 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
37 ./configure \
38 --target=$(GNU_TARGET_NAME) \
39 --host=$(GNU_TARGET_NAME) \
40 --build=$(GNU_HOST_NAME) \
41 --program-prefix="" \
42 --program-suffix="" \
43 --prefix=/usr \
44 --exec-prefix=/usr \
45 --bindir=/usr/bin \
46 --datadir=/usr/share \
47 --includedir=/usr/include \
48 --infodir=/usr/share/info \
49 --libdir=/usr/lib \
50 --libexecdir=/usr/lib \
51 --localstatedir=/var \
52 --mandir=/usr/share/man \
53 --sbindir=/usr/sbin \
54 --sysconfdir=/etc \
55 $(DISABLE_LARGEFILE) \
56 $(DISABLE_NLS) \
57 --enable-shared \
58 --enable-static \
59 --disable-rpath \
60 --with-gnu-ld \
61 --with-kernel-headers="$(LINUX_DIR)/include" \
62 --without-readline \
63 --with-openssl="$(STAGING_DIR)/usr" \
64 --without-libradius \
65 --without-libpam \
66 );
67 endef
68
69 define Package/ipsec-tools/install
70 install -d -m0755 $(1)/etc
71 install -d -m0755 $(1)/usr/lib/
72 install -d -m0755 $(1)/usr/sbin
73 $(CP) $(PKG_BUILD_DIR)/src/racoon/samples/racoon.conf $(1)/etc/
74 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libipsec.so.* $(1)/usr/lib/
75 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libracoon.so.* $(1)/usr/lib/
76 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/plainrsa-gen $(1)/usr/sbin/
77 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/racoon $(1)/usr/sbin/
78 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/racoonctl $(1)/usr/sbin/
79 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/setkey $(1)/usr/sbin/
80 endef
81
82 $(eval $(call BuildPackage,ipsec-tools))
This page took 0.067753 seconds and 5 git commands to generate.