2 DESCRIPTION = "Vixie cron."
5 DEPENDS += "install-native"
7 SRC_URI = "http://ibiblio.org/pub/Linux/system/daemons/cron/cron${PV}.tar.gz \
8 file://nonrootinstall.patch;patch=1 \
9 file://time.patch;patch=1 \
11 S = "${WORKDIR}/cron${PV}"
13 INITSCRIPT_NAME = "cron"
14 INITSCRIPT_PARAMS = "defaults"
17 CFLAGS_append = " -I${S} -DSYS_TIME_H=0"
19 install -d ${D}${sbindir} ${D}${bindir}
20 install -d ${D}${sysconfdir}/init.d/
21 install -d ${D}/var/cron/tabs
22 install -c -m 755 ${WORKDIR}/init ${D}${sysconfdir}/init.d/cron
23 oe_runmake 'DESTDIR=${D}' install
24 chmod ugo+rx ${D}${sbindir}/* ${D}${bindir}/*
27 update-rc.d cron defaults 65
31 update-rc.d cron remove