package: add host-faketime
PATCH 1/1 package: add host-faketime
For use by packages or post-build/image scripts to fake the current time for obnoxious programs that insists on adding a timestamp.
Signed-off-by Peter Korsgaard <[email protected]>
--- package/Config.in.host | 1 + package/faketime/Config.in.host | 7 +++++++ package/faketime/faketime.mk | 20 ++++++++++++++++++++ 3 files changed, 28 insertions(+) create mode 100644 package/faketime/Config.in.host create mode 100644 package/faketime/faketime.mk
package/Config.in.host +1 -0
@@ -7,6 +7,7 @@ menu "Host utilities" source "package/dosfstools/Config.in.host" source "package/e2fsprogs/Config.in.host" source "package/e2tools/Config.in.host" + source "package/faketime/Config.in.host" source "package/genext2fs/Config.in.host" source "package/genimage/Config.in.host" source "package/genpart/Config.in.host"
package/faketime/Config.in.host new file +7 -0
@@ -0,0 +1,7 @@ +config BR2_PACKAGE_HOST_FAKETIME + bool "host faketime" + help + Faketime reports faked system time to programs without + having to change the system-wide time. + + https://github.com/wolfcw/libfaketime
package/faketime/faketime.mk new file +20 -0
@@ -0,0 +1,20 @@ +################################################################################ +# +# libfaketime +# +################################################################################ + +FAKETIME_VERSION = v0.9.6 +FAKETIME_SITE = $(call github,wolfcw,libfaketime,$(FAKETIME_VERSION)) +FAKETIME_LICENSE = GPLv2 +FAKETIME_LICENSE_FILES = COPYING + +define HOST_FAKETIME_BUILD_CMDS + $(HOST_CONFIGURE_OPTS) $(MAKE) -C $(@D) PREFIX=$(HOST_DIR)/usr +endef + +define HOST_FAKETIME_INSTALL_CMDS + $(HOST_CONFIGURE_OPTS) $(MAKE) -C $(@D) PREFIX=$(HOST_DIR)/usr install +endef + +$(eval $(host-generic-package))
Signature · 1 line
2.1.4
PATCH 1/1 package: add host-faketime
Dear Peter Korsgaard,
Quoted 11 lines · Peter Korsgaard
For use by packages or post-build/image scripts to fake the current time for obnoxious programs that insists on adding a timestamp.
Signed-off-by Peter Korsgaard <[email protected]>--- package/Config.in.host | 1 + package/faketime/Config.in.host | 7 +++++++ package/faketime/faketime.mk | 20 ++++++++++++++++++++ 3 files changed, 28 insertions(+) create mode 100644 package/faketime/Config.in.host create mode 100644 package/faketime/faketime.mk
Reviewed-by Thomas Petazzoni <[email protected]>
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH 1/1 package: add host-faketime
In reply to Peter KorsgaardQuoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Peter" == Peter Korsgaard <[email protected]> writes:
For use by packages or post-build/image scripts to fake the current time for obnoxious programs that insists on adding a timestamp.
Signed-off-by Peter Korsgaard <[email protected]>
Committed to next, thanks.
Signature · 2 lines
Venlig hilsen, Peter Korsgaard