fastd: add config files and runit service

This commit is contained in:
Enno Boland 2015-01-27 18:02:49 +01:00
parent 0cf93f04aa
commit 7d49ab881a
6 changed files with 29 additions and 1 deletions

View File

@ -0,0 +1,2 @@
key "CONNECTION_PARTNER_PUBLIC_KEY";
remote ipv4 "CONNECTION_PARTNER_ADDRESS" port 10000;

View File

@ -0,0 +1,8 @@
log level debug;
interface "mesh-vpn";
method "salsa2012+gmac";
bind 0.0.0.0:10000;
include "secret.conf";
mtu 1426;
include peers from "peers";

2
srcpkgs/fastd/files/fastd/run Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
exec fastd --config /etc/fastd/fastd.conf

View File

@ -0,0 +1 @@
key "INCOMING_CONNECTION_PARTNER_PUBLIC_KEY";

View File

@ -0,0 +1 @@
secret "YOUR_SECRET_KEY_COMES_IN_HERE";

View File

@ -1,7 +1,7 @@
# Template file for 'fastd'
pkgname=fastd
version=16
revision=1
revision=2
build_style=cmake
hostmakedepends="cmake pkg-config bison"
makedepends="libuecc-devel libsodium-devel json-c-devel libcap-devel"
@ -12,3 +12,17 @@ homepage="https://projects.universe-factory.net/projects/fastd"
distfiles="http://git.universe-factory.net/fastd/snapshot/fastd-${version}.tar"
checksum=156b64c8f1acd5e8e42abec069e0ad4caa8c01d9fcd374cb6b494c75268ee046
configure_args="ENABLE_LTO=ON"
conf_files="
/etc/fastd/secret.conf
/etc/fastd/fastd.conf
/etc/fastd/peers/incomingConnectionPartner
/etc/fastd/peers/connectionPartner"
post_install() {
vmkdir etc/fastd/peers
vinstall ${FILESDIR}/fastd.conf 644 etc/fastd
vinstall ${FILESDIR}/secret.conf 600 etc/fastd
vinstall ${FILESDIR}/connectionPartner 644 etc/fastd/peers
vinstall ${FILESDIR}/incomingConnectionPartner 644 etc/fastd/peers
vsv fastd
}