blob: 3fc16bb0a9fb9747280cb13d0016f5139693a0c7 [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
6LICENSE = "GPLv2+ & LGPLv2+ & LGPLv2.1+"
7LIC_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
20inherit gnomebase gsettings features_check remove-libtool gettext upstream-version-is-even
21
22REQUIRED_DISTRO_FEATURES = "x11"
23
Andrew Geissler89770b02020-06-13 10:40:47 -050024SRC_URI[archive.md5sum] = "38f0732845a510a8dff4f154c3406f65"
25SRC_URI[archive.sha256sum] = "a264b57a8d1a71fdf0d66e8cd6033d013fb828be279c35766545eb9bb3734f87"
Brad Bishope42b3e32020-01-15 22:08:42 -050026SRC_URI += " \
27 file://0001-Set-paths-to-ssh-agent-and-ssh-add-by-configure-opti.patch \
28 file://musl.patch \
29"
30
31PACKAGECONFIG ??= "ssh-agent"
32PACKAGECONFIG[ssh-agent] = "--enable-ssh-agent --with-ssh-agent-path=${bindir}/ssh-agent --with-ssh-add-path=${bindir}/ssh-add,--disable-ssh-agent,,openssh-misc"
33
34EXTRA_OECONF = " \
35 --disable-doc \
36 ${@bb.utils.contains('DISTRO_FEATURES', 'pam', '--enable-pam --with-pam-dir=${base_libdir}/security', '--disable-pam', d)} \
37"
38
39FILES_${PN} += " \
40 ${datadir}/dbus-1/services \
41 ${datadir}/p11-kit \
Andrew Geissler89770b02020-06-13 10:40:47 -050042 ${datadir}/xdg-desktop-portal \
Brad Bishope42b3e32020-01-15 22:08:42 -050043 ${base_libdir}/security/*${SOLIBSDEV} \
44 ${libdir}/pkcs11/gnome-keyring-pkcs11.so \
45"
Brad Bishope42b3e32020-01-15 22:08:42 -050046# fix | gnome-keyring-daemon: insufficient process capabilities, unsecure memory might get used
Andrew Geissler32b11992021-03-31 13:37:05 -050047pkg_postinst_${PN} () {
48 setcap cap_ipc_lock+ep $D/${bindir}/gnome-keyring-daemon
Brad Bishope42b3e32020-01-15 22:08:42 -050049}
Andrew Geissler32b11992021-03-31 13:37:05 -050050PACKAGE_WRITE_DEPS += "libcap-native"