6457c84903c0df64207aaef6d5eb6a3af68106e6
[openwrt/svn-archive/archive.git] / net / tinc / Makefile
1 #
2 # Copyright (C) 2007 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.11
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:=ee0b1a3366c6e379cae34be6fa5dcb15
19
20 include $(INCLUDE_DIR)/package.mk
21
22 define Package/tinc
23 SECTION:=net
24 CATEGORY:=Network
25 DEPENDS:=+liblzo +libopenssl +kmod-tun
26 TITLE:=VPN tunneling daemon
27 URL:=http://www.tinc-vpn.org/
28 SUBMENU:=VPN
29 endef
30
31 define Package/tinc/description
32 tinc is a Virtual Private Network (VPN) daemon that uses tunnelling and
33 encryption to create a secure private network between hosts on the Internet.
34 endef
35
36 define Build/Configure
37 $(call Build/Configure/Default, \
38 --with-kernel="$(LINUX_DIR)" \
39 --with-zlib="$(STAGING_DIR)/usr" \
40 --with-lzo-include="$(STAGING_DIR)/usr/include/lzo" \
41 )
42 endef
43
44 define Build/Compile
45 $(MAKE) -C $(PKG_BUILD_DIR) \
46 DESTDIR="$(PKG_INSTALL_DIR)" \
47 all install
48 endef
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))