6 Commits

Author SHA1 Message Date
luka
b8c4b0401d [packages] tinc: fix init.d/tinc parameter generation and logfile config name
tinc expects long parameters to be in the form "--name=value" and the
current init scripts generate "--name value" parameters. See `tincd
--help` to confirm. Also, the config/tinc and init.d/tinc incorrectly
use the parameter "log" when it should be "logfile".

Signed-off-by: Sandy McArthur, Jr. <Sandy@McArthur.org>

git-svn-id: svn://svn.openwrt.org/openwrt/packages@36508 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-05-02 00:49:05 +00:00
zioproto
d19e83bdeb [packages] tinc: The initscript for tinc writes a temporary config into /tmp/tinc.
In the prepare_net function it appends flags and params from the uci config to
the temporary tinc.conf for each net. These values are appended to the
config file on each /etc/init.d/tinc restart and the file grows. By
removing all old temporary config this problem is solved. Then we should
also remove the temporary config for a net which is stopped to free up
some bytes in memory.
Contribution from Manuel Munz <freifunk@somakoma.de>

git-svn-id: svn://svn.openwrt.org/openwrt/packages@35053 3c298f89-4303-0410-b956-a3cf2f4a3e73
2013-01-08 18:56:32 +00:00
zioproto
b8f4ed473a [packages] tinc: The tinc init script needs to know all valid options used in /etc/conf/tinc.
Author: Moritz Warning <moritzwarning@web.de>
This patch updates that list to tinc 0.18 (current version).



git-svn-id: svn://svn.openwrt.org/openwrt/packages@31837 3c298f89-4303-0410-b956-a3cf2f4a3e73
2012-05-21 16:45:40 +00:00
nico
b8dd3d75c1 packages/tinc: fix pid-file arg passed in service command-line
git-svn-id: svn://svn.openwrt.org/openwrt/packages@29185 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-16 13:27:44 +00:00
nico
62db3b32f6 packages/tinc: use new service functions, change 'disabled' option to 'enabled' like most other services are using
git-svn-id: svn://svn.openwrt.org/openwrt/packages@29166 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-16 09:43:57 +00:00
zioproto
40bd40c0d4 [packages] tinc: contribution from linus.luessing@web.de - 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)



git-svn-id: svn://svn.openwrt.org/openwrt/packages@29137 3c298f89-4303-0410-b956-a3cf2f4a3e73
2011-11-14 21:41:03 +00:00