void-packages/srcpkgs/fastd/template
Nathan Owens fa7b9c2193 fastd: update to 21
[ci skip]
2020-11-14 16:01:07 +01:00

33 lines
1 KiB
Bash

# Template file for 'fastd'
pkgname=fastd
version=21
revision=1
build_style=meson
configure_args="-Db_lto=true -Dcipher_aes128-ctr=disabled"
hostmakedepends="bison pkg-config"
makedepends="json-c-devel libcap-devel libuecc-devel libsodium-devel"
short_desc="Fast and Secure Tunneling Daemon"
maintainer="Enno Boland <gottox@voidlinux.org>"
license="BSD-2-Clause"
homepage="https://projects.universe-factory.net/projects/fastd"
distfiles="https://github.com/NeoRaider/fastd/releases/download/v$version/fastd-$version.tar.xz"
checksum=942f33bcd794bcb8e19da4c30c875bdfd4d0f1c24ec4dcdf51237791bbfb0d4c
conf_files="
/etc/fastd/secret.conf
/etc/fastd/fastd.conf"
make_dirs="/etc/fastd/peers 755 root root"
CFLAGS="-I$XBPS_CROSS_BASE/usr/include/sodium"
pre_configure() {
# remove ssse3 requirement to support older AMD CPUs.
printf "" > src/crypto/mac/ghash/pclmulqdq/CMakeLists.txt
}
post_install() {
vmkdir etc/fastd
vinstall ${FILESDIR}/fastd.conf 644 etc/fastd
vinstall ${FILESDIR}/secret.conf 600 etc/fastd
vsv fastd
vman doc/fastd.1
vlicense COPYRIGHT
}