source: packages/net/tinc/Makefile @ 29137

Last change on this file since 29137 was 29137, checked in by zioproto, 5 years ago

[packages] tinc: contribution from linus.luessing@… - configuration via uci similar to OpenVPN package

With this commit configuration via uci, similiar to the one used for
OpenVPN, will be added to tinc.

Most of the parameters are working just as described in the official
manpages of tincd and tinc.conf as provided by its developer.

The only exceptions are 'disabled' which if set to 1 will make the
init script completely ignore this tinc network and/or tinc host
and 'generate_keys' which if set to 1 will check whether
a key pair is already present for the given tinc network and if not will
generate them with the key size of "key_size" (default if not present:
2048) - this reduces the "effort" of setting up a tinc VPN on a router
to just providing the right uci config file with no need of creating
custom initialization scripts for for instance the key generation.

Furthermore, similiar to the OpenVPN configuration, also tinc configs
of its native format can be used. They just need to be placed in
/etc/tinc/NETNAME. The init scripts will always copy the content of
/etc/tinc/ to /tmp first and will append any parameters provided in
/etc/config/tinc afterwards (the user needs to take care to not specify
non-list parameters in both uci and native config).

(Trivial note: not working URLs of old repositories have been removed from Makefile for downloading sources)

  • Property copyright set to Copyright (C) 2006 OpenWrt.org
  • Property licence set to GPLv2
  • Property svn:eol-style set to native
File size: 1.4 KB
Line 
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
8include $(TOPDIR)/rules.mk
9
10PKG_NAME:=tinc
11PKG_VERSION:=1.0.16
12PKG_RELEASE:=2
13
14PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15PKG_SOURCE_URL:=http://www.tinc-vpn.org/packages
16PKG_MD5SUM:=f1c7ed94878725fb2cf4efb02bf160da
17
18PKG_INSTALL:=1
19
20include $(INCLUDE_DIR)/package.mk
21
22define 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
29endef
30
31define 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.
34endef
35
36TARGET_CFLAGS += -std=gnu99
37
38CONFIGURE_ARGS += \
39        --with-kernel="$(LINUX_DIR)" \
40        --with-zlib="$(STAGING_DIR)/usr" \
41        --with-lzo-include="$(STAGING_DIR)/usr/include/lzo"
42
43define 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
53endef
54
55$(eval $(call BuildPackage,tinc))
Note: See TracBrowser for help on using the repository browser.