--- faketime-0.8.orig/Makefile +++ faketime-0.8/Makefile @@ -42,15 +42,15 @@ CC = gcc -all: lib libMT testprog test +all: lib libMT libs: lib libMT lib: faketime.c - ${CC} -DFAKE_STAT -DFAKE_INTERNAL_CALLS -shared -fPIC -Wl,-soname,libfaketime.so.1 -o libfaketime.so.1 faketime.c -ldl -lm -lpthread + ${CC} -DFAKE_STAT -DFAKE_INTERNAL_CALLS -shared -fPIC -Wl,-soname,libfaketime.so.1 -o libfaketime.so.1 faketime.c -ldl -lpthread libMT: faketime.c - ${CC} -DFAKE_STAT -DFAKE_INTERNAL_CALLS -DPTHREAD -DPTHREAD_SINGLETHREADED_TIME -shared -fPIC -Wl,-soname,libfaketimeMT.so.1 -o libfaketimeMT.so.1 faketime.c -ldl -lm -lpthread + ${CC} -DFAKE_STAT -DFAKE_INTERNAL_CALLS -DPTHREAD -DPTHREAD_SINGLETHREADED_TIME -shared -fPIC -Wl,-soname,libfaketimeMT.so.1 -o libfaketimeMT.so.1 faketime.c -ldl -lpthread testprog: timetest.c ${CC} -DFAKE_STAT -o timetest timetest.c -lrt @@ -68,7 +68,8 @@ distclean: clean @echo -install: libs +# removed install target, since dh will handle installation instead. --dkg +noinstall: libs @echo @echo "Copying the libraries to /usr/lib/faketime and the wrapper script to /usr/bin ..." -mkdir -p /usr/lib/faketime --- faketime-0.8.orig/debian/rules +++ faketime-0.8/debian/rules @@ -0,0 +1,22 @@ +#!/usr/bin/make -f + +# Author: Daniel Kahn Gillmor +# Date: Tue, 26 Aug 2008 14:24:50 -0400 + +# make sure dh_makeshlibs does not modify post{inst,rm} scripts: +# (avoids lintian's postinst-has-useless-call-to-ldconfig) +binary: + dh binary --before dh_makeshlibs + dh_makeshlibs --noscripts + dh binary --after dh_makeshlibs + +# don't bother with "make test" because faketime's test suite isn't +# currently designed for automated evaluation (just prints strings of +# text and expects a human to interpret), which is useless on the +# autobuilders. +build: + dh build --before dh_auto_test + dh build --after dh_auto_test + +%: + dh $@ --- faketime-0.8.orig/debian/faketime.dirs +++ faketime-0.8/debian/faketime.dirs @@ -0,0 +1,2 @@ +usr/bin +usr/lib/faketime --- faketime-0.8.orig/debian/faketime.docs +++ faketime-0.8/debian/faketime.docs @@ -0,0 +1 @@ +README --- faketime-0.8.orig/debian/changelog +++ faketime-0.8/debian/changelog @@ -0,0 +1,6 @@ +faketime (0.8-1) unstable; urgency=low + + * Initial release (Closes: #495630) + + -- Daniel Kahn Gillmor Tue, 26 Aug 2008 14:37:38 -0400 + --- faketime-0.8.orig/debian/compat +++ faketime-0.8/debian/compat @@ -0,0 +1 @@ +7 --- faketime-0.8.orig/debian/control +++ faketime-0.8/debian/control @@ -0,0 +1,23 @@ +Source: faketime +Section: utils +Priority: extra +Maintainer: Daniel Kahn Gillmor +Build-Depends: debhelper (>= 7) +Standards-Version: 3.8.0 +Homepage: http://www.code-wizards.com/projects/libfaketime/ +Dm-Upload-Allowed: yes +Vcs-Svn: http://cmrg.fifthhorseman.net/svn/trunk/faketime +Vcs-Browser: http://cmrg.fifthhorseman.net/browser/trunk/faketime + +Package: faketime +Architecture: any +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). + --- faketime-0.8.orig/debian/watch +++ faketime-0.8/debian/watch @@ -0,0 +1,4 @@ +version=3 + +# +http://www.code-wizards.com/projects/libfaketime/ libfaketime-(.*)\.tar\.gz --- faketime-0.8.orig/debian/copyright +++ faketime-0.8/debian/copyright @@ -0,0 +1,33 @@ +This package was debianized by Daniel Kahn Gillmor + on Mon, 25 Aug 2008 11:28:49 -0400. + +It was downloaded from + +Upstream Author: + + Wolfgang Hommel + +Copyright: + + Copyright (C) 2003,2004,2005,2006,2007,2008 Wolfgang Hommel + +License: + + This package is free software; you can redistribute it and/or + modify it under the terms of version 2 of the GNU General Public + License as published by the Free Software Foundation. + + This package is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this package; if not, write to the Free Software + Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA + +On Debian systems, the complete text of the GNU General Public License +v2 can be found in `/usr/share/common-licenses/GPL-2'. + +The Debian packaging is (C) 2008, Daniel Kahn Gillmor + and is licensed under the GPL, see above. --- faketime-0.8.orig/debian/faketime.manpages +++ faketime-0.8/debian/faketime.manpages @@ -0,0 +1 @@ +faketime.1 --- faketime-0.8.orig/debian/faketime.install +++ faketime-0.8/debian/faketime.install @@ -0,0 +1,3 @@ +libfaketime.so.1 usr/lib/faketime +libfaketimeMT.so.1 usr/lib/faketime +faketime usr/bin