diff options
author | Paul Eggleton <paul.eggleton@linux.intel.com> | 2012-11-22 16:49:34 +0000 |
---|---|---|
committer | Joe MacDonald <joe.macdonald@windriver.com> | 2012-11-27 14:43:58 -0500 |
commit | 93f71dafeb7a8db2842acb7509e2bc2d01e7bf48 (patch) | |
tree | 700e9245ba9710a6ae0b4a3c796cd7017e281555 /meta-networking/recipes-support/ntp/files | |
parent | 11a6ce97f710fe6578a92edc5409b0aa315da79f (diff) | |
download | meta-openembedded-93f71dafeb7a8db2842acb7509e2bc2d01e7bf48.tar.gz |
ntp: cleanup recipes and fix SSL support
* Move common definitions to the inc file
* Drop override of do_configure which doesn't seem to be needed anymore
* Fold ntp-ssl into the ntp recipe as a PACKAGECONFIG option for those
who want it (default to off) and fix configure-time checks to detect
OpenSSL properly so that it gets enabled when selected
* Remove ntp-bin package and put its contents in currently empty
ntp-utils package (with migration path)
* Fix hardcoded paths in ntpd initscript
* Specify ntpd.conf as a configuration file for packaging purposes
* Rearrange so that packaging definitions are towards the end in the
expected order
* Delete unused "ntp" initscript file
* Add SUMMARY
* Update HOMEPAGE
This reapplies some of the changes from the original patch by
Morgan Little <morgan.little@windriver.com>.
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Diffstat (limited to 'meta-networking/recipes-support/ntp/files')
-rwxr-xr-x | meta-networking/recipes-support/ntp/files/ntp | 31 | ||||
-rw-r--r-- | meta-networking/recipes-support/ntp/files/openssl-check.patch | 59 |
2 files changed, 59 insertions, 31 deletions
diff --git a/meta-networking/recipes-support/ntp/files/ntp b/meta-networking/recipes-support/ntp/files/ntp deleted file mode 100755 index e91a52869..000000000 --- a/meta-networking/recipes-support/ntp/files/ntp +++ /dev/null | |||
@@ -1,31 +0,0 @@ | |||
1 | #! /bin/sh | ||
2 | |||
3 | FLAGS="defaults 23" | ||
4 | |||
5 | test -f /usr/bin/ntpd || exit 0 | ||
6 | |||
7 | case "$1" in | ||
8 | start) | ||
9 | echo -n "Starting NTP server: ntpd" | ||
10 | start-stop-daemon --start --quiet --exec /usr/bin/ntpd | ||
11 | echo "." | ||
12 | ;; | ||
13 | stop) | ||
14 | echo -n "Stopping NTP server: ntpd" | ||
15 | start-stop-daemon --stop --quiet --exec /usr/bin/ntpd | ||
16 | echo "." | ||
17 | ;; | ||
18 | restart|force-reload) | ||
19 | echo -n "Restarting NTP server: ntpd... " | ||
20 | start-stop-daemon --stop --quiet --exec /usr/bin/ntpd | ||
21 | sleep 2 | ||
22 | start-stop-daemon --start --quiet --exec /usr/bin/ntpd | ||
23 | echo "done." | ||
24 | ;; | ||
25 | *) | ||
26 | echo "Usage: /etc/init.d/ntp {start|stop|restart|force-reload}" | ||
27 | exit 1 | ||
28 | ;; | ||
29 | esac | ||
30 | |||
31 | exit 0 | ||
diff --git a/meta-networking/recipes-support/ntp/files/openssl-check.patch b/meta-networking/recipes-support/ntp/files/openssl-check.patch new file mode 100644 index 000000000..8b4a6733c --- /dev/null +++ b/meta-networking/recipes-support/ntp/files/openssl-check.patch | |||
@@ -0,0 +1,59 @@ | |||
1 | Hack OpenSSL check to work when libssl and libcrypto aren't in same dir | ||
2 | |||
3 | Upstream-Status: Inappropriate [config] | ||
4 | |||
5 | Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> | ||
6 | --- | ||
7 | configure | 4 ++-- | ||
8 | m4/ntp_openssl.m4 | 4 ++-- | ||
9 | sntp/configure | 4 ++-- | ||
10 | 3 files changed, 6 insertions(+), 6 deletions(-) | ||
11 | |||
12 | diff --git a/configure b/configure | ||
13 | index aae2c01..6a3c15e 100755 | ||
14 | --- a/configure | ||
15 | +++ b/configure | ||
16 | @@ -22868,8 +22868,8 @@ case "$ans" in | ||
17 | test -f $i/libcrypto.dylib -a -f $i/libssl.dylib && break | ||
18 | ;; | ||
19 | *) | ||
20 | - test -f $i/libcrypto.so -a -f $i/libssl.so && break | ||
21 | - test -f $i/libcrypto.a -a -f $i/libssl.a && break | ||
22 | + test -f $i/libssl.so && break | ||
23 | + test -f $i/libssl.a && break | ||
24 | ;; | ||
25 | esac | ||
26 | done | ||
27 | diff --git a/m4/ntp_openssl.m4 b/m4/ntp_openssl.m4 | ||
28 | index 7d9f477..67bdd55 100644 | ||
29 | --- a/m4/ntp_openssl.m4 | ||
30 | +++ b/m4/ntp_openssl.m4 | ||
31 | @@ -41,8 +41,8 @@ case "$ans" in | ||
32 | test -f $i/libcrypto.dylib -a -f $i/libssl.dylib && break | ||
33 | ;; | ||
34 | *) | ||
35 | - test -f $i/libcrypto.so -a -f $i/libssl.so && break | ||
36 | - test -f $i/libcrypto.a -a -f $i/libssl.a && break | ||
37 | + test -f $i/libssl.so && break | ||
38 | + test -f $i/libssl.a && break | ||
39 | ;; | ||
40 | esac | ||
41 | done | ||
42 | diff --git a/sntp/configure b/sntp/configure | ||
43 | index 7782c29..55e82d9 100755 | ||
44 | --- a/sntp/configure | ||
45 | +++ b/sntp/configure | ||
46 | @@ -14810,8 +14810,8 @@ case "$ans" in | ||
47 | test -f $i/libcrypto.dylib -a -f $i/libssl.dylib && break | ||
48 | ;; | ||
49 | *) | ||
50 | - test -f $i/libcrypto.so -a -f $i/libssl.so && break | ||
51 | - test -f $i/libcrypto.a -a -f $i/libssl.a && break | ||
52 | + test -f $i/libssl.so && break | ||
53 | + test -f $i/libssl.a && break | ||
54 | ;; | ||
55 | esac | ||
56 | done | ||
57 | -- | ||
58 | 1.7.1 | ||
59 | |||