fix bind compile error
[openwrt/svn-archive/archive.git] / net / tinc / 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:=tinc
12 PKG_VERSION:=1.0.4
13 PKG_RELEASE:=1
14 PKG_MD5SUM:=63887373dd763f8d90cecc5a3616c363
15
16 PKG_SOURCE_URL:=http://www.tinc-vpn.org/packages \
17 http://ftp.yi.se/pub/tinc/ \
18 http://www.mirrors.wiretapped.net/security/network-security/tinc/
19 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
20 PKG_CAT:=zcat
21
22 PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-$(PKG_VERSION)
23 PKG_INSTALL_DIR:=$(PKG_BUILD_DIR)/ipkg-install
24
25 include $(INCLUDE_DIR)/package.mk
26
27 define Package/tinc
28 SECTION:=net
29 CATEGORY:=Network
30 DEPENDS:=+liblzo +libopenssl +zlib
31 TITLE:=VPN tunneling daemon
32 DESCRIPTION:=A VPN tunneling daemon
33 URL:=http://www.tinc-vpn.org/
34 endef
35
36 define Build/Configure
37 $(call Build/Configure/Default,--with-kernel=$(LINUX_DIR) \
38 --with-zlib=$(STAGING_DIR)/usr/ \
39 --with-lzo-include=$(STAGING_DIR)/usr/include/lzo \
40 )
41 endef
42
43 define Build/Compile
44 $(call Build/Compile/Default,CC="$(TARGET_CC)" \
45 CFLAGS="$(TARGET_CFLAGS)" \
46 DESTDIR="$(PKG_INSTALL_DIR)" \
47 all install)
48 endef
49
50 define Package/tinc/install
51 install -m0755 -d $(1)/usr/sbin
52 $(CP) $(PKG_INSTALL_DIR)/usr/sbin/tincd $(1)/usr/sbin/
53 endef
54
55 $(eval $(call BuildPackage,tinc))