diff options
author | Denys Dmytriyenko <denis@denix.org> | 2009-03-17 14:32:59 -0400 |
---|---|---|
committer | Denys Dmytriyenko <denis@denix.org> | 2009-03-17 14:32:59 -0400 |
commit | 709c4d66e0b107ca606941b988bad717c0b45d9b (patch) | |
tree | 37ee08b1eb308f3b2b6426d5793545c38396b838 /recipes/ntp/ntp_4.1.2.bb | |
parent | fa6cd5a3b993f16c27de4ff82b42684516d433ba (diff) |
rename packages/ to recipes/ per earlier agreement
See links below for more details:
http://thread.gmane.org/gmane.comp.handhelds.openembedded/21326
http://thread.gmane.org/gmane.comp.handhelds.openembedded/21816
Signed-off-by: Denys Dmytriyenko <denis@denix.org>
Acked-by: Mike Westerhof <mwester@dls.net>
Acked-by: Philip Balister <philip@balister.org>
Acked-by: Khem Raj <raj.khem@gmail.com>
Acked-by: Marcin Juszkiewicz <hrw@openembedded.org>
Acked-by: Koen Kooi <koen@openembedded.org>
Acked-by: Frans Meulenbroeks <fransmeulenbroeks@gmail.com>
Diffstat (limited to 'recipes/ntp/ntp_4.1.2.bb')
-rw-r--r-- | recipes/ntp/ntp_4.1.2.bb | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/recipes/ntp/ntp_4.1.2.bb b/recipes/ntp/ntp_4.1.2.bb new file mode 100644 index 0000000000..7091f05394 --- /dev/null +++ b/recipes/ntp/ntp_4.1.2.bb @@ -0,0 +1,46 @@ +require ntp.inc + +PR = "r5" + +SRC_URI = "http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.1/ntp-${PV}.tar.gz \ + file://configure.patch;patch=1 \ + file://readline.patch;patch=1 \ + file://ntpdate \ + file://ntp" + +do_install_append() { + install -d ${D}${sysconfdir}/init.d + install -m 755 ${WORKDIR}/ntpdate ${D}${sysconfdir}/init.d + install -m 755 ${WORKDIR}/ntp ${D}${sysconfdir}/init.d + echo "server pool.ntp.org" >${D}${sysconfdir}/ntp.conf +} + +pkg_postinst_ntpdate() { +if test "x$D" != "x"; then + exit 1 +else + if ! grep -q ntpdate /etc/cron/crontabs/root >/dev/null 2>&1; then + echo "adding crontab" + test -d /etc/cron/crontabs || mkdir -p /etc/cron/crontabs + echo "30 * * * * ${bindir}/ntpdate -s -u pool.ntp.org" >> /etc/cron/crontabs/root + fi + + # Dunno why this is here, ask the "nylon" guys :) + test -x /etc/init.d/busybox-cron && update-rc.d -s busybox-cron defaults + + update-rc.d -s ntpdate defaults 30 +fi +} + +pkg_postrm_ntpdate() { + update-rc.d -f ntpdate remove +} + +pkg_postinst_ntp() { + update-rc.d -s ntp defaults 31 +} + +pkg_postrm_ntp(){ + update-rc.d -f ntp remove +} + |