summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manualPorts/tinc/.footprint21
-rw-r--r--manualPorts/tinc/.md5sum2
-rw-r--r--manualPorts/tinc/.signature6
-rw-r--r--manualPorts/tinc/Pkgfile26
-rw-r--r--manualPorts/tinc/graph.patch19
-rwxr-xr-xmanualPorts/tinc/lastVersion.sh10
6 files changed, 84 insertions, 0 deletions
diff --git a/manualPorts/tinc/.footprint b/manualPorts/tinc/.footprint
new file mode 100644
index 0000000..85cedd7
--- /dev/null
+++ b/manualPorts/tinc/.footprint
@@ -0,0 +1,21 @@
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/bin/
+-rwxr-xr-x root/root usr/bin/tincd
+drwxr-xr-x root/root usr/share/
+drwxr-xr-x root/root usr/share/info/
+-rw-r--r-- root/root usr/share/info/dir
+-rw-r--r-- root/root usr/share/info/tinc.info
+drwxr-xr-x root/root usr/share/man/
+drwxr-xr-x root/root usr/share/man/man5/
+-rw-r--r-- root/root usr/share/man/man5/tinc.conf.5.gz
+drwxr-xr-x root/root usr/share/man/man8/
+-rw-r--r-- root/root usr/share/man/man8/tincd.8.gz
+drwxr-xr-x root/root usr/share/tinc/
+drwxr-xr-x root/root usr/share/tinc/examples/
+drwxr-xr-x root/root usr/share/tinc/examples/hosts/
+-rw-r--r-- root/root usr/share/tinc/examples/hosts/alpha
+-rw-r--r-- root/root usr/share/tinc/examples/hosts/beta
+-rw-r--r-- root/root usr/share/tinc/examples/rsa_key.priv
+-rw-r--r-- root/root usr/share/tinc/examples/tinc-down
+-rw-r--r-- root/root usr/share/tinc/examples/tinc-up
+-rw-r--r-- root/root usr/share/tinc/examples/tinc.conf
diff --git a/manualPorts/tinc/.md5sum b/manualPorts/tinc/.md5sum
new file mode 100644
index 0000000..4aab7d0
--- /dev/null
+++ b/manualPorts/tinc/.md5sum
@@ -0,0 +1,2 @@
+d35a40c75cef47e98c30cc45f1b1b16c graph.patch
+535b58ee026ec9551954dcc6ed56edca tinc-1.0.36.tar.gz
diff --git a/manualPorts/tinc/.signature b/manualPorts/tinc/.signature
new file mode 100644
index 0000000..79e9de0
--- /dev/null
+++ b/manualPorts/tinc/.signature
@@ -0,0 +1,6 @@
+untrusted comment: verify with /etc/ports/deepthought.pub
+RWQxCptPusLGGtFvR0UhlQR5eAvGCqiloMcl7iGrsJAKbRnlnT2gNEkT7Y/2flZdntwz7CW94LaTlE+q6Ji6DpI4MnaWZxNfiA0=
+SHA256 (Pkgfile) = 787d68ac9ad79780da2f85f2def1e6f507be50683b1e4f13765658c8c5e899a5
+SHA256 (.footprint) = 04a45902ac1984f718b3a79c7cb8c6feaa7266e1705c0559de3d87c175af1051
+SHA256 (tinc-1.0.36.tar.gz) = 40f73bb3facc480effe0e771442a706ff0488edea7a5f2505d4ccb2aa8163108
+SHA256 (graph.patch) = abbfb72bb094d3974294bfcc654f1651eab825ff13c1e5e676272c3b9e78d512
diff --git a/manualPorts/tinc/Pkgfile b/manualPorts/tinc/Pkgfile
new file mode 100644
index 0000000..4b28c49
--- /dev/null
+++ b/manualPorts/tinc/Pkgfile
@@ -0,0 +1,26 @@
+# Description: VPN (Virtual Private Network) daemon
+# URL: https://www.tinc-vpn.org/
+# Maintainer: Erich Eckner, crux at eckner dot net
+# Depends on: lzo openssl zlib
+
+name=tinc
+version=1.0.36
+release=1
+source=("https://www.tinc-vpn.org/packages/tinc-$version.tar.gz" "graph.patch")
+
+build() {
+
+ cd ${name}-${version}
+ patch -p1 -i ../graph.patch
+ ./configure \
+ --prefix=/usr \
+ --sysconfdir=/etc \
+ --localstatedir=/var \
+ --sbindir=/usr/bin
+ make
+ make DESTDIR=$PKG install
+ install -dm755 "$PKG"/usr/share/tinc/examples
+ cp -a doc/sample-config/. "$PKG"/usr/share/tinc/examples/
+ find "$PKG"/usr/share/tinc/examples -type f -exec chmod 644 {} +
+ find "$PKG"/usr/share/tinc/examples -type d -exec chmod 755 {} +
+}
diff --git a/manualPorts/tinc/graph.patch b/manualPorts/tinc/graph.patch
new file mode 100644
index 0000000..1e903a1
--- /dev/null
+++ b/manualPorts/tinc/graph.patch
@@ -0,0 +1,19 @@
+diff --git a/src/graph.c b/src/graph.c
+index c63fdf9c..91f5c990 100644
+--- a/src/graph.c
++++ b/src/graph.c
+@@ -366,7 +366,13 @@ void dump_graph(void) {
+ /* now dump all edges */
+ for(node = edge_weight_tree->head; node; node = node->next) {
+ e = node->data;
+- fprintf(file, " \"%s\" -> \"%s\";\n", e->from->name, e->to->name);
++ if (e->reverse) {
++ if (e->reverse > e)
++ fprintf(file, " \"%s\" -> \"%s\" [dir=both];\n", e->from->name, e->to->name);
++ }
++ else {
++ fprintf(file, " \"%s\" -> \"%s\";\n", e->from->name, e->to->name);
++ }
+ }
+
+ fprintf(file, "}\n");
diff --git a/manualPorts/tinc/lastVersion.sh b/manualPorts/tinc/lastVersion.sh
new file mode 100755
index 0000000..11e510a
--- /dev/null
+++ b/manualPorts/tinc/lastVersion.sh
@@ -0,0 +1,10 @@
+#!/bin/bash
+
+curl -Ss 'https://www.tinc-vpn.org/packages/' \
+| sed '
+ s@^.*<a href="\(tinc-\([0-9.]\+\)\.tar\.gz\)">\1</a>.*$@\2@
+ t
+ d
+' \
+| sort -V \
+| tail -n1