1 |
commit: bbf2b8035f6cd7ae11233353d749a85c1068e26c |
2 |
Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Sep 26 00:11:28 2011 +0000 |
4 |
Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Sep 26 00:11:28 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=dev/blueness.git;a=commit;h=bbf2b803 |
7 |
|
8 |
net-misc/tinc: work on bug #371357 |
9 |
|
10 |
--- |
11 |
net-misc/tinc/ChangeLog | 9 +++++ |
12 |
net-misc/tinc/Manifest | 10 +++++ |
13 |
net-misc/tinc/files/tinc.networks | 13 +++++++ |
14 |
net-misc/tinc/files/tincd | 64 +++++++++++++++++++++++++++++++++++ |
15 |
net-misc/tinc/files/tincd.conf | 1 + |
16 |
net-misc/tinc/files/tincd.lo | 46 +++++++++++++++++++++++++ |
17 |
net-misc/tinc/files/tincdnosyslog | 64 +++++++++++++++++++++++++++++++++++ |
18 |
net-misc/tinc/files/tincdsyslog | 64 +++++++++++++++++++++++++++++++++++ |
19 |
net-misc/tinc/metadata.xml | 9 +++++ |
20 |
net-misc/tinc/tinc-1.0.16-r1.ebuild | 42 +++++++++++++++++++++++ |
21 |
10 files changed, 322 insertions(+), 0 deletions(-) |
22 |
|
23 |
diff --git a/net-misc/tinc/ChangeLog b/net-misc/tinc/ChangeLog |
24 |
new file mode 100644 |
25 |
index 0000000..0fb34f3 |
26 |
--- /dev/null |
27 |
+++ b/net-misc/tinc/ChangeLog |
28 |
@@ -0,0 +1,9 @@ |
29 |
+ |
30 |
+ |
31 |
+*tinc-1.0.16-r1 (26 Sep 2011) |
32 |
+ |
33 |
+ 26 Sep 2011; Anthony G. Basile <blueness@g.o> +tinc-1.0.16-r1.ebuild, |
34 |
+ +files/tinc.networks, +files/tincd, +files/tincd.conf, +files/tincd.lo, |
35 |
+ +files/tincdnosyslog, +files/tincdsyslog, +metadata.xml: |
36 |
+ Work on bug #371357 |
37 |
+ |
38 |
|
39 |
diff --git a/net-misc/tinc/Manifest b/net-misc/tinc/Manifest |
40 |
new file mode 100644 |
41 |
index 0000000..fd38923 |
42 |
--- /dev/null |
43 |
+++ b/net-misc/tinc/Manifest |
44 |
@@ -0,0 +1,10 @@ |
45 |
+AUX tinc.networks 387 RMD160 cc842d8ab6fb137d87276553fbf7465baeccf871 SHA1 8339d5882e494a0fd2390e1abfd0f24163949ce4 SHA256 7165721abd3706c95973118fbb503e18f9a008da6bdbf21a4ce35ecf7818d5ad |
46 |
+AUX tincd 1606 RMD160 973a1e44273daa50d1b40a14b277fcde47cf36c9 SHA1 65ffdd2b1b4576df54289feec630a5f25cb50826 SHA256 e9bc35b868ba2325f7c921e377ec55be96f3a4c61f1dde621f733cedb76920bf |
47 |
+AUX tincd.conf 19 RMD160 907e8fbeeeeda7fd5c0916ebea6bf90d14539723 SHA1 e41eb0392c8265a9f55bf8c4069f7b25085ced14 SHA256 cdbdbf4c8ca3dc805c645a404df7cc7d10908ef4e5b59f1c1d056ca6301f34cb |
48 |
+AUX tincd.lo 1174 RMD160 f3173005b3020712b6e6eae1f5d34825d5d08726 SHA1 7daea8e502a2cf0abc80c510315ee53172f39a64 SHA256 ce3e150bc3822f19754705826365238401386de1f012f8665727111e11a8b175 |
49 |
+AUX tincdnosyslog 1606 RMD160 973a1e44273daa50d1b40a14b277fcde47cf36c9 SHA1 65ffdd2b1b4576df54289feec630a5f25cb50826 SHA256 e9bc35b868ba2325f7c921e377ec55be96f3a4c61f1dde621f733cedb76920bf |
50 |
+AUX tincdsyslog 1569 RMD160 f03114adcd85bc5db3b5721533d0d800b69a249a SHA1 a3a1448a8878a066e677b7d96fa1bf041c578b17 SHA256 64b992b4defa5e99b19616eae5a0af1308aa424e68e65ca3b8b39708eaa4532c |
51 |
+DIST tinc-1.0.16.tar.gz 519460 RMD160 a4d44bd90d4c19f4cc8bc27c1f92a8fb437698d3 SHA1 6700e63c548228b1675f243f0075f98511f1e3a8 SHA256 f20863cb1155ba4e4dd4cf16c35a5d706cd326eb8fe62b8b0a31fd57241a5400 |
52 |
+EBUILD tinc-1.0.16-r1.ebuild 1227 RMD160 6945ba9bee76bf4eb8fad6dbbae3d8c0a106325e SHA1 09cce2dde77b221ba4f68ba8b579ff3ec3e35755 SHA256 ed3f65fc2d1651791bde00aa50e3453a32245ca7d6ea7d28bc8db5aca8cedd34 |
53 |
+MISC ChangeLog 268 RMD160 25a25b6f8dbf77c92e98de275e5b087c5937a97a SHA1 4782b436b83e14cd65a6af23d0a785935e486e11 SHA256 9506c2cbfe3323d992948d359da2c344b29a50c43637d3862f79112b287683ec |
54 |
+MISC metadata.xml 323 RMD160 4afa38944097d8968b63842a67ed19531f0d9ec4 SHA1 40e3e0444e37634e1c939a5dd5677cef74827778 SHA256 8a800ba6f409642a7327882575dab780d140d7692155b5644850421abb7bb4d5 |
55 |
|
56 |
diff --git a/net-misc/tinc/files/tinc.networks b/net-misc/tinc/files/tinc.networks |
57 |
new file mode 100644 |
58 |
index 0000000..e1844ce |
59 |
--- /dev/null |
60 |
+++ b/net-misc/tinc/files/tinc.networks |
61 |
@@ -0,0 +1,13 @@ |
62 |
+# file: /etc/conf.d/tinc.networks for /etc/init.d/tincd |
63 |
+ |
64 |
+# In this file you define the tinc networks you want to connect to |
65 |
+ |
66 |
+# USAGE: |
67 |
+# you add a network to the init script by defining: |
68 |
+# NETWORK: your_network_name |
69 |
+# |
70 |
+# if you want to connect to multiple VPN's just set them behind each other. e.g. |
71 |
+# NETWORK: foo |
72 |
+# NETWORK: bar |
73 |
+# |
74 |
+# this would join the network foo and the network bar. |
75 |
|
76 |
diff --git a/net-misc/tinc/files/tincd b/net-misc/tinc/files/tincd |
77 |
new file mode 100644 |
78 |
index 0000000..00c1c37 |
79 |
--- /dev/null |
80 |
+++ b/net-misc/tinc/files/tincd |
81 |
@@ -0,0 +1,64 @@ |
82 |
+#!/sbin/runscript |
83 |
+# Copyright 1999-2011 Gentoo Foundation |
84 |
+# Distributed under the terms of the GNU General Public License v2 |
85 |
+# $Header: /var/cvsroot/gentoo-x86/net-misc/tinc/files/tincd,v 1.5 2008/04/01 14:08:45 dragonheart Exp $ |
86 |
+ |
87 |
+opts="reload" |
88 |
+ |
89 |
+depend() { |
90 |
+ use logger dns |
91 |
+ need net |
92 |
+} |
93 |
+ |
94 |
+checkconfig() { |
95 |
+ if ! grep -q '^ *NETWORK:' /etc/conf.d/tinc.networks |
96 |
+ then |
97 |
+ eerror "No VPN networks configured in /etc/conf.d/tinc.networks" |
98 |
+ return 1 |
99 |
+ fi |
100 |
+} |
101 |
+ |
102 |
+start() { |
103 |
+ checkconfig || return 1 |
104 |
+ ebegin "Starting tinc VPN networks" |
105 |
+ eend 0 |
106 |
+ awk '/^ *NETWORK:/ { print $2 }' /etc/conf.d/tinc.networks | while read TINCNET |
107 |
+ do |
108 |
+ if [ ! -f /etc/tinc/"$TINCNET"/tinc.conf ] |
109 |
+ then |
110 |
+ eerror "Cannot start network $TINCNET, /etc/tinc/$TINCNET/tinc.conf does not exist !" |
111 |
+ else |
112 |
+ ebegin "Starting tinc network $TINCNET" |
113 |
+ /usr/sbin/tincd --net="$TINCNET" --logfile=/var/log/tinc.$TINCNET.log --pidfile=/var/run/tinc.$TINCNET.pid |
114 |
+ eend $? |
115 |
+ fi |
116 |
+ done |
117 |
+} |
118 |
+ |
119 |
+stop() { |
120 |
+ ebegin "Stopping tinc VPN networks" |
121 |
+ eend 0 |
122 |
+ awk '/^ *NETWORK:/ { print $2 }' /etc/conf.d/tinc.networks | while read TINCNET |
123 |
+ do |
124 |
+ if [ -f /var/run/tinc."$TINCNET".pid ] |
125 |
+ then |
126 |
+ ebegin "Stopping tinc network $TINCNET" |
127 |
+ /usr/sbin/tincd --kill --pidfile=/var/run/tinc."$TINCNET".pid |
128 |
+ eend $? |
129 |
+ fi |
130 |
+ done |
131 |
+} |
132 |
+ |
133 |
+reload() { |
134 |
+ ebegin "Reloading configuration for tinc VPN networks" |
135 |
+ eend 0 |
136 |
+ awk '/^ *NETWORK:/ { print $2 }' /etc/conf.d/tinc.networks | while read TINCNET |
137 |
+ do |
138 |
+ if [ -f /var/run/tinc."$TINCNET".pid ] |
139 |
+ then |
140 |
+ ebegin "Reloading tinc network $TINCNET" |
141 |
+ /usr/sbin/tincd --kill HUP --pidfile=/var/run/tinc."$TINCNET".pid |
142 |
+ eend $? |
143 |
+ fi |
144 |
+ done |
145 |
+} |
146 |
|
147 |
diff --git a/net-misc/tinc/files/tincd.conf b/net-misc/tinc/files/tincd.conf |
148 |
new file mode 100644 |
149 |
index 0000000..c19b836 |
150 |
--- /dev/null |
151 |
+++ b/net-misc/tinc/files/tincd.conf |
152 |
@@ -0,0 +1 @@ |
153 |
+#rc_need="net.net" |
154 |
|
155 |
diff --git a/net-misc/tinc/files/tincd.lo b/net-misc/tinc/files/tincd.lo |
156 |
new file mode 100644 |
157 |
index 0000000..4b5dde6 |
158 |
--- /dev/null |
159 |
+++ b/net-misc/tinc/files/tincd.lo |
160 |
@@ -0,0 +1,46 @@ |
161 |
+#!/sbin/runscript |
162 |
+# Copyright 1999-2011 Gentoo Foundation |
163 |
+# Distributed under the terms of the GNU General Public License v2 |
164 |
+# $Header: /var/cvsroot/gentoo-x86/net-misc/tinc/files/tincd.lo,v 1.1 2010/07/18 10:04:56 dragonheart Exp $ |
165 |
+ |
166 |
+opts="reload" |
167 |
+ |
168 |
+depend() |
169 |
+{ |
170 |
+ use logger dns |
171 |
+ need net |
172 |
+} |
173 |
+ |
174 |
+start() |
175 |
+{ |
176 |
+ TINCNET=${RC_SVCNAME#*.} |
177 |
+ if [ -f /etc/tinc/"$TINCNET"/tinc.conf ] ; then |
178 |
+ ebegin "Starting tinc network $TINCNET" |
179 |
+ /usr/sbin/tincd --debug=1 --net="$TINCNET" --logfile=/var/log/tinc.$TINCNET.log --pidfile=/var/run/tinc.$TINCNET.pid |
180 |
+ eend $? |
181 |
+ else |
182 |
+ eerror "Cannot start network $TINCNET, /etc/tinc/$TINCNET/tinc.conf does not exist !" |
183 |
+ fi |
184 |
+} |
185 |
+ |
186 |
+stop() |
187 |
+{ |
188 |
+ TINCNET=${RC_SVCNAME#*.} |
189 |
+ if [ -f /var/run/tinc."$TINCNET".pid ] ; then |
190 |
+ ebegin "Stopping tinc network $TINCNET" |
191 |
+ /usr/sbin/tincd --kill --pidfile=/var/run/tinc."$TINCNET".pid |
192 |
+ eend $? |
193 |
+ else |
194 |
+ eerror "Cannot start network $TINCNET, /etc/tinc/$TINCNET/tinc.conf does not exist !" |
195 |
+ fi |
196 |
+} |
197 |
+ |
198 |
+reload() |
199 |
+{ |
200 |
+ TINCNET=${RC_SVCNAME#*.} |
201 |
+ if [ -f /var/run/tinc."$TINCNET".pid ] ; then |
202 |
+ ebegin "Reloading configuration for tinc network $TINCNET" |
203 |
+ /usr/sbin/tincd --kill HUP --pidfile=/var/run/tinc."$TINCNET".pid |
204 |
+ eend $? |
205 |
+ fi |
206 |
+} |
207 |
|
208 |
diff --git a/net-misc/tinc/files/tincdnosyslog b/net-misc/tinc/files/tincdnosyslog |
209 |
new file mode 100644 |
210 |
index 0000000..00c1c37 |
211 |
--- /dev/null |
212 |
+++ b/net-misc/tinc/files/tincdnosyslog |
213 |
@@ -0,0 +1,64 @@ |
214 |
+#!/sbin/runscript |
215 |
+# Copyright 1999-2011 Gentoo Foundation |
216 |
+# Distributed under the terms of the GNU General Public License v2 |
217 |
+# $Header: /var/cvsroot/gentoo-x86/net-misc/tinc/files/tincd,v 1.5 2008/04/01 14:08:45 dragonheart Exp $ |
218 |
+ |
219 |
+opts="reload" |
220 |
+ |
221 |
+depend() { |
222 |
+ use logger dns |
223 |
+ need net |
224 |
+} |
225 |
+ |
226 |
+checkconfig() { |
227 |
+ if ! grep -q '^ *NETWORK:' /etc/conf.d/tinc.networks |
228 |
+ then |
229 |
+ eerror "No VPN networks configured in /etc/conf.d/tinc.networks" |
230 |
+ return 1 |
231 |
+ fi |
232 |
+} |
233 |
+ |
234 |
+start() { |
235 |
+ checkconfig || return 1 |
236 |
+ ebegin "Starting tinc VPN networks" |
237 |
+ eend 0 |
238 |
+ awk '/^ *NETWORK:/ { print $2 }' /etc/conf.d/tinc.networks | while read TINCNET |
239 |
+ do |
240 |
+ if [ ! -f /etc/tinc/"$TINCNET"/tinc.conf ] |
241 |
+ then |
242 |
+ eerror "Cannot start network $TINCNET, /etc/tinc/$TINCNET/tinc.conf does not exist !" |
243 |
+ else |
244 |
+ ebegin "Starting tinc network $TINCNET" |
245 |
+ /usr/sbin/tincd --net="$TINCNET" --logfile=/var/log/tinc.$TINCNET.log --pidfile=/var/run/tinc.$TINCNET.pid |
246 |
+ eend $? |
247 |
+ fi |
248 |
+ done |
249 |
+} |
250 |
+ |
251 |
+stop() { |
252 |
+ ebegin "Stopping tinc VPN networks" |
253 |
+ eend 0 |
254 |
+ awk '/^ *NETWORK:/ { print $2 }' /etc/conf.d/tinc.networks | while read TINCNET |
255 |
+ do |
256 |
+ if [ -f /var/run/tinc."$TINCNET".pid ] |
257 |
+ then |
258 |
+ ebegin "Stopping tinc network $TINCNET" |
259 |
+ /usr/sbin/tincd --kill --pidfile=/var/run/tinc."$TINCNET".pid |
260 |
+ eend $? |
261 |
+ fi |
262 |
+ done |
263 |
+} |
264 |
+ |
265 |
+reload() { |
266 |
+ ebegin "Reloading configuration for tinc VPN networks" |
267 |
+ eend 0 |
268 |
+ awk '/^ *NETWORK:/ { print $2 }' /etc/conf.d/tinc.networks | while read TINCNET |
269 |
+ do |
270 |
+ if [ -f /var/run/tinc."$TINCNET".pid ] |
271 |
+ then |
272 |
+ ebegin "Reloading tinc network $TINCNET" |
273 |
+ /usr/sbin/tincd --kill HUP --pidfile=/var/run/tinc."$TINCNET".pid |
274 |
+ eend $? |
275 |
+ fi |
276 |
+ done |
277 |
+} |
278 |
|
279 |
diff --git a/net-misc/tinc/files/tincdsyslog b/net-misc/tinc/files/tincdsyslog |
280 |
new file mode 100644 |
281 |
index 0000000..e87b81c |
282 |
--- /dev/null |
283 |
+++ b/net-misc/tinc/files/tincdsyslog |
284 |
@@ -0,0 +1,64 @@ |
285 |
+#!/sbin/runscript |
286 |
+# Copyright 1999-2011 Gentoo Foundation |
287 |
+# Distributed under the terms of the GNU General Public License v2 |
288 |
+# $Header: /var/cvsroot/gentoo-x86/net-misc/tinc/files/tincd,v 1.5 2008/04/01 14:08:45 dragonheart Exp $ |
289 |
+ |
290 |
+opts="reload" |
291 |
+ |
292 |
+depend() { |
293 |
+ use logger dns |
294 |
+ need net |
295 |
+} |
296 |
+ |
297 |
+checkconfig() { |
298 |
+ if ! grep -q '^ *NETWORK:' /etc/conf.d/tinc.networks |
299 |
+ then |
300 |
+ eerror "No VPN networks configured in /etc/conf.d/tinc.networks" |
301 |
+ return 1 |
302 |
+ fi |
303 |
+} |
304 |
+ |
305 |
+start() { |
306 |
+ checkconfig || return 1 |
307 |
+ ebegin "Starting tinc VPN networks" |
308 |
+ eend 0 |
309 |
+ awk '/^ *NETWORK:/ { print $2 }' /etc/conf.d/tinc.networks | while read TINCNET |
310 |
+ do |
311 |
+ if [ ! -f /etc/tinc/"$TINCNET"/tinc.conf ] |
312 |
+ then |
313 |
+ eerror "Cannot start network $TINCNET, /etc/tinc/$TINCNET/tinc.conf does not exist !" |
314 |
+ else |
315 |
+ ebegin "Starting tinc network $TINCNET" |
316 |
+ /usr/sbin/tincd --net="$TINCNET" --pidfile=/var/run/tinc.$TINCNET.pid |
317 |
+ eend $? |
318 |
+ fi |
319 |
+ done |
320 |
+} |
321 |
+ |
322 |
+stop() { |
323 |
+ ebegin "Stopping tinc VPN networks" |
324 |
+ eend 0 |
325 |
+ awk '/^ *NETWORK:/ { print $2 }' /etc/conf.d/tinc.networks | while read TINCNET |
326 |
+ do |
327 |
+ if [ -f /var/run/tinc."$TINCNET".pid ] |
328 |
+ then |
329 |
+ ebegin "Stopping tinc network $TINCNET" |
330 |
+ /usr/sbin/tincd --kill --pidfile=/var/run/tinc."$TINCNET".pid |
331 |
+ eend $? |
332 |
+ fi |
333 |
+ done |
334 |
+} |
335 |
+ |
336 |
+reload() { |
337 |
+ ebegin "Reloading configuration for tinc VPN networks" |
338 |
+ eend 0 |
339 |
+ awk '/^ *NETWORK:/ { print $2 }' /etc/conf.d/tinc.networks | while read TINCNET |
340 |
+ do |
341 |
+ if [ -f /var/run/tinc."$TINCNET".pid ] |
342 |
+ then |
343 |
+ ebegin "Reloading tinc network $TINCNET" |
344 |
+ /usr/sbin/tincd --kill HUP --pidfile=/var/run/tinc."$TINCNET".pid |
345 |
+ eend $? |
346 |
+ fi |
347 |
+ done |
348 |
+} |
349 |
|
350 |
diff --git a/net-misc/tinc/metadata.xml b/net-misc/tinc/metadata.xml |
351 |
new file mode 100644 |
352 |
index 0000000..ce4aedb |
353 |
--- /dev/null |
354 |
+++ b/net-misc/tinc/metadata.xml |
355 |
@@ -0,0 +1,9 @@ |
356 |
+<?xml version="1.0" encoding="UTF-8"?> |
357 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
358 |
+<pkgmetadata> |
359 |
+ <maintainer> |
360 |
+ <email>blueness@g.o</email> |
361 |
+ <name>Anthony G. Basile</name> |
362 |
+ </maintainer> |
363 |
+ <longdescription>tinc is an easy to configure VPN implementation.</longdescription> |
364 |
+</pkgmetadata> |
365 |
|
366 |
diff --git a/net-misc/tinc/tinc-1.0.16-r1.ebuild b/net-misc/tinc/tinc-1.0.16-r1.ebuild |
367 |
new file mode 100644 |
368 |
index 0000000..7eb3b3f |
369 |
--- /dev/null |
370 |
+++ b/net-misc/tinc/tinc-1.0.16-r1.ebuild |
371 |
@@ -0,0 +1,42 @@ |
372 |
+# Copyright 1999-2011 Gentoo Foundation |
373 |
+# Distributed under the terms of the GNU General Public License v2 |
374 |
+# $Header: /var/cvsroot/gentoo-x86/net-misc/tinc/tinc-1.0.16.ebuild,v 1.2 |
375 |
+ |
376 |
+EAPI=4 |
377 |
+ |
378 |
+DESCRIPTION="tinc is an easy to configure VPN implementation" |
379 |
+HOMEPAGE="http://www.tinc-vpn.org/" |
380 |
+SRC_URI="http://www.tinc-vpn.org/packages/${P}.tar.gz" |
381 |
+ |
382 |
+LICENSE="GPL-2" |
383 |
+SLOT="0" |
384 |
+KEYWORDS="~amd64 ~arm ~ppc ~sparc ~x86 ~x86-linux ~ppc-macos ~x86-macos" |
385 |
+IUSE="+lzo +zlib +syslog" |
386 |
+ |
387 |
+DEPEND=">=dev-libs/openssl-0.9.7c |
388 |
+ lzo? ( dev-libs/lzo:2 ) |
389 |
+ zlib? ( >=sys-libs/zlib-1.1.4-r2 ) |
390 |
+ syslog? ( app-admin/syslog-ng )" |
391 |
+ |
392 |
+src_configure() { |
393 |
+ econf --enable-jumbograms $(use_enable lzo) $(use_enable zlib) || die |
394 |
+} |
395 |
+ |
396 |
+src_install() { |
397 |
+ emake DESTDIR="${D}" install || die |
398 |
+ dodir /etc/tinc |
399 |
+ dodoc AUTHORS NEWS README THANKS |
400 |
+ doinitd "${FILESDIR}"/tincd{,.lo} |
401 |
+ if use syslog; then |
402 |
+ newinitd "${FILESDIR}"/tincdsyslog tincd || die "newinitd failed!" |
403 |
+ else |
404 |
+ newinitd "${FILESDIR}"/tincdnosyslog tincd || die "newinitd failed!" |
405 |
+ fi |
406 |
+ doconfd "${FILESDIR}"/tinc.networks |
407 |
+ newconfd "${FILESDIR}"/tincd.conf tincd |
408 |
+} |
409 |
+ |
410 |
+pkg_postinst() { |
411 |
+ elog "This package requires the tun/tap kernel device." |
412 |
+ elog "Look at http://www.tinc-vpn.org/ for how to configure tinc" |
413 |
+} |