Markus Volk 3584b79a4c
malcontent: move PV to malcontent.inc
PV must be consistent for malcontent and malcontent-ui.	Ensure this by moving
PV to malcontent.inc

Signed-off-by: Markus Volk <f_l_k@t-online.de>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2024-05-21 14:15:10 -07:00

45 lines
1.1 KiB
BlitzBasic

SUMMARY = "malcontent implements support for restricting the type of content."
HOMEPAGE = "https://gitlab.freedesktop.org/pwithnall/malcontent"
LICENSE = "LGPL-2.1-only"
LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c"
require malcontent.inc
DEPENDS = " \
accountsservice \
glib-2.0 \
glib-testing \
dbus \
itstool-native \
libpam \
polkit \
"
GIR_MESON_OPTION = ""
inherit meson pkgconfig gobject-introspection gettext features_check useradd
REQUIRED_DISTRO_FEATURES = "pam polkit gobject-introspection"
PACKAGECONFIG ?= "ui"
PACKAGECONFIG[ui] = ",,,malcontent-ui"
EXTRA_OEMESON = "-Dui=disabled"
USERADD_PACKAGES = "${PN}"
USERADD_PARAM:${PN} = "--system --no-create-home --user-group --home-dir ${sysconfdir}/polkit-1 --shell /bin/nologin polkitd"
do_install:append() {
# Fix up permissions on polkit rules.d to work with rpm4 constraints
chmod 700 ${D}/${datadir}/polkit-1/rules.d
chown polkitd:root ${D}/${datadir}/polkit-1/rules.d
}
FILES:${PN} += " \
${libdir}/security/pam_malcontent.so \
${datadir}/accountsservice \
${datadir}/help \
${datadir}/dbus-1 \
${datadir}/polkit-1 \
"