The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / chrony / chrony.mk
1 ################################################################################
2 #
3 # chrony
4 #
5 ################################################################################
6
7 CHRONY_VERSION = 1.31
8 CHRONY_SITE = http://download.tuxfamily.org/chrony
9 CHRONY_LICENSE = GPLv2
10 CHRONY_LICENSE_FILES = COPYING
11
12 CHRONY_CONF_OPTS = --host-system=Linux --host-machine=$(BR2_ARCH) --prefix=/usr
13
14 ifeq ($(BR2_PACKAGE_LIBNSS),y)
15 CHRONY_DEPENDENCIES += host-pkgconf libnss
16 else
17 CHRONY_CONF_OPTS += --without-nss
18 endif
19
20 ifeq ($(BR2_PACKAGE_READLINE),y)
21 CHRONY_DEPENDENCIES += readline
22 else
23 CHRONY_CONF_OPTS += --disable-readline
24 endif
25
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
29 endef
30 CHRONY_POST_PATCH_HOOKS += CHRONY_DISABLE_DOCS
31
32 define CHRONY_CONFIGURE_CMDS
33         cd $(@D) && $(TARGET_CONFIGURE_OPTS) ./configure $(CHRONY_CONF_OPTS)
34 endef
35
36 define CHRONY_BUILD_CMDS
37         $(TARGET_MAKE_ENV) $(MAKE) -C $(@D)
38 endef
39
40 define CHRONY_INSTALL_TARGET_CMDS
41         $(TARGET_MAKE_ENV) $(MAKE) -C $(@D) DESTDIR="$(TARGET_DIR)" install
42 endef
43
44 define CHRONY_INSTALL_INIT_SYSV
45         $(INSTALL) -D -m 755 package/chrony/S49chrony $(TARGET_DIR)/etc/init.d/S49chrony
46 endef
47
48 $(eval $(generic-package))