diff --git a/config/babeld/APKBUILD b/config/babeld/APKBUILD new file mode 100644 index 0000000..3174bdf --- /dev/null +++ b/config/babeld/APKBUILD @@ -0,0 +1,11 @@ +# Contributor: Alex Denes +# Maintainer: Alex Denes +_svcname=babeld + +. ../APKBUILD-config.common + +pkgver=2021.02.08 +pkgrel=2 +source="redxen.conf" + +sha512sums="b31874d44cec3458f6e88e399bf6c06a3c298937d0568860c08e23881af94132c41b424356a33c2a3bbb7a2c5c2675b4a528b140b4974a5b63214618d41c0cce redxen.conf" diff --git a/config/babeld/redxen.conf b/config/babeld/redxen.conf new file mode 100644 index 0000000..0b7038b --- /dev/null +++ b/config/babeld/redxen.conf @@ -0,0 +1,14 @@ +diversity true +interface crxn0 enable-timestamps true link-quality true + +# +# Redistributions +# + +redistribute local deny + +# Redistribute all CRXN (IPv6 - fd00/8) +redistribute ip fd00::/8 ge 8 + +# Redistribute Freeloaders CRXN +redistribute ip 2a04:5b81:2050::/44 ge 44 diff --git a/openrc/babeld/APKBUILD b/openrc/babeld/APKBUILD new file mode 100644 index 0000000..3a5b2fb --- /dev/null +++ b/openrc/babeld/APKBUILD @@ -0,0 +1,12 @@ +# Contributor: Alex Denes +# Maintainer: Alex Denes +_svcname=babeld +_grpname=network + +. ../APKBUILD-openrc.common + +pkgver=2021.02.08 +pkgrel=0 + +sha512sums="3a77457b76f95a75e33d40f59dd32f464e834d207200cf3e84b82fe78dde74156fb642daaab8bb92fa6bed96ca48d1d0dd41983efcde87ac0e3fcfe5aa7eea25 runfile +fd128c27307877871989e026c382cb0c1d486d30f7b4928616bde1cbabe24ab4fc3aa83f33dbe42f2321318807c8d9f913b1fea089c1a38f3a3200214682b9b8 conffile" diff --git a/openrc/babeld/conffile b/openrc/babeld/conffile new file mode 100644 index 0000000..79927cf --- /dev/null +++ b/openrc/babeld/conffile @@ -0,0 +1,5 @@ +BABELD_CONF="/etc/babeld/redxen.conf" +depend() { + need net + after firewall syslog yggdrasil.redxen fastd.crxnrouter.redxen fastd.crxnclient.redxen +} diff --git a/openrc/babeld/runfile b/openrc/babeld/runfile new file mode 100644 index 0000000..844128c --- /dev/null +++ b/openrc/babeld/runfile @@ -0,0 +1,7 @@ +#!/sbin/openrc-run + +: ${BABELD_CONF:=/etc/babeld.conf} + +pidfile="/run/${RC_SVCNAME}.pid" +command=/usr/bin/babeld +: ${command_args:=-r -I $pidfile -D -c ${BABELD_CONF}}