2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2005-05-16 19:36:46 +02:00
|
|
|
#
|
2013-06-06 01:53:28 +02:00
|
|
|
# openntpd
|
2005-05-16 19:36:46 +02:00
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2005-05-16 19:36:46 +02:00
|
|
|
|
2017-11-08 14:04:58 +01:00
|
|
|
OPENNTPD_VERSION = 6.2p3
|
2015-01-09 00:06:37 +01:00
|
|
|
OPENNTPD_SITE = http://ftp.openbsd.org/pub/OpenBSD/OpenNTPD
|
2017-03-30 15:43:39 +02:00
|
|
|
OPENNTPD_LICENSE = MIT-like, BSD-2-Clause, BSD-3-Clause
|
2015-01-15 13:31:04 +01:00
|
|
|
OPENNTPD_LICENSE_FILES = COPYING
|
2017-11-08 14:04:58 +01:00
|
|
|
# Need to autoreconf for our libtool patch to apply properly
|
2016-06-07 01:08:15 +02:00
|
|
|
OPENNTPD_AUTORECONF = YES
|
2005-05-16 19:36:46 +02:00
|
|
|
|
2017-11-08 14:04:59 +01:00
|
|
|
# Openntpd searches for tls_config_set_ca_mem which is only available
|
|
|
|
# in LibreSSL
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBRESSL),y)
|
|
|
|
OPENNTPD_DEPENDENCIES += openssl
|
|
|
|
endif
|
|
|
|
|
2015-09-07 10:35:03 +02:00
|
|
|
# openntpd uses pthread functions for arc4random emulation but forgets
|
|
|
|
# to use -pthread
|
|
|
|
OPENNTPD_CONF_ENV += CFLAGS="$(TARGET_CFLAGS) -pthread"
|
|
|
|
|
2015-01-21 00:31:26 +01:00
|
|
|
define OPENNTPD_INSTALL_INIT_SYSTEMD
|
|
|
|
$(INSTALL) -D -m 0644 package/openntpd/ntpd.service \
|
2015-03-20 20:13:56 +01:00
|
|
|
$(TARGET_DIR)/usr/lib/systemd/system/ntpd.service
|
2015-01-21 00:31:26 +01:00
|
|
|
mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
|
2015-03-20 20:13:56 +01:00
|
|
|
ln -fs ../../../../usr/lib/systemd/system/ntpd.service \
|
2015-01-21 00:31:26 +01:00
|
|
|
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/ntpd.service
|
|
|
|
endef
|
|
|
|
|
2014-06-11 13:33:15 +02:00
|
|
|
define OPENNTPD_INSTALL_INIT_SYSV
|
|
|
|
$(INSTALL) -m 0755 -D package/openntpd/S49ntp \
|
|
|
|
$(TARGET_DIR)/etc/init.d/S49ntp
|
|
|
|
endef
|
|
|
|
|
|
|
|
define OPENNTPD_USERS
|
2014-11-03 00:39:51 +01:00
|
|
|
_ntp -1 _ntp -1 * - - - Network Time Protocol daemon
|
2014-06-11 13:33:15 +02:00
|
|
|
endef
|
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|