From: | "Thilo Bangert (bangert)" <bangert@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in net-misc/miredo/files: miredo-server.conf miredo.conf miredo.rc miredo-server.rc |
Date: | Mon, 03 May 2010 09:59:26 |
Message-Id: | 20100503095923.45BAE2C316@corvid.gentoo.org |
1 | bangert 10/05/03 09:59:23 |
2 | |
3 | Added: miredo-server.conf miredo.conf miredo.rc |
4 | miredo-server.rc |
5 | Log: |
6 | initial import - in part based on the work Clemmit Sigler and Samuel Tardieu (bug #77603) - Thanks |
7 | (Portage version: 2.2_rc67/cvs/Linux i686) |
8 | |
9 | Revision Changes Path |
10 | 1.1 net-misc/miredo/files/miredo-server.conf |
11 | |
12 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/miredo/files/miredo-server.conf?rev=1.1&view=markup |
13 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/miredo/files/miredo-server.conf?rev=1.1&content-type=text/plain |
14 | |
15 | Index: miredo-server.conf |
16 | =================================================================== |
17 | # Load the tun module |
18 | MIREDO_MODPROBE_TUN="yes" |
19 | # Load the ipv6 module |
20 | MIREDO_MODPROBE_IPV6="yes" |
21 | # Options to pass to the miredo process |
22 | MIREDO_OPTS="" |
23 | |
24 | |
25 | |
26 | 1.1 net-misc/miredo/files/miredo.conf |
27 | |
28 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/miredo/files/miredo.conf?rev=1.1&view=markup |
29 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/miredo/files/miredo.conf?rev=1.1&content-type=text/plain |
30 | |
31 | Index: miredo.conf |
32 | =================================================================== |
33 | # Load the tun module |
34 | MIREDO_MODPROBE_TUN="yes" |
35 | # Load the ipv6 module |
36 | MIREDO_MODPROBE_IPV6="yes" |
37 | # Options to pass to the miredo process |
38 | MIREDO_OPTS="" |
39 | |
40 | |
41 | |
42 | 1.1 net-misc/miredo/files/miredo.rc |
43 | |
44 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/miredo/files/miredo.rc?rev=1.1&view=markup |
45 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/miredo/files/miredo.rc?rev=1.1&content-type=text/plain |
46 | |
47 | Index: miredo.rc |
48 | =================================================================== |
49 | #!/sbin/runscript |
50 | # Copyright 1999-2010 Gentoo Foundation |
51 | # Distributed under the terms of the GNU General Public License v2 |
52 | # $Header $ |
53 | |
54 | depend() { |
55 | need net |
56 | use dns logger |
57 | } |
58 | |
59 | start() { |
60 | ebegin "Starting Miredo" |
61 | [ "${MIREDO_MODPROBE_IPV6}" == "yes" ] && modprobe ipv6 |
62 | [ "${MIREDO_MODPROBE_TUN}" == "yes" ] && modprobe tun |
63 | start-stop-daemon --start --quiet --exec /usr/sbin/miredo -- \ |
64 | ${MIREDO_OPTS} |
65 | eend $? |
66 | } |
67 | |
68 | stop() { |
69 | ebegin "Stopping Miredo" |
70 | start-stop-daemon --stop --quiet --pidfile /var/run/miredo.pid |
71 | eend $? |
72 | } |
73 | |
74 | |
75 | |
76 | 1.1 net-misc/miredo/files/miredo-server.rc |
77 | |
78 | file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/miredo/files/miredo-server.rc?rev=1.1&view=markup |
79 | plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/miredo/files/miredo-server.rc?rev=1.1&content-type=text/plain |
80 | |
81 | Index: miredo-server.rc |
82 | =================================================================== |
83 | #!/sbin/runscript |
84 | # Copyright 1999-2010 Gentoo Foundation |
85 | # Distributed under the terms of the GNU General Public License v2 |
86 | # $Header $ |
87 | |
88 | depend() { |
89 | need net |
90 | use dns logger |
91 | } |
92 | |
93 | start() { |
94 | ebegin "Starting Miredo server" |
95 | [ "${MIREDO_SERVER_MODPROBE_IPV6}" == "yes" ] && modprobe ipv6 |
96 | [ "${MIREDO_SERVER_MODPROBE_TUN}" == "yes" ] && modprobe tun |
97 | start-stop-daemon --start --quiet --exec /usr/sbin/miredo-server -- \ |
98 | ${MIREDO_SERVER_OPTS} |
99 | eend $? |
100 | } |
101 | |
102 | stop() { |
103 | ebegin "Stopping Miredo server" |
104 | start-stop-daemon --stop --quiet --pidfile /var/run/miredo-server.pid |
105 | eend $? |
106 | } |