mirror of
https://github.com/MiyooCFW/buildroot.git
synced 2025-09-27 22:24:19 +03:00
bump version to 2022.02.9
add miyoo_defconfig
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
From 4ba90fedd553c3b06c925fb6ff5245a5dcabace9 Mon Sep 17 00:00:00 2001
|
||||
From: Eddy Vervest <eddy@vervest.org>
|
||||
Date: Sat, 29 Jan 2022 10:58:13 +0100
|
||||
Subject: [PATCH] Allow SSL_LIBS to be configured from environment
|
||||
|
||||
[Retrieved from:
|
||||
https://github.com/twekkel/htpdate/commit/4ba90fedd553c3b06c925fb6ff5245a5dcabace9]
|
||||
Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
|
||||
---
|
||||
Makefile | 7 ++++---
|
||||
1 file changed, 4 insertions(+), 3 deletions(-)
|
||||
|
||||
diff --git a/Makefile b/Makefile
|
||||
index 4796efa..cf077e6 100644
|
||||
--- a/Makefile
|
||||
+++ b/Makefile
|
||||
@@ -2,8 +2,9 @@ prefix = $(DESTDIR)/usr
|
||||
bindir = ${prefix}/sbin
|
||||
mandir = ${prefix}/share/man
|
||||
|
||||
-CC ?= gcc
|
||||
-CFLAGS += -Wall -std=c11 -pedantic -O2
|
||||
+CC ?= gcc
|
||||
+CFLAGS += -Wall -std=c11 -pedantic -O2
|
||||
+SSL_LIBS ?= -lssl
|
||||
|
||||
INSTALL ?= install -c
|
||||
STRIP ?= strip -s
|
||||
@@ -14,7 +15,7 @@ htpdate: htpdate.c
|
||||
$(CC) $(CFLAGS) -o htpdate htpdate.c
|
||||
|
||||
https: htpdate.c
|
||||
- $(CC) $(CFLAGS) -DENABLE_HTTPS -o htpdate htpdate.c -lssl
|
||||
+ $(CC) $(CFLAGS) -DENABLE_HTTPS -o htpdate htpdate.c $(SSL_LIBS)
|
||||
|
||||
install: all
|
||||
$(STRIP) htpdate
|
||||
@@ -5,4 +5,4 @@ config BR2_PACKAGE_HTPDATE
|
||||
The HTTP Time Protocol (HTP) is used to synchronize a
|
||||
computer's time with web servers as reference time source.
|
||||
|
||||
https://github.com/angeloc/htpdate
|
||||
https://github.com/twekkel/htpdate
|
||||
|
||||
@@ -9,7 +9,7 @@ test -r "/etc/default/$DAEMON" && . "/etc/default/$DAEMON"
|
||||
start() {
|
||||
printf 'Starting %s: ' "$DAEMON"
|
||||
# shellcheck disable=SC2086 # we need the word splitting
|
||||
start-stop-daemon -S -q -x "/usr/bin/$DAEMON" \
|
||||
start-stop-daemon -S -q -x "/usr/sbin/$DAEMON" \
|
||||
-- -D -i "$PIDFILE" $HTPDATE_ARGS
|
||||
status=$?
|
||||
if [ "$status" -eq 0 ]; then
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
# Locally calculated:
|
||||
sha256 267003ca4d5d191122bfd8f85a0fd2d0b7d751f7b04f5fde4e8f51e570c98d0b htpdate-1.2.5.tar.gz
|
||||
sha256 b1c8d41afde943cacedab52cbb44ef7ffb7026e738b9c891009e89559fe31c20 LICENSE
|
||||
sha256 74f34b013eba6f99369819fa4b3d48e9ab5e531ad04f6af59cc04e8777c76ed7 htpdate-1.3.3.tar.gz
|
||||
sha256 7989949df09a0489434723c571541604cd3f2e0418c6a6aa9179bfaf8ec807cc LICENSE
|
||||
|
||||
@@ -4,13 +4,15 @@
|
||||
#
|
||||
################################################################################
|
||||
|
||||
HTPDATE_VERSION = 1.2.5
|
||||
HTPDATE_SITE = $(call github,angeloc,htpdate,v$(HTPDATE_VERSION))
|
||||
HTPDATE_VERSION = 1.3.3
|
||||
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 = ENABLE_HTTPS=1
|
||||
HTPDATE_BUILD_OPTS = \
|
||||
https \
|
||||
SSL_LIBS="`$(PKG_CONFIG_HOST_BINARY) --libs openssl`"
|
||||
HTPDATE_DEPENDENCIES += openssl host-pkgconf
|
||||
endif
|
||||
|
||||
@@ -19,7 +21,8 @@ define HTPDATE_BUILD_CMDS
|
||||
endef
|
||||
|
||||
define HTPDATE_INSTALL_TARGET_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR=$(TARGET_DIR) install
|
||||
$(TARGET_MAKE_ENV) $(TARGET_CONFIGURE_OPTS) $(MAKE) -C $(@D) \
|
||||
DESTDIR=$(TARGET_DIR) install
|
||||
endef
|
||||
|
||||
define HTPDATE_INSTALL_INIT_SYSV
|
||||
|
||||
@@ -7,7 +7,7 @@ Type=forking
|
||||
PIDFile=/run/htpdate.pid
|
||||
Environment=HTPDATE_ARGS="-a -s -t https://www.google.com"
|
||||
EnvironmentFile=-/etc/default/htpdate
|
||||
ExecStart=/usr/bin/htpdate -D -i /run/htpdate.pid $HTPDATE_ARGS
|
||||
ExecStart=/usr/sbin/htpdate -D -i /run/htpdate.pid $HTPDATE_ARGS
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
|
||||
Reference in New Issue
Block a user