* fpc is kept at -Np0 ```sh git grep -l '^patch_args=-Np0' "srcpkgs/$1*/template" | while read template; do for p in ${template%/template}/patches/*; do sed -i ' \,^[+-][+-][+-] /dev/null,b /^[*-]\+ [0-9]\+\(,[0-9]\+\)\? [*-]\+$/b s,^[*][*][*] ,&a/, /^--- /{ s,\(^--- \)\(./\)*,\1a/, s,[.][Oo][Rr][Ii][Gg]\([ /]\),\1, s/[.][Oo][Rr][Ii][Gg]$// s/[.]patched[.]\([^.]\)/.\1/ h } /^+++ -/{ g s/^--- a/+++ b/ b } s,\(^+++ \)\(./\)*,\1b/, ' "$p" done sed -i '/^patch_args=/d' $template done ```
33 lines
1 KiB
Bash
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
|
|
}
|