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
|
|
|
|
2016-06-07 07:10:31 -06:00
|
|
|
CHRONY_VERSION = 2.4
|
2014-07-31 02:46:58 -06:00
|
|
|
CHRONY_SITE = http://download.tuxfamily.org/chrony
|
2013-05-07 01:16:19 -06:00
|
|
|
CHRONY_LICENSE = GPLv2
|
|
|
|
CHRONY_LICENSE_FILES = COPYING
|
|
|
|
|
2015-11-18 14:36:35 -07:00
|
|
|
CHRONY_CONF_OPTS = \
|
|
|
|
--host-system=Linux \
|
|
|
|
--host-machine=$(BR2_ARCH) \
|
|
|
|
--prefix=/usr \
|
|
|
|
--without-seccomp \
|
|
|
|
--without-tomcrypt
|
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)
|
|
|
|
CHRONY_DEPENDENCIES += host-pkgconf libnss
|
|
|
|
else
|
2014-09-27 13:32:44 -06:00
|
|
|
CHRONY_CONF_OPTS += --without-nss
|
2013-05-07 01:16:19 -06:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_READLINE),y)
|
|
|
|
CHRONY_DEPENDENCIES += readline
|
|
|
|
else
|
2014-09-27 13:32:44 -06:00
|
|
|
CHRONY_CONF_OPTS += --disable-readline
|
2013-05-07 01:16:19 -06:00
|
|
|
endif
|
|
|
|
|
|
|
|
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
|
|
|
|
mkdir -p $(TARGET_DIR)/etc/systemd/system/multi-user.target.wants
|
2015-07-13 13:06:30 -06:00
|
|
|
ln -sf ../../../../usr/lib/systemd/system/chrony.service \
|
2015-05-23 04:02:24 -06:00
|
|
|
$(TARGET_DIR)/etc/systemd/system/multi-user.target.wants/chrony.service
|
|
|
|
endef
|
|
|
|
|
2013-05-07 01:16:19 -06:00
|
|
|
$(eval $(generic-package))
|