From 1b7e823a26d39d2dac922a5669e58af018d46cb4 Mon Sep 17 00:00:00 2001 From: Yuusha Spacewolf Date: Wed, 20 Dec 2017 12:29:16 -0600 Subject: [PATCH] New package: tuntox-0.0.8 Closes: #10152 [via git-merge-pr] --- srcpkgs/tuntox/INSTALL.msg | 7 +++++++ srcpkgs/tuntox/files/tuntox/run | 4 ++++ srcpkgs/tuntox/template | 23 +++++++++++++++++++++++ 3 files changed, 34 insertions(+) create mode 100644 srcpkgs/tuntox/INSTALL.msg create mode 100755 srcpkgs/tuntox/files/tuntox/run create mode 100644 srcpkgs/tuntox/template diff --git a/srcpkgs/tuntox/INSTALL.msg b/srcpkgs/tuntox/INSTALL.msg new file mode 100644 index 00000000000..3475acf874b --- /dev/null +++ b/srcpkgs/tuntox/INSTALL.msg @@ -0,0 +1,7 @@ +The service `/etc/sv/tuntox` is not secure at all. +To use it securely, you need to add a TUNTOX_SHARED_SECRET environment variable +and share it across all your clients. + +Add the file /etc/sv/tuntox/conf and export it there: + +export TUNTOX_SHARED_SECRET=yourpassword diff --git a/srcpkgs/tuntox/files/tuntox/run b/srcpkgs/tuntox/files/tuntox/run new file mode 100755 index 00000000000..30648e020d0 --- /dev/null +++ b/srcpkgs/tuntox/files/tuntox/run @@ -0,0 +1,4 @@ +#!/bin/sh +[ -r ./conf ] && . ./conf +exec 2>&1 +exec chpst -u tuntox tuntox ${OPTS:=-S} diff --git a/srcpkgs/tuntox/template b/srcpkgs/tuntox/template new file mode 100644 index 00000000000..67d9ea07ea5 --- /dev/null +++ b/srcpkgs/tuntox/template @@ -0,0 +1,23 @@ +# Template file for 'tuntox' +pkgname=tuntox +version=0.0.8 +revision=1 +build_style=gnu-makefile +hostmakedepends="pkg-config" +makedepends="toxcore-devel libevent-devel libsodium-devel" +make_build_args="tuntox_nostatic" +short_desc="Tunnel TCP connections over the Tox protocol" +maintainer="Yuusha Spacewolf " +license="GPL-3" +homepage="https://github.com/gjedeer/tuntox" +distfiles="https://github.com/gjedeer/tuntox/archive/${version}.tar.gz" +checksum=86e8c45d712b4327ef02d32474f5748e2244e6c38ae8c20ed211af3808328c9b + +system_accounts="tuntox" +make_dirs="/etc/tuntox 0700 tuntox tuntox" + +do_install() { + vbin tuntox_nostatic tuntox + vbin scripts/tokssh + vsv tuntox +}