blob: 4fca1076fd5ffd547e8413a6939dc005f95271ed [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 Bishop26bdd442019-08-16 17:08:17 -04006inherit gnomebase bash-completion gettext upstream-version-is-even
Brad Bishop19323692019-04-05 15:28:33 -04007
Brad Bishop26bdd442019-08-16 17:08:17 -04008DEPENDS += "libsecret glib-2.0 glib-2.0-native gconf libgudev shadow-native"
Brad Bishop19323692019-04-05 15:28:33 -04009
10SRC_URI = "https://download.gnome.org/sources/${BPN}/${@gnome_verdir("${PV}")}/${BPN}-${PV}.tar.xz;name=archive"
11
Brad Bishop26bdd442019-08-16 17:08:17 -040012SRC_URI[archive.md5sum] = "47db9bec616e089513b7f1386e5c7d5f"
13SRC_URI[archive.sha256sum] = "bdefe8fec6a1097f0c126fa2a4533667c98a86e237ac640518000e16b363971e"
Brad Bishop19323692019-04-05 15:28:33 -040014
15
16EXTRA_OEMESON = " \
17 -Dbluray=false \
Brad Bishop19323692019-04-05 15:28:33 -040018 -Dgoa=false \
19 -Dgoogle=false \
20 -Dnfs=false \
Brad Bishop19323692019-04-05 15:28:33 -040021"
22
23PACKAGES =+ "gvfsd-ftp gvfsd-sftp gvfsd-trash"
24
25FILES_${PN} += " \
26 ${datadir}/glib-2.0 \
27 ${datadir}/GConf \
28 ${datadir}/dbus-1/services \
29 ${libdir}/gio/modules/*.so \
30 ${libdir}/tmpfiles.d \
31 ${systemd_user_unitdir} \
32"
Brad Bishop19323692019-04-05 15:28:33 -040033
34FILES_${PN}-dbg += "${libdir}/gio/modules/.debug/*"
35FILES_${PN}-dev += "${libdir}/gio/modules/*.la"
36
37FILES_gvfsd-ftp = "${libexecdir}/gvfsd-ftp ${datadir}/gvfs/mounts/ftp.mount"
38FILES_gvfsd-sftp = "${libexecdir}/gvfsd-sftp ${datadir}/gvfs/mounts/sftp.mount"
39FILES_gvfsd-trash = "${libexecdir}/gvfsd-trash ${datadir}/gvfs/mounts/trash.mount"
40
41RRECOMMENDS_gvfsd-ftp += "openssh-sftp openssh-ssh"
42
Brad Bishop26bdd442019-08-16 17:08:17 -040043PACKAGECONFIG ?= "libgphoto2 \
44 ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \
45 ${@bb.utils.contains('DISTRO_FEATURES','polkit','udisks2','',d)} \
46 ${@bb.utils.contains('DISTRO_FEATURES','polkit','admin','',d)} \
47 "
Brad Bishop19323692019-04-05 15:28:33 -040048
Brad Bishop26bdd442019-08-16 17:08:17 -040049PACKAGECONFIG[udisks2] = "-Dudisks2=true, -Dudisks2=false, udisks2, udisks2"
50PACKAGECONFIG[admin] = "-Dadmin=true, -Dadmin=false, libcap polkit"
Brad Bishop19323692019-04-05 15:28:33 -040051PACKAGECONFIG[afc] = "-Dafc=true, -Dafc=false, libimobiledevice libplist"
52PACKAGECONFIG[archive] = "-Darchive=true, -Darchive=false, libarchive"
53PACKAGECONFIG[dnssd] = "-Ddnssd=true, -Ddnssd=false, avahi"
54PACKAGECONFIG[gcr] = "-Dgcr=true, -Dgcr=false, gcr"
55PACKAGECONFIG[http] = "-Dhttp=true, -Dhttp=false, libsoup-2.4"
56PACKAGECONFIG[libmtp] = "-Dmtp=true, -Dmtp=false, libmtp"
57PACKAGECONFIG[logind] = "-Dlogind=true, -Dlogind=false, systemd"
58PACKAGECONFIG[libgphoto2] = "-Dgphoto2=true, -Dgphoto2=false, libgphoto2"
59PACKAGECONFIG[samba] = "-Dsmb=true, -Dsmb=false, samba"
60PACKAGECONFIG[systemd] = "-Dsystemduserunitdir=${systemd_user_unitdir} -Dtmpfilesdir=${libdir}/tmpfiles.d, -Dsystemduserunitdir=no -Dtmpfilesdir=no, systemd"
61
62# needs meta-filesystems
63PACKAGECONFIG[fuse] = "-Dfuse=true, -Dfuse=false, fuse"
64
65# libcdio-paranoia recipe doesn't exist yet
66PACKAGECONFIG[cdda] = "-Dcdda=true, -Dcdda=false, libcdio-paranoia"
67
Brad Bishop19323692019-04-05 15:28:33 -040068do_install_append() {
Brad Bishop26bdd442019-08-16 17:08:17 -040069 if ${@bb.utils.contains('DISTRO_FEATURES', 'polkit', 'true', 'false', d)}; then
70 # Fix up permissions on polkit rules.d to work with rpm4 constraints
71 chmod 700 ${D}/${datadir}/polkit-1/rules.d
72 chown polkitd:root ${D}/${datadir}/polkit-1/rules.d
73 fi
Brad Bishop34ae6002019-04-08 15:21:03 -040074
75 # After rebuilds (not from scracth) it can happen that the executables in
76 # libexec ar missing executable permission flag. Not sure but it came up
77 # during transition to meson. Looked into build files and logs but could
78 # not find suspicious
Brad Bishopc342db32019-05-15 21:57:59 -040079 for exe in `find ${D}/${libexecdir}`; do
Brad Bishop34ae6002019-04-08 15:21:03 -040080 chmod +x $exe
81 done
Brad Bishop19323692019-04-05 15:28:33 -040082}