aboutsummaryrefslogtreecommitdiffstats
path: root/meta-oe/recipes-gnome/malcontent/malcontent.bb
blob: c4bc50fa8e595542930937e1525a6b8f146d2f13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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 \
"