From 397a7006a058c7e818706ff4dcd37b72710cf1d0 Mon Sep 17 00:00:00 2001 From: Bernard Cafarelli Date: Mon, 16 Apr 2007 18:45:09 +0000 Subject: [PATCH] Big version bump Package-Manager: portage-2.1.2.4 --- net-misc/freenet6/ChangeLog | 9 +- net-misc/freenet6/Manifest | 28 +- net-misc/freenet6/files/digest-freenet6-4.2.2 | 3 + .../files/freenet6-4.2.2-noretry.patch | 29 ++ net-misc/freenet6/files/gw6c.conf | 317 ++++++++++++++++++ net-misc/freenet6/files/gw6c.rc | 21 ++ net-misc/freenet6/freenet6-4.2.2.ebuild | 60 ++++ 7 files changed, 462 insertions(+), 5 deletions(-) create mode 100644 net-misc/freenet6/files/digest-freenet6-4.2.2 create mode 100644 net-misc/freenet6/files/freenet6-4.2.2-noretry.patch create mode 100644 net-misc/freenet6/files/gw6c.conf create mode 100644 net-misc/freenet6/files/gw6c.rc create mode 100644 net-misc/freenet6/freenet6-4.2.2.ebuild diff --git a/net-misc/freenet6/ChangeLog b/net-misc/freenet6/ChangeLog index 0b0c9ecfad6a..c60e67c3909f 100644 --- a/net-misc/freenet6/ChangeLog +++ b/net-misc/freenet6/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for net-misc/freenet6 # Copyright 2000-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/freenet6/ChangeLog,v 1.15 2007/04/15 22:22:28 voyageur Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/freenet6/ChangeLog,v 1.16 2007/04/16 18:45:09 voyageur Exp $ + +*freenet6-4.2.2 (16 Apr 2007) + + 16 Apr 2007; Bernard Cafarelli +files/gw6c.conf, + +files/freenet6-4.2.2-noretry.patch, +files/gw6c.rc, + +freenet6-4.2.2.ebuild: + Version bump, fixes bugs #32779, #63710, #102947 and #166210 15 Apr 2007; Bernard Cafarelli -files/freenet6-0.9.2.diff, metadata.xml, -freenet6-0.9.7.ebuild: diff --git a/net-misc/freenet6/Manifest b/net-misc/freenet6/Manifest index a50e34d25e98..08bb6ffac7ad 100644 --- a/net-misc/freenet6/Manifest +++ b/net-misc/freenet6/Manifest @@ -1,7 +1,19 @@ +AUX freenet6-4.2.2-noretry.patch 1273 RMD160 42dc48455d43ae02cf0f59bdf8c05fd85f5e09f7 SHA1 f8d9a3bb5812353312bf451b6ae97f6a58eda7b0 SHA256 8e9ce8e4fbaf92339c15c56085e3d8c41677f08645f1fa869882038721b12e2f +MD5 e7103a5dc8508b1a3920a8fa2e814612 files/freenet6-4.2.2-noretry.patch 1273 +RMD160 42dc48455d43ae02cf0f59bdf8c05fd85f5e09f7 files/freenet6-4.2.2-noretry.patch 1273 +SHA256 8e9ce8e4fbaf92339c15c56085e3d8c41677f08645f1fa869882038721b12e2f files/freenet6-4.2.2-noretry.patch 1273 AUX gentoo.sh 4568 RMD160 73a809912914a3ae2801ca950721b95a1b97da86 SHA1 f7c35ec479fea7781655ff4594472ad9be789cce SHA256 27368bd036888d455abb9ea89ccf3ccced009892d8304691c6201f1346f46f86 MD5 edc450e3ee1fd520d5e2936ca0f0c949 files/gentoo.sh 4568 RMD160 73a809912914a3ae2801ca950721b95a1b97da86 files/gentoo.sh 4568 SHA256 27368bd036888d455abb9ea89ccf3ccced009892d8304691c6201f1346f46f86 files/gentoo.sh 4568 +AUX gw6c.conf 8536 RMD160 633eb8d49378459d93931415be401babf88ef42c SHA1 dde098066da1014bb1374d2d5b18de200105f35e SHA256 8da6f62ed5164d54d272ae9d380f1b2387f2ad819ffcd8f52349beeca44c7b1c +MD5 6ce39b7914f00e90620645d2c10a77a8 files/gw6c.conf 8536 +RMD160 633eb8d49378459d93931415be401babf88ef42c files/gw6c.conf 8536 +SHA256 8da6f62ed5164d54d272ae9d380f1b2387f2ad819ffcd8f52349beeca44c7b1c files/gw6c.conf 8536 +AUX gw6c.rc 366 RMD160 f95adc8058b8d3b74c214fa925730f7fea05fbea SHA1 7509d64a4f4b27533ef1ee6f8d7e3465ba6376a2 SHA256 a4b5a3f66272719108c59aacb18f51c1bc0a328defdb94cec0080d7742899dbf +MD5 7a31368b56f387056cd8ef0f76df92d7 files/gw6c.rc 366 +RMD160 f95adc8058b8d3b74c214fa925730f7fea05fbea files/gw6c.rc 366 +SHA256 a4b5a3f66272719108c59aacb18f51c1bc0a328defdb94cec0080d7742899dbf files/gw6c.rc 366 AUX tspc.conf 1532 RMD160 c1604761601d7de0e21bb718584b32e7f886faad SHA1 3527452214e9b76d89e274991802f6da64956e55 SHA256 0df8380228ee81a3cb429efe08b21382362a94949ad8a36faa46e3116b7c1a38 MD5 d251ee1fb05deddaa9a7a5b273ded283 files/tspc.conf 1532 RMD160 c1604761601d7de0e21bb718584b32e7f886faad files/tspc.conf 1532 @@ -11,14 +23,19 @@ MD5 c3987cc58f033790cf60642d69481b93 files/tspc.rc 171 RMD160 7dc7a60cb5fe3681b006ec4f49d41d3d849bca02 files/tspc.rc 171 SHA256 9890fb3253fc5300e3fb7c63ece3bc81f4df8759cf414af67cc44c743c2467d4 files/tspc.rc 171 DIST freenet6-1.0.0.tgz 330953 RMD160 28c7cceaaea5ffe4b740d09f7dbd4aed5abac69d SHA1 b85b6334e3fd5c3278d82fa8a325582a57c24bd3 SHA256 0d834b55538eff2abc569aa5c7831f24525bea56354727d0f6d5933d0e5f1116 +DIST gw6c4_2_2src.tar.gz 113738 RMD160 d918e08bf1670a2e875880bdef582ad2a971ed38 SHA1 9837e29d5ca4236f244d1507716c815728623026 SHA256 938021f16f88f984c33f714b3f7a75c54927e0d63f1a0bdfc723a03758e9ee73 EBUILD freenet6-1.0.0.ebuild 1291 RMD160 b52c5981bcbfbaee2cf51262b7d040121b93b4e1 SHA1 562ab3722e9571e90418369145a31241c8b172ba SHA256 67a8e67449aa7b0dbcf56e5f1989c6ad66a3f47705ea1e0dfa4aa9d3d1fefb8f MD5 073b75f8f405b9cdd80b272ca9553965 freenet6-1.0.0.ebuild 1291 RMD160 b52c5981bcbfbaee2cf51262b7d040121b93b4e1 freenet6-1.0.0.ebuild 1291 SHA256 67a8e67449aa7b0dbcf56e5f1989c6ad66a3f47705ea1e0dfa4aa9d3d1fefb8f freenet6-1.0.0.ebuild 1291 -MISC ChangeLog 1973 RMD160 f0dda6553f4b0c1a34412ff14f07d96c1fe13bbb SHA1 1c9e7b3a5506efa20249f7931e988fb0470cf886 SHA256 5d4bc7bc38e6f46cfd546e3a267250c6d85597b12d1fde8f7dbf8e10dde0f786 -MD5 3ef3b33d6f4f13dea8b556d5c81e353f ChangeLog 1973 -RMD160 f0dda6553f4b0c1a34412ff14f07d96c1fe13bbb ChangeLog 1973 -SHA256 5d4bc7bc38e6f46cfd546e3a267250c6d85597b12d1fde8f7dbf8e10dde0f786 ChangeLog 1973 +EBUILD freenet6-4.2.2.ebuild 1561 RMD160 a084054c00a3f8d4e13c35eacc0155f757dbb63b SHA1 012e6a1f39391ea7a85247569ec8e8fc41dc56a7 SHA256 75611b7f56bf4cd67ffe9a5eaee2fe288fc794b5c658bfae6dffb4a5040ee8ec +MD5 d53961910bf14e70cd12fadc20a7a6e7 freenet6-4.2.2.ebuild 1561 +RMD160 a084054c00a3f8d4e13c35eacc0155f757dbb63b freenet6-4.2.2.ebuild 1561 +SHA256 75611b7f56bf4cd67ffe9a5eaee2fe288fc794b5c658bfae6dffb4a5040ee8ec freenet6-4.2.2.ebuild 1561 +MISC ChangeLog 2222 RMD160 f0f255f0c57990cd25e2d4247fc60804f6f771f1 SHA1 63e3387651d5b0139014a8303d361f88b62a46a2 SHA256 00ca124356596a1e9ea7834e76bea6e870e125c0f093588a4de4335a633274fc +MD5 7c5ebc550551c9b9537607a9fd9578b7 ChangeLog 2222 +RMD160 f0f255f0c57990cd25e2d4247fc60804f6f771f1 ChangeLog 2222 +SHA256 00ca124356596a1e9ea7834e76bea6e870e125c0f093588a4de4335a633274fc ChangeLog 2222 MISC metadata.xml 326 RMD160 21c0abe03be38d771fe8e476c08daa93f9303c5d SHA1 391f49cb96ffa48f6fd53743078e08cd24abd36b SHA256 98c1b7e954d56b2dc5dcb2e4f8cf76a093c408a9f2bc4f0f98bbc9f72b5175d7 MD5 fb5597d7c18663c98a358e980de4bf9d metadata.xml 326 RMD160 21c0abe03be38d771fe8e476c08daa93f9303c5d metadata.xml 326 @@ -26,3 +43,6 @@ SHA256 98c1b7e954d56b2dc5dcb2e4f8cf76a093c408a9f2bc4f0f98bbc9f72b5175d7 metadata MD5 cb720233d965392b57e29e90e0ca48ce files/digest-freenet6-1.0.0 235 RMD160 fd997b79c7cff4e98c7349221a65ac8e9d640024 files/digest-freenet6-1.0.0 235 SHA256 66295a2f3adc16dec752df43490e1be3b5bf94a259e6ec114afa8cd56a8e312c files/digest-freenet6-1.0.0 235 +MD5 32ce150372fee975a0d95813ada25994 files/digest-freenet6-4.2.2 238 +RMD160 4ae702b225cfd3e4520e022c93059543862e29ad files/digest-freenet6-4.2.2 238 +SHA256 cc2a3df58898d16ec89407637535988f24a3edbf56c1e9910e01ece415dd8517 files/digest-freenet6-4.2.2 238 diff --git a/net-misc/freenet6/files/digest-freenet6-4.2.2 b/net-misc/freenet6/files/digest-freenet6-4.2.2 new file mode 100644 index 000000000000..462f244cf921 --- /dev/null +++ b/net-misc/freenet6/files/digest-freenet6-4.2.2 @@ -0,0 +1,3 @@ +MD5 5e64305e1408b0d3c2c2a5803692eb93 gw6c4_2_2src.tar.gz 113738 +RMD160 d918e08bf1670a2e875880bdef582ad2a971ed38 gw6c4_2_2src.tar.gz 113738 +SHA256 938021f16f88f984c33f714b3f7a75c54927e0d63f1a0bdfc723a03758e9ee73 gw6c4_2_2src.tar.gz 113738 diff --git a/net-misc/freenet6/files/freenet6-4.2.2-noretry.patch b/net-misc/freenet6/files/freenet6-4.2.2-noretry.patch new file mode 100644 index 000000000000..f08c96962abf --- /dev/null +++ b/net-misc/freenet6/files/freenet6-4.2.2-noretry.patch @@ -0,0 +1,29 @@ +diff -Naur tspc-advanced.orig/include/tsp_redirect.h tspc-advanced/include/tsp_redirect.h +--- tspc-advanced.orig/include/tsp_redirect.h 2007-04-11 13:51:54.000000000 +0200 ++++ tspc-advanced/include/tsp_redirect.h 2007-04-11 13:52:48.000000000 +0200 +@@ -5,8 +5,8 @@ + #include "config.h" + #include "xml_tun.h" + +-#define DEFAULT_REDIRECT_LAST_SERVER_FILE "tsp-last-server.txt" +-#define DEFAULT_REDIRECT_BROKER_LIST_FILE "tsp-broker-list.txt" ++#define DEFAULT_REDIRECT_LAST_SERVER_FILE "/tmp/tsp-last-server.txt" ++#define DEFAULT_REDIRECT_BROKER_LIST_FILE "/tmp/tsp-broker-list.txt" + + #define MAX_REDIRECT_ADDRESS_LENGTH 255 + #define MAX_REDIRECT_LAST_SERVER_LENGTH 255 +diff -Naur tspc-advanced.orig/src/tsp/tsp_client.c tspc-advanced/src/tsp/tsp_client.c +--- tspc-advanced.orig/src/tsp/tsp_client.c 2007-04-11 13:51:54.000000000 +0200 ++++ tspc-advanced/src/tsp/tsp_client.c 2007-04-11 13:53:20.000000000 +0200 +@@ -939,6 +939,11 @@ + continue; + } + ++ // Do not loop on no-retry ++ if (c.retry == 0) { ++ connected = 0; ++ continue; ++ } + //Display (LOG_LEVEL_1, ELInfo, "tspMain", HEX_STR_DISCONNECTED_RETRY, tspGetErrorByCode(status), c.retry); + Display (LOG_LEVEL_1, ELInfo, "tspMain", HEX_STR_DISCONNECTED_RETRY, c.retry); + SLEEP(c.retry); diff --git a/net-misc/freenet6/files/gw6c.conf b/net-misc/freenet6/files/gw6c.conf new file mode 100644 index 000000000000..8a3f8b4eb2d4 --- /dev/null +++ b/net-misc/freenet6/files/gw6c.conf @@ -0,0 +1,317 @@ +#----------------------------------------------------------------------------- +# $Id: gw6c.conf,v 1.1 2007/04/16 18:45:09 voyageur Exp $ +#----------------------------------------------------------------------------- + +########################## READ ME! ################################ +# Dear user, welcome to the Gateway6 Client configuration file. +# In order to use the client, you have to modify the 'userid', +# 'passwd' and 'server' parameters below according to one of these 3 situations: +# +# 1. If you created an account on Freenet6, enter your userid and password below. +# Also change the server name to "broker.freenet6.net". +# 2. If you would like to use Freenet6 without creating an account, +# do not modify anything and close this file. +# 3. If this software was provided by your ISP, put the userid, password and +# server name provided by your ISP below. +# + +########################## BASIC CONFIGURATION ################################ +# +# User Identification: +# userid=anonymous|your_userid +# Specify your user name and password as provided by your ISP or Freenet6. +# Use anonymous if you don't have a username and leave the password field empty. +# +userid=anonymous +passwd= + +# +# Server: +# Tunnel broker name or IP address (provided by your ISP or Freenet6). +# An optional port number can be added, the default port number is 3653. +# +# Examples: +# server=hostname # FQDN +# server=A.B.C.D # IPv4 address +# server=[X:X::X:X] # IPv6 address +# server=hostname:port_number +# server=A.B.C.D:port_number +# server=[X:X::X:X]:port_number +# +# For users with accounts on Freenet6, use broker.freenet6.net otherwise anon.freenet6.net. +# Your ISP may provide you with a different server name. +# +server=anon.freenet6.net +#server=broker.freenet6.net + + +########################## ROUTER CONFIGURATION ############################### +# +# Use these parameters for the client to act as a router and give IPv6 +# to several PCs. +# +# Router flag: +# host_type=host|router +# Set this value for the client to act as a router. +# +# Default value: host +# +#host_type=router + +# +# Prefix length: +# prefixlen=24|48|64 +# Length of the prefix length for the TSP client network. +# Valid values are 64 or 48 for v6anyv4 tunnel, and 24 for v4v6 tunnel. +# +# Default value: 48 +# Note: Freenet6 only gives /48 prefixes. +# +prefixlen=48 + +# +# Interface prefix: +# Name of the interface that will be configured to send router advertisements. +# This is an interface index on Windows (for example 4) and a name on Linux and +# BSD, for example eth1 or fxp1. +# +#if_prefix= + +# +# DNS Server: +# Specify a local DNS server to which will be delegated the reverse prefix. +# +# Example: dns_server=mydnsserver.domain +# +#dns_server= + +######################### ADVANCED CONFIGURATION ############################## +# +# Gateway6 directory: +# Install directory for the Gateway6 Client. Do not modify. +# +gw6_dir=/etc/freenet6 + +# +# Authentication method: +# auth_method=any|digest-md5|anonymous|plain +# any: The most secure method will be used. +# digest-md5: The password is sent encrypted. +# plain: Both username and password in clear. +# anonymous: Sends no username or password +# +# Recommended value: any +# +auth_method=any + +# +# Retry delay: +# Time in seconds between each reconnection in case of timeout (0 = no retry). +# +# Recommended value: 30 seconds +# +retry_delay=0 + +# +# Keepalive interval: +# Indicates how often the client will send data to keep the tunnel active. +# +# Recommended values: "yes" and 30 seconds +# +keepalive=yes +keepalive_interval=30 + +# +# Tunnel encapsulation mode: +# v6v4: IPv6 in IPv4 tunnel. +# v6udpv4: IPv6 in UDP in IPv4 tunnel (for clients behind a NAT). +# v6anyv4: Let the broker choose the best mode for IPv6 tunnel. +# v4v6: IPv4 in IPv6 tunnel. + +# +# Recommended value: v6anyv4 +# +tunnel_mode=v6anyv4 + +# +# Tunnel enterface name: +# Interface name of the tunnel. This value us is OS dependent. +# +# if_tunnel_v6v4 is the tunnel interface name for the v6v4 encapsulation mode +# if_tunnel_v6udpv4 is the tunnel interface name for the v6udpv4 encap mode +# if_tunnel_v4v6 is the tunnel interface naem for the v4v6 encapsulation mode +# +if_tunnel_v6v4=sit1 +if_tunnel_v6udpv4=tun +if_tunnel_v4v6=sit0 + +# +# IP addresses of the client: +# client_v4=auto|A.B.C.D (valid ipv4 address) +# client_v6=auto|X:X::X:X (valid ipv6 address) +# auto: Gateway6 Client will find the ip address +# +# Recommended value: auto +# +client_v4=auto +client_v6=auto + +# +# Name of the script: +# template=checktunnel|freebsd|netbsd|linux|windows|darwin|cisco| +# openbsd +# +# File name of the script to run to install the tunnel interface. +# The scripts are located in the template directory under the client +# installation directory. +# +# Default value: windows.bat or linux.sh for example. +# +template=linux + +# +# Proxy client: +# Indicates this client requests a tunnel for another endpoint, +# a Cisco router for example. +# +# Note: NAT traversal is not possible in proxy mode. +# +proxy_client=no + + +# Broker Redirection +# The 'broker_list' directive specifies the name of the file +# where a broker list received during broker redirection will +# be saved. +# +# Default value: tsp-broker-list.txt +# +#broker_list= +# +# The 'last_server' directive specifies the name of the file +# where the address of the last broker to which a connection +# was successfully established will be saved. +# +# Default value: tsp-last-server.txt +# +#last_server= +# +# The value of the 'always_use_same_server' directive determines +# if the client should always try to connect to the broker +# specified with the 'last_server' directive (if any). +# +# Default value: no +# +#always_use_same_server= + + + +# +# Log destinations: +# The format is 'log=destination;level', where +# possible values of 'destination' are: +# +# console (logging to the console) +# stderr (logging to standard error) +# file (logging to a file) +# syslog (logging to syslog [Unix only]) +# +# and 'level' is a digit between 0 and 3. A 'level' +# value of 0 disables logging to the destination, +# while values 1 to 3 request increasing levels of log +# verbosity. +# +# Multiple 'log' directives may be specified. +# +# Examples +# log=file;3 (Maximal logging to a file) +# log=stderr;0 (Logging to stdandard error disabled) +# log=console (Minimal logging to the console) +# +# If 'level' is not specified, a value of 1 is assumed. +# In this case, the semicolon should be left out. +# +# If no 'log' directive is specified at all, the +# following will apply: +# +# On Windows platforms: +# +# log=console;0 +# log=stderr;0 +# log=file;1 +# +# On Unix platforms: +# +# log=console;0 +# log=stderr;1 +# log=file;0 +# log=syslog;0 +# +#log= + +# +# Log file name: +# When logging to file is requested using the 'log' +# directive, the name and path of the file to use +# may be specified using the 'log_filename' directive. +# +# Default value: gw6c.log +# +#log_filename= + +# +# Log file rotation: +# When logging to file is requested using the 'log' +# directive, log file rotation may be enabled using +# the 'log_rotation' directive. +# +# When enabled, the contents of the log file will be +# moved to a backup file just before it reaches the +# maximal log file size specified via the 'log_rotation_size' +# directive. +# +# The name of the backup file is the name of the original +# log file with '.' inserted before the file +# extension. If the file does not have an extension, +# '.' is appended to the name of the original +# log file. The timestamp specifies when the rotation +# occured. +# +# After the contents of the log file have been moved +# to the backup file, the original file is cleared, and +# logging resumes at the beginning of the file. +# +# Default value: yes +# +#log_rotation=no + +# +# Log file rotation size: +# The 'log_rotation_size' directive specifies the +# maximal size a log file may reach before rotation +# occurs if it is enabled via the 'log_rotation' directive. +# +# The value is expressed in kilobytes. +# +# Minimal value: 16 +# Maximal value: 10240 +# Default value: 32 +# +#log_rotation_size= + +# +# Syslog logging facility [Unix only]: +# +# When logging to syslog is requested using the 'log' +# directive, the facility to use may be specified using +# the 'syslog_facility' directive. +# +# Valid values: USER, LOCAL[0-7] +# +# Default value: USER +# +#syslog_facility= + + +# end of gw6c.conf +#----------------------------------------------------------------------------- diff --git a/net-misc/freenet6/files/gw6c.rc b/net-misc/freenet6/files/gw6c.rc new file mode 100644 index 000000000000..e7bdb5e01ce2 --- /dev/null +++ b/net-misc/freenet6/files/gw6c.rc @@ -0,0 +1,21 @@ +#!/sbin/runscript + +FREENET6_CLIENT="/usr/sbin/gw6c" + +depend() { + need net + use dns logger +} + +start() { + ebegin "Starting Freenet6 IPv6 Client" + start-stop-daemon --start --quiet \ + --exec $FREENET6_CLIENT -- -f /etc/freenet6/gw6c.conf + eend $? +} + +stop() { + ebegin "Stopping Freenet6 IPv6 Client" + start-stop-daemon --stop --quiet --exec $FREENET6_CLIENT + eend $? +} diff --git a/net-misc/freenet6/freenet6-4.2.2.ebuild b/net-misc/freenet6/freenet6-4.2.2.ebuild new file mode 100644 index 000000000000..cb1502d6f6c8 --- /dev/null +++ b/net-misc/freenet6/freenet6-4.2.2.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/freenet6/freenet6-4.2.2.ebuild,v 1.1 2007/04/16 18:45:09 voyageur Exp $ + +inherit eutils versionator + +MY_PV=$(replace_all_version_separators "_") +DESCRIPTION="Client to configure an IPv6 tunnel to freenet6" +HOMEPAGE="http://www.freenet6.net/" +SRC_URI="mirror://gentoo/gw6c${MY_PV}src.tar.gz" + +LICENSE="VPL-1.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +DEPEND="dev-libs/openssl" +RDEPEND="${DEPEND}" + +S="${WORKDIR}/tspc-advanced" + +src_unpack() { + unpack ${A} + cd ${S} + epatch ${FILESDIR}/${P}-noretry.patch +} + +src_compile() { + emake all target=linux || die "Build Failed" +} + +src_install() { + dosbin bin/gw6c + + insopts -m 600 + insinto /etc/freenet6 + doins ${FILESDIR}/gw6c.conf + exeinto /etc/freenet6/template + doexe template/{linux,checktunnel}.sh + + exeinto /etc/init.d + newexe ${FILESDIR}/gw6c.rc gw6c + + doman man/{man5/gw6c.conf.5,man8/gw6c.8} +} + +pkg_postinst() { + if has_version '=net-misc/freenet6-1*' ; then + ewarn "Warning: you are upgrading from an older version" + ewarn "The configuration file has been renamed to gw6c.conf" + ewarn "Remember to port your personal settings from tspc.conf to it" + ewarn "The init script has been renamed to 'gw6c'," + else + elog "The freenet6 ebuild installs an init script named 'gw6c'" + fi + elog "to coincide with the name of the client binary installed" + elog "To add support for a freenet6 connection at startup, do" + elog "" + elog "# rc-update add gw6c default" +} -- 2.26.2