blob: a30303cd8c6c4d4349c530f14ffd58f744b07351 [file] [log] [blame]
Brad Bishope42b3e32020-01-15 22:08:42 -05001SUMMARY = "Password and keyring managing daemon"
2HOMEPAGE = "http://www.gnome.org/"
3BUGTRACKER = "https://bugzilla.gnome.org/"
4SECTION = "x11/gnome"
5
Andrew Geissler9aee5002022-03-30 16:27:02 +00006LICENSE = "GPL-2.0-or-later & LGPL-2.0-or-later & LGPL-2.1-or-later"
Brad Bishope42b3e32020-01-15 22:08:42 -05007LIC_FILES_CHKSUM = " \
8 file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
9 file://COPYING.LIB;md5=4fbd65380cdd255951079008b364516c \
10"
11
12DEPENDS = " \
13 glib-2.0-native \
14 gtk+3 \
15 gcr \
16 libgcrypt \
17 ${@bb.utils.contains('DISTRO_FEATURES', 'pam', 'libpam', '', d)} \
18"
19
Patrick Williams92b42cb2022-09-03 06:53:57 -050020inherit gnomebase gsettings features_check gettext
Brad Bishope42b3e32020-01-15 22:08:42 -050021
Andrew Geissler78b72792022-06-14 06:47:25 -050022ANY_OF_DISTRO_FEATURES = "${GTK3DISTROFEATURES}"
Brad Bishope42b3e32020-01-15 22:08:42 -050023
Andrew Geissler69721092021-07-23 12:57:00 -040024SRC_URI[archive.sha256sum] = "a3d24db08ee2fdf240fbbf0971a98c8ee295aa0e1a774537f4ea938038a3b931"
Brad Bishope42b3e32020-01-15 22:08:42 -050025SRC_URI += " \
26 file://0001-Set-paths-to-ssh-agent-and-ssh-add-by-configure-opti.patch \
27 file://musl.patch \
28"
29
30PACKAGECONFIG ??= "ssh-agent"
31PACKAGECONFIG[ssh-agent] = "--enable-ssh-agent --with-ssh-agent-path=${bindir}/ssh-agent --with-ssh-add-path=${bindir}/ssh-add,--disable-ssh-agent,,openssh-misc"
32
33EXTRA_OECONF = " \
34 --disable-doc \
35 ${@bb.utils.contains('DISTRO_FEATURES', 'pam', '--enable-pam --with-pam-dir=${base_libdir}/security', '--disable-pam', d)} \
36"
37
Patrick Williams213cb262021-08-07 19:21:33 -050038FILES:${PN} += " \
Brad Bishope42b3e32020-01-15 22:08:42 -050039 ${datadir}/dbus-1/services \
40 ${datadir}/p11-kit \
Andrew Geissler89770b02020-06-13 10:40:47 -050041 ${datadir}/xdg-desktop-portal \
Brad Bishope42b3e32020-01-15 22:08:42 -050042 ${base_libdir}/security/*${SOLIBSDEV} \
43 ${libdir}/pkcs11/gnome-keyring-pkcs11.so \
44"
Brad Bishope42b3e32020-01-15 22:08:42 -050045# fix | gnome-keyring-daemon: insufficient process capabilities, unsecure memory might get used
Patrick Williams213cb262021-08-07 19:21:33 -050046pkg_postinst:${PN} () {
Andrew Geissler32b11992021-03-31 13:37:05 -050047 setcap cap_ipc_lock+ep $D/${bindir}/gnome-keyring-daemon
Brad Bishope42b3e32020-01-15 22:08:42 -050048}
Andrew Geissler32b11992021-03-31 13:37:05 -050049PACKAGE_WRITE_DEPS += "libcap-native"