update buildroot to 2017.02.11

This commit is contained in:
jbnadal
2018-05-22 15:35:47 +02:00
parent 4bf1f5e091
commit a3c10bd762
9257 changed files with 433426 additions and 1701 deletions

View File

@@ -0,0 +1,17 @@
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.
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

View File

@@ -0,0 +1,25 @@
#!/bin/sh
[ -x /usr/sbin/ntpd ] || exit 0
[ -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

View File

@@ -0,0 +1,11 @@
[Unit]
Description=OpenNTP Daemon
After=network.target
Conflicts=systemd-timesyncd.service
[Service]
Type=simple
ExecStart=/usr/sbin/ntpd -s -d
[Install]
WantedBy=multi-user.target

View File

@@ -0,0 +1,2 @@
# From http://www.openntpd.org/txt/release-6.0p1.txt
sha256 b1ab80094788912adb12b33cb1f251cc58db39294c1b5c6376972f5f7ba577e8 openntpd-6.0p1.tar.gz

View File

@@ -0,0 +1,35 @@
################################################################################
#
# openntpd
#
################################################################################
OPENNTPD_VERSION = 6.0p1
OPENNTPD_SITE = http://ftp.openbsd.org/pub/OpenBSD/OpenNTPD
OPENNTPD_LICENSE = MIT-like, BSD-2c, BSD-3c
OPENNTPD_LICENSE_FILES = COPYING
# Ships a beta libtool version hence our patch doesn't apply.
OPENNTPD_AUTORECONF = YES
# 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
mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
ln -fs ../../../../usr/lib/systemd/system/ntpd.service \
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/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))