Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 33691 - tinc 1.0.2 ebuild
Summary: tinc 1.0.2 ebuild
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Warp Zero (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-11-17 10:54 UTC by Tim Schumacher
Modified: 2004-07-21 05:15 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
the ebuild (tinc_ebuild.tar.bz2,1.42 KB, application/octet-stream)
2003-11-17 10:57 UTC, Tim Schumacher
Details
The plain ebuild (tinc-1.0.2.ebuild,1.06 KB, text/plain)
2003-11-19 01:36 UTC, Tim Schumacher
Details
The init script (tinc,788 bytes, text/plain)
2003-11-19 01:38 UTC, Tim Schumacher
Details
init script with support for multiple tinc networks (tinc,1.24 KB, text/plain)
2003-11-20 07:54 UTC, Martin Hajduch
Details
Fixed init script (tinc,1.29 KB, text/plain)
2004-07-21 05:15 UTC, Martin Hajduch
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Schumacher 2003-11-17 10:54:55 UTC
I have written a ebuild for tinc. Its an vpn implementation. An init script is
included.

Reproducible: Always
Steps to Reproduce:
1. cd $PORTDIR_OVERLAY
2. tar xjf tinc_ebuild.tar.bz2
3. emerge -v $PORTDIR_OVERLAY/net-misc/tinc/tinc-1.0.2.ebuild

Actual Results:  
I had tinc installed.

Expected Results:  
the result was expected, nothing went wrong.
Comment 1 Tim Schumacher 2003-11-17 10:57:13 UTC
Created attachment 20868 [details]
the ebuild
Comment 2 Mr. Bones. (RETIRED) gentoo-dev 2003-11-18 16:31:31 UTC
Tim -  please see:
http://emu.gentoo.org/~liquidx/ebuildmistakes.html
in particular: Common Ebuild Submission Mistakes, point 1

Thanks.
Comment 3 Tim Schumacher 2003-11-19 01:36:30 UTC
Created attachment 20936 [details]
The plain ebuild

Here is the plain ebuild, an init script will folow since its needed.
Comment 4 Tim Schumacher 2003-11-19 01:38:05 UTC
Created attachment 20937 [details]
The init script

the init script for ./files/
Comment 5 Martin Hajduch 2003-11-20 07:54:39 UTC
Created attachment 20989 [details]
init script with support for multiple tinc networks

this init script which supports multiple networks

network configuration file is /etc/conf.d/tinc.networks:
# tinc networks
NETWORK: first_vpn
NETWORK: second_vpn
....

network configuration directories are /etc/tinc/first_vpn/,
/etc/tinc/second_vpn/ ...

log files: /var/log/tinc.first_vpn.log, /var/log/tinc.second_vpn.log ...

pid files: /var/run/tinc.first_vpn.pid, /var/run/tinc.second_vpn.pid ...
Comment 6 Warp Zero (RETIRED) gentoo-dev 2003-12-24 04:43:45 UTC
Okay I will work on adding this ebuild but additional testing of the attached files would be greatly apreciated as I have no experience with tinc personally.
Comment 7 Warp Zero (RETIRED) gentoo-dev 2003-12-24 05:22:33 UTC
Ebuild added.
Comment 8 Warp Zero (RETIRED) gentoo-dev 2003-12-24 07:13:37 UTC
bazik@gentoo.org added the init script... have a nice day :)
Comment 9 Martin Hajduch 2003-12-24 08:09:02 UTC
working fine for me

well, maybe it would be worth of extending ebuild to create default /etc/conf.d/tinc.networks file (ONLY if it does not exist yet) with content like:

# List of configured tinc networks
#
# Syntax:
# NETWORK: network_name
#    for each tinc network configured.

----
unfortunately, i'm not very familiar with creating ebuild scripts ...
Comment 10 Jan Schubert 2004-01-08 11:26:32 UTC
works for me also (with small problems, but it works :-)
Comment 11 Martin Hajduch 2004-07-21 05:15:36 UTC
Created attachment 35869 [details]
Fixed init script

Bug fix of init script -> there should be numeric comparison for number of
defined networks