diff options
author | Andreas Pretzsch <apr@cn-eng.de> | 2017-11-27 03:20:21 +0100 |
---|---|---|
committer | Michael Olbrich <m.olbrich@pengutronix.de> | 2017-12-01 14:11:57 +0100 |
commit | 40e423d150eccb3504227ced091a81c09313721e (patch) | |
tree | e6966efeec7b415ae79c7433dec6a11728a98490 /rules/libfaketime.make | |
parent | 08be8a62c5d7425e4eff9d4a71a37cdf2fc6d490 (diff) | |
download | ptxdist-40e423d150eccb3504227ced091a81c09313721e.tar.gz ptxdist-40e423d150eccb3504227ced091a81c09313721e.tar.xz |
libfaketime: new package for libfaketime 0.9.7
libfaketime intercepts various system calls that programs use to
retrieve the current date and time. It then reports modified (faked)
dates and times (as specified by you, the user) to these programs.
This means you can modify the system time a program sees without
having to change the time system-wide.
libfaketime allows you to specify both absolute dates (e.g. 01/01/2004)
and relative dates (e.g., 10 days ago).
libfaketime might be used for various purposes, for example
- deterministic build processes
- debugging time-related issues, such as expired SSL certificates
- testing software for year-2038 compliance
libfaketime ships with a command line wrapper called "faketime" that
makes it easier to use, but does not expose all of libfaketime's
functionality. If your use case is not covered by the faketime command,
make sure to look in this documentation whether it can be achieved by
using libfaketime directly.
For more information, see https://github.com/wolfcw/libfaketime
Signed-off-by: Andreas Pretzsch <apr@cn-eng.de>
Signed-off-by: Michael Olbrich <m.olbrich@pengutronix.de>
Diffstat (limited to 'rules/libfaketime.make')
-rw-r--r-- | rules/libfaketime.make | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/rules/libfaketime.make b/rules/libfaketime.make new file mode 100644 index 000000000..373690477 --- /dev/null +++ b/rules/libfaketime.make @@ -0,0 +1,62 @@ +# -*-makefile-*- +# +# Copyright (C) 2017 by Andreas Pretzsch <apr@cn-eng.de> +# +# 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. +# + +PACKAGES-$(PTXCONF_LIBFAKETIME) += libfaketime + +LIBFAKETIME_VERSION := 0.9.7 +LIBFAKETIME_MD5 := 8617e2c6caf0977b3ce9a271f867302c +LIBFAKETIME := libfaketime-$(LIBFAKETIME_VERSION) +LIBFAKETIME_SUFFIX := tar.gz +LIBFAKETIME_URL := https://github.com/wolfcw/libfaketime/archive/v$(LIBFAKETIME_VERSION).$(LIBFAKETIME_SUFFIX) +LIBFAKETIME_SOURCE := $(SRCDIR)/$(LIBFAKETIME).$(LIBFAKETIME_SUFFIX) +LIBFAKETIME_DIR := $(BUILDDIR)/$(LIBFAKETIME) +LIBFAKETIME_LICENSE := GPL-2.0 + +# ---------------------------------------------------------------------------- +# Prepare +# ---------------------------------------------------------------------------- + +LIBFAKETIME_CONF_TOOL := NO + +# ---------------------------------------------------------------------------- +# Compile +# ---------------------------------------------------------------------------- + +LIBFAKETIME_MAKE_ENV := $(CROSS_ENV) +LIBFAKETIME_MAKE_OPT := PREFIX=/usr + +# ---------------------------------------------------------------------------- +# Install +# ---------------------------------------------------------------------------- + +LIBFAKETIME_INSTALL_OPT := PREFIX=/usr install + +# ---------------------------------------------------------------------------- +# Target-Install +# ---------------------------------------------------------------------------- + +$(STATEDIR)/libfaketime.targetinstall: + @$(call targetinfo) + + @$(call install_init, libfaketime) + @$(call install_fixup, libfaketime,PRIORITY,optional) + @$(call install_fixup, libfaketime,SECTION,base) + @$(call install_fixup, libfaketime,AUTHOR,"Andreas Pretzsch <apr@cn-eng.de>") + @$(call install_fixup, libfaketime,DESCRIPTION,missing) + + @$(call install_lib, libfaketime, 0, 0, 0644, faketime/libfaketime) + @$(call install_lib, libfaketime, 0, 0, 0644, faketime/libfaketimeMT) + @$(call install_copy, libfaketime, 0, 0, 0755, -, /usr/bin/faketime) + + @$(call install_finish, libfaketime) + + @$(call touch) + +# vim: syntax=make |