summaryrefslogtreecommitdiff
path: root/recipes/ffalarms/atd-over-fso_0.70.bb
blob: 951e10c66dc21937de35ae51bd7fbd77174a03e3 (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
38
39
40
41
42
43
44
45
46
DESCRIPTION = "Lightweight At Daemon working on top of org.freesmartphone.otimed"
SECTION = "base"
LICENSE = "GPLV2"
RCONFLICTS = "at atd"
RREPLACES = "at atd"
RPROVIDES = "atd"
DEPENDS = "dbus-glib pkgconfig"
RDEPENDS += "dbus dbus-glib frameworkd"

PR = "r2"

SRC_URI = "${HANDHELDS_CVS};module=apps/atd;tag=ATD-0_70 \
			file://atd-startup.patch;patch=1;pnum=0 \
			file://atd-startup-restart.patch;patch=2;pnum=0 \
			file://atd-alarm-glue.patch;patch=3;pnum=0 \
			file://atd-over-fso.conf.patch;patch=4;pnum=0 \
			file://run-over-fso.patch;patch=5;pnum=1"
S = "${WORKDIR}/atd"

inherit update-rc.d

INITSCRIPT_NAME = "atd"
INITSCRIPT_PARAMS = "defaults 97"

do_compile() {
	export CFLAGS="$CFLAGS `${STAGING_BINDIR_NATIVE}/pkg-config --cflags dbus-glib-1`"
	export LDFLAGS="$LDFLAGS `${STAGING_BINDIR_NATIVE}/pkg-config --libs dbus-glib-1`"
	oe_runmake
}

do_install() {
	install -d ${D}${sbindir}
	install atd ${D}${sbindir}/atd
	install -d ${D}${sysconfdir}/init.d
	install -d ${D}${sysconfdir}/dbus-1/system.d
	install dist/etc/init.d/atd ${D}${sysconfdir}/init.d/atd
	install dist/etc/dbus-1/system.d/atd-over-fso.conf ${D}${sysconfdir}/dbus-1/system.d/atd-over-fso.conf
}

updatercd_postinst_prepend() {
/etc/init.d/dbus-1 reload
}

updatercd_postrm_append() {
/etc/init.d/dbus-1 reload
}