Updating to Tinc 1.0.14 on Gentoo Linux

ZioPRoTo (Saverio Proto) zioproto at gmail.com
Fri Aug 19 14:21:47 CEST 2011


>> Gentoo runs tincd as follows :
>>
>>  /usr/sbin/tincd --net=ninux --logfile=/var/log/tinc.ninux.log
>> --pidfile=/var/run/tinc.ninux.pid
>
> Ah, that is because if you use --logfile, syslog is not used at all. Those long
> numbers are "UNIX time" (the number of seconds since 1970-01-01 00:00 UT). I
> have been too lazy to have it write time in a human readable format. However, I
> do remember someone sending me a patch that does that, so I'll find it and
> apply it. However, the --logfile option is more something that is useful when
> debugging tinc related issues; it does not work in comination with log rotation
> for example. I would recommend removing the --logfile option, and the --pidfile
> option also, because it is redundant.

Hello,

so I had little time to work on this.

looks like --pidfile option is actually necessary because the build
process of Gentoo will configure tincd as follows:

./configure --prefix=/usr --build=x86_64-pc-linux-gnu
--host=x86_64-pc-linux-gnu --mandir=/usr/share/man
--infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc
--localstatedir=/var/lib --libdir=/usr/lib64 --enable-jumbograms
--enable-lzo --enable-zlib

this causing the pidfile to be created in /var/lib/run instead of /var/run.

so I did not touch the --pidfile option in the command line.

regarding the use of syslog in gentoo I followed the suggestion from
Gentoo developers and I created a new version of the ebuild with the
syslog USE flag. See this bug:
https://bugs.gentoo.org/show_bug.cgi?id=371357

I attach the patch that updates the ebuild to version 1.0.16 and
creates the syslog USE flag.

It is my first ebuild, I checked that it works fine, maybe is not very
clean about gentoo syntax conventions.

Saverio
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tinc-ebuild.patch
Type: text/x-patch
Size: 7828 bytes
Desc: not available
URL: <http://www.tinc-vpn.org/pipermail/tinc/attachments/20110819/ffca929e/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tinc-ebuild.patch.sign
Type: application/octet-stream
Size: 489 bytes
Desc: not available
URL: <http://www.tinc-vpn.org/pipermail/tinc/attachments/20110819/ffca929e/attachment.obj>


More information about the tinc mailing list