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
|
|
|
|
2016-04-28 14:11:41 +02:00
|
|
|
CHRONY_VERSION = 2.3
|
2014-07-31 10:46:58 +02:00
|
|
|
CHRONY_SITE = http://download.tuxfamily.org/chrony
|
2013-05-07 09:16:19 +02:00
|
|
|
CHRONY_LICENSE = GPLv2
|
|
|
|
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
|
|
|
|
|
|
|
|
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))
|