blob: 18abac29cc03d9afd30267c7f99df90d7fa58783 [file] [log] [blame]
Brad Bishop19323692019-04-05 15:28:33 -04001DESCRIPTION = "gvfs is a userspace virtual filesystem"
2LICENSE = "LGPLv2"
3LIC_FILES_CHKSUM = "file://COPYING;md5=05df38dd77c35ec8431f212410a3329e"
4
5GNOMEBASEBUILDCLASS = "meson"
Brad Bishope42b3e32020-01-15 22:08:42 -05006inherit gnomebase gsettings bash-completion gettext upstream-version-is-even features_check useradd
Brad Bishop19323692019-04-05 15:28:33 -04007
Brad Bishope42b3e32020-01-15 22:08:42 -05008DEPENDS += "libsecret glib-2.0 glib-2.0-native libgudev shadow-native \
9 gsettings-desktop-schemas dbus"
Brad Bishop19323692019-04-05 15:28:33 -040010
Patrick Williams213cb262021-08-07 19:21:33 -050011RDEPENDS:${PN} += "gsettings-desktop-schemas"
Andrew Geisslerf103a7f2021-05-07 16:09:40 -050012
Brad Bishop19323692019-04-05 15:28:33 -040013SRC_URI = "https://download.gnome.org/sources/${BPN}/${@gnome_verdir("${PV}")}/${BPN}-${PV}.tar.xz;name=archive"
Andrew Geissler69721092021-07-23 12:57:00 -040014SRC_URI[archive.sha256sum] = "b2ea4f271aad2711f16b43c03151e2ec5a9874ff1a21142ef6d6406486a19dc2"
Brad Bishop19323692019-04-05 15:28:33 -040015
Brad Bishope42b3e32020-01-15 22:08:42 -050016# depends on gsettings-desktop-schemas->gcr->gtk+3-> x11
17REQUIRED_DISTRO_FEATURES = "x11"
Brad Bishop19323692019-04-05 15:28:33 -040018
19EXTRA_OEMESON = " \
20 -Dbluray=false \
Brad Bishop19323692019-04-05 15:28:33 -040021 -Dgoa=false \
22 -Dgoogle=false \
23 -Dnfs=false \
Brad Bishop19323692019-04-05 15:28:33 -040024"
25
26PACKAGES =+ "gvfsd-ftp gvfsd-sftp gvfsd-trash"
27
Patrick Williams213cb262021-08-07 19:21:33 -050028FILES:${PN} += " \
Brad Bishop19323692019-04-05 15:28:33 -040029 ${datadir}/glib-2.0 \
30 ${datadir}/GConf \
31 ${datadir}/dbus-1/services \
32 ${libdir}/gio/modules/*.so \
33 ${libdir}/tmpfiles.d \
34 ${systemd_user_unitdir} \
35"
Brad Bishop19323692019-04-05 15:28:33 -040036
Patrick Williams213cb262021-08-07 19:21:33 -050037FILES:${PN}-dbg += "${libdir}/gio/modules/.debug/*"
38FILES:${PN}-dev += "${libdir}/gio/modules/*.la"
Brad Bishop19323692019-04-05 15:28:33 -040039
Patrick Williams213cb262021-08-07 19:21:33 -050040FILES:gvfsd-ftp = "${libexecdir}/gvfsd-ftp ${datadir}/gvfs/mounts/ftp.mount"
41FILES:gvfsd-sftp = "${libexecdir}/gvfsd-sftp ${datadir}/gvfs/mounts/sftp.mount"
42FILES:gvfsd-trash = "${libexecdir}/gvfsd-trash ${datadir}/gvfs/mounts/trash.mount"
Brad Bishop19323692019-04-05 15:28:33 -040043
Patrick Williams213cb262021-08-07 19:21:33 -050044RRECOMMENDS:gvfsd-ftp += "openssh-sftp openssh-ssh"
Brad Bishop19323692019-04-05 15:28:33 -040045
Brad Bishop26bdd442019-08-16 17:08:17 -040046PACKAGECONFIG ?= "libgphoto2 \
47 ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \
48 ${@bb.utils.contains('DISTRO_FEATURES','polkit','udisks2','',d)} \
49 ${@bb.utils.contains('DISTRO_FEATURES','polkit','admin','',d)} \
50 "
Brad Bishop19323692019-04-05 15:28:33 -040051
Brad Bishop26bdd442019-08-16 17:08:17 -040052PACKAGECONFIG[udisks2] = "-Dudisks2=true, -Dudisks2=false, udisks2, udisks2"
53PACKAGECONFIG[admin] = "-Dadmin=true, -Dadmin=false, libcap polkit"
Brad Bishop19323692019-04-05 15:28:33 -040054PACKAGECONFIG[afc] = "-Dafc=true, -Dafc=false, libimobiledevice libplist"
55PACKAGECONFIG[archive] = "-Darchive=true, -Darchive=false, libarchive"
56PACKAGECONFIG[dnssd] = "-Ddnssd=true, -Ddnssd=false, avahi"
57PACKAGECONFIG[gcr] = "-Dgcr=true, -Dgcr=false, gcr"
58PACKAGECONFIG[http] = "-Dhttp=true, -Dhttp=false, libsoup-2.4"
59PACKAGECONFIG[libmtp] = "-Dmtp=true, -Dmtp=false, libmtp"
60PACKAGECONFIG[logind] = "-Dlogind=true, -Dlogind=false, systemd"
61PACKAGECONFIG[libgphoto2] = "-Dgphoto2=true, -Dgphoto2=false, libgphoto2"
62PACKAGECONFIG[samba] = "-Dsmb=true, -Dsmb=false, samba"
63PACKAGECONFIG[systemd] = "-Dsystemduserunitdir=${systemd_user_unitdir} -Dtmpfilesdir=${libdir}/tmpfiles.d, -Dsystemduserunitdir=no -Dtmpfilesdir=no, systemd"
64
65# needs meta-filesystems
Andrew Geisslerd688a012020-09-18 13:36:00 -050066PACKAGECONFIG[fuse] = "-Dfuse=true, -Dfuse=false, fuse3"
Brad Bishop19323692019-04-05 15:28:33 -040067
68# libcdio-paranoia recipe doesn't exist yet
69PACKAGECONFIG[cdda] = "-Dcdda=true, -Dcdda=false, libcdio-paranoia"
70
Brad Bishope42b3e32020-01-15 22:08:42 -050071USERADD_PACKAGES = "${PN}"
Patrick Williams213cb262021-08-07 19:21:33 -050072USERADD_PARAM:${PN} = "--system --no-create-home --user-group --home-dir ${sysconfdir}/${BPN}-1 polkitd"
Brad Bishope42b3e32020-01-15 22:08:42 -050073
Patrick Williams213cb262021-08-07 19:21:33 -050074do_install:append() {
Brad Bishop26bdd442019-08-16 17:08:17 -040075 if ${@bb.utils.contains('DISTRO_FEATURES', 'polkit', 'true', 'false', d)}; then
76 # Fix up permissions on polkit rules.d to work with rpm4 constraints
77 chmod 700 ${D}/${datadir}/polkit-1/rules.d
78 chown polkitd:root ${D}/${datadir}/polkit-1/rules.d
79 fi
Brad Bishop34ae6002019-04-08 15:21:03 -040080
81 # After rebuilds (not from scracth) it can happen that the executables in
82 # libexec ar missing executable permission flag. Not sure but it came up
83 # during transition to meson. Looked into build files and logs but could
84 # not find suspicious
Brad Bishopc342db32019-05-15 21:57:59 -040085 for exe in `find ${D}/${libexecdir}`; do
Brad Bishop34ae6002019-04-08 15:21:03 -040086 chmod +x $exe
87 done
Brad Bishop19323692019-04-05 15:28:33 -040088}