5 SRC_URI = "http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.1/ntp-${PV}.tar.gz \
6 file://configure.patch;patch=1 \
7 file://readline.patch;patch=1 \
12 install -d ${D}${sysconfdir}/init.d
13 install -m 755 ${WORKDIR}/ntpdate ${D}${sysconfdir}/init.d
14 install -m 755 ${WORKDIR}/ntp ${D}${sysconfdir}/init.d
15 echo "server pool.ntp.org" >${D}${sysconfdir}/ntp.conf
18 pkg_postinst_ntpdate() {
19 if test "x$D" != "x"; then
22 if ! grep -q ntpdate /etc/cron/crontabs/root >/dev/null 2>&1; then
24 test -d /etc/cron/crontabs || mkdir -p /etc/cron/crontabs
25 echo "30 * * * * ${bindir}/ntpdate -s -u pool.ntp.org" >> /etc/cron/crontabs/root
28 # Dunno why this is here, ask the "nylon" guys :)
29 test -x /etc/init.d/busybox-cron && update-rc.d -s busybox-cron defaults
31 update-rc.d -s ntpdate defaults 30
35 pkg_postrm_ntpdate() {
36 update-rc.d -f ntpdate remove
40 update-rc.d -s ntp defaults 31
44 update-rc.d -f ntp remove