Codebase list datefudge / bb729e2
QA upload. * QA upload. * Package is orphaned (#429467); set maintainer to Debian QA Group. * Switch to debhelper. * Move datefudge.so to /usr/lib/datefudge as it's not a public library. * datefudge.c: Drop <asm/unistd.h> for portability. Closes: #414335. * Makefile: Remove datefudge.1 on clean. * debian/copyright: Update FSF address. * Conforms to Standards version 3.7.2. Matej Vela authored 16 years ago Robert Luberda committed 16 years ago
9 changed file(s) with 55 addition(s) and 63 deletion(s). Raw diff Collapse all Expand all
66 compile all: datefudge datefudge.so
77
88 install: datefudge datefudge.so datefudge.1
9 install -d $(DESTDIR)/usr/lib/
10 $(INSTALL_PROGRAM) -o root -g root -m 644 datefudge.so $(DESTDIR)/usr/lib/datefudge.so
9 install -d $(DESTDIR)/usr/lib/datefudge/
10 $(INSTALL_PROGRAM) -o root -g root -m 644 datefudge.so $(DESTDIR)/usr/lib/datefudge/datefudge.so
1111 install -d $(DESTDIR)/usr/bin/
1212 $(INSTALL_PROGRAM) -o root -g root -m 755 datefudge $(DESTDIR)/usr/bin
1313 install -d $(DESTDIR)/usr/share/man/man1
2626 sed -e 's,@VERSION@,$(VERSION),g' < $< > $@
2727
2828 clean:
29 rm -f datefudge.o datefudge.so datefudge
29 rm -f datefudge.o datefudge.so datefudge datefudge.1
3030
1111 #include <stdlib.h>
1212 #include <dlfcn.h>
1313 #include <assert.h>
14 #include <asm/unistd.h>
1514 #include <features.h>
1615 #include <unistd.h>
1716 #include <time.h>
2626 sec=$(expr $(date '+%s') - $sec)
2727 if [ $? -ne 0 ] ; then exit 1 ; fi
2828
29 export LD_PRELOAD="${LD_PRELOAD}${LD_PRELOAD:+:}/usr/lib/datefudge.so"
29 export LD_PRELOAD="${LD_PRELOAD}${LD_PRELOAD:+:}/usr/lib/datefudge/datefudge.so"
3030 export DATEFUDGE=$sec
3131
3232 exec "$@"
0 datefudge (1.13) unstable; urgency=low
1
2 * QA upload.
3 * Package is orphaned (#429467); set maintainer to Debian QA Group.
4 * Switch to debhelper.
5 * Move datefudge.so to /usr/lib/datefudge as it's not a public library.
6 * datefudge.c: Drop <asm/unistd.h> for portability. Closes: #414335.
7 * Makefile: Remove datefudge.1 on clean.
8 * debian/copyright: Update FSF address.
9 * Conforms to Standards version 3.7.2.
10
11 -- Matej Vela <vela@debian.org> Mon, 09 Jul 2007 19:10:34 +0200
12
013 datefudge (1.12) unstable; urgency=low
114
215 * Updated maintainer email.
00 Source: datefudge
11 Section: devel
22 Priority: optional
3 Maintainer: Matthias Urlichs <smurf@debian.org>
4 Standards-Version: 3.6.1
3 Maintainer: Debian QA Group <packages@qa.debian.org>
4 Standards-Version: 3.7.2
5 Build-Depends: debhelper (>= 5)
56
67 Package: datefudge
78 Architecture: any
1717
1818 You should have received a copy of the GNU General Public License with
1919 the Debian GNU/Linux distribution in file /usr/share/common-licenses/GPL;
20 if not, write to the Free Software Foundation, Inc., 59 Temple Place,
21 Suite 330, Boston, MA 02111-1307 USA
20 if not, write to the Free Software Foundation, Inc., 51 Franklin Street,
21 Fifth Floor, Boston, MA 02110-1301 USA.
+0
-1
debian/overrides less more
0 datefudge: sharedobject-in-library-directory-not-actually-a-shlib usr/lib/datefudge.so
00 #!/usr/bin/make -f
1 # debian/rules file to build the "datefudge" Debian package.
2 # GNU copyright 2002-2003 by Matthias Urlichs.
1 # This file is public domain software, originally written by Joey Hess.
32
4 export CC=gcc
5 export CFLAGS=-g -Wall
3 # Uncomment this to turn on verbose mode.
4 #export DH_VERBOSE=1
5
6 export CFLAGS = -g -Wall
67 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
78 CFLAGS += -O0
89 else
910 CFLAGS += -O2
1011 endif
11 ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
12 STRIP := strip --strip-unneeded \
13 --remove-section=.comment --remove-section=.note
14 else
15 STRIP := :
16 endif
1712
18 build-arch: build-stamp
13 build: build-stamp
1914 build-stamp:
20 @if ! test -f debian/control ; then echo "No debian/control file found!" >&2 ; exit 1; fi
15 dh_testdir
2116
2217 $(MAKE)
2318
2419 touch build-stamp
2520
2621 clean:
27 @if ! test -f debian/control ; then echo "No debian/control file found!" >&2 ; exit 1; fi
28 @if ! test $$(id -u) -eq 0 ; then echo "You are not root!" >&2 ; exit 1 ; fi
22 dh_testdir
23 dh_testroot
2924 rm -f build-stamp
3025
31 -$(MAKE) clean
26 $(MAKE) clean
3227
33 -rm -f debian/substvars debian/files
34 -rm -rf debian/tmp
28 dh_clean
3529
3630 install: build
37 @if ! test -f debian/control ; then echo "No debian/control file found!" >&2 ; exit 1; fi
38 @if ! test $$(id -u) -eq 0 ; then echo "You are not root!" >&2 ; exit 1 ; fi
31 dh_testdir
32 dh_testroot
33 dh_clean -k
34 dh_installdirs
3935
40 $(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
36 $(MAKE) install DESTDIR=$(CURDIR)/debian/datefudge
4137
42 # architecture-independent stuff
43 build-indep binary-indep:
44 # Nothing to do. (In fact there is, but it's too small to split.)
45 build: build-arch build-indep
38 binary-indep: build install
4639
47 # architecture-dependent stuff
4840 binary-arch: build install
49 @if ! test -f debian/control ; then echo "No debian/control file found!" >&2 ; exit 1; fi
50 @if ! test $$(id -u) -eq 0 ; then echo "You are not root!" >&2 ; exit 1 ; fi
51 mkdir -p debian/tmp/DEBIAN
52
53 # install docs
54 mkdir -p debian/tmp/usr/share/doc/datefudge
55 chmod 755 debian/tmp/usr/share/doc
56 chmod 755 debian/tmp/usr/share/doc/datefudge
57 install -o root -g root -m 644 README debian/tmp/usr/share/doc/datefudge
58 install -o root -g root -m 644 debian/copyright debian/tmp/usr/share/doc/datefudge
59 install -o root -g root -m 644 debian/changelog debian/tmp/usr/share/doc/datefudge
60 gzip -9f debian/tmp/usr/share/doc/datefudge/changelog
61 gzip -9f debian/tmp/usr/share/man/man1/datefudge.1
62
63 # strip library and install control files
64 $(STRIP) debian/tmp/usr/lib/datefudge.so
65 dpkg-shlibdeps debian/tmp/usr/lib/datefudge.so
66
67 #install -m 644 debian/shlibs debian/tmp/DEBIAN
68 install -d debian/tmp/usr/share/lintian/overrides
69 install -m 644 debian/overrides debian/tmp/usr/share/lintian/overrides/datefudge
70 dpkg-gencontrol -isp
71
72 cd debian/tmp; find . -type f ! -regex '.*/DEBIAN/.*' -printf '%P\0' | xargs -r0 md5sum > DEBIAN/md5sums
73 chmod 644 debian/tmp/DEBIAN/md5sums
74 dpkg-deb --build debian/tmp ..
41 dh_testdir
42 dh_testroot
43 dh_installchangelogs
44 dh_installdocs README
45 dh_installman
46 dh_link
47 dh_strip
48 dh_compress
49 dh_fixperms
50 dh_installdeb
51 dh_shlibdeps
52 dh_gencontrol
53 dh_md5sums
54 dh_builddeb
7555
7656 binary: binary-indep binary-arch
77 .PHONY: build clean binary-indep binary-arch binary binary-arch \
78 build-indep build-arch install
57 .PHONY: build clean binary-indep binary-arch binary install