# -*-makefile-*- # $Id: template 2680 2005-05-27 10:29:43Z rsc $ # # Copyright (C) 2005 by Bjoern Buerger # # See CREDITS for details about who has contributed to this project. # # For further information about the PTXdist project and license conditions # see the README file. # # # We provide this package # PACKAGES-$(PTXCONF_CHRONY) += chrony # # Paths and names # CHRONY_VERSION := 1.20 CHRONY := chrony-$(CHRONY_VERSION) CHRONY_SUFFIX := tar.gz CHRONY_URL := http://chrony.sunsite.dk/download/$(CHRONY).$(CHRONY_SUFFIX) CHRONY_SOURCE := $(SRCDIR)/$(CHRONY).$(CHRONY_SUFFIX) CHRONY_DIR := $(BUILDDIR)/$(CHRONY) # ---------------------------------------------------------------------------- # Get # ---------------------------------------------------------------------------- chrony_get: $(STATEDIR)/chrony.get $(STATEDIR)/chrony.get: $(chrony_get_deps_default) @$(call targetinfo, $@) @$(call touch, $@) $(CHRONY_SOURCE): @$(call targetinfo, $@) @$(call get, CHRONY) # ---------------------------------------------------------------------------- # Extract # ---------------------------------------------------------------------------- chrony_extract: $(STATEDIR)/chrony.extract $(STATEDIR)/chrony.extract: $(chrony_extract_deps_default) @$(call targetinfo, $@) @$(call clean, $(CHRONY_DIR)) @$(call extract, CHRONY) @$(call patchin, CHRONY) @$(call touch, $@) # ---------------------------------------------------------------------------- # Prepare # ---------------------------------------------------------------------------- chrony_prepare: $(STATEDIR)/chrony.prepare CHRONY_PATH := PATH=$(CROSS_PATH) CHRONY_ENV := $(CROSS_ENV) # # autoconf # CHRONY_AUTOCONF := \ $(CROSS_AUTOCONF_USR) $(STATEDIR)/chrony.prepare: $(chrony_prepare_deps_default) @$(call targetinfo, $@) @$(call clean, $(CHRONY_DIR)/config.cache) cd $(CHRONY_DIR) && \ $(CHRONY_PATH) $(CHRONY_ENV) \ sh configure $(CHRONY_AUTOCONF) @$(call touch, $@) # ---------------------------------------------------------------------------- # Compile # ---------------------------------------------------------------------------- chrony_compile: $(STATEDIR)/chrony.compile $(STATEDIR)/chrony.compile: $(chrony_compile_deps_default) @$(call targetinfo, $@) cd $(CHRONY_DIR) && $(CHRONY_PATH) make @$(call touch, $@) # ---------------------------------------------------------------------------- # Install # ---------------------------------------------------------------------------- chrony_install: $(STATEDIR)/chrony.install $(STATEDIR)/chrony.install: $(chrony_install_deps_default) @$(call targetinfo, $@) @$(call install, CHRONY) @$(call touch, $@) # ---------------------------------------------------------------------------- # Target-Install # ---------------------------------------------------------------------------- chrony_targetinstall: $(STATEDIR)/chrony.targetinstall $(STATEDIR)/chrony.targetinstall: $(chrony_targetinstall_deps_default) @$(call targetinfo, $@) @$(call install_init, chrony) @$(call install_fixup, chrony,PACKAGE,chrony) @$(call install_fixup, chrony,PRIORITY,optional) @$(call install_fixup, chrony,VERSION,$(CHRONY_VERSION)) @$(call install_fixup, chrony,SECTION,base) @$(call install_fixup, chrony,AUTHOR,"Robert Schwebel ") @$(call install_fixup, chrony,DEPENDS,) @$(call install_fixup, chrony,DESCRIPTION,missing) @$(call install_copy, chrony, 0, 0, 0755, $(CHRONY_DIR)/chronyd, /usr/sbin/chronyd) @$(call install_copy, chrony, 0, 0, 0755, $(CHRONY_DIR)/chronyc, /usr/bin/chronyc) @$(call install_finish, chrony) @$(call touch, $@) # ---------------------------------------------------------------------------- # Clean # ---------------------------------------------------------------------------- chrony_clean: rm -rf $(STATEDIR)/chrony.* rm -rf $(IMAGEDIR)/chrony_* rm -rf $(CHRONY_DIR) # vim: syntax=make