diff options
| author | Koen Kooi <koen@dominion.thruhere.net> | 2011-03-17 21:41:22 +0100 |
|---|---|---|
| committer | Koen Kooi <koen@dominion.thruhere.net> | 2011-03-17 21:41:22 +0100 |
| commit | c58cc7d3796dcee6e93885c835ed04cb566abeb2 (patch) | |
| tree | 3eea4d4ef6a4ef79e0f4e025d7012c1a5cc38835 /meta-oe/recipes-support/ntp/ntp_4.2.6p3.bb | |
| parent | eec6ab97f712e06eb52c9f7c99e19ffab3ce9d74 (diff) | |
| download | meta-openembedded-c58cc7d3796dcee6e93885c835ed04cb566abeb2.tar.gz | |
move layer into meta-oe in preparation for future splits
As per TSC decision
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
Diffstat (limited to 'meta-oe/recipes-support/ntp/ntp_4.2.6p3.bb')
| -rw-r--r-- | meta-oe/recipes-support/ntp/ntp_4.2.6p3.bb | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/meta-oe/recipes-support/ntp/ntp_4.2.6p3.bb b/meta-oe/recipes-support/ntp/ntp_4.2.6p3.bb new file mode 100644 index 0000000000..f64f6f6d92 --- /dev/null +++ b/meta-oe/recipes-support/ntp/ntp_4.2.6p3.bb | |||
| @@ -0,0 +1,46 @@ | |||
| 1 | require ntp.inc | ||
| 2 | |||
| 3 | PR = "r1" | ||
| 4 | |||
| 5 | SRC_URI = "http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/${P}.tar.gz \ | ||
| 6 | file://tickadj.c.patch \ | ||
| 7 | file://ntp-4.2.4_p6-nano.patch \ | ||
| 8 | file://ntpd \ | ||
| 9 | file://ntp.conf \ | ||
| 10 | file://ntpdate" | ||
| 11 | |||
| 12 | SRC_URI[md5sum] = "59876a9009b098ff59767ee45a88ebd2" | ||
| 13 | SRC_URI[sha256sum] = "6e84d4ddfa14b911c3ed88463af10867e1fa9b287e7b34d8a02e78be85a7c40e" | ||
| 14 | |||
| 15 | EXTRA_OECONF += " --with-net-snmp-config=no --without-ntpsnmpd" | ||
| 16 | |||
| 17 | do_install_append() { | ||
| 18 | install -d ${D}/${sysconfdir}/init.d | ||
| 19 | install -m 644 ${WORKDIR}/ntp.conf ${D}/${sysconfdir} | ||
| 20 | install -m 755 ${WORKDIR}/ntpd ${D}/${sysconfdir}/init.d | ||
| 21 | install -d ${D}/${sysconfdir}/network/if-up.d | ||
| 22 | install -m 755 ${WORKDIR}/ntpdate ${D}/${sysconfdir}/network/if-up.d | ||
| 23 | } | ||
| 24 | |||
| 25 | FILES_${PN}-bin = "${bindir}/ntp-wait ${bindir}/ntpdc ${bindir}/ntpq ${bindir}/ntptime ${bindir}/ntptrace" | ||
| 26 | FILES_${PN} = "${bindir}/ntpd ${sysconfdir}/ntp.conf ${sysconfdir}/init.d/ntpd" | ||
| 27 | FILES_${PN}-tickadj = "${bindir}/tickadj" | ||
| 28 | FILES_ntp-utils = "${bindir}/*" | ||
| 29 | FILES_ntpdate = "${bindir}/ntpdate ${sysconfdir}/network/if-up.d/ntpdate" | ||
| 30 | |||
| 31 | # ntp originally includes tickadj. It's split off for inclusion in small firmware images on platforms | ||
| 32 | # with wonky clocks (e.g. OpenSlug) | ||
| 33 | RDEPENDS_${PN} = "${PN}-tickadj" | ||
| 34 | |||
| 35 | pkg_postinst_ntpdate() { | ||
| 36 | if test "x$D" != "x"; then | ||
| 37 | exit 1 | ||
| 38 | else | ||
| 39 | if ! grep -q -s ntpdate /var/spool/cron/root; then | ||
| 40 | echo "adding crontab" | ||
| 41 | test -d /var/spool/cron || mkdir -p /var/spool/cron | ||
| 42 | echo "30 * * * * /usr/bin/ntpdate -b -s -u pool.ntp.org" >> /var/spool/cron/root | ||
| 43 | fi | ||
| 44 | fi | ||
| 45 | } | ||
| 46 | |||
