summaryrefslogtreecommitdiff
path: root/manualPorts/tinc/Pkgfile
diff options
context:
space:
mode:
Diffstat (limited to 'manualPorts/tinc/Pkgfile')
-rw-r--r--manualPorts/tinc/Pkgfile26
1 files changed, 26 insertions, 0 deletions
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 {} +
+}