1 ################################################################################
5 ################################################################################
8 CHRONY_SITE = http://download.tuxfamily.org/chrony
10 CHRONY_LICENSE_FILES = COPYING
12 CHRONY_CONF_OPTS = --host-system=Linux --host-machine=$(BR2_ARCH) --prefix=/usr
14 ifeq ($(BR2_PACKAGE_LIBNSS),y)
15 CHRONY_DEPENDENCIES += host-pkgconf libnss
17 CHRONY_CONF_OPTS += --without-nss
20 ifeq ($(BR2_PACKAGE_READLINE),y)
21 CHRONY_DEPENDENCIES += readline
23 CHRONY_CONF_OPTS += --disable-readline
26 # Ditch the doc build, needs makeinfo and we don't need them
27 define CHRONY_DISABLE_DOCS
28 $(SED) 's/chronyc chrony.txt/chronyc/' $(@D)/Makefile.in
30 CHRONY_POST_PATCH_HOOKS += CHRONY_DISABLE_DOCS
32 define CHRONY_CONFIGURE_CMDS
33 cd $(@D) && $(TARGET_CONFIGURE_OPTS) ./configure $(CHRONY_CONF_OPTS)
36 define CHRONY_BUILD_CMDS
37 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
40 define CHRONY_INSTALL_TARGET_CMDS
41 $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR="$(TARGET_DIR)" install
44 define CHRONY_INSTALL_INIT_SYSV
45 $(INSTALL) -D -m 755 package/chrony/S49chrony $(TARGET_DIR)/etc/init.d/S49chrony
48 $(eval $(generic-package))