Ignore:
Timestamp:
2011-11-14T22:41:03+01:00 (4 years ago)
Author:
zioproto
Message:

[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)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • packages/net/tinc/Makefile

    r27795 r29137  
    1010PKG_NAME:=tinc 
    1111PKG_VERSION:=1.0.16 
    12 PKG_RELEASE:=1 
     12PKG_RELEASE:=2 
    1313 
    1414PKG_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 
     15PKG_SOURCE_URL:=http://www.tinc-vpn.org/packages  
    1816PKG_MD5SUM:=f1c7ed94878725fb2cf4efb02bf160da 
    1917 
     
    4644        $(INSTALL_DIR) $(1)/usr/sbin 
    4745        $(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 
    4853endef 
    4954 
Note: See TracChangeset for help on using the changeset viewer.