2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-05-07 09:16:19 +02:00
|
|
|
#
|
|
|
|
# chrony
|
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2013-05-07 09:16:19 +02:00
|
|
|
|
2019-09-14 11:32:26 +02:00
|
|
|
CHRONY_VERSION = 3.5
|
2014-07-31 10:46:58 +02:00
|
|
|
CHRONY_SITE = http://download.tuxfamily.org/chrony
|
2017-03-30 15:43:32 +02:00
|
|
|
CHRONY_LICENSE = GPL-2.0
|
2013-05-07 09:16:19 +02:00
|
|
|
CHRONY_LICENSE_FILES = COPYING
|
|
|
|
|
2015-11-18 22:36:35 +01:00
|
|
|
CHRONY_CONF_OPTS = \
|
|
|
|
--host-system=Linux \
|
|
|
|
--host-machine=$(BR2_ARCH) \
|
|
|
|
--prefix=/usr \
|
2019-11-13 16:17:14 +01:00
|
|
|
--without-readline \
|
2019-05-30 01:18:06 +02:00
|
|
|
--without-tomcrypt \
|
|
|
|
$(if $(BR2_PACKAGE_CHRONY_DEBUG_LOGGING),--enable-debug,--disable-debug)
|
2013-05-07 09:16:19 +02:00
|
|
|
|
2016-02-21 15:48:41 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBCAP),y)
|
|
|
|
CHRONY_DEPENDENCIES += libcap
|
|
|
|
else
|
|
|
|
CHRONY_CONF_OPTS += --without-libcap
|
|
|
|
endif
|
|
|
|
|
2013-05-07 09:16:19 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBNSS),y)
|
|
|
|
CHRONY_DEPENDENCIES += host-pkgconf libnss
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
CHRONY_CONF_OPTS += --without-nss
|
2013-05-07 09:16:19 +02:00
|
|
|
endif
|
|
|
|
|
2017-09-15 16:24:37 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBSECCOMP),y)
|
|
|
|
CHRONY_CONF_OPTS += --enable-scfilter
|
|
|
|
CHRONY_DEPENDENCIES += libseccomp
|
|
|
|
else
|
|
|
|
CHRONY_CONF_OPTS += --without-seccomp
|
|
|
|
endif
|
|
|
|
|
2019-11-13 16:17:14 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBEDIT),y)
|
|
|
|
CHRONY_DEPENDENCIES += libedit
|
2013-05-07 09:16:19 +02:00
|
|
|
else
|
2019-11-13 16:17:14 +01:00
|
|
|
CHRONY_CONF_OPTS += --without-editline --disable-readline
|
2013-05-07 09:16:19 +02:00
|
|
|
endif
|
|
|
|
|
2016-11-18 21:26:31 +01:00
|
|
|
# If pps-tools is available, build it before so the package can use it
|
|
|
|
# (HAVE_SYS_TIMEPPS_H).
|
|
|
|
ifeq ($(BR2_PACKAGE_PPS_TOOLS),y)
|
|
|
|
CHRONY_DEPENDENCIES += pps-tools
|
|
|
|
endif
|
|
|
|
|
2013-05-07 09:16:19 +02:00
|
|
|
define CHRONY_CONFIGURE_CMDS
|
2014-09-27 21:32:44 +02:00
|
|
|
cd $(@D) && $(TARGET_CONFIGURE_OPTS) ./configure $(CHRONY_CONF_OPTS)
|
2013-05-07 09:16:19 +02:00
|
|
|
endef
|
|
|
|
|
|
|
|
define CHRONY_BUILD_CMDS
|
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define CHRONY_INSTALL_TARGET_CMDS
|
|
|
|
$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR="$(TARGET_DIR)" install
|
|
|
|
endef
|
|
|
|
|
2014-08-12 18:02:46 +02:00
|
|
|
define CHRONY_INSTALL_INIT_SYSV
|
|
|
|
$(INSTALL) -D -m 755 package/chrony/S49chrony $(TARGET_DIR)/etc/init.d/S49chrony
|
|
|
|
endef
|
|
|
|
|
2015-05-23 12:02:24 +02:00
|
|
|
define CHRONY_INSTALL_INIT_SYSTEMD
|
|
|
|
$(INSTALL) -D -m 644 package/chrony/chrony.service \
|
|
|
|
$(TARGET_DIR)/usr/lib/systemd/system/chrony.service
|
|
|
|
endef
|
|
|
|
|
2013-05-07 09:16:19 +02:00
|
|
|
$(eval $(generic-package))
|