fix install of in-tree modules ipkgs
[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 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
16
17 include $(TOPDIR)/package/rules.mk
18
19 define Package/ipsec-tools
20 SECTION:=base
21 CATEGORY:=Network
22 DEPENDS:=@LINUX_2_6
23 TITLE:=IPsec management tools
24 DESCRIPTION:=IPsec management tools
25 URL:=http://ipsec-tools.sourceforge.net/
26 endef
27
28 define Build/Configure
29 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status}; \
30 touch configure.ac; \
31 touch aclocal.m4; \
32 touch Makefile.in; \
33 touch config.h.in; \
34 touch configure; \
35 $(TARGET_CONFIGURE_OPTS) \
36 CFLAGS="$(TARGET_CFLAGS)" \
37 CPPFLAGS="-I$(STAGING_DIR)/usr/include -I$(STAGING_DIR)/include" \
38 LDFLAGS="-L$(STAGING_DIR)/usr/lib -L$(STAGING_DIR)/lib" \
39 ./configure \
40 --target=$(GNU_TARGET_NAME) \
41 --host=$(GNU_TARGET_NAME) \
42 --build=$(GNU_HOST_NAME) \
43 --program-prefix="" \
44 --program-suffix="" \
45 --prefix=/usr \
46 --exec-prefix=/usr \
47 --bindir=/usr/bin \
48 --datadir=/usr/share \
49 --includedir=/usr/include \
50 --infodir=/usr/share/info \
51 --libdir=/usr/lib \
52 --libexecdir=/usr/lib \
53 --localstatedir=/var \
54 --mandir=/usr/share/man \
55 --sbindir=/usr/sbin \
56 --sysconfdir=/etc \
57 $(DISABLE_LARGEFILE) \
58 $(DISABLE_NLS) \
59 --enable-shared \
60 --enable-static \
61 --disable-rpath \
62 --with-gnu-ld \
63 --with-kernel-headers="$(LINUX_DIR)/include" \
64 --without-readline \
65 --with-openssl="$(STAGING_DIR)/usr" \
66 --without-libradius \
67 --without-libpam \
68 );
69 endef
70
71 define Build/Compile
72 $(call Build/Compile/Default,install)
73 endef
74
75 define Package/ipsec-tools/install
76 install -d -m0755 $(1)/etc
77 install -d -m0755 $(1)/usr/lib/
78 install -d -m0755 $(1)/usr/sbin
79 $(CP) $(PKG_BUILD_DIR)/src/racoon/samples/racoon.conf $(1)/etc/
80 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libipsec.so.* $(1)/usr/lib/
81 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libracoon.so.* $(1)/usr/lib/
82 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/plainrsa-gen $(1)/usr/sbin/
83 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/racoon $(1)/usr/sbin/
84 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/racoonctl $(1)/usr/sbin/
85 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/setkey $(1)/usr/sbin/
86 endef
87
88 $(eval $(call BuildPackage,ipsec-tools))
This page took 0.050696 seconds and 5 git commands to generate.