From 77dccad122e082f6f0e914874303752b172260fb Mon Sep 17 00:00:00 2001 From: kevin Date: Tue, 22 Oct 1996 08:28:30 +0000 Subject: [PATCH] converted to Standards-Version: 2.1.1.0 --- debian/control | 15 ++-- debian/rules | 231 ++++++++++++++++++++++----------------------------------- 2 files changed, 97 insertions(+), 149 deletions(-) rewrite debian/rules (98%) diff --git a/debian/control b/debian/control index 62075de..ca5556a 100644 --- a/debian/control +++ b/debian/control @@ -1,13 +1,14 @@ -Package: = -Version: = -Architecture: = -Maintainer: Kevin Dalley -Pre-Depends: libc5 (>=5.2.18-1) -Essential: yes +Source: findutils Section: base Priority: required +Maintainer: Kevin Dalley +Standards-Version: 2.1.1.0 + +Package: findutils +Architecture: any +Essential: yes +Pre-Depends: ${shlibs:Depends} Description: utilities for finding files--find, xargs, and locate - . These utilities find files meeting specified criteria and perform various actions on the files which are found. diff --git a/debian/rules b/debian/rules dissimilarity index 98% index 7ff16c8..64d213c 100755 --- a/debian/rules +++ b/debian/rules @@ -1,142 +1,89 @@ -#! /usr/bin/make -f -# -# Last updated: 1996/05/27 08:10:50 by Kevin Dalley -# -# To make the binary distribution package, the ``Debianized'' source package -# and the context diff to the original package, type `./debian.rules dist'. -# Make sure that `debian.rules' is executable before the final distribution -# is made. -# -# Invoke each target with `./debian.rules '. All targets should be -# invoked with the package root as the current directory. -# -# The `binary' target must be run as root, as it needs to install files with -# specific ownerships. The `diff' target assumes that you have the original -# source package available, unpacked, in ../$(package)-$(version).orig, or that you have -# the previous revision of the ``Debianized'' source package and context diff -# in the parent directory. - -CC = gcc -CFLAGS = -O2 -LDFLAGS = -s - -# The name of the package (for example, `emacs'). -package = findutils -# The version of the package (for example, `19.28'). -version = 4.1 -# The Debian revision of the package (for example, `2'). -debian = 12 - -build: -# Builds the binary package. - ./configure --prefix=/usr - make CC="$(CC)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" \ - libexecdir=/usr/lib/locate localstatedir=/var/lib/locate - ( cd doc ; makeinfo find.texi ) - touch stamp-build - -clean: -# Undoes the effect of `make -f debian.rules build'. - make distclean - rm -f stamp-build - rm -rf debian-tmp - -binary: -# Makes a binary package. - test -f stamp-build || make -f debian.rules build - install -d -g root -m 755 -o root debian-tmp - chmod g-s debian-tmp - install -d -g root -m 755 -o root debian-tmp/DEBIAN - install -d -g root -m 755 -o root debian-tmp/etc/cron.daily - install -g root -m 755 -o root cron.find \ - debian-tmp/etc/cron.daily/find - install -d -g root -m 755 -o root debian-tmp/usr/bin - install -g root -m 755 -o root find/find \ - debian-tmp/usr/bin/find - install -g root -m 755 -o root locate/locate \ - debian-tmp/usr/bin/locate - install -g root -m 755 -o root locate/updatedb \ - debian-tmp/usr/bin/updatedb - install -g root -m 755 -o root xargs/xargs \ - debian-tmp/usr/bin/xargs - install -d -g root -m 755 -o root debian-tmp/usr/info - install -g root -m 644 -o root doc/find.info* \ - debian-tmp/usr/info - install -d -g root -m 755 -o root debian-tmp/usr/lib/locate - install -g root -m 755 -o root locate/bigram locate/code \ - locate/frcode debian-tmp/usr/lib/locate - install -d -g root -m 755 -o root debian-tmp/usr/man/man1 - install -g root -m 644 -o root find/find.1 \ - debian-tmp/usr/man/man1/find.1 - install -g root -m 644 -o root locate/locate.1 \ - debian-tmp/usr/man/man1/locate.1 - install -g root -m 644 -o root locate/updatedb.1 \ - debian-tmp/usr/man/man1/updatedb.1 - install -g root -m 644 -o root xargs/xargs.1 \ - debian-tmp/usr/man/man1/xargs.1 - install -d -g root -m 755 -o root debian-tmp/usr/man/man5 - install -d -g root -m 755 -o root debian-tmp/usr/lib/locate - install -d -g root -m 755 -o root debian-tmp/var/lib - install -d -g nogroup -m 2755 -o nobody debian-tmp/var/lib/locate - install -g root -m 644 -o root locate/locatedb.5 \ - debian-tmp/usr/man/man5/locatedb.5 - install -d -g root -m 755 -o root debian-tmp/usr/doc/copyright - install -g root -m 644 -o root debian.README \ - debian-tmp/usr/doc/copyright/$(package) - rm -f debian-tmp/usr/info/find.info*.gz - gzip -9f debian-tmp/usr/info/find.info* - sed -e '1s/=/$(package)/; \ - 2s/=/$(version)-$(debian)/; \ - 3s/=/$(shell dpkg --print-architecture)/;' \ - debian.control > debian-tmp/DEBIAN/control - chmod 644 debian-tmp/DEBIAN/control - install -g root -m 644 -o root debian.conffiles \ - debian-tmp/DEBIAN/conffiles - install -g root -m 755 -o root debian.postinst \ - debian-tmp/DEBIAN/postinst - install -g root -m 755 -o root debian.postrm \ - debian-tmp/DEBIAN/postrm - install -g root -m 755 -o root debian.preinst \ - debian-tmp/DEBIAN/preinst - dpkg --build debian-tmp - mv debian-tmp.deb \ - ../$(package)-$(version)-$(debian).$(shell dpkg --print-architecture).deb - -source: clean -# Makes a source package. - ( cd .. && tar cf - $(package)-$(version) | \ - gzip -9f > $(package)-$(version)-$(debian).tar.gz ) - -diff: clean -# Makes a context diff. - -test -d ../$(package)-$(version).orig -o \ - -f ../$(package)-$(version)-`expr $(debian) - 1`.diff.gz \ - || ( echo "Original source package is not available." ; false ) - -test -d ../$(package)-$(version).orig || make -f debian.rules orig - #cp -a ../$(package)-$(version).orig/doc/find.info* doc - cd .. && \ - (diff -ruN $(package)-$(version).orig $(package)-$(version) \ - >$(package)-$(version)-$(debian).diff; [ $$? = 1 ]) && \ - gzip -9vf $(package)-$(version)-$(debian).diff - -test -f stamp-orig \ - && rm -rf ../$(package)-$(version).orig && rm -f stamp-orig - -dist: binary source diff -# Prepares the package for distribution. - -orig: -# Prepares the original package from the previous -# Debian revision source package and context diff. - ( cd .. \ - && mkdir $(package).orig \ - && cd $(package).orig \ - && tar xzf ../$(package)-$(version)-`expr $(debian) - 1`.tar.gz \ - && cd $(package)-$(version) \ - && ( zcat ../../$(package)-$(version)-`expr $(debian) - 1`.diff.gz \ - | patch -sER -p1 ) \ - && find . -name "*.orig" -exec rm -f {} \; \ - && cd .. \ - && mv $(package)-$(version) ../$(package)-$(version).orig \ - && cd .. \ - && rmdir $(package).orig ) - touch stamp-orig +#!/usr/bin/make -f +# Sample debian.rules file - for GNU Hello (1.3). +# Copyright 1994,1995 by Ian Jackson. +# I hereby give you perpetual unlimited permission to copy, +# modify and relicense this file, provided that you do not remove +# my name from the file itself. (I assert my moral right of +# paternity under the Copyright, Designs and Patents Act 1988.) +# This file may have to be extensively modified +# Copyright 1996 by Kevin Dalley +# + + +CC = gcc +CFLAGS = -O2 +LDFLAGS = -s + +package = findutils + +build: + $(checkdir) + ./configure --prefix=/usr + $(MAKE) localstatedir='$(prefix)/var/lib/locate' \ + libexecdir=/usr/lib/locate \ + CC="$(CC)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" + cd doc ; makeinfo find.texi + touch build + +clean: + $(checkdir) + -rm -f build + -$(MAKE) -i distclean || $(MAKE) -f Makefile.in distclean + -rm -rf *~ debian/tmp debian/*~ debian/files* + +binary-indep: checkroot build + $(checkdir) +# There are no architecture-independent files to be uploaded +# generated by this package. If there were any they would be +# made here. + +binary-arch: checkroot build + $(checkdir) + -rm -rf debian/tmp + install -d debian/tmp debian/tmp/DEBIAN + install -d debian/tmp/usr/doc/$(package) + install -d debian/tmp/usr/bin + install -d debian/tmp/usr/lib + install -d debian/tmp/usr/lib/locate + install -d debian/tmp/etc + install -d debian/tmp/etc/cron.daily + install -d debian/tmp/var + install -d debian/tmp/var/lib + install -d debian/tmp/var/lib/locate + cp debian/{postinst,postrm,preinst} debian/tmp/DEBIAN/. + cp debian/cron.find debian/tmp/etc/cron.daily/find + chmod +x debian/tmp/DEBIAN/{postinst,postrm,preinst} + $(MAKE) prefix=`pwd`/debian/tmp/usr \ + localstatedir=`pwd`/debian/tmp/var/lib/locate \ + libexecdir=`pwd`/debian/tmp/usr/lib/locate \ + CC="$(CC)" CFLAGS="$(CFLAGS)" LDFLAGS="$(LDFLAGS)" \ + INSTALL_PROGRAM='install -c' \ + install + gzip -9v debian/tmp/usr/info/* + gzip -9v debian/tmp/usr/man/*/* + cp debian/copyright debian/tmp/usr/doc/$(package)/. + cp debian/changelog debian/tmp/usr/doc/$(package)/changelog.Debian + cp ChangeLog debian/tmp/usr/doc/$(package)/changelog + gzip -9v debian/tmp/usr/doc/$(package)/changelog{,.Debian} + dpkg-shlibdeps find/find + dpkg-gencontrol + chown -R root.root debian/tmp + chmod -R g-ws debian/tmp + dpkg --build debian/tmp .. + +define checkdir + test -f find/find.c -a -f debian/rules +endef + +# Below here is fairly generic really + +binary: binary-indep binary-arch + +source diff: + @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false + +checkroot: + $(checkdir) + test root = "`whoami`" + +.PHONY: binary binary-arch binary-indep clean checkroot -- 2.11.4.GIT