summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Pashev <pashev.igor@gmail.com>2014-10-19 23:58:57 +0400
committerIgor Pashev <pashev.igor@gmail.com>2014-10-19 23:58:57 +0400
commit802c1d5e3e83d28ad56e6ebddfd270cf54309726 (patch)
tree17682a98e32d22444af8c70476bbfd84cbc6c0d0
parent841b782a4c95e9ab49d433d5ca5381409f357262 (diff)
downloadfaketime-ng-802c1d5e3e83d28ad56e6ebddfd270cf54309726.tar.gz
Removed waste
-rw-r--r--.gitignore9
-rw-r--r--Makefile34
-rw-r--r--man/Makefile14
-rw-r--r--man/Makefile.OSX15
-rw-r--r--packaging/Linux/Arch/PKGBUILD-32bit.txt25
-rw-r--r--packaging/Linux/Debian/avoid-spurious-lrt.patch30
-rw-r--r--packaging/Linux/Debian/control40
-rw-r--r--packaging/Linux/Debian/fix-infinite-recursion-on-real_clock_gettime.patch29
-rwxr-xr-xpackaging/Linux/Debian/libfaketime.install3
-rwxr-xr-xpackaging/Linux/Debian/rules17
-rw-r--r--packaging/Linux/Redhat/libfaketime-fix-infinite-recursion-on-real_clock_gettime.patch13
-rw-r--r--packaging/Linux/Redhat/libfaketime.spec.txt55
-rw-r--r--packaging/OSX/Fink/libfaketime.info54
-rw-r--r--packaging/OSX/Homebrew/libfaketime.rb22
-rw-r--r--packaging/OSX/MacPorts/Portfile45
-rw-r--r--packaging/OSX/MacPorts/patch-test-Makefile.OSX.diff12
-rw-r--r--packaging/OSX/README67
-rw-r--r--packaging/README14
-rw-r--r--src/Makefile114
-rw-r--r--src/Makefile.OSX81
-rw-r--r--test/Makefile31
-rw-r--r--test/Makefile.OSX30
22 files changed, 0 insertions, 754 deletions
diff --git a/.gitignore b/.gitignore
deleted file mode 100644
index d45f99a..0000000
--- a/.gitignore
+++ /dev/null
@@ -1,9 +0,0 @@
-*.o
-*.so.1
-timetest
-
-src/libfaketime.dylib.1
-src/libfaketime.1.dylib
-src/core
-src/faketime
-
diff --git a/Makefile b/Makefile
deleted file mode 100644
index d88e35a..0000000
--- a/Makefile
+++ /dev/null
@@ -1,34 +0,0 @@
-INSTALL ?= install
-
-UNAME=$(shell uname)
-SELECTOR:=$(shell if test "${UNAME}" = "Darwin" ; then echo "-f Makefile.OSX" ; fi)
-
-all:
- $(MAKE) $(SELECTOR) -C src all
-
-test:
- $(MAKE) $(SELECTOR) -C test all
-
-install:
- $(MAKE) $(SELECTOR) -C src install
- $(MAKE) $(SELECTOR) -C man install
- $(INSTALL) -dm0755 "${DESTDIR}${PREFIX}/share/doc/faketime/"
- $(INSTALL) -m0644 README "${DESTDIR}${PREFIX}/share/doc/faketime/README"
- $(INSTALL) -m0644 NEWS "${DESTDIR}${PREFIX}/share/doc/faketime/NEWS"
-
-uninstall:
- $(MAKE) $(SELECTOR) -C src uninstall
- $(MAKE) $(SELECTOR) -C man uninstall
- rm -f "${DESTDIR}${PREFIX}/share/doc/faketime/README"
- rm -f "${DESTDIR}${PREFIX}/share/doc/faketime/NEWS"
- rmdir "${DESTDIR}${PREFIX}/share/doc/faketime"
-
-clean:
- $(MAKE) $(SELECTOR) -C src clean
- $(MAKE) $(SELECTOR) -C test clean
-
-distclean:
- $(MAKE) $(SELECTOR) -C src distclean
- $(MAKE) $(SELECTOR) -C test distclean
-
-.PHONY: all test install uninstall clean distclean
diff --git a/man/Makefile b/man/Makefile
deleted file mode 100644
index 807c157..0000000
--- a/man/Makefile
+++ /dev/null
@@ -1,14 +0,0 @@
-INSTALL ?= install
-
-PREFIX ?= /usr/local
-
-all:
-
-install:
- $(INSTALL) -Dm0644 faketime.1 "${DESTDIR}${PREFIX}/share/man/man1/faketime.1"
- gzip -f "${DESTDIR}${PREFIX}/share/man/man1/faketime.1"
-
-uninstall:
- rm -f "${DESTDIR}${PREFIX}/share/man/man1/faketime.1.gz"
-
-.PHONY: all install uninstall
diff --git a/man/Makefile.OSX b/man/Makefile.OSX
deleted file mode 100644
index 5451acd..0000000
--- a/man/Makefile.OSX
+++ /dev/null
@@ -1,15 +0,0 @@
-INSTALL ?= install
-
-PREFIX ?= /usr/local
-
-all:
-
-install:
- $(INSTALL) -dm0755 "${DESTDIR}${PREFIX}/share/man/man1"
- $(INSTALL) -m0644 faketime.1 "${DESTDIR}${PREFIX}/share/man/man1/faketime.1"
- gzip -f "${DESTDIR}${PREFIX}/share/man/man1/faketime.1"
-
-uninstall:
- rm -f "${DESTDIR}${PREFIX}/share/man/man1/faketime.1.gz"
-
-.PHONY: all install uninstall
diff --git a/packaging/Linux/Arch/PKGBUILD-32bit.txt b/packaging/Linux/Arch/PKGBUILD-32bit.txt
deleted file mode 100644
index a87dc35..0000000
--- a/packaging/Linux/Arch/PKGBUILD-32bit.txt
+++ /dev/null
@@ -1,25 +0,0 @@
-# Maintainer: Robert Orzanna <orschiro@gmail.com>
-
-_pkgbasename=libfaketime
-pkgname=lib32-$_pkgbasename
-pkgver=0.9.5
-pkgrel=1
-pkgdesc='Report fake dates and times to programs without having to change the system-wide time.'
-arch=('x86_64')
-url='http://www.code-wizards.com/projects/libfaketime/'
-license=('GPL2')
-source=("http://www.code-wizards.com/projects/${_pkgbasename}/${_pkgbasename}-${pkgver}.tar.gz"
- 'lib32.patch')
-md5sums=('89b5c71e6c6a93b1c6feba374ac37719'
- '0a01f842df4c8acbd2b081be046e8d67')
-
-build() {
- cd "${_pkgbasename}-${pkgver}"
- patch -p1 -i ../lib32.patch
- make
-}
-
-package() {
- cd "${_pkgbasename}-${pkgver}"
- make PREFIX=/usr DESTDIR="${pkgdir}" install
-} \ No newline at end of file
diff --git a/packaging/Linux/Debian/avoid-spurious-lrt.patch b/packaging/Linux/Debian/avoid-spurious-lrt.patch
deleted file mode 100644
index c2f3f3f..0000000
--- a/packaging/Linux/Debian/avoid-spurious-lrt.patch
+++ /dev/null
@@ -1,30 +0,0 @@
-Author: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
-
-On i386 systems, for some reason if i do not clean up this extra -lrt, i get the following error:
-
- [...]
-make[1]: Entering directory `/home/dkg/src/faketime/faketime/src'
-cc -o libfaketime.o -c -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -std=gnu99 -Wall -Wextra -Werror -DFAKE_STAT -DFAKE_SLEEP -DFAKE_TIMERS -DFAKE_INTERNAL_CALLS -fPIC -DPREFIX='"'/usr/local'"' -DLIBDIRNAME='"'/lib/faketime'"' -DMULTI_ARCH libfaketime.c
-cc -o libfaketime.so.1 -Wl,-soname,libfaketime.so.1 -Wl,-z,relro -Wl,--version-script=libfaketime.map -lrt -shared libfaketime.o -ldl -lm -lpthread -lrt
-libfaketime.o: In function `ft_cleanup':
-/home/dkg/src/faketime/faketime/src/libfaketime.c:1277: multiple definition of `timer_gettime'
-/home/dkg/src/faketime/faketime/src/libfaketime.c:1277: multiple definition of `timer_settime'
-collect2: error: ld returned 1 exit status
-make[1]: *** [libfaketime.so.1] Error 1
- [...]
-
-I confess i don't really understand why removing this would fix
-things, but i also don't see the need to have multiple attempts to
-link to librt.
-
---- a/src/Makefile
-+++ b/src/Makefile
-@@ -69,7 +69,7 @@
-
- CFLAGS += -std=gnu99 -Wall -Wextra -Werror -DFAKE_STAT -DFAKE_SLEEP -DFAKE_TIMERS -DFAKE_INTERNAL_CALLS -fPIC -DPREFIX='"'$(PREFIX)'"' -DLIBDIRNAME='"'$(LIBDIRNAME)'"'
- LIB_LDFLAGS += -shared
--LDFLAGS += -Wl,--version-script=libfaketime.map -lrt
-+LDFLAGS += -Wl,--version-script=libfaketime.map
- LDADD += -ldl -lm -lpthread -lrt
-
- SRC = libfaketime.c
diff --git a/packaging/Linux/Debian/control b/packaging/Linux/Debian/control
deleted file mode 100644
index e8291a8..0000000
--- a/packaging/Linux/Debian/control
+++ /dev/null
@@ -1,40 +0,0 @@
-Source: faketime
-Section: utils
-Priority: extra
-Maintainer: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
-Build-Depends:
- debhelper (>= 9),
- dh-exec (>= 0.3)
-Standards-Version: 3.9.4
-Homepage: http://www.code-wizards.com/projects/libfaketime/
-Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/faketime.git
-Vcs-Git: git://anonscm.debian.org/collab-maint/faketime.git
-
-Package: faketime
-Architecture: any
-Pre-Depends: multiarch-support
-Depends: ${shlibs:Depends}, ${misc:Depends}, libfaketime (= ${binary:Version})
-Multi-Arch: foreign
-Description: report faked system time to programs
- The Fake Time Preload Library (FTPL, a.k.a. libfaketime) intercepts
- various system calls which programs use to retrieve the current date
- and time. It can then report 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. FTPL allows you to specify both absolute dates (e.g.,
- 2004-01-01) and relative dates (e.g., 10 days ago).
-
-Package: libfaketime
-Architecture: any
-Pre-Depends: multiarch-support
-Multi-Arch: same
-Depends: ${shlibs:Depends}, ${misc:Depends}
-Description: report faked system time to programs
- The Fake Time Preload Library (FTPL, a.k.a. libfaketime) intercepts
- various system calls which programs use to retrieve the current date
- and time. It can then report 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. FTPL allows you to specify both absolute dates (e.g.,
- 2004-01-01) and relative dates (e.g., 10 days ago).
-
diff --git a/packaging/Linux/Debian/fix-infinite-recursion-on-real_clock_gettime.patch b/packaging/Linux/Debian/fix-infinite-recursion-on-real_clock_gettime.patch
deleted file mode 100644
index 2fd64f5..0000000
--- a/packaging/Linux/Debian/fix-infinite-recursion-on-real_clock_gettime.patch
+++ /dev/null
@@ -1,29 +0,0 @@
-From: Gerardo Malazdrewicz <gerardo@malazdrewicz.com.ar>
-To: 699559@bugs.debian.org
-Subject: Avoiding loop (very dirty patch)
-Date: Tue, 26 Mar 2013 01:18:05 +0100
-
-[Message part 1 (text/plain, inline)]
-
-Attached patch works for me, but it is very very dirty.
-
-Possibly side effects.
-
-Alternative seems to be to protect the call to real_clock_gettime so it is
-executed just once (to validate the parameters). Subsequent calls are not
-needed (parameters have been validated).
-
-Thanks,
- Gerardo
-
---- a/src/libfaketime.c
-+++ b/src/libfaketime.c
-@@ -1380,7 +1380,7 @@ void __attribute__ ((constructor)) ftpl_init(void)
- real_clock_get_time = dlsym(RTLD_NEXT, "clock_get_time");
- real_clock_gettime = apple_clock_gettime;
- #else
-- real_clock_gettime = dlsym(RTLD_NEXT, "clock_gettime");
-+ real_clock_gettime = dlsym(RTLD_NEXT, "__clock_gettime");
- #ifdef FAKE_TIMERS
- real_timer_settime_22 = dlvsym(RTLD_NEXT, "timer_settime","GLIBC_2.2");
- real_timer_settime_233 = dlvsym(RTLD_NEXT, "timer_settime","GLIBC_2.3.3");
diff --git a/packaging/Linux/Debian/libfaketime.install b/packaging/Linux/Debian/libfaketime.install
deleted file mode 100755
index 0c2fb6b..0000000
--- a/packaging/Linux/Debian/libfaketime.install
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/usr/bin/dh-exec
-src/libfaketime.so.1 usr/lib/${DEB_HOST_MULTIARCH}/faketime/
-src/libfaketimeMT.so.1 usr/lib/${DEB_HOST_MULTIARCH}/faketime/
diff --git a/packaging/Linux/Debian/rules b/packaging/Linux/Debian/rules
deleted file mode 100755
index cf3813a..0000000
--- a/packaging/Linux/Debian/rules
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/usr/bin/make -f
-
-# Author: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
-# Date: Tue, 26 Aug 2008 14:24:50 -0400
-
-export DEB_CFLAGS_MAINT_APPEND=-DMULTI_ARCH
-
-# make sure dh_makeshlibs does not modify post{inst,rm} scripts:
-# (avoids lintian's postinst-has-useless-call-to-ldconfig)
-override_dh_makeshlibs:
- dh_makeshlibs --noscripts
-
-override_dh_installchangelogs:
- dh_installchangelogs NEWS
-
-%:
- PREFIX=/usr dh $@
diff --git a/packaging/Linux/Redhat/libfaketime-fix-infinite-recursion-on-real_clock_gettime.patch b/packaging/Linux/Redhat/libfaketime-fix-infinite-recursion-on-real_clock_gettime.patch
deleted file mode 100644
index 9d81e5e..0000000
--- a/packaging/Linux/Redhat/libfaketime-fix-infinite-recursion-on-real_clock_gettime.patch
+++ /dev/null
@@ -1,13 +0,0 @@
-diff --git a/src/libfaketime.c b/src/libfaketime.c
-index 3ec372b..f70283b 100644
---- a/src/libfaketime.c
-+++ b/src/libfaketime.c
-@@ -1380,7 +1380,7 @@ void __attribute__ ((constructor)) ftpl_init(void)
- real_clock_get_time = dlsym(RTLD_NEXT, "clock_get_time");
- real_clock_gettime = apple_clock_gettime;
- #else
-- real_clock_gettime = dlsym(RTLD_NEXT, "clock_gettime");
-+ real_clock_gettime = dlsym(RTLD_NEXT, "__clock_gettime");
- #ifdef FAKE_TIMERS
- real_timer_settime_22 = dlvsym(RTLD_NEXT, "timer_settime","GLIBC_2.2");
- real_timer_settime_233 = dlvsym(RTLD_NEXT, "timer_settime","GLIBC_2.3.3");
diff --git a/packaging/Linux/Redhat/libfaketime.spec.txt b/packaging/Linux/Redhat/libfaketime.spec.txt
deleted file mode 100644
index 48f3305..0000000
--- a/packaging/Linux/Redhat/libfaketime.spec.txt
+++ /dev/null
@@ -1,55 +0,0 @@
-Summary: Manipulate system time per process for testing purposes
-Name: libfaketime
-Version: 0.9.5
-Release: 4%{?dist}
-License: GPLv2+
-Url: http://www.code-wizards.com/projects/%{name}/
-Source: http://www.code-wizards.com/projects/%{name}/%{name}-%{version}.tar.gz
-Group: System Environment/Libraries
-Patch1: libfaketime-0.9.5-fix-infinite-recursion-on-real_clock_gettime.patch
-
-%description
-libfaketime intercepts various system calls which programs use to
-retrieve the current date and time. It can then report 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.
-
-%prep
-%setup -q
-%patch1 -p1
-# work around from upstream for autodetecting glibc version bug on i686
-sed -i -e 's/__asm__(".symver timer_gettime_22/\/\/__asm__(".symver timer_gettime_22/' src/libfaketime.c
-sed -i -e 's/__asm__(".symver timer_settime_22/\/\/__asm__(".symver timer_settime_22/' src/libfaketime.c
-
-
-%build
-cd src ; CFLAGS="$RPM_OPT_FLAGS -Wno-strict-aliasing" make %{?_smp_mflags} \
- PREFIX="%{_prefix}" LIBDIRNAME="/%{_lib}/faketime" all
-
-%check
-make %{?_smp_mflags} -C test all
-
-%install
-make PREFIX="%{_prefix}" DESTDIR=%{buildroot} LIBDIRNAME="/%{_lib}/faketime" install
-rm -r %{buildroot}/%{_docdir}/faketime
-
-%files
-%{_bindir}/faketime
-%{_libdir}/faketime/libfaketime*so.*
-%doc README COPYING NEWS README README.developers
-%{_mandir}/man1/*
-
-%changelog
-* Tue Oct 15 2013 Paul Wouters <pwouters@redhat.com> - 0.9.5-4
-- Infinite recursion patch is still needed, make test causes
- segfaults otherwise.
-
-* Mon Oct 14 2013 Paul Wouters <pwouters@redhat.com> - 0.9.5-3
-- Work around from upstream for autodetecting glibc version bug on i686
-
-* Mon Oct 14 2013 Paul Wouters <pwouters@redhat.com> - 0.9.5-2
-- Remove use of ifarch for _lib macro for multilib
-
-* Sun Oct 13 2013 Paul Wouters <pwouters@redhat.com> - 0.9.5-1
-- Initial package
diff --git a/packaging/OSX/Fink/libfaketime.info b/packaging/OSX/Fink/libfaketime.info
deleted file mode 100644
index fbe9da0..0000000
--- a/packaging/OSX/Fink/libfaketime.info
+++ /dev/null
@@ -1,54 +0,0 @@
-Package: libfaketime
-Version: 0.9.5
-Revision: 1
-
-Source: http://www.code-wizards.com/projects/%n/%n-%v.tar.gz
-Source-MD5: 89b5c71e6c6a93b1c6feba374ac37719
-
-Maintainer: Wolfgang Hommel <wolf@fink.code-wizards.com>
-HomePage: http://www.code-wizards.com/projects/%n
-License: GPL
-
-Description: Modify system time for single applications
-
-DescDetail: <<
-libfaketime is a library that is dynamically linked to applications
-or system commands at run-time by using the DYLD_INSERT_LIBRARIES
-mechanism. It then intercepts various system calls, which programs
-use to retrieve the current date and time. libfaketime can then
-report faked dates and times to these programs. This means you can
-modify the system time a program uses without having to change the
-date and time system-wide.
-<<
-
-DescUsage: <<
-libfaketime includes a simple wrapper called faketime. Run the
-command faketime without any parameters for usage information.
-For information on how to use libfaketime without the wrapper
-and access its full raw functionality, please see
-%p/share/doc/libfaketime/README*
-<<
-
-BuildDepends: fink (>= 0.28)
-Distribution: 10.7, 10.8, 10.9
-
-CompileScript: <<
-#! /bin/sh -ev
-make -f Makefile.OSX -C src PREFIX=%{p}
-<<
-
-InfoTest: <<
- TestScript: make -f Makefile.OSX test || exit 2
-<<
-
-InstallScript: <<
-#! /bin/sh -ev
-make -f Makefile.OSX -C src install PREFIX=%{i}
-<<
-
-DocFiles: COPYING README README.OSX
-
-Shlibs: <<
- !%p/lib/faketime/%N.1.dylib
-<<
-
diff --git a/packaging/OSX/Homebrew/libfaketime.rb b/packaging/OSX/Homebrew/libfaketime.rb
deleted file mode 100644
index bffe944..0000000
--- a/packaging/OSX/Homebrew/libfaketime.rb
+++ /dev/null
@@ -1,22 +0,0 @@
-require 'formula'
-
-class Libfaketime < Formula
- homepage 'http://www.code-wizards.com/projects/libfaketime'
- url 'http://code-wizards.com/projects/libfaketime/libfaketime-0.9.5.tar.gz'
- sha1 '12199af854004f231892ab6976c2e99b937e2d61'
-
- depends_on :macos => :lion
-
- fails_with :llvm do
- build 2336
- cause 'No thread local storage support'
- end
-
- def install
- system "make", "-C", "src", "-f", "Makefile.OSX", "PREFIX=#{prefix}"
- bin.install 'src/faketime'
- (lib/'faketime').install 'src/libfaketime.1.dylib'
- man1.install 'man/faketime.1'
- end
-end
-
diff --git a/packaging/OSX/MacPorts/Portfile b/packaging/OSX/MacPorts/Portfile
deleted file mode 100644
index 88af35d..0000000
--- a/packaging/OSX/MacPorts/Portfile
+++ /dev/null
@@ -1,45 +0,0 @@
-# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
-# $Id: Portfile 112093 2013-10-11 19:57:13Z ryandesign@macports.org $
-
-PortSystem 1.0
-PortGroup github 1.0
-
-github.setup wolfcw libfaketime 0.9.5rc3 v
-
-checksums rmd160 8d10140a181e0d5ce93bd7b0e7eeaa380eb7a9c6 \
- sha256 ee2234335b3d730fdf6898d8dba9195d9ab3068c29af25270be03682d24a424f
-
-categories sysutils
-platforms darwin
-maintainers code-wizards.com:wolf openmaintainer
-license GPL-2
-
-description libfaketime modifies the system time for a single application
-
-long_description libfaketime intercepts various system calls that applications use to \
- retrieve the current date and time. It can then report user-specified \
- faked dates and times to these applications. This allows us to modify \
- the system time an application sees without having to change the time \
- system-wide. The faketime wrapper can be used from command line. \
- Check the documentation on how to integrate into installed applications.
-
-patchfiles patch-test-Makefile.OSX.diff
-
-use_configure no
-
-variant universal {}
-
-compiler.blacklist *cc* *dragonegg*
-
-build.args -f Makefile.OSX
-build.env CC="${configure.cc}" \
- CFLAGS="[get_canonical_archflags cc]" \
- LDFLAGS="[get_canonical_archflags ld]" \
- PREFIX=${prefix}
-
-test.run yes
-test.args ${build.args}
-eval test.env ${build.env}
-
-destroot.args ${build.args}
-eval destroot.env ${build.env}
diff --git a/packaging/OSX/MacPorts/patch-test-Makefile.OSX.diff b/packaging/OSX/MacPorts/patch-test-Makefile.OSX.diff
deleted file mode 100644
index f60968a..0000000
--- a/packaging/OSX/MacPorts/patch-test-Makefile.OSX.diff
+++ /dev/null
@@ -1,12 +0,0 @@
---- test/Makefile.OSX.orig 2013-10-11 09:42:38.000000000 -0500
-+++ test/Makefile.OSX 2013-10-11 14:46:11.000000000 -0500
-@@ -1,7 +1,6 @@
--CC = gcc
-+CC ?= clang
-
--CFLAGS = -std=gnu99 -Wall -DFAKE_STAT
--LDFLAGS =
-+CFLAGS += -std=gnu99 -Wall -DFAKE_STAT
-
- SRC = timetest.c
- OBJ = ${SRC:.c=.o}
diff --git a/packaging/OSX/README b/packaging/OSX/README
deleted file mode 100644
index d18c562..0000000
--- a/packaging/OSX/README
+++ /dev/null
@@ -1,67 +0,0 @@
-# Packaging for OS X
-
-Several software tools assist with the installation of open source software
-on OS X. The authors of libfaketime maintain the libfaketime build spec files
-for MacPorts, Homebrew, and Fink.
-
-
-## MacPorts
-
-Installing libfaketime via MacPorts is based on the provided Portfile, which
-has been included in the official MacPorts distribution since October, 2013.
-Users therefore can use "sudo port install libfaketime" as installation
-command.
-
-Some libfaketime Portfile caveats:
-
-- Github-based source file distribution
- (0.9.5rc3 is code-identical to 0.9.5 release except for Makefile patches)
-- Non-clang-compilers need to be blacklisted (for libfaketime =0.9.5)
-- MacPorts folks have requested to avoid a platform-specific Makefile.OSX in
- the future
-
-Portfile submission is documented in https://www.macports.org/guide/#project.contributing
-and handled via a ticketing system:
-
-- https://trac.macports.org/ticket/40662
-- https://trac.macports.org/ticket/40748
-
-
-## Homebrew
-
-The libfaketime 'formula' for Homebrew is available since November, 2013.
-Homebrew users can use 'brew install libfaketime' as installation command.
-
-Some libfaketime formula caveats:
-
-- "depends_on :macos => :lion" must be set for libfaketime >=0.9.5
-- :llvm builds <= 2336 must be blacklisted because libfaketime =0.9.5
- requires a compiler with thread local storage support.
-
-Formula submission is handled via pull request on Github following the
-"one formula per commit, one commit per formula" rule, which necessitates
-squashing commits and forced pushes when applying fixes. Style issues
-complementary to the documentation have been discussed in
-
- https://github.com/mxcl/homebrew/pull/23245
-
-
-## Fink
-
-A libfaketime.info file is included in the Fink 10.7 tree since October,
-2013, and installed using
-
- fink install libfaketime
-
-Some libfaketime fink info file caveats:
-
-- The dynamic library must be declared as private Shlib; this also necessitates
- BuildDepends: fink (>= 0.28)
-- "Distribution: 10.7, 10.8, 10.9" is required because libfaketime >=0.9.5 does
- not work on OS X 10.6 or before anymore.
-- When compiling, PREFIX=%{p} needs to be used because this path is hardcoded
- into the wrapper. However, "make install" needs to deploy into PREFIX=%{i} to
- make packaging work.
-
-Submission is via https://sourceforge.net/p/fink/package-submissions/
-
diff --git a/packaging/README b/packaging/README
deleted file mode 100644
index 7dc6152..0000000
--- a/packaging/README
+++ /dev/null
@@ -1,14 +0,0 @@
-# libfaketime packaging
-
-Not everyone feels comfortable with installing tools and libraries manually
-by downloading and building them from source. Luckily enough, voluntary
-maintainers prepare new libfaketime releases for various platforms and make
-them available as binary packages or otherwise automatically installable
-software.
-
-In this directory, we collect build specification files for the platforms
-that we are aware of being actively supported. They help us to analyze
-build issues, create awareness for platform-specific patches that had to
-be applied and might be merged with our code, and provide the contact
-information for future "early release warnings".
-
diff --git a/src/Makefile b/src/Makefile
deleted file mode 100644
index 51634b0..0000000
--- a/src/Makefile
+++ /dev/null
@@ -1,114 +0,0 @@
-#
-# Notes:
-#
-# * Compilation Defines:
-#
-# FAKE_STAT
-# - Enables time faking also for files' timestamps.
-#
-# NO_ATFILE
-# - Disables support for the fstatat() group of functions
-#
-# PTHREAD
-# - Define this to enable multithreading support.
-#
-# PTHREAD_SINGLETHREADED_TIME
-# - Define this if you want to single-thread time() ... there ARE
-# possibile caching side-effects in a multithreaded environment
-# without this, but the performance impact may require you to
-# try it unsynchronized.
-#
-# FAKE_INTERNAL_CALLS
-# - Also intercept libc internal __functions, e.g. not just time(),
-# but also __time(). Enhances compatibility with applications
-# that make use of low-level system calls, such as Java Virtual
-# Machines.
-#
-# FAKE_SLEEP
-# - Also intercept sleep(), nanosleep(), usleep(), alarm(), [p]poll()
-#
-# FAKE_TIMERS
-# - Also intercept timer_settime() and timer_gettime()
-#
-# NO_CACHING
-# - Disables the caching of the fake time offset. Only disable caching
-# if you change the fake time offset during program runtime very
-# frequently. Disabling the cache may negatively influence the
-# performance.
-#
-# MULTI_ARCH
-# - If MULTI_ARCH is set, the faketime wrapper program will put a literal
-# $LIB into the LD_PRELOAD environment variable it creates, which makes
-# ld automatically choose the correct library version to use for the
-# target binary. Use for Linux platforms with Multi-Arch support only!
-#
-# * Compilation addition: second libMT target added for building the pthread-
-# enabled library as a separate library
-#
-# * Compilation switch change: previous versions compiled using '-nostartfiles'
-# This is no longer the case since there is a 'startup' constructor for the library
-# which is used to activate the start-at times when specified. This also initializes
-# the dynamic disabling of the FAKE_STAT calls.
-#
-# By default, libfaketime will be compiled for your system's default architecture.
-# To build 32-bit libraries and binaries, add -m32 to CFLAGS and LDFLAGS.
-#
-# Change PREFIX to where you want libfaketime (libraries and wrapper binary) installed.
-# LIBDIRNAME is relative to PREFIX. The default is to install into $PREFIX/lib/faketime,
-# but you can set LIBDIRNAME to, e.g., /lib64 if you want to install it elsewhere.
-# LIBDIRNAME has been introduced to support MultiLib systems. Please do not change the
-# default value on MultiArch systems.
-#
-# For testing in the current directory without installation, try make PREFIX= LIBDIRNAME='.'
-
-CC ?= gcc
-INSTALL ?= install
-
-PREFIX ?= /usr/local
-LIBDIRNAME ?= /lib/faketime
-
-CFLAGS += -std=gnu99 -Wall -Wextra -Werror -DFAKE_STAT -DFAKE_SLEEP -DFAKE_TIMERS -DFAKE_INTERNAL_CALLS -fPIC -DPREFIX='"'$(PREFIX)'"' -DLIBDIRNAME='"'$(LIBDIRNAME)'"'
-LIB_LDFLAGS += -shared
-LDFLAGS += -Wl,--version-script=libfaketime.map -lpthread
-LDADD += -ldl -lm -lrt
-BIN_LDFLAGS += -lrt
-
-SRC = libfaketime.c
-LIBS_OBJ = libfaketime.o libfaketimeMT.o
-BINS = faketime
-
-SONAME = 1
-LIBS = libfaketime.so.${SONAME} libfaketimeMT.so.${SONAME}
-
-all: ${LIBS} ${BINS}
-
-faketimeMT.o: EXTRA_FLAGS := -DPTHREAD -DPTHREAD_SINGLETHREADED_TIME
-
-${LIBS_OBJ}: libfaketime.c
- ${CC} -o $@ -c ${CFLAGS} ${EXTRA_FLAGS} $<
-
-%.so.${SONAME}: %.o libfaketime.map
- ${CC} -o $@ -Wl,-soname,$@ ${LDFLAGS} ${LIB_LDFLAGS} $< ${LDADD}
-
-${BINS}: faketime.c
- ${CC} -o $@ ${CFLAGS} ${EXTRA_FLAGS} $< ${LDFLAGS} ${BIN_LDFLAGS}
-
-clean:
- @rm -f ${LIBS_OBJ} ${LIBS} ${BINS}
-
-distclean: clean
- @echo
-
-install: ${LIBS} ${BINS}
- @echo
- @echo "Copying the faketime libraries to ${DESTDIR}${PREFIX}${LIBDIRNAME} and the faketime wrapper script to ${DESTDIR}${PREFIX}/bin ..."
- $(INSTALL) -dm0755 "${DESTDIR}${PREFIX}${LIBDIRNAME}/"
- $(INSTALL) -m0644 ${LIBS} "${DESTDIR}${PREFIX}${LIBDIRNAME}/"
- $(INSTALL) -Dm0755 faketime "${DESTDIR}${PREFIX}/bin/faketime"
-
-uninstall:
- for f in ${LIBS}; do rm -f "${DESTDIR}${PREFIX}${LIBDIRNAME}/$$f"; done
- rmdir "${DESTDIR}${PREFIX}${LIBDIRNAME}"
- rm -f "${DESTDIR}${PREFIX}/bin/faketime"
-
-.PHONY: all clean distclean install uninstall
diff --git a/src/Makefile.OSX b/src/Makefile.OSX
deleted file mode 100644
index e0ae2a3..0000000
--- a/src/Makefile.OSX
+++ /dev/null
@@ -1,81 +0,0 @@
-#
-# Notes:
-#
-# * Compilation Defines:
-#
-# FAKE_STAT
-# - Enables time faking also for files' timestamps.
-#
-# NO_ATFILE
-# - Disables support for the fstatat() group of functions
-#
-# PTHREAD
-# - Define this to enable multithreading support.
-#
-# PTHREAD_SINGLETHREADED_TIME
-# - Define this if you want to single-thread time() ... there ARE
-# possibile caching side-effects in a multithreaded environment
-# without this, but the performance impact may require you to
-# try it unsynchronized.
-#
-# FAKE_SLEEP
-# - Also intercept sleep(), nanosleep(), usleep(), alarm(), [p]poll()
-#
-# NO_CACHING
-# - Disables the caching of the fake time offset. Only disable caching
-# if you change the fake time offset during program runtime very
-# frequently. Disabling the cache may negatively influence the
-# performance.
-#
-# * Compilation addition: second libMT target added for building the pthread-
-# enabled library as a separate library
-#
-# * Compilation switch change: previous versions compiled using '-nostartfiles'
-# This is no longer the case since there is a 'startup' constructor for the library
-# which is used to activate the start-at times when specified. This also initializes
-# the dynamic disabling of the FAKE_STAT calls.
-#
-# By default, libfaketime will be compiled for your system's default architecture.
-# To build for a different architecture, add -arch flags to CFLAGS and LDFLAGS.
-#
-# default to clang to support thread local variables
-CC ?= clang
-INSTALL ?= install
-
-PREFIX ?= /usr/local
-
-CFLAGS += -DFAKE_SLEEP -DFAKE_INTERNAL_CALLS -DPREFIX='"'${PREFIX}'"'
-LIB_LDFLAGS += -dynamiclib -current_version 0.9.6 -compatibility_version 0.7
-
-SONAME = 1
-LIBS = libfaketime.${SONAME}.dylib
-BINS = faketime
-
-all: ${LIBS} ${BINS}
-
-libfaketime.${SONAME}.dylib: libfaketime.c
- ${CC} -o $@ ${CFLAGS} ${LDFLAGS} ${LIB_LDFLAGS} -install_name ${PREFIX}/lib/faketime/$@ $<
-
-faketime: faketime.c
- ${CC} -o $@ ${CFLAGS} ${LDFLAGS} $<
-
-clean:
- @rm -f ${OBJ} ${LIBS} ${BINS}
-
-distclean: clean
- @echo
-
-install: ${LIBS} ${BINS}
- @echo
- @echo "Copying the faketime libraries to ${DESTDIR}${PREFIX}/lib/faketime and the faketime wrapper script to ${DESTDIR}${PREFIX}/bin ..."
- $(INSTALL) -dm0755 "${DESTDIR}${PREFIX}/lib/faketime/"
- $(INSTALL) -m0644 ${LIBS} "${DESTDIR}${PREFIX}/lib/faketime/"
- $(INSTALL) -dm0755 "${DESTDIR}${PREFIX}/bin"
- $(INSTALL) -m0755 faketime "${DESTDIR}${PREFIX}/bin/faketime"
-
-uninstall:
- for f in ${LIBS}; do rm -f "${DESTDIR}${PREFIX}/lib/faketime/$$f"; done
- rmdir "${DESTDIR}${PREFIX}/lib/faketime"
- rm -f "${DESTDIR}${PREFIX}/bin/faketime"
-
-.PHONY: all clean distclean install uninstall
diff --git a/test/Makefile b/test/Makefile
deleted file mode 100644
index f2d2f92..0000000
--- a/test/Makefile
+++ /dev/null
@@ -1,31 +0,0 @@
-CC = gcc
-
-CFLAGS = -std=gnu99 -Wall -DFAKE_STAT -Werror -Wextra
-LDFLAGS = -lrt
-
-SRC = timetest.c
-OBJ = ${SRC:.c=.o}
-
-all: timetest test
-
-.c.o:
- ${CC} -c ${CFLAGS} $<
-
-timetest: ${OBJ}
- ${CC} -o $@ ${OBJ} ${LDFLAGS}
-
-test: timetest functest
- @echo
- @./test.sh
-
-# run functional tests
-functest:
- ./testframe.sh functests
-
-clean:
- @rm -f ${OBJ} timetest
-
-distclean: clean
- @echo
-
-.PHONY: all test clean distclean
diff --git a/test/Makefile.OSX b/test/Makefile.OSX
deleted file mode 100644
index 209d19f..0000000
--- a/test/Makefile.OSX
+++ /dev/null
@@ -1,30 +0,0 @@
-CC ?= clang
-
-CFLAGS += -std=gnu99 -Wall -DFAKE_STAT
-
-SRC = timetest.c
-OBJ = ${SRC:.c=.o}
-
-all: timetest test
-
-.c.o:
- ${CC} -c ${CFLAGS} $<
-
-timetest: ${OBJ}
- ${CC} -o $@ ${OBJ} ${LDFLAGS}
-
-test: timetest functest
- @echo
- @./test_OSX.sh
-
-# run functional tests
-functest:
- ./testframe.sh functests
-
-clean:
- @rm -f ${OBJ} timetest
-
-distclean: clean
- @echo
-
-.PHONY: all test clean distclean