2023-08-14 03:34:19 +00:00
|
|
|
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
|
|
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
|
|
|
|
|
|
pkgname=qubes-vm-qrexec
|
2023-08-16 02:28:25 +00:00
|
|
|
subpackages="$pkgname-openrc $pkgname-doc $pkgname-pyc"
|
2024-02-01 20:15:47 +00:00
|
|
|
pkgver=4.2.17
|
2023-08-14 03:34:19 +00:00
|
|
|
_gittag="v$pkgver"
|
2024-04-14 23:01:17 +00:00
|
|
|
pkgrel=1
|
2023-08-14 03:34:19 +00:00
|
|
|
pkgdesc="The Qubes qrexec files (qube side)"
|
|
|
|
arch="x86_64"
|
|
|
|
url="https://github.com/QubesOS/qubes-core-qrexec"
|
|
|
|
license='GPL'
|
|
|
|
depends="qubes-libvchan-xen"
|
|
|
|
options="!check" # No testsuite
|
|
|
|
makedepends="
|
2023-08-16 02:28:25 +00:00
|
|
|
grep
|
2023-08-14 03:34:19 +00:00
|
|
|
make
|
2023-08-16 02:28:25 +00:00
|
|
|
lsb-release-minimal
|
2023-08-14 03:34:19 +00:00
|
|
|
pandoc
|
|
|
|
pkgconf
|
|
|
|
py3-setuptools
|
|
|
|
qubes-libvchan-xen-dev
|
|
|
|
"
|
|
|
|
source="
|
|
|
|
$pkgname-$_gittag.tar.gz::https://github.com/QubesOS/qubes-core-qrexec/archive/refs/tags/$_gittag.tar.gz
|
|
|
|
qubes-qrexec-agent.openrc
|
2023-08-16 02:28:25 +00:00
|
|
|
makefile-remove-cc-cflags.patch
|
2023-08-14 03:34:19 +00:00
|
|
|
agent-qrexec-fork-server-undef-fortify-source.patch
|
|
|
|
"
|
|
|
|
builddir="$srcdir/qubes-core-qrexec-${_gittag/v}"
|
|
|
|
|
|
|
|
prepare() {
|
|
|
|
default_prepare
|
|
|
|
# remove all -Werror
|
|
|
|
msg "Eradicating -Werror..."
|
2024-02-01 20:15:47 +00:00
|
|
|
find . \( -name '*.mk' -o -name 'Make*' \) -exec sed -i -e 's/-Werror*. //g' {} +
|
2023-08-14 03:34:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
|
|
|
make all-base
|
|
|
|
make all-vm
|
|
|
|
|
|
|
|
# change all shebangs to bash as expected
|
|
|
|
# shellcheck disable=SC2013
|
|
|
|
for i in $(grep '/bin/sh' -RlI .); do
|
|
|
|
sed -i 's|/bin/sh|/bin/bash|' "$i"
|
|
|
|
done
|
|
|
|
}
|
|
|
|
|
|
|
|
package() {
|
|
|
|
make install-base DESTDIR="$pkgdir" SBINDIR=/sbin LIBDIR=/usr/lib SYSLIBDIR=/lib
|
|
|
|
make install-vm DESTDIR="$pkgdir" SBINDIR=/sbin LIBDIR=/usr/lib SYSLIBDIR=/lib
|
|
|
|
install -Dm 755 "$srcdir"/qubes-qrexec-agent.openrc "$pkgdir"/etc/init.d/qubes-qrexec-agent
|
|
|
|
}
|
|
|
|
sha512sums="
|
2024-02-01 20:15:47 +00:00
|
|
|
5e4df225e29d9f24823338a03ca40c384fff9c1623d8b718367b65516fe25db7bbb0729dd8323a0366937e756c560a22c9f77ef5fe3717dd2e053f3b5d156879 qubes-vm-qrexec-v4.2.17.tar.gz
|
2023-08-14 03:34:19 +00:00
|
|
|
e2dd5cace82e881c40d5d37c69f7327fbabde81c9d23283de23de9f1197b7b018ef07a8d90e95c61bd249426d9d8297e7cb372333245941ffa0682c90ea3461f qubes-qrexec-agent.openrc
|
2023-08-16 02:28:25 +00:00
|
|
|
3cbe66c8251d0cbe078d78ac9a2aef2d6c095c4f514ff0aab69dd724dee7488cf84dff4af2210d8a2298a052db49e85b0e38ac45456a8aa9bd1e4a7de0311b69 makefile-remove-cc-cflags.patch
|
2023-08-14 03:34:19 +00:00
|
|
|
69b88c8d344f0d575eac398937040ba39a0d8fb8ea0a2b160c48d84775e1da4e226a76f3c5d3be7b045f577b634bb35cd5c5536248e18117c4121a38f9f3bf13 agent-qrexec-fork-server-undef-fortify-source.patch
|
|
|
|
"
|