aboutsummaryrefslogtreecommitdiffstats
path: root/recipes-support/udisks/udisks_1.0.5.bbappend
blob: d55a167a6a7b3337037c6407a00a16a0a4f169e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
SRC_URI += "file://org.freedesktop.UDisks.conf \
            file://udisks.service \
            file://automount.service \
            file://automount.sh \
           "
FILESEXTRAPATHS_prepend := "${THISDIR}/files:"

FILES_${PN} += "${base_libdir}/systemd/system/automount.service \
                ${base_libdir}/systemd/system/udisks.service \
                ${libexecdir}/automount.sh \
               "

SYSTEMD_AUTO_ENABLE = "enable"
SYSTEMD_SERVICE_${PN} = "udisks.service automount.service"

do_install_append () {
    install -d ${D}${sysconfdir}/dbus-1/system.d
    install -m 644 ${WORKDIR}/org.freedesktop.UDisks.conf ${D}${sysconfdir}/dbus-1/system.d/

    install -d ${D}${base_libdir}/systemd/system
    install -m 0644 ${WORKDIR}/udisks.service ${D}${base_libdir}/systemd/system

    install -d ${D}${base_libdir}/systemd/system
    install -m 0644 ${WORKDIR}/automount.service ${D}${base_libdir}/systemd/system

    install -d ${D}${libexecdir}
    install -m 0755 ${WORKDIR}/automount.sh ${D}${libexecdir}/automount.sh
}