initial buildroot for linux 5.15
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
config BR2_PACKAGE_OPENNTPD
|
||||
bool "openntpd"
|
||||
depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
|
||||
depends on BR2_USE_MMU # fork ()
|
||||
depends on !BR2_PACKAGE_NTP # conflicting binaries
|
||||
help
|
||||
OpenNTPD is an easy to use implementation of the Network Time
|
||||
Protocol. It provides the ability to sync the local clock
|
||||
to remote NTP servers and can act as NTP server itself,
|
||||
redistributing the local clock. It just works.
|
||||
|
||||
Crypto support is available if the LibreSSL library is
|
||||
enabled.
|
||||
|
||||
http://www.openntpd.org/
|
||||
|
||||
comment "openntpd needs a toolchain w/ NPTL"
|
||||
depends on BR2_USE_MMU
|
||||
depends on !BR2_PACKAGE_NTP
|
||||
depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL
|
||||
@@ -0,0 +1,24 @@
|
||||
#!/bin/sh
|
||||
|
||||
[ -f /etc/ntpd.conf ] || exit 0
|
||||
|
||||
case "$1" in
|
||||
start)
|
||||
printf "Starting openntpd: "
|
||||
start-stop-daemon -S -x /usr/sbin/ntpd -- -s -p /run/ntpd.pid
|
||||
[ $? = 0 ] && echo "OK" || echo "FAIL"
|
||||
;;
|
||||
stop)
|
||||
printf "Stopping openntpd: "
|
||||
start-stop-daemon -K -q -p /run/ntpd.pid
|
||||
[ $? = 0 ] && echo "OK" || echo "FAIL"
|
||||
;;
|
||||
restart)
|
||||
"$0" stop
|
||||
sleep 1
|
||||
"$0" start
|
||||
;;
|
||||
*)
|
||||
echo "Usage: $0 {start|stop|restart}"
|
||||
;;
|
||||
esac
|
||||
@@ -0,0 +1,15 @@
|
||||
[Unit]
|
||||
Description=OpenNTP Daemon
|
||||
After=network.target
|
||||
Conflicts=systemd-timesyncd.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
# Turn off DNSSEC validation for hostname look-ups, since those need the
|
||||
# correct time to work, but we likely won't acquire that without NTP. Let's
|
||||
# break this chicken-and-egg cycle here.
|
||||
Environment=SYSTEMD_NSS_RESOLVE_VALIDATE=0
|
||||
ExecStart=/usr/sbin/ntpd -s -d
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -0,0 +1,5 @@
|
||||
# from http://ftp.openbsd.org/pub/OpenBSD/OpenNTPD/SHA256
|
||||
sha256 8582db838a399153d4a17f2a76518b638cc3020f58028575bf54127518f55a46 openntpd-6.8p1.tar.gz
|
||||
|
||||
# Locally computed
|
||||
sha256 6c1822ee950652c12bb3773849db18794f62c63452a70d018edf23e8cba71839 COPYING
|
||||
@@ -0,0 +1,40 @@
|
||||
################################################################################
|
||||
#
|
||||
# openntpd
|
||||
#
|
||||
################################################################################
|
||||
|
||||
OPENNTPD_VERSION = 6.8p1
|
||||
OPENNTPD_SITE = http://ftp.openbsd.org/pub/OpenBSD/OpenNTPD
|
||||
OPENNTPD_LICENSE = MIT-like, BSD-2-Clause, BSD-3-Clause
|
||||
OPENNTPD_LICENSE_FILES = COPYING
|
||||
OPENNTPD_CPE_ID_VENDOR = openntpd
|
||||
OPENNTPD_DEPENDENCIES = host-bison
|
||||
# Need to autoreconf for our libtool patch to apply properly
|
||||
OPENNTPD_AUTORECONF = YES
|
||||
|
||||
# Openntpd searches for tls_config_set_ca_mem which is only available
|
||||
# in LibreSSL
|
||||
ifeq ($(BR2_PACKAGE_LIBRESSL),y)
|
||||
OPENNTPD_DEPENDENCIES += openssl
|
||||
endif
|
||||
|
||||
# openntpd uses pthread functions for arc4random emulation but forgets
|
||||
# to use -pthread
|
||||
OPENNTPD_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -pthread"
|
||||
|
||||
define OPENNTPD_INSTALL_INIT_SYSTEMD
|
||||
$(INSTALL) -D -m 0644 package/openntpd/ntpd.service \
|
||||
$(TARGET_DIR)/usr/lib/systemd/system/ntpd.service
|
||||
endef
|
||||
|
||||
define OPENNTPD_INSTALL_INIT_SYSV
|
||||
$(INSTALL) -m 0755 -D package/openntpd/S49ntp \
|
||||
$(TARGET_DIR)/etc/init.d/S49ntp
|
||||
endef
|
||||
|
||||
define OPENNTPD_USERS
|
||||
_ntp -1 _ntp -1 * - - - Network Time Protocol daemon
|
||||
endef
|
||||
|
||||
$(eval $(autotools-package))
|
||||
Reference in New Issue
Block a user