update to new upstream release (v0.9.2),
[openwrt.git] / openwrt / package / tinc / Makefile
1 # $Id$
2
3 include $(TOPDIR)/rules.mk
4
5 PKG_NAME:=tinc
6 PKG_VERSION:=1.0.4
7 PKG_RELEASE:=1
8 PKG_MD5SUM:=63887373dd763f8d90cecc5a3616c363
9
10 PKG_SOURCE_URL:=http://www.tinc-vpn.org/packages \
11 http://ftp.yi.se/pub/tinc/ \
12 http://www.mirrors.wiretapped.net/security/network-security/tinc/
13 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
14 PKG_CAT:=zcat
15
16 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
17 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
18
19 include $(TOPDIR)/package/rules.mk
20
21 $(eval $(call PKG_template,TINC,tinc,$(PKG_VERSION)-$(PKG_RELEASE),$(ARCH)))
22
23 $(PKG_BUILD_DIR)/.configured: $(PKG_BUILD_DIR)/.prepared
24 (cd $(PKG_BUILD_DIR); rm -rf config.{cache,status} ; \
25 $(TARGET_CONFIGURE_OPTS) \
26 CFLAGS="$(TARGET_CFLAGS)" \
27 CPPFLAGS="-I$(STAGING_DIR)/usr/include" \
28 LDFLAGS="-L$(STAGING_DIR)/usr/lib" \
29 ./configure \
30 --target=$(GNU_TARGET_NAME) \
31 --host=$(GNU_TARGET_NAME) \
32 --build=$(GNU_HOST_NAME) \
33 --program-prefix="" \
34 --program-suffix="" \
35 --prefix=/usr \
36 --exec-prefix=/usr \
37 --bindir=/usr/bin \
38 --datadir=/usr/share \
39 --includedir=/usr/include \
40 --infodir=/usr/share/info \
41 --libdir=/usr/lib \
42 --libexecdir=/usr/lib \
43 --localstatedir=/var \
44 --mandir=/usr/share/man \
45 --sbindir=/usr/sbin \
46 --sysconfdir=/etc \
47 $(DISABLE_NLS) \
48 $(DISABLE_LARGEFILE) \
49 --with-kernel=$(LINUX_DIR) \
50 --with-zlib=$(STAGING_DIR)/usr/ \
51 );
52 touch $@
53
54 $(PKG_BUILD_DIR)/.built: $(PKG_BUILD_DIR)/.configured
55 rm -rf $(PKG_INSTALL_DIR)
56 mkdir -p $(PKG_INSTALL_DIR)
57 $(MAKE) -C $(PKG_BUILD_DIR) \
58 CC=$(TARGET_CC) \
59 CFLAGS="$(TARGET_CFLAGS)" \
60 DESTDIR="$(PKG_INSTALL_DIR)" \
61 all install
62 touch $@
63
64 $(IPKG_TINC):
65 install -m0755 -d $(IDIR_TINC)/usr/sbin
66 cp -fpR $(PKG_INSTALL_DIR)/usr/sbin/tincd $(IDIR_TINC)/usr/sbin/
67 $(RSTRIP) $(IDIR_TINC)
68 $(IPKG_BUILD) $(IDIR_TINC) $(PACKAGE_DIR)
69
This page took 0.053904 seconds and 5 git commands to generate.