mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-30 13:02:27 +01:00
The meson.build explicitly checks for this dependency and refuses to continue if it is not installed: test/meson.build:5:0: ERROR: Dependency "cmocka" not found, tried pkgconfig However, since checkdepends are not installed with options="!check" the build will always fail if this option is set. For example, on the riscv64 builders. Moving the dependency to makedepends fixes the build on riscv64. Keep in mind, that compile-time dependencies do not automatically cause new run-time dependencies, thus this shouldn't be an issue.
50 lines
1.6 KiB
Plaintext
50 lines
1.6 KiB
Plaintext
# Contributor: Johannes Matheis <jomat+alpinebuild@jmt.gr>
|
|
# Maintainer: Johannes Matheis <jomat+alpinebuild@jmt.gr>
|
|
pkgname=fastd
|
|
pkgver=22
|
|
pkgrel=0
|
|
pkgdesc="Fast and Secure Tunneling Daemon"
|
|
url="https://github.com/NeoRaider/fastd/"
|
|
arch="all"
|
|
license="BSD-2-Clause AND BSD-3-Clause"
|
|
makedepends="meson libcap-dev json-c-dev libsodium-dev openssl-dev libuecc-dev
|
|
bison libmnl-dev cmocka-dev"
|
|
subpackages="$pkgname-doc $pkgname-openrc"
|
|
source="https://github.com/NeoRaider/fastd/releases/download/v$pkgver/fastd-$pkgver.tar.xz
|
|
fastd.conf
|
|
fastd.initd"
|
|
|
|
# secfixes:
|
|
# 21-r0:
|
|
# - CVE-2020-27638
|
|
|
|
build() {
|
|
abuild-meson \
|
|
-Dsystemd=disabled \
|
|
-Dbuild_tests="$(options_has !check && echo false || echo true)" \
|
|
. output
|
|
meson compile ${JOBS:+-j ${JOBS}} -C output
|
|
}
|
|
|
|
check() {
|
|
meson test --no-rebuild -v -C output
|
|
}
|
|
|
|
package() {
|
|
DESTDIR="$pkgdir" meson install --no-rebuild -C output
|
|
|
|
install -Dm0644 doc/fastd.1 -t "$pkgdir"/usr/share/man/man1
|
|
|
|
install -dm700 "$pkgdir"/etc/fastd/peers/
|
|
install -Dm600 "$srcdir"/fastd.conf \
|
|
"$pkgdir"/etc/fastd/fastd.conf
|
|
install -Dm755 "$srcdir"/fastd.initd \
|
|
"$pkgdir"/etc/init.d/fastd
|
|
}
|
|
|
|
sha512sums="
|
|
66196fa13c93b87b78b9e31bc267cf616dcfb4a964387c4a3f0f3176fa1529be335a6fac91379038d6a8b1a1be4fea547659551a8a9fa8d6939589d5f8a9a7aa fastd-22.tar.xz
|
|
3e6c3a77f93a1e670e8f018833c499e8ec57b8240a6f472da03254ad9a7e6fed2c3459fa47b06c97e42afcfe6f0adfaaec39bce6b6a286a1ce7ef3585853b118 fastd.conf
|
|
e64b0c548cf063624ac0b632bac672c5f204586aa03aa9b06afc46f48645f1458e2400e98ee993c74aa5da3a9e86c4151e2e29c634ee59941cd81a216cea308a fastd.initd
|
|
"
|