[package] tinc: version bump to 1.0.19
[packages.git] / net / tinc / Makefile
1 #
2 # Copyright (C) 2007-2011 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.19
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 PKG_MD5SUM:=5d97ee0f1ccf8fea5b492f6b54d5ac32
17
18 PKG_INSTALL:=1
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 TARGET_CFLAGS += -std=gnu99
37
38 CONFIGURE_ARGS += \
39         --with-kernel="$(LINUX_DIR)" \
40         --with-zlib="$(STAGING_DIR)/usr" \
41         --with-lzo-include="$(STAGING_DIR)/usr/include/lzo"
42
43 define Package/tinc/install
44         $(INSTALL_DIR) $(1)/usr/sbin
45         $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/sbin/tincd $(1)/usr/sbin/
46         $(INSTALL_DIR) $(1)/etc/init.d/
47         $(INSTALL_BIN) files/$(PKG_NAME).init $(1)/etc/init.d/$(PKG_NAME)
48         $(INSTALL_DIR) $(1)/etc/config
49         $(INSTALL_CONF) files/$(PKG_NAME).config $(1)/etc/config/$(PKG_NAME)
50         $(INSTALL_DIR) $(1)/etc/openvpn
51         $(INSTALL_DIR) $(1)/lib/upgrade/keep.d
52         $(INSTALL_DATA) files/tinc.upgrade $(1)/lib/upgrade/keep.d/tinc
53 endef
54
55 define Package/tinc/conffiles
56 /etc/config/tinc
57 endef
58
59 $(eval $(call BuildPackage,tinc))