cage: disable SUID

This commit is contained in:
Ondřej Fiala 2020-11-08 18:26:29 +01:00 committed by Érico Nogueira Rolim
parent 6704aae176
commit e2498233f1
2 changed files with 9 additions and 7 deletions

6
srcpkgs/cage/INSTALL.msg Normal file
View file

@ -0,0 +1,6 @@
Setting the SUID bit after install has been retired for all Wayland
compositors. It is recommended that users use a session management daemon
such as elogind or seatd and do not rely on compositors dropping privileges.
All users who require this functionality will need to set the SUID bit manually
after each update going forward.

View file

@ -1,12 +1,12 @@
# Template file for 'cage'
pkgname=cage
version=0.1.2.1
revision=2
revision=3
build_style=meson
configure_args="$(vopt_bool xwayland xwayland)"
hostmakedepends="pkg-config wayland-devel scdoc"
makedepends="wlroots-devel"
depends="$(vopt_if xwayland xorg-server-xwayland) $(vopt_if elogind elogind)"
depends="$(vopt_if xwayland xorg-server-xwayland)"
short_desc="Kiosk compositor for Wayland"
maintainer="Illia Shestakov <ishestakov@airmail.cc>"
license="MIT"
@ -14,14 +14,10 @@ homepage="https://www.hjdskes.nl/projects/cage/"
distfiles="https://github.com/Hjdskes/cage/archive/v${version}.tar.gz"
checksum=38a3e3968f00cc58fe1d9448e972cfac7d1efa30c48699f09032f264101a55ac
build_options="elogind xwayland"
build_options="xwayland"
build_options_default="xwayland"
desc_option_xwayland="Enable Xwayland support in cage"
post_install() {
if [ -z "$build_option_elogind" ]; then
# must be setuid without logind!
chmod u+s ${DESTDIR}/usr/bin/cage
fi
vlicense LICENSE
}