blob: e33266001eb77af0c582620f91a388d1546d7dbc [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001DESCRIPTION = "A storage daemon that implements well-defined D-Bus interfaces that can be used to query and manipulate storage devices."
2LICENSE = "GPLv2+"
3LIC_FILES_CHKSUM = "file://COPYING;md5=73d83aebe7e4b62346afde80e0e94273"
4
Brad Bishopd7bf8c12018-02-25 22:55:05 -05005DEPENDS = "libatasmart sg3-utils polkit libgudev dbus-glib glib-2.0 intltool-native \
Brad Bishop6e60e8b2018-02-01 10:27:11 -05006 dbus-glib-native \
7"
Patrick Williamsb48b7b42016-08-17 15:04:38 -05008# optional dependencies: device-mapper parted
9
Brad Bishop6e60e8b2018-02-01 10:27:11 -050010DEPENDS += "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \
11 dbus-glib-native \
12"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050013
14SRC_URI = " \
15 http://hal.freedesktop.org/releases/${BPN}-${PV}.tar.gz;name=${BPN} \
16 file://optional-depends.patch \
17 file://0001-fix-build-with-newer-glibc-versions.patch \
18 file://udisks-1.0.5-fix-service-file.patch \
Brad Bishop6e60e8b2018-02-01 10:27:11 -050019 file://0001-Make-udev-rules-directory-configurable.patch \
Patrick Williamsb48b7b42016-08-17 15:04:38 -050020"
21
22SRC_URI[udisks.md5sum] = "70d48dcfe523a74cd7c7fbbc2847fcdd"
23SRC_URI[udisks.sha256sum] = "f2ec82eb0ea7e01dc299b5b29b3c18cdf861236ec43dcff66b3552b4b31c6f71"
24
25inherit autotools-brokensep systemd gtk-doc
26
Brad Bishopd7bf8c12018-02-25 22:55:05 -050027PACKAGECONFIG ??= "libdevmapper"
28PACKAGECONFIG[libdevmapper] = "--enable-devmapper,--disable-devmapper,libdevmapper"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050029PACKAGECONFIG[parted] = "--enable-parted,--disable-parted,parted"
30
Brad Bishop6e60e8b2018-02-01 10:27:11 -050031EXTRA_OECONF = "--disable-man-pages --libdir=${base_libdir} --sbindir=${base_sbindir}"
32EXTRA_OEMAKE = "udevrulesdir=${nonarch_base_libdir}/udev/rules.d/"
Patrick Williamsb48b7b42016-08-17 15:04:38 -050033
34FILES_${PN} += "${libdir}/polkit-1/extensions/*.so \
35 ${datadir}/dbus-1/ \
36 ${datadir}/polkit-1 \
37 ${nonarch_base_libdir}/udev/* \
38"
39
40FILES_${PN}-dbg += "${nonarch_base_libdir}/udev/.debug"
41
42RPROVIDES_${PN} += "${PN}-systemd"
43RREPLACES_${PN} += "${PN}-systemd"
44RCONFLICTS_${PN} += "${PN}-systemd"
45SYSTEMD_SERVICE_${PN} = "udisks.service"
46SYSTEMD_AUTO_ENABLE = "disable"