"Fossies" - the Fresh Open Source Software Archive

Member "buildroot-2021.05/package/chrony/chrony.mk" (6 Jun 2021, 2040 Bytes) of package /linux/privat/buildroot-2021.05.tar.bz2:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Make source code syntax highlighting (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes reports for "chrony.mk": 2021.05-rc3_vs_2021.05 or 2021.02.2_vs_2021.05.

    1 ################################################################################
    2 #
    3 # chrony
    4 #
    5 ################################################################################
    6 
    7 CHRONY_VERSION = 4.0
    8 CHRONY_SITE = http://download.tuxfamily.org/chrony
    9 CHRONY_LICENSE = GPL-2.0
   10 CHRONY_LICENSE_FILES = COPYING
   11 CHRONY_CPE_ID_VENDOR = tuxfamily
   12 CHRONY_DEPENDENCIES = host-pkgconf
   13 
   14 CHRONY_CONF_OPTS = \
   15     --host-system=Linux \
   16     --host-machine=$(BR2_ARCH) \
   17     --prefix=/usr \
   18     --without-tomcrypt \
   19     $(if $(BR2_PACKAGE_CHRONY_DEBUG_LOGGING),--enable-debug,--disable-debug)
   20 
   21 ifeq ($(BR2_PACKAGE_LIBCAP),y)
   22 CHRONY_DEPENDENCIES += libcap
   23 else
   24 CHRONY_CONF_OPTS += --without-libcap
   25 endif
   26 
   27 ifeq ($(BR2_PACKAGE_LIBNSS),y)
   28 CHRONY_DEPENDENCIES += libnss
   29 else
   30 CHRONY_CONF_OPTS += --without-nss
   31 endif
   32 
   33 ifeq ($(BR2_PACKAGE_LIBSECCOMP),y)
   34 CHRONY_CONF_OPTS += --enable-scfilter
   35 CHRONY_DEPENDENCIES += libseccomp
   36 else
   37 CHRONY_CONF_OPTS += --without-seccomp
   38 endif
   39 
   40 ifeq ($(BR2_PACKAGE_LIBEDIT),y)
   41 CHRONY_DEPENDENCIES += libedit
   42 else
   43 CHRONY_CONF_OPTS += --without-editline --disable-readline
   44 endif
   45 
   46 # If pps-tools is available, build it before so the package can use it
   47 # (HAVE_SYS_TIMEPPS_H).
   48 ifeq ($(BR2_PACKAGE_PPS_TOOLS),y)
   49 CHRONY_DEPENDENCIES += pps-tools
   50 endif
   51 
   52 ifeq ($(BR2_PACKAGE_GNUTLS),y)
   53 CHRONY_DEPENDENCIES += gnutls
   54 else
   55 CHRONY_CONF_OPTS += --without-gnutls
   56 endif
   57 
   58 ifeq ($(BR2_PACKAGE_NETTLE),y)
   59 CHRONY_DEPENDENCIES += nettle
   60 else
   61 CHRONY_CONF_OPTS += --without-nettle
   62 endif
   63 
   64 define CHRONY_CONFIGURE_CMDS
   65     cd $(@D) && $(TARGET_CONFIGURE_OPTS) ./configure $(CHRONY_CONF_OPTS)
   66 endef
   67 
   68 define CHRONY_BUILD_CMDS
   69     $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
   70 endef
   71 
   72 define CHRONY_INSTALL_TARGET_CMDS
   73     $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR="$(TARGET_DIR)" install
   74 endef
   75 
   76 define CHRONY_INSTALL_INIT_SYSV
   77     $(INSTALL) -D -m 755 package/chrony/S49chrony $(TARGET_DIR)/etc/init.d/S49chrony
   78 endef
   79 
   80 define CHRONY_INSTALL_INIT_SYSTEMD
   81     $(INSTALL) -D -m 644 package/chrony/chrony.service \
   82         $(TARGET_DIR)/usr/lib/systemd/system/chrony.service
   83 endef
   84 
   85 $(eval $(generic-package))