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
|
|
|
|
2017-03-05 10:48:52 +01:00
|
|
|
CHRONY_VERSION = 3.1
|
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 \
|
|
|
|
--without-seccomp \
|
|
|
|
--without-tomcrypt
|
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
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_READLINE),y)
|
|
|
|
CHRONY_DEPENDENCIES += readline
|
|
|
|
else
|
2014-09-27 21:32:44 +02:00
|
|
|
CHRONY_CONF_OPTS += --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
|
|
|
|
mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
|
2015-07-13 21:06:30 +02:00
|
|
|
ln -sf ../../../../usr/lib/systemd/system/chrony.service \
|
2015-05-23 12:02:24 +02:00
|
|
|
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/chrony.service
|
|
|
|
endef
|
|
|
|
|
2013-05-07 09:16:19 +02:00
|
|
|
$(eval $(generic-package))
|