2013-06-05 17:53:30 -06:00
|
|
|
################################################################################
|
2013-05-07 01:16:19 -06:00
|
|
|
#
|
|
|
|
# chrony
|
|
|
|
#
|
2013-06-05 17:53:30 -06:00
|
|
|
################################################################################
|
2013-05-07 01:16:19 -06:00
|
|
|
|
2021-01-02 09:56:55 -07:00
|
|
|
CHRONY_VERSION = 4.0
|
2014-07-31 02:46:58 -06:00
|
|
|
CHRONY_SITE = http://download.tuxfamily.org/chrony
|
2017-03-30 07:43:32 -06:00
|
|
|
CHRONY_LICENSE = GPL-2.0
|
2013-05-07 01:16:19 -06:00
|
|
|
CHRONY_LICENSE_FILES = COPYING
|
2021-01-02 09:56:55 -07:00
|
|
|
CHRONY_DEPENDENCIES = host-pkgconf
|
2013-05-07 01:16:19 -06:00
|
|
|
|
2015-11-18 14:36:35 -07:00
|
|
|
CHRONY_CONF_OPTS = \
|
|
|
|
--host-system=Linux \
|
|
|
|
--host-machine=$(BR2_ARCH) \
|
|
|
|
--prefix=/usr \
|
2019-05-29 17:18:06 -06:00
|
|
|
--without-tomcrypt \
|
|
|
|
$(if $(BR2_PACKAGE_CHRONY_DEBUG_LOGGING),--enable-debug,--disable-debug)
|
2013-05-07 01:16:19 -06:00
|
|
|
|
2016-02-21 07:48:41 -07:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBCAP),y)
|
|
|
|
CHRONY_DEPENDENCIES += libcap
|
|
|
|
else
|
|
|
|
CHRONY_CONF_OPTS += --without-libcap
|
|
|
|
endif
|
|
|
|
|
2013-05-07 01:16:19 -06:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBNSS),y)
|
2021-01-02 09:56:55 -07:00
|
|
|
CHRONY_DEPENDENCIES += libnss
|
2013-05-07 01:16:19 -06:00
|
|
|
else
|
2014-09-27 13:32:44 -06:00
|
|
|
CHRONY_CONF_OPTS += --without-nss
|
2013-05-07 01:16:19 -06:00
|
|
|
endif
|
|
|
|
|
2017-09-15 08:24:37 -06:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBSECCOMP),y)
|
|
|
|
CHRONY_CONF_OPTS += --enable-scfilter
|
|
|
|
CHRONY_DEPENDENCIES += libseccomp
|
|
|
|
else
|
|
|
|
CHRONY_CONF_OPTS += --without-seccomp
|
|
|
|
endif
|
|
|
|
|
2019-11-13 08:17:14 -07:00
|
|
|
ifeq ($(BR2_PACKAGE_LIBEDIT),y)
|
|
|
|
CHRONY_DEPENDENCIES += libedit
|
2013-05-07 01:16:19 -06:00
|
|
|
else
|
2019-11-13 08:17:14 -07:00
|
|
|
CHRONY_CONF_OPTS += --without-editline --disable-readline
|
2013-05-07 01:16:19 -06:00
|
|
|
endif
|
|
|
|
|
2016-11-18 13:26:31 -07: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
|
|
|
|
|
2021-01-02 09:56:55 -07:00
|
|
|
ifeq ($(BR2_PACKAGE_GNUTLS),y)
|
|
|
|
CHRONY_DEPENDENCIES += gnutls
|
|
|
|
else
|
|
|
|
CHRONY_CONF_OPTS += --without-gnutls
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_NETTLE),y)
|
|
|
|
CHRONY_DEPENDENCIES += nettle
|
|
|
|
else
|
|
|
|
CHRONY_CONF_OPTS += --without-nettle
|
|
|
|
endif
|
|
|
|
|
2013-05-07 01:16:19 -06:00
|
|
|
define CHRONY_CONFIGURE_CMDS
|
2014-09-27 13:32:44 -06:00
|
|
|
cd $(@D) && $(TARGET_CONFIGURE_OPTS) ./configure $(CHRONY_CONF_OPTS)
|
2013-05-07 01:16:19 -06: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 10:02:46 -06:00
|
|
|
define CHRONY_INSTALL_INIT_SYSV
|
|
|
|
$(INSTALL) -D -m 755 package/chrony/S49chrony $(TARGET_DIR)/etc/init.d/S49chrony
|
|
|
|
endef
|
|
|
|
|
2015-05-23 04:02:24 -06: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 01:16:19 -06:00
|
|
|
$(eval $(generic-package))
|