summaryrefslogtreecommitdiff
path: root/meta/packages/devicekit/devicekit_git.bb
blob: 06bcfd3f123cd3c7e121b2eb449a56d34009a2a8 (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
29
30
31
32
33
34
35
36
37
LICENSE = "GPL"
DEPENDS = "dbus-glib"

SRC_URI = "git://anongit.freedesktop.org/DeviceKit/DeviceKit;protocol=git \
        file://volatile"

PV = "002+git${SRCREV}"
PR = "r1"
SRCREV = "014d168ba4bf40c9bae487bacff8bf2aa054b5f6"

S = "${WORKDIR}/git"

EXTRA_OECONF = "--disable-man-pages"

inherit autotools pkgconfig

do_install_append() {
	install -d ${D}/etc/default/volatiles
	install -m 0644 ${WORKDIR}/volatile ${D}/etc/default/volatiles/devicekit
}

pkg_postinst_devicekit () {
	# can't do this offline
	if [ "x$D" != "x" ]; then
		exit 1
	fi

	/etc/init.d/populate-volatile.sh update

	DBUSPID=`pidof dbus-daemon`

	if [ "x$DBUSPID" != "x" ]; then
		/etc/init.d/dbus-1 reload
	fi
}

FILES_${PN} += "${datadir}/dbus-1/"