summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOleksandr Kravchuk <open.source@oleksandr-kravchuk.com>2022-04-12 17:05:54 +0200
committerKhem Raj <raj.khem@gmail.com>2022-04-12 09:28:25 -0700
commit602eddeefc94be93610ba36dceff5a41a9524d80 (patch)
tree42543a6d0c45de74fd4023c57ff863620f8d7156
parentb420d9f2213c0c4aaf698fef5a4aa65f88c9d159 (diff)
downloadmeta-openembedded-602eddeefc94be93610ba36dceff5a41a9524d80.tar.gz
htpdate: update to 1.3.3
License-Update: formatting change - tabs replaced with spaces. Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com> Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r--meta-networking/recipes-support/htpdate/htpdate/0001-Make-environment-variables-assignments-to-be-weak.patch31
-rw-r--r--meta-networking/recipes-support/htpdate/htpdate/0001-Replace-ntp_adjtime-with-adjtimex.patch40
-rw-r--r--meta-networking/recipes-support/htpdate/htpdate_1.3.3.bb (renamed from meta-networking/recipes-support/htpdate/htpdate_1.2.2.bb)22
3 files changed, 7 insertions, 86 deletions
diff --git a/meta-networking/recipes-support/htpdate/htpdate/0001-Make-environment-variables-assignments-to-be-weak.patch b/meta-networking/recipes-support/htpdate/htpdate/0001-Make-environment-variables-assignments-to-be-weak.patch
deleted file mode 100644
index 0ee44c1621..0000000000
--- a/meta-networking/recipes-support/htpdate/htpdate/0001-Make-environment-variables-assignments-to-be-weak.patch
+++ /dev/null
@@ -1,31 +0,0 @@
1From 04603f52d793f964653e6a985944400fe4fa87ee Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Wed, 13 Jun 2018 17:50:20 -0700
4Subject: [PATCH] Make environment variables assignments to be weak
5
6So that OE can override them for cross builds
7
8Signed-off-by: Khem Raj <raj.khem@gmail.com>
9---
10 Makefile | 6 +++---
11 1 file changed, 3 insertions(+), 3 deletions(-)
12
13diff --git a/Makefile b/Makefile
14index 1c80c09..884126c 100644
15--- a/Makefile
16+++ b/Makefile
17@@ -2,11 +2,11 @@ prefix = $(DESTDIR)/usr
18 bindir = ${prefix}/bin
19 mandir = ${prefix}/share/man
20
21-CC = gcc
22+CC ?= gcc
23 CFLAGS += -Wall -std=c99 -pedantic -O2
24
25-INSTALL = /usr/bin/install -c
26-STRIP = /usr/bin/strip -s
27+INSTALL ?= /usr/bin/install -c
28+STRIP ?= /usr/bin/strip -s
29
30 all: htpdate
31
diff --git a/meta-networking/recipes-support/htpdate/htpdate/0001-Replace-ntp_adjtime-with-adjtimex.patch b/meta-networking/recipes-support/htpdate/htpdate/0001-Replace-ntp_adjtime-with-adjtimex.patch
deleted file mode 100644
index cca8c6c364..0000000000
--- a/meta-networking/recipes-support/htpdate/htpdate/0001-Replace-ntp_adjtime-with-adjtimex.patch
+++ /dev/null
@@ -1,40 +0,0 @@
1From 75646a2d2df14fdbc4a01e222a779afac94861d1 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Thu, 14 Jun 2018 20:11:08 -0700
4Subject: [PATCH] Replace ntp_adjtime with adjtimex.
5
6ntp_adjtime in glibc is an alias to adjtimex and
7musl does not provide ntp_adjtime at all
8
9Signed-off-by: Khem Raj <raj.khem@gmail.com>
10---
11Upstream-Status: Pending
12
13 htpdate.c | 4 ++--
14 1 file changed, 2 insertions(+), 2 deletions(-)
15
16diff --git a/htpdate.c b/htpdate.c
17index 4171efe..ff0bf8d 100644
18--- a/htpdate.c
19+++ b/htpdate.c
20@@ -391,7 +391,7 @@ static int htpdate_adjtimex( double drift ) {
21
22 /* Read current kernel frequency */
23 tmx.modes = 0;
24- ntp_adjtime(&tmx);
25+ adjtimex(&tmx);
26
27 /* Calculate new frequency */
28 freq = (long)(65536e6 * drift);
29@@ -406,7 +406,7 @@ static int htpdate_adjtimex( double drift ) {
30
31 /* Become root */
32 swuid(0);
33- return( ntp_adjtime(&tmx) );
34+ return( adjtimex(&tmx) );
35
36 }
37
38--
392.17.1
40
diff --git a/meta-networking/recipes-support/htpdate/htpdate_1.2.2.bb b/meta-networking/recipes-support/htpdate/htpdate_1.3.3.bb
index 156ea3c59b..d0cc414a64 100644
--- a/meta-networking/recipes-support/htpdate/htpdate_1.2.2.bb
+++ b/meta-networking/recipes-support/htpdate/htpdate_1.3.3.bb
@@ -1,8 +1,4 @@
1# Copyright (C) 2018 Khem Raj <raj.khem@gmail.com>
2# Released under the MIT license (see COPYING.MIT for the terms)
3
4SUMMARY = "HTTP based time synchronization tool" 1SUMMARY = "HTTP based time synchronization tool"
5
6DESCRIPTION = "The HTTP Time Protocol (HTP) is used to synchronize a computer's time with\ 2DESCRIPTION = "The HTTP Time Protocol (HTP) is used to synchronize a computer's time with\
7 web servers as reference time source. This program can be used instead\ 3 web servers as reference time source. This program can be used instead\
8 ntpdate or similar, in networks that has a firewall blocking the NTP port.\ 4 ntpdate or similar, in networks that has a firewall blocking the NTP port.\
@@ -12,18 +8,15 @@ DESCRIPTION = "The HTTP Time Protocol (HTP) is used to synchronize a computer's
12 Htpdate works through proxy servers. Accuracy of htpdate will be usually\ 8 Htpdate works through proxy servers. Accuracy of htpdate will be usually\
13 within 0.5 seconds (better with multiple servers).\ 9 within 0.5 seconds (better with multiple servers).\
14" 10"
15 11HOMEPAGE = "https://github.com/twekkel/htpdate"
16HOMEPAGE = "http://www.vervest.org/htp/" 12BUGTRACKER = "https://github.com/twekkel/htpdate/issues"
17
18LICENSE = "GPL-2.0-or-later" 13LICENSE = "GPL-2.0-or-later"
19LIC_FILES_CHKSUM = "file://htpdate.c;beginline=26;endline=30;md5=d7018a4d2c5a6eab392709a05e5e168a" 14LIC_FILES_CHKSUM = "file://htpdate.c;beginline=26;endline=30;md5=2b6cdb94bd5349646d7e33f9f501eef7"
15
16SRC_URI = "http://www.vervest.org/htp/archive/c/htpdate-${PV}.tar.gz"
17SRC_URI[sha256sum] = "74f34b013eba6f99369819fa4b3d48e9ab5e531ad04f6af59cc04e8777c76ed7"
20 18
21SRC_URI = "http://www.vervest.org/htp/archive/c/htpdate-${PV}.tar.xz \ 19TARGET_CC_ARCH += "${LDFLAGS}"
22 file://0001-Make-environment-variables-assignments-to-be-weak.patch \
23 file://0001-Replace-ntp_adjtime-with-adjtimex.patch \
24 "
25SRC_URI[md5sum] = "aad8c33933648532ac8716c809b15be1"
26SRC_URI[sha256sum] = "5f1f959877852abb3153fa407e8532161a7abe916aa635796ef93f8e4119f955"
27 20
28do_configure () { 21do_configure () {
29 : 22 :
@@ -36,4 +29,3 @@ do_compile () {
36do_install () { 29do_install () {
37 oe_runmake install 'INSTALL=install' 'STRIP=echo' 'DESTDIR=${D}' 30 oe_runmake install 'INSTALL=install' 'STRIP=echo' 'DESTDIR=${D}'
38} 31}
39