linux-omap 2.6.39: sync with meta-texasinstruments
[openembedded.git] / recipes / cron / cron_3.0pl1.bb
blob685ad187c7fb7d20b99e4f0d4d0a46dc7813d65a
1 SECTION = "base"
2 DESCRIPTION = "Vixie cron."
3 LICENSE = "cron"
4 PR ="r8"
6 SRC_URI = "http://ibiblio.org/pub/Linux/system/daemons/cron/cron${PV}.tar.gz \
7 file://nonrootinstall.patch \
8 file://time.patch \
9 file://init"
10 S = "${WORKDIR}/cron${PV}"
12 INITSCRIPT_NAME = "cron"
13 INITSCRIPT_PARAMS = "defaults"
14 inherit update-rc.d
16 CFLAGS_append = " -I${S} -DSYS_TIME_H=0"
17 do_install () {
18 install -d ${D}${sbindir} ${D}${bindir}
19 install -d ${D}${sysconfdir}/init.d/
20 install -d ${D}/var/cron/tabs
21 install -c -m 755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/cron
22 oe_runmake 'DESTDIR=${D}' install
23 chmod ugo+rx ${D}${sbindir}/* ${D}${bindir}/*
25 pkg_postinst() {
26 update-rc.d cron defaults 65
29 pkg_postrm() {
30 update-rc.d cron remove
35 SRC_URI[md5sum] = "d9f12c3edfca4a4918b8d299cce5f2b4"
36 SRC_URI[sha256sum] = "99602e966e12347f2728b2153537a14195b06fe130d047e8d91b4f72b24866a0"