summaryrefslogtreecommitdiffstats
path: root/meta-oe
diff options
context:
space:
mode:
authorKoen Kooi <koen@dominion.thruhere.net>2011-06-17 12:51:16 +0200
committerKoen Kooi <koen@dominion.thruhere.net>2011-06-17 12:53:21 +0200
commit90bd2e80a7e8a5279831b95b04b9c45733328b71 (patch)
treebcf71779a7ec75a17a6380b33899027cdc4b6465 /meta-oe
parent059bd1cc7b1488ec88efcdfa44a2fa9c14800b6c (diff)
downloadmeta-openembedded-90bd2e80a7e8a5279831b95b04b9c45733328b71.tar.gz
ntpd 4.2.6p3: make default configfile actually work
also remove machine overrides
Diffstat (limited to 'meta-oe')
-rw-r--r--meta-oe/recipes-support/ntp/files/hipox/ntp.conf13
-rwxr-xr-xmeta-oe/recipes-support/ntp/files/hipox/ntpd62
-rw-r--r--meta-oe/recipes-support/ntp/files/ntp.conf2
-rw-r--r--meta-oe/recipes-support/ntp/ntp_4.2.6p3.bb2
4 files changed, 2 insertions, 77 deletions
diff --git a/meta-oe/recipes-support/ntp/files/hipox/ntp.conf b/meta-oe/recipes-support/ntp/files/hipox/ntp.conf
deleted file mode 100644
index 57e585c175..0000000000
--- a/meta-oe/recipes-support/ntp/files/hipox/ntp.conf
+++ /dev/null
@@ -1,13 +0,0 @@
1# This is the most basic ntp configuration file
2# The driftfile must remain in a place specific to this
3# machine - it records the machine specific clock error
4driftfile /etc/ntp.drift
5# This obtains a random server which will be close
6# (in IP terms) to the machine. Add other servers
7# as required, or change this.
8#server pool.ntp.org
9# Using local hardware clock as fallback
10server 127.127.1.0
11fudge 127.127.1.0 stratum 14
12# Defining a default security setting
13restrict default nomodify nopeer
diff --git a/meta-oe/recipes-support/ntp/files/hipox/ntpd b/meta-oe/recipes-support/ntp/files/hipox/ntpd
deleted file mode 100755
index 7d2cd34cdf..0000000000
--- a/meta-oe/recipes-support/ntp/files/hipox/ntpd
+++ /dev/null
@@ -1,62 +0,0 @@
1#! /bin/sh
2#
3# ntpd init.d script for ntpdc from ntp.isc.org
4test -x /usr/bin/ntpd -a -r /etc/ntp.conf || exit 0
5# rcS contains TICKADJ
6test -r /etc/default/rcS && . /etc/default/rcS
7
8# Functions to do individual actions
9settick(){
10 # If TICKADJ is set we *must* adjust it before we start, because the
11 # driftfile relies on the correct setting
12 test -n "$TICKADJ" -a -x /usr/bin/tickadj && {
13 echo -n "Setting tick to $TICKADJ: "
14 /usr/bin/tickadj "$TICKADJ"
15 echo "done"
16 }
17}
18startdaemon(){
19 # The -g option allows ntpd to step the time to correct it just
20 # once. The daemon will exit if the clock drifts too much after
21 # this. If ntpd seems to disappear after a while assume TICKADJ
22 # above is set to a totally incorrect value.
23 echo -n "Starting ntpd: "
24 start-stop-daemon --start -x /usr/bin/ntpd -- -p /var/run/ntp.pid "$@"
25 echo "done"
26}
27stopdaemon(){
28 echo -n "Stopping ntpd: "
29 start-stop-daemon --stop -p /var/run/ntp.pid
30 echo "done"
31}
32
33case "$1" in
34 start)
35 settick
36 startdaemon -g -x
37 ;;
38 stop)
39 stopdaemon
40 ;;
41 force-reload)
42 stopdaemon
43 settick
44 startdaemon -g -x
45 ;;
46 restart)
47 # Don't reset the tick here
48 stopdaemon
49 startdaemon -g -x
50 ;;
51 reload)
52 # Must do this by hand, but don't do -g
53 stopdaemon
54 startdaemon -x
55 ;;
56 *)
57 echo "Usage: ntpd { start | stop | restart | reload }" >&2
58 exit 1
59 ;;
60esac
61
62exit 0
diff --git a/meta-oe/recipes-support/ntp/files/ntp.conf b/meta-oe/recipes-support/ntp/files/ntp.conf
index 02a44b0d01..5964828708 100644
--- a/meta-oe/recipes-support/ntp/files/ntp.conf
+++ b/meta-oe/recipes-support/ntp/files/ntp.conf
@@ -10,4 +10,4 @@ server pool.ntp.org
10server 127.127.1.0 10server 127.127.1.0
11fudge 127.127.1.0 stratum 14 11fudge 127.127.1.0 stratum 14
12# Defining a default security setting 12# Defining a default security setting
13restrict default nomodify nopeer 13restrict default
diff --git a/meta-oe/recipes-support/ntp/ntp_4.2.6p3.bb b/meta-oe/recipes-support/ntp/ntp_4.2.6p3.bb
index f64f6f6d92..590eed15a8 100644
--- a/meta-oe/recipes-support/ntp/ntp_4.2.6p3.bb
+++ b/meta-oe/recipes-support/ntp/ntp_4.2.6p3.bb
@@ -1,6 +1,6 @@
1require ntp.inc 1require ntp.inc
2 2
3PR = "r1" 3PR = "r2"
4 4
5SRC_URI = "http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/${P}.tar.gz \ 5SRC_URI = "http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/${P}.tar.gz \
6 file://tickadj.c.patch \ 6 file://tickadj.c.patch \