package/httpdate: new package
PATCH 1/2 package/httpdate: new package
httpdate synchronizes the system time using the Date header of HTTP and HTTPS servers, which is useful on networks where NTP is blocked but web access is permitted. It is the successor of htpdate, from the same
author: it delegates the network transport (HTTP, HTTPS, HTTP/2, proxies) to libcurl, and estimates the time from several servers.
Like the htpdate package, add a SysV init script and a systemd unit, running httpdate with the arguments of HTTPDATE_ARGS, that can be overridden in /etc/default/httpdate. As httpdate does not write a pidfile, it runs in the foreground (-F), and start-stop-daemon backgrounds it and writes the pidfile.
https://github.com/twekkel/httpdate
--- DEVELOPERS | 1 + package/Config.in | 1 + package/httpdate/Config.in | 11 +++++++ package/httpdate/S43httpdate | 55 +++++++++++++++++++++++++++++++ package/httpdate/httpdate.hash | 3 ++ package/httpdate/httpdate.mk | 33 +++++++++++++++++++ package/httpdate/httpdate.service | 12 +++++++ 7 files changed, 116 insertions(+) create mode 100644 package/httpdate/Config.in create mode 100644 package/httpdate/S43httpdate create mode 100644 package/httpdate/httpdate.hash create mode 100644 package/httpdate/httpdate.mk create mode 100644 package/httpdate/httpdate.service
DEVELOPERS +1 -0
@@ -234,6 +234,7 @@ F: package/fail2ban/ F: package/grep/ F: package/gtkiostream/ F: package/htpdate/ +F: package/httpdate/ F: package/i2c-tools/ F: package/jq/ F: package/libapparmor/
package/Config.in +1 -0
@@ -2509,6 +2509,7 @@ endif source "package/hostapd/Config.in" source "package/hplip/Config.in" source "package/htpdate/Config.in" + source "package/httpdate/Config.in" source "package/httping/Config.in" source "package/i2pd/Config.in" source "package/iana-assignments/Config.in"
package/httpdate/Config.in new file +11 -0
@@ -0,0 +1,11 @@ +config BR2_PACKAGE_HTTPDATE + bool "httpdate" + depends on BR2_USE_MMU # daemon() + select BR2_PACKAGE_LIBCURL + help + httpdate synchronizes the system time using the Date header + of HTTP and HTTPS servers, which is useful on networks where + NTP is blocked but web access is permitted. It is the + successor of htpdate. + + https://github.com/twekkel/httpdate
package/httpdate/S43httpdate new file +55 -0
55 lines not on this page · raw message
package/httpdate/httpdate.hash new file +3 -0
@@ -0,0 +1,3 @@ +# Locally calculated +sha256 c7a13e693de32e48fc374f36598390eece04e4c26f21b1e7d67cdc680d60236b httpdate-1.0.1.tar.gz +sha256 cb7177d68741cb08ed1fade01b9f9cc7d1c56c0e96f3f6ab86f5b455cf99e44f LICENSE
package/httpdate/httpdate.mk new file +33 -0
@@ -0,0 +1,33 @@ +################################################################################ +# +# httpdate +# +################################################################################ + +HTTPDATE_VERSION = 1.0.1 +HTTPDATE_SITE = $(call github,twekkel,httpdate,v$(HTTPDATE_VERSION)) +HTTPDATE_LICENSE = GPL-2.0+ +HTTPDATE_LICENSE_FILES = LICENSE +HTTPDATE_DEPENDENCIES = host-pkgconf libcurl + +define HTTPDATE_BUILD_CMDS + $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \ + LIBS="`$(PKG_CONFIG_HOST_BINARY) --libs libcurl` -lm" +endef + +define HTTPDATE_INSTALL_TARGET_CMDS + $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \ + DESTDIR=$(TARGET_DIR) PREFIX=/usr install +endef + +define HTTPDATE_INSTALL_INIT_SYSV + $(INSTALL) -D -m 0755 package/httpdate/S43httpdate \ + $(TARGET_DIR)/etc/init.d/S43httpdate +endef + +define HTTPDATE_INSTALL_INIT_SYSTEMD + $(INSTALL) -D -m 0644 package/httpdate/httpdate.service \ + $(TARGET_DIR)/usr/lib/systemd/system/httpdate.service +endef + +$(eval $(generic-package))
package/httpdate/httpdate.service new file +12 -0
@@ -0,0 +1,12 @@ +[Unit] +Description=httpdate daemon +After=network.target + +[Service] +Type=simple +Environment=HTTPDATE_ARGS="-s https://www.google.com" +EnvironmentFile=-/etc/default/httpdate +ExecStart=/usr/bin/httpdate -F $HTTPDATE_ARGS + +[Install] +WantedBy=multi-user.target
Signature · 6 lines
2.34.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
PATCH 2/2 package/htpdate: remove package
htpdate is in maintenance mode upstream: 2.1.x is its final release line, which only gets critical bug fixes, and its users and package maintainers are advised to migrate to its successor, httpdate, that delegates the network transport to libcurl.
Remove htpdate in favor of httpdate: its legacy option selects httpdate instead.
https://github.com/twekkel/htpdate
--- Config.in.legacy | 9 ++++++ DEVELOPERS | 1 - package/Config.in | 1 - package/htpdate/Config.in | 8 ----- package/htpdate/S43htpdate | 53 --------------------------------- package/htpdate/htpdate.hash | 3 -- package/htpdate/htpdate.mk | 38 ----------------------- package/htpdate/htpdate.service | 13 -------- 8 files changed, 9 insertions(+), 117 deletions(-) delete mode 100644 package/htpdate/Config.in delete mode 100644 package/htpdate/S43htpdate delete mode 100644 package/htpdate/htpdate.hash delete mode 100644 package/htpdate/htpdate.mk delete mode 100644 package/htpdate/htpdate.service
Config.in.legacy +9 -0
@@ -146,6 +146,15 @@ endif comment "Legacy options removed in 2026.11" +config BR2_PACKAGE_HTPDATE + bool "htpdate has been removed" + select BR2_LEGACY + select BR2_PACKAGE_HTTPDATE if BR2_USE_MMU + help + htpdate is in maintenance mode upstream, and its users are + advised to migrate to its successor, httpdate, which is + selected instead. + config BR2_PACKAGE_MESA3D_OPENCL bool "Mesa3D OpenCL support is now provided by RustiCL" select BR2_LEGACY
DEVELOPERS +0 -1
@@ -233,7 +233,6 @@ F: package/cutekeyboard/ F: package/fail2ban/ F: package/grep/ F: package/gtkiostream/ -F: package/htpdate/ F: package/httpdate/ F: package/i2c-tools/ F: package/jq/
package/Config.in +0 -1
@@ -2508,7 +2508,6 @@ endif source "package/haproxy/Config.in" source "package/hostapd/Config.in" source "package/hplip/Config.in" - source "package/htpdate/Config.in" source "package/httpdate/Config.in" source "package/httping/Config.in" source "package/i2pd/Config.in"
package/htpdate/Config.in deleted +0 -8
@@ -1,8 +0,0 @@ -config BR2_PACKAGE_HTPDATE - bool "htpdate" - depends on BR2_USE_MMU # fork() - help - The HTTP Time Protocol (HTP) is used to synchronize a - computer's time with web servers as reference time source. - - https://github.com/twekkel/htpdate
package/htpdate/S43htpdate deleted +0 -53
53 lines not on this page · raw message
package/htpdate/htpdate.hash deleted +0 -3
@@ -1,3 +0,0 @@ -# Locally calculated: -sha256 4c771fe3fc5c4ab5f9393dd501bdc51e4c067297cf304ad1e74e1965ac1c066f htpdate-2.0.1.tar.gz -sha256 74096c67e102bb6545b84487b5e7f18edd038fd5fc0199c8a0b25efb3c522f06 LICENSE
package/htpdate/htpdate.mk deleted +0 -38
@@ -1,38 +0,0 @@ -################################################################################ -# -# htpdate -# -################################################################################ - -HTPDATE_VERSION = 2.0.1 -HTPDATE_SITE = $(call github,twekkel,htpdate,v$(HTPDATE_VERSION)) -HTPDATE_LICENSE = GPL-2.0+ -HTPDATE_LICENSE_FILES = LICENSE - -ifeq ($(BR2_PACKAGE_OPENSSL),y) -HTPDATE_BUILD_OPTS = \ - https \ - SSL_LIBS="`$(PKG_CONFIG_HOST_BINARY) --libs openssl`" -HTPDATE_DEPENDENCIES += openssl host-pkgconf -endif - -define HTPDATE_BUILD_CMDS - $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) $(HTPDATE_BUILD_OPTS) -endef - -define HTPDATE_INSTALL_TARGET_CMDS - $(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \ - DESTDIR=$(TARGET_DIR) install -endef - -define HTPDATE_INSTALL_INIT_SYSV - $(INSTALL) -D -m 0755 package/htpdate/S43htpdate \ - $(TARGET_DIR)/etc/init.d/S43htpdate -endef - -define HTPDATE_INSTALL_INIT_SYSTEMD - $(INSTALL) -D -m 0644 package/htpdate/htpdate.service \ - $(TARGET_DIR)/usr/lib/systemd/system/htpdate.service -endef - -$(eval $(generic-package))
package/htpdate/htpdate.service deleted +0 -13
@@ -1,13 +0,0 @@ -[Unit] -Description=htpdate daemon -After=network.target - -[Service] -Type=forking -PIDFile=/run/htpdate.pid -Environment=HTPDATE_ARGS="-a -s -t https://www.google.com" -EnvironmentFile=-/etc/default/htpdate -ExecStart=/usr/sbin/htpdate -D -i /run/htpdate.pid $HTPDATE_ARGS - -[Install] -WantedBy=multi-user.target
Signature · 6 lines
2.34.1 _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Re: [Buildroot] [PATCH 2/2] package/htpdate: remove package
Config.in.legacy endif · line 152
Quoted 4 lines · Angelo Compagnucci
Config.in.legacy +4
-0+config BR2_PACKAGE_HTPDATE + bool "htpdate has been removed" + select BR2_LEGACY + select BR2_PACKAGE_HTTPDATE if BR2_USE_MMU
This "if BR2_USE_MMU" was not needed. BR2_PACKAGE_HTPDATE could anyway already only be selected if BR2_USE_MMU=y, so there is no difference here in terms of required options between BR2_PACKAGE_HTPDATE and BR2_PACKAGE_HTTPDATE.
Applied with this minor change. Thanks!
Thomas
Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot
Thomas Petazzoni via buildroot
AppliedQuoted 12 lines · Angelo Compagnucci
httpdate synchronizes the system time using the Date header of HTTP and HTTPS servers, which is useful on networks where NTP is blocked but web access is permitted. It is the successor of htpdate, from the same
author: it delegates the network transport (HTTP, HTTPS, HTTP/2, proxies) to libcurl, and estimates the time from several servers.Like the htpdate package, add a SysV init script and a systemd unit, running httpdate with the arguments of
HTTPDATE_ARGS, that can be overridden in/etc/default/httpdate. As httpdate does not write a pidfile, it runs in the foreground (-F), and start-stop-daemon backgrounds it and writes the pidfile.
Quoted 3 lines
https://github.com/twekkel/httpdate
Signed-off-by Angelo Compagnucci <[email protected]>
Applied to master, thanks!
Best regards,
Thomas Petazzoni
Signature · 7 lines
Thomas Petazzoni, co-owner and CEO, Bootlin Embedded Linux and Kernel engineering and training https://bootlin.com _______________________________________________ buildroot mailing list [email protected] https://lists.buildroot.org/mailman/listinfo/buildroot