diff options
author | Bernard Cafarelli <voyageur@gentoo.org> | 2008-02-27 10:32:35 +0000 |
---|---|---|
committer | Bernard Cafarelli <voyageur@gentoo.org> | 2008-02-27 10:32:35 +0000 |
commit | 73984c47f1ff5f518eb514c15ea1ccadd8d3a2f6 (patch) | |
tree | 9f6446b11e3f728d68fb7cb05f1e33a54288cfb2 | |
parent | Add missing eutils inherit for enewgroup as pointed out by Shufeng Zheng. (diff) | |
download | historical-73984c47f1ff5f518eb514c15ea1ccadd8d3a2f6.tar.gz historical-73984c47f1ff5f518eb514c15ea1ccadd8d3a2f6.tar.bz2 historical-73984c47f1ff5f518eb514c15ea1ccadd8d3a2f6.zip |
Add tun module detection/load to init script
Package-Manager: portage-2.1.4.4
-rw-r--r-- | net-misc/freenet6/ChangeLog | 5 | ||||
-rw-r--r-- | net-misc/freenet6/Manifest | 5 | ||||
-rw-r--r-- | net-misc/freenet6/files/gw6c.rc | 15 |
3 files changed, 22 insertions, 3 deletions
diff --git a/net-misc/freenet6/ChangeLog b/net-misc/freenet6/ChangeLog index 718edf86ac0d..a25c54ae72ab 100644 --- a/net-misc/freenet6/ChangeLog +++ b/net-misc/freenet6/ChangeLog @@ -1,6 +1,9 @@ # ChangeLog for net-misc/freenet6 # Copyright 2000-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/net-misc/freenet6/ChangeLog,v 1.27 2008/02/27 10:07:38 voyageur Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-misc/freenet6/ChangeLog,v 1.28 2008/02/27 10:32:34 voyageur Exp $ + + 27 Feb 2008; Bernard Cafarelli <voyageur@gentoo.org> files/gw6c.rc: + Add tun module detection/load to init script, patch provided by jakub 27 Feb 2008; Bernard Cafarelli <voyageur@gentoo.org> freenet6-5.1.ebuild: Honor C[XX]FLAGS+LDFLAGS, many thanks to jakub in bug #211581 diff --git a/net-misc/freenet6/Manifest b/net-misc/freenet6/Manifest index 94b65d8b24b1..784f274cce4e 100644 --- a/net-misc/freenet6/Manifest +++ b/net-misc/freenet6/Manifest @@ -1,11 +1,12 @@ AUX freenet6-4.2.2-noretry.patch 1273 RMD160 42dc48455d43ae02cf0f59bdf8c05fd85f5e09f7 SHA1 f8d9a3bb5812353312bf451b6ae97f6a58eda7b0 SHA256 8e9ce8e4fbaf92339c15c56085e3d8c41677f08645f1fa869882038721b12e2f AUX gw6c.conf 8536 RMD160 633eb8d49378459d93931415be401babf88ef42c SHA1 dde098066da1014bb1374d2d5b18de200105f35e SHA256 8da6f62ed5164d54d272ae9d380f1b2387f2ad819ffcd8f52349beeca44c7b1c -AUX gw6c.rc 393 RMD160 aaa6441d5305b503e55c453a08c307596901b4a4 SHA1 b6619ba85973182bad19feca87e61482bceabe52 SHA256 db485deb03d414defb93e4dcacc1900efaebb100c2eb1f4d207be73f3355d5f8 +AUX gw6c.rc 644 RMD160 89bcf7d0329c59eaee58f5c98924c4c1968df6e9 SHA1 643f89719a0141b271a4808281cf79da757f3f73 SHA256 cafd899ebd4bb315b0491e47b3a2a824351e3ff61553f42dd4d5ffdb93ffe9ac +AUX gw6c.rc.orig 393 RMD160 aaa6441d5305b503e55c453a08c307596901b4a4 SHA1 b6619ba85973182bad19feca87e61482bceabe52 SHA256 db485deb03d414defb93e4dcacc1900efaebb100c2eb1f4d207be73f3355d5f8 DIST gw6c-5_0-RELEASE-src.tar.gz 2441593 RMD160 737e4d0cc74d78df9543715f8a5f0e3c9a11c699 SHA1 aad5d89ac87ef50fb930d854c7f97277f83167b4 SHA256 431e59a6590f0826f1cb34a6319bd69d024ca89e36f8578a2befe039a489e894 DIST gw6c-5_1-RELEASE-src.tar.gz 1055230 RMD160 bb507ce6e56e9fd71363d2fdd27ba61c04ab125f SHA1 1ffab56a93d2271001f257d4dcaea82c38aa81f9 SHA256 960a6eceebc685c0b36d75a28d3ac576424837e34ddb7d6ee43334c5c3e15b1f DIST gw6c4_2_2src.tar.gz 113738 RMD160 d918e08bf1670a2e875880bdef582ad2a971ed38 SHA1 9837e29d5ca4236f244d1507716c815728623026 SHA256 938021f16f88f984c33f714b3f7a75c54927e0d63f1a0bdfc723a03758e9ee73 EBUILD freenet6-4.2.2.ebuild 1551 RMD160 14fb9719e10d249cec396d4622c01766817e6e23 SHA1 a8dbccbdddb94cac3801c3b3ad786adef98bf090 SHA256 bdcf6ee0b2e33220a361378cf86017b9d131754f5a99f61ce552fa88356cd67b EBUILD freenet6-5.0.ebuild 1569 RMD160 da66da26ec5ce61feea443482a4537aabb0f0c15 SHA1 41216c98a9603f8c754e933725d0be6250bf13a7 SHA256 4aa07737a5858bd9c517091e55eb1303a8f024bb8b58b62b99d24c757188cc17 EBUILD freenet6-5.1.ebuild 2386 RMD160 80f747b2a5069bf9d3e2e9458eb672fee4bc1f1d SHA1 157c1a5a86d95ea6b9c773158b8c886e15c6ba52 SHA256 1b2f1e5f3096f0242d933ea97d1af6262f31738297c12a7b75bbbe1445ea3ef8 -MISC ChangeLog 3703 RMD160 42c26db31628f70a7ee90e5d78f4d90345e4f3ee SHA1 b3bf753ff3e1b7dcdf0929f3bca772b2b925d3e5 SHA256 1db9f4d90de6e3580b86aa2b5e413c53741afa22a84a9c7761e972e4fda7c683 +MISC ChangeLog 3846 RMD160 7c87fbf4ad3a153f8a75865523437a794ec697f4 SHA1 6bb0ae5672954ec4065e0b1ed587b2e0b2326c1f SHA256 5129fd43d5e99dfd9ac47f0eb3b7a80e62bdbb3d82e6ba7e03df6d04b46dbcc6 MISC metadata.xml 348 RMD160 831527825fdc6b58538bb671987c0a562e1559df SHA1 2517554158e3a9d0cd11e7a8ecbe4fa1843a170f SHA256 9a455a8b1ebafab91dcd8d5a1c0d3cc61fc75abc59ad2988d7118032f8309730 diff --git a/net-misc/freenet6/files/gw6c.rc b/net-misc/freenet6/files/gw6c.rc index 1f5b0c79b744..85ac76ad424a 100644 --- a/net-misc/freenet6/files/gw6c.rc +++ b/net-misc/freenet6/files/gw6c.rc @@ -8,7 +8,22 @@ depend() { use dns logger } +checkconfig() { + if [ $(uname -s) = "Linux" ] ; then + if [ ! -e /dev/net/tun ]; then + if ! modprobe tun ; then + eerror "TUN/TAP support is not available" \ + "in this kernel" + return 1 + fi + fi + fi + return 0 +} + start() { + checkconfig || return 1 + ebegin "Starting Freenet6 IPv6 Client" start-stop-daemon --start --quiet \ --exec $FREENET6_CLIENT -- -f /etc/freenet6/gw6c.conf |