clean up old stuff
[openwrt.git] / openwrt / package / ipsec-tools / Makefile
1 # $Id: Makefile 2409 2005-11-10 08:08:12Z nico $
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=ipsec-tools
6 PKG_VERSION:=0.6.3
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=8070f90402919d8d313c32c2ee465b2f
9
10 PKG_SOURCE_URL:=@SF/ipsec-tools
11 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.bz2
12 PKG_CAT:=bzcat
13
14 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
15 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
16
17 include $(TOPDIR)/package/rules.mk
18
19 $(eval $(call PKG_template,IPSEC_TOOLS,ipsec-tools,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
20
21 $(PKG_BUILD_DIR)/.configured:
22 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status}; \
23 touch configure.ac; \
24 touch aclocal.m4; \
25 touch Makefile.in; \
26 touch config.h.in; \
27 touch configure; \
28 $(TARGET_CONFIGURE_OPTS) \
29 CFLAGS="$(TARGET_CFLAGS)" \
30 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
31 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
32 ./configure \
33 --target=$(GNU_TARGET_NAME) \
34 --host=$(GNU_TARGET_NAME) \
35 --build=$(GNU_HOST_NAME) \
36 --program-prefix="" \
37 --program-suffix="" \
38 --prefix=/usr \
39 --exec-prefix=/usr \
40 --bindir=/usr/bin \
41 --datadir=/usr/share \
42 --includedir=/usr/include \
43 --infodir=/usr/share/info \
44 --libdir=/usr/lib \
45 --libexecdir=/usr/lib \
46 --localstatedir=/var \
47 --mandir=/usr/share/man \
48 --sbindir=/usr/sbin \
49 --sysconfdir=/etc \
50 $(DISABLE_LARGEFILE) \
51 $(DISABLE_NLS) \
52 --enable-shared \
53 --enable-static \
54 --disable-rpath \
55 --with-gnu-ld \
56 --with-kernel-headers="$(LINUX_DIR)/include" \
57 --without-readline \
58 --with-openssl="$(STAGING_DIR)/usr" \
59 --without-libradius \
60 --without-libpam \
61 );
62 touch $@
63
64 $(PKG_BUILD_DIR)/.built:
65 rm -rf $(PKG_INSTALL_DIR)
66 mkdir -p $(PKG_INSTALL_DIR)
67 $(MAKE) -C $(PKG_BUILD_DIR) \
68 CFLAGS="$(TARGET_CFLAGS) -Wall" \
69 DESTDIR="$(PKG_INSTALL_DIR)" \
70 all install
71 touch $@
72
73 $(IPKG_IPSEC_TOOLS):
74 install -d -m0755 $(IDIR_IPSEC_TOOLS)/etc
75 cp -fpR $(PKG_BUILD_DIR)/src/racoon/samples/racoon.conf $(IDIR_IPSEC_TOOLS)/etc/
76 install -d -m0755 $(IDIR_IPSEC_TOOLS)/usr/lib/
77 cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libipsec.so.* $(IDIR_IPSEC_TOOLS)/usr/lib/
78 cp -fpR $(PKG_INSTALL_DIR)/usr/lib/libracoon.so.* $(IDIR_IPSEC_TOOLS)/usr/lib/
79 install -d -m0755 $(IDIR_IPSEC_TOOLS)/usr/sbin
80 cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/plainrsa-gen $(IDIR_IPSEC_TOOLS)/usr/sbin/
81 cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/racoon $(IDIR_IPSEC_TOOLS)/usr/sbin/
82 cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/racoonctl $(IDIR_IPSEC_TOOLS)/usr/sbin/
83 cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/setkey $(IDIR_IPSEC_TOOLS)/usr/sbin/
84 $(RSTRIP) $(IDIR_IPSEC_TOOLS)
85 $(IPKG_BUILD) $(IDIR_IPSEC_TOOLS) $(PACKAGE_DIR)
This page took 0.041497 seconds and 5 git commands to generate.