[package] babel: include upstream patch until next release
[openwrt/svn-archive/archive.git] / net / tinc / Makefile
1 #
2 # Copyright (C) 2007-2010 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=tinc
11 PKG_VERSION:=1.0.13
12 PKG_RELEASE:=1
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=http://www.tinc-vpn.org/packages \
16 http://ftp.yi.se/pub/tinc/ \
17 http://www.mirrors.wiretapped.net/security/network-security/tinc/
18 PKG_MD5SUM:=86263994d38c750431efd17e9a91a248
19
20 PKG_INSTALL:=1
21
22 include $(INCLUDE_DIR)/package.mk
23
24 define Package/tinc
25 SECTION:=net
26 CATEGORY:=Network
27 DEPENDS:=+liblzo +libopenssl +kmod-tun
28 TITLE:=VPN tunneling daemon
29 URL:=http://www.tinc-vpn.org/
30 SUBMENU:=VPN
31 endef
32
33 define Package/tinc/description
34 tinc is a Virtual Private Network (VPN) daemon that uses tunnelling and
35 encryption to create a secure private network between hosts on the Internet.
36 endef
37
38 TARGET_CFLAGS += -std=gnu99
39
40 CONFIGURE_ARGS += \
41 --with-kernel="$(LINUX_DIR)" \
42 --with-zlib="$(STAGING_DIR)/usr" \
43 --with-lzo-include="$(STAGING_DIR)/usr/include/lzo" \
44
45 # XXX: checking for SHA1_version(), which is a variable, not a function,
46 # fails on PowerPC, so just override it for now
47 CONFIGURE_VARS += \
48 ac_cv_lib_crypto_SHA1_version="yes" \
49
50 define Package/tinc/install
51 $(INSTALL_DIR) $(1)/usr/sbin
52 $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/tincd $(1)/usr/sbin/
53 endef
54
55 $(eval $(call BuildPackage,tinc))