blob: df9fd50ea14b44273a639f40a14fc59cc06a1428 [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"
6inherit gnome bash-completion gettext upstream-version-is-even
7
Brad Bishop34ae6002019-04-08 15:21:03 -04008DEPENDS += "libsecret glib-2.0 gconf libgudev udisks2 polkit 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
12SRC_URI[archive.md5sum] = "96ef53ed613e4d223e0db3a7acea44f0"
13SRC_URI[archive.sha256sum] = "3739d64b79c95a9f0f9faf2c5f9e5298b4b2ebdd6431435ce656ecd19b31e2f2"
14
15
16EXTRA_OEMESON = " \
17 -Dbluray=false \
Brad Bishop19323692019-04-05 15:28:33 -040018 -Dgoa=false \
19 -Dgoogle=false \
20 -Dnfs=false \
21 -Dudisks2=true \
Brad Bishop19323692019-04-05 15:28:33 -040022"
23
24PACKAGES =+ "gvfsd-ftp gvfsd-sftp gvfsd-trash"
25
26FILES_${PN} += " \
27 ${datadir}/glib-2.0 \
28 ${datadir}/GConf \
29 ${datadir}/dbus-1/services \
30 ${libdir}/gio/modules/*.so \
31 ${libdir}/tmpfiles.d \
32 ${systemd_user_unitdir} \
33"
34RDEPENDS_${PN} = "udisks2"
35
36FILES_${PN}-dbg += "${libdir}/gio/modules/.debug/*"
37FILES_${PN}-dev += "${libdir}/gio/modules/*.la"
38
39FILES_gvfsd-ftp = "${libexecdir}/gvfsd-ftp ${datadir}/gvfs/mounts/ftp.mount"
40FILES_gvfsd-sftp = "${libexecdir}/gvfsd-sftp ${datadir}/gvfs/mounts/sftp.mount"
41FILES_gvfsd-trash = "${libexecdir}/gvfsd-trash ${datadir}/gvfs/mounts/trash.mount"
42
43RRECOMMENDS_gvfsd-ftp += "openssh-sftp openssh-ssh"
44
45PACKAGECONFIG ?= "libgphoto2 ${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)}"
46
47PACKAGECONFIG[afc] = "-Dafc=true, -Dafc=false, libimobiledevice libplist"
48PACKAGECONFIG[archive] = "-Darchive=true, -Darchive=false, libarchive"
49PACKAGECONFIG[dnssd] = "-Ddnssd=true, -Ddnssd=false, avahi"
50PACKAGECONFIG[gcr] = "-Dgcr=true, -Dgcr=false, gcr"
51PACKAGECONFIG[http] = "-Dhttp=true, -Dhttp=false, libsoup-2.4"
52PACKAGECONFIG[libmtp] = "-Dmtp=true, -Dmtp=false, libmtp"
53PACKAGECONFIG[logind] = "-Dlogind=true, -Dlogind=false, systemd"
54PACKAGECONFIG[libgphoto2] = "-Dgphoto2=true, -Dgphoto2=false, libgphoto2"
55PACKAGECONFIG[samba] = "-Dsmb=true, -Dsmb=false, samba"
56PACKAGECONFIG[systemd] = "-Dsystemduserunitdir=${systemd_user_unitdir} -Dtmpfilesdir=${libdir}/tmpfiles.d, -Dsystemduserunitdir=no -Dtmpfilesdir=no, systemd"
57
58# needs meta-filesystems
59PACKAGECONFIG[fuse] = "-Dfuse=true, -Dfuse=false, fuse"
60
61# libcdio-paranoia recipe doesn't exist yet
62PACKAGECONFIG[cdda] = "-Dcdda=true, -Dcdda=false, libcdio-paranoia"
63
Brad Bishop19323692019-04-05 15:28:33 -040064do_install_append() {
Brad Bishop34ae6002019-04-08 15:21:03 -040065 # Fix up permissions on polkit rules.d to work with rpm4 constraints
Brad Bishop19323692019-04-05 15:28:33 -040066 chmod 700 ${D}/${datadir}/polkit-1/rules.d
67 chown polkitd:root ${D}/${datadir}/polkit-1/rules.d
Brad Bishop34ae6002019-04-08 15:21:03 -040068
69 # After rebuilds (not from scracth) it can happen that the executables in
70 # libexec ar missing executable permission flag. Not sure but it came up
71 # during transition to meson. Looked into build files and logs but could
72 # not find suspicious
73 for exe in `find ${D}/${libexec}`; do
74 chmod +x $exe
75 done
Brad Bishop19323692019-04-05 15:28:33 -040076}