Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 1 | DESCRIPTION = "A storage daemon that implements well-defined D-Bus interfaces that can be used to query and manipulate storage devices." |
| 2 | LICENSE = "GPLv2+" |
| 3 | LIC_FILES_CHKSUM = "file://COPYING;md5=73d83aebe7e4b62346afde80e0e94273" |
| 4 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 5 | DEPENDS = "libatasmart sg3-utils polkit libgudev dbus-glib glib-2.0 intltool-native \ |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 6 | dbus-glib-native \ |
| 7 | " |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 8 | # optional dependencies: device-mapper parted |
| 9 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 10 | DEPENDS += "${@bb.utils.filter('DISTRO_FEATURES', 'systemd', d)} \ |
| 11 | dbus-glib-native \ |
| 12 | " |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 13 | |
| 14 | SRC_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 Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 19 | file://0001-Make-udev-rules-directory-configurable.patch \ |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 20 | " |
| 21 | |
| 22 | SRC_URI[udisks.md5sum] = "70d48dcfe523a74cd7c7fbbc2847fcdd" |
| 23 | SRC_URI[udisks.sha256sum] = "f2ec82eb0ea7e01dc299b5b29b3c18cdf861236ec43dcff66b3552b4b31c6f71" |
| 24 | |
| 25 | inherit autotools-brokensep systemd gtk-doc |
| 26 | |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 27 | PACKAGECONFIG ??= "libdevmapper" |
| 28 | PACKAGECONFIG[libdevmapper] = "--enable-devmapper,--disable-devmapper,libdevmapper" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 29 | PACKAGECONFIG[parted] = "--enable-parted,--disable-parted,parted" |
| 30 | |
Brad Bishop | 6e60e8b | 2018-02-01 10:27:11 -0500 | [diff] [blame] | 31 | EXTRA_OECONF = "--disable-man-pages --libdir=${base_libdir} --sbindir=${base_sbindir}" |
| 32 | EXTRA_OEMAKE = "udevrulesdir=${nonarch_base_libdir}/udev/rules.d/" |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 33 | |
| 34 | FILES_${PN} += "${libdir}/polkit-1/extensions/*.so \ |
| 35 | ${datadir}/dbus-1/ \ |
| 36 | ${datadir}/polkit-1 \ |
| 37 | ${nonarch_base_libdir}/udev/* \ |
| 38 | " |
| 39 | |
| 40 | FILES_${PN}-dbg += "${nonarch_base_libdir}/udev/.debug" |
| 41 | |
| 42 | RPROVIDES_${PN} += "${PN}-systemd" |
| 43 | RREPLACES_${PN} += "${PN}-systemd" |
| 44 | RCONFLICTS_${PN} += "${PN}-systemd" |
| 45 | SYSTEMD_SERVICE_${PN} = "udisks.service" |
| 46 | SYSTEMD_AUTO_ENABLE = "disable" |