Antoine Martin
29cb61f11d
All checks were successful
/ lint (pull_request) Successful in 33s
/ build-v3.20 (pull_request) Successful in 54s
/ deploy-v3.20 (pull_request) Successful in 34s
/ deploy-edge (pull_request) Successful in 30s
/ build-edge (pull_request) Successful in 1m5s
/ build-v3.21 (pull_request) Successful in 59s
/ deploy-v3.21 (pull_request) Successful in 33s
59 lines
2.1 KiB
Text
59 lines
2.1 KiB
Text
# Contributor: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
# Maintainer: Antoine Martin (ayakael) <dev@ayakael.net>
|
|
pkgname=qubes-vm-qrexec
|
|
subpackages="$pkgname-openrc $pkgname-doc $pkgname-pyc"
|
|
pkgver=4.3.1
|
|
_gittag="v$pkgver"
|
|
pkgrel=0
|
|
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="
|
|
grep
|
|
make
|
|
lsb-release-minimal
|
|
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
|
|
makefile-remove-cc-cflags.patch
|
|
agent-qrexec-fork-server-undef-fortify-source.patch
|
|
"
|
|
builddir="$srcdir/qubes-core-qrexec-${_gittag/v}"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
# remove all -Werror
|
|
msg "Eradicating -Werror..."
|
|
find . \( -name '*.mk' -o -name 'Make*' \) -exec sed -i -e 's/-Werror*. //g' {} +
|
|
}
|
|
|
|
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=/usr/sbin LIBDIR=/usr/lib SYSLIBDIR=/usr/lib
|
|
make install-vm DESTDIR="$pkgdir" SBINDIR=/usr/sbin LIBDIR=/usr/lib SYSLIBDIR=/usr/lib
|
|
install -Dm 755 "$srcdir"/qubes-qrexec-agent.openrc "$pkgdir"/etc/init.d/qubes-qrexec-agent
|
|
}
|
|
sha512sums="
|
|
f25d4a6ae587666bc2db6c42978779f6ea52bac10c17e399aed7cd99ecf9b6cedb48a2baa54386f8994c086a9f12b8ed6f8d911f63eee17f86c8e36c0ea7049c qubes-vm-qrexec-v4.3.1.tar.gz
|
|
e2dd5cace82e881c40d5d37c69f7327fbabde81c9d23283de23de9f1197b7b018ef07a8d90e95c61bd249426d9d8297e7cb372333245941ffa0682c90ea3461f qubes-qrexec-agent.openrc
|
|
c3009ddb97656be7d0a78910217c852f0f9b20cd37b4537d99724e629bc87f1c675ada084eba3c641c4ae54dab8aacd87514d73de72f42d6ccc976e6255212bc makefile-remove-cc-cflags.patch
|
|
69b88c8d344f0d575eac398937040ba39a0d8fb8ea0a2b160c48d84775e1da4e226a76f3c5d3be7b045f577b634bb35cd5c5536248e18117c4121a38f9f3bf13 agent-qrexec-fork-server-undef-fortify-source.patch
|
|
"
|