aports/secret/fastd-peerkey/APKBUILD

18 lines
399 B
Plaintext

# Contributor: Alex Denes <caskd@redxen.eu>
# Maintainer: Alex Denes <caskd@redxen.eu>
. ../APKBUILD-secret.template
pkgver="$pkgver.01"
pkgrel=0
makedepends="fastd"
build() {
printf 'secret "%s";\n' "$(fastd --generate-key --machine-readable)" > secret.conf
printf '# PubKey %s\n' "$(fastd -c secret.conf --show-key --machine-readable)" >> secret.conf
}
package() {
rx_install secret.conf
}