--- agedu-8642.orig/debian/compat +++ agedu-8642/debian/compat @@ -0,0 +1 @@ +7 --- agedu-8642.orig/debian/README.source +++ agedu-8642/debian/README.source @@ -0,0 +1,2 @@ +Please read /usr/share/doc/quilt/README.source for information +about the patch system used (quilt). --- agedu-8642.orig/debian/docs +++ agedu-8642/debian/docs @@ -0,0 +1 @@ +TODO --- agedu-8642.orig/debian/copyright +++ agedu-8642/debian/copyright @@ -0,0 +1,37 @@ +This package was debianized by Alexander Prinsier on +Tue, 26 May 2009 23:21:27 +0200. + +It was downloaded from http://www.chiark.greenend.org.uk/~sgtatham/agedu/ + +Upstream Author: + + Simon Tatham + +Copyright: + + Copyright © 2008 Simon Tatham + +License: + + Permission is hereby granted, free of charge, to any person + obtaining a copy of this software and associated documentation files + (the "Software"), to deal in the Software without restriction, + including without limitation the rights to use, copy, modify, merge, + publish, distribute, sublicense, and/or sell copies of the Software, + and to permit persons to whom the Software is furnished to do so, + subject to the following conditions: + + The above copyright notice and this permission notice shall be + included in all copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF + MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS + BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN + ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN + CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. + +The Debian packaging is © 2009, Alexander Prinsier and +is licensed under the GPL, see `/usr/share/common-licenses/GPL'. --- agedu-8642.orig/debian/control +++ agedu-8642/debian/control @@ -0,0 +1,22 @@ +Source: agedu +Section: utils +Priority: optional +Maintainer: Alexander Prinsier +Build-Depends: debhelper (>= 7.0.8), autotools-dev, quilt (>= 0.46-7~) +Standards-Version: 3.8.3 +Homepage: http://www.chiark.greenend.org.uk/~sgtatham/agedu/ + +Package: agedu +Architecture: any +Depends: ${shlibs:Depends}, ${misc:Depends} +Description: a Unix utility for tracking down wasted disk space + Unix provides the standard du utility, which scans your disk and tells you + which directories contain the largest amounts of data. That can help you + narrow your search to the things most worth deleting. + . + However, that only tells you what's big. What you really want to know is + what's too big. By itself, du won't let you distinguish between data that's + big because you're doing something that needs it to be big, and data that's + big because you unpacked it once and forgot about it. + . + To make this difference, agedu relies on the atime of the files. --- agedu-8642.orig/debian/watch +++ agedu-8642/debian/watch @@ -0,0 +1,3 @@ +version=3 + +http://www.chiark.greenend.org.uk/~sgtatham/agedu/agedu-r([\d]+).tar.gz --- agedu-8642.orig/debian/rules +++ agedu-8642/debian/rules @@ -0,0 +1,84 @@ +#!/usr/bin/make -f + +# Uncomment this to turn on verbose mode. +#export DH_VERBOSE=1 + +# These are used for cross-compiling and for saving the configure script +# from having to guess our platform (since we know it already) +DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) +DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) +ifneq ($(DEB_HOST_GNU_TYPE),$(DEB_BUILD_GNU_TYPE)) +CROSS= --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE) +else +CROSS= --build $(DEB_BUILD_GNU_TYPE) +endif + + + +config.status: configure + dh_testdir + dh_quilt_patch + # Add here commands to configure the package. +ifneq "$(wildcard /usr/share/misc/config.sub)" "" + cp -f /usr/share/misc/config.sub config.sub +endif +ifneq "$(wildcard /usr/share/misc/config.guess)" "" + cp -f /usr/share/misc/config.guess config.guess +endif + ./configure $(CROSS) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info CFLAGS="$(CFLAGS)" LDFLAGS="-Wl,-z,defs" + + +build: build-stamp + +build-stamp: config.status + dh_testdir + + # Add here commands to compile the package. + $(MAKE) + + touch $@ + +clean: + dh_testdir + dh_testroot + rm -f build-stamp + + # Add here commands to clean up after the build process. + [ ! -f Makefile ] || $(MAKE) distclean + rm -f config.sub config.guess + + dh_quilt_unpatch + dh_clean + +install: build + dh_testdir + dh_testroot + dh_prep + dh_installdirs + + # Add here commands to install the package into debian/agedu. + $(MAKE) DESTDIR=$(CURDIR)/debian/agedu install + + +# Build architecture-independent files here. +binary-indep: build install +# We have nothing to do by default. + +# Build architecture-dependent files here. +binary-arch: build install + dh_testdir + dh_testroot + dh_installchangelogs + dh_installdocs + dh_installman + dh_strip + dh_compress + dh_fixperms + dh_installdeb + dh_shlibdeps + dh_gencontrol + dh_md5sums + dh_builddeb + +binary: binary-indep binary-arch +.PHONY: build clean binary-indep binary-arch binary install --- agedu-8642.orig/debian/changelog +++ agedu-8642/debian/changelog @@ -0,0 +1,43 @@ +agedu (8642-1) unstable; urgency=low + + * Updated to upstream revision 8642 + * Handle >4GB files (Closes: #537127) + * Updated the Standards-Version to 3.8.3 + * Fixed the watch file + + -- Alexander Prinsier Mon, 14 Sep 2009 16:03:20 +0200 + +agedu (8442-5) unstable; urgency=low + + * The manpage now uses a minus sign instead of a hyphen + when referring to command line options. + * Added an (empty) watch file + * Updated the Standards-Version to 3.8.1 + * Replaced (C) by © in debian/copyright + + -- Alexander Prinsier Fri, 29 May 2009 01:32:25 +0200 + +agedu (8442-4) unstable; urgency=low + + * Cleanup of debian/rules part 2 + + -- Alexander Prinsier Thu, 28 May 2009 12:44:51 +0200 + +agedu (8442-3) unstable; urgency=low + + * Cleanup of debian/rules + + -- Alexander Prinsier Thu, 28 May 2009 12:22:18 +0200 + +agedu (8442-2) unstable; urgency=low + + * Use dh_prep instead of the deprecated dh_clean -k + + -- Alexander Prinsier Wed, 27 May 2009 11:01:49 +0200 + +agedu (8442-1) unstable; urgency=low + + * Initial release (Closes: #530660) + + -- Alexander Prinsier Tue, 26 May 2009 23:21:27 +0200 + --- agedu-8642.orig/debian/patches/manpage-hyphens.patch +++ agedu-8642/debian/patches/manpage-hyphens.patch @@ -0,0 +1,52 @@ +This patch converts several hyphens to minus signs in the manpage as per +lintian warning "hyphen-used-as-minus-sign". + +Author: Alexander Prinsier +Index: agedu-r8642/agedu.1 +=================================================================== +--- agedu-r8642.orig/agedu.1 2009-09-11 21:08:30.000000000 +0200 ++++ agedu-r8642/agedu.1 2009-09-11 21:12:37.000000000 +0200 +@@ -42,7 +42,7 @@ + .PP + Now paste that URL into your web browser, and you will be shown a graphical representation of the disk usage in \fB/home/fred\fP and its immediate subdirectories, with varying colours used to show the difference between disused and recently-accessed data. Click on any subdirectory to descend into it and see a report for its subdirectories in turn; click on parts of the pathname at the top of any page to return to higher-level directories. When you\*(Aqve finished browsing, you can just press Ctrl-D to send an end-of-file indication to \fBagedu\fP, and it will shut down. + .PP +-After that, you probably want to delete the data file \fBagedu.dat\fP, since it\*(Aqs pretty large. In fact, the command \fBagedu -R\fP will do this for you; and you can chain \fBagedu\fP commands on the same command line, so that instead of the above you could have done ++After that, you probably want to delete the data file \fBagedu.dat\fP, since it\*(Aqs pretty large. In fact, the command \fBagedu \-R\fP will do this for you; and you can chain \fBagedu\fP commands on the same command line, so that instead of the above you could have done + .PP + .nf + $\ \fBagedu\ \-s\ /home/fred\ \-w\ \-R\fP +@@ -92,16 +92,16 @@ + .PP + Used on its own, \fB-t\fP merely lists the \fItotal\fP disk usage in each subdirectory; \fBagedu\fP\*(Aqs additional ability to distinguish unused from recently-used data is not activated. To activate it, use the \fB-a\fP option to specify a minimum age. + .PP +-The directory structure stored in \fBagedu\fP\*(Aqs index file is treated as a set of literal strings. This means that you cannot refer to directories by synonyms. So if you ran \fBagedu -s .\fP, then all the path names you later pass to the \fB-t\fP option must be either `\fB.\fP' or begin with `\fB./\fP'. Similarly, symbolic links within the directory you scanned will not be followed; you must refer to each directory by its canonical, symlink-free pathname. ++The directory structure stored in \fBagedu\fP\*(Aqs index file is treated as a set of literal strings. This means that you cannot refer to directories by synonyms. So if you ran \fBagedu \-s .\fP, then all the path names you later pass to the \fB-t\fP option must be either `\fB.\fP' or begin with `\fB./\fP'. Similarly, symbolic links within the directory you scanned will not be followed; you must refer to each directory by its canonical, symlink-free pathname. + .RE + .IP "\fB-R\fP or \fB--remove\fP" +-In this mode, \fBagedu\fP deletes its index file. Running just \fBagedu -R\fP on its own is therefore equivalent to typing \fBrm agedu.dat\fP. However, you can also put \fB-R\fP on the end of a command line to indicate that \fBagedu\fP should delete its index file after it finishes performing other operations. ++In this mode, \fBagedu\fP deletes its index file. Running just \fBagedu \-R\fP on its own is therefore equivalent to typing \fBrm agedu.dat\fP. However, you can also put \fB-R\fP on the end of a command line to indicate that \fBagedu\fP should delete its index file after it finishes performing other operations. + .IP "\fB-D\fP or \fB--dump\fP" + In this mode, \fBagedu\fP reads an existing index file and produces a dump of its contents on standard output. This dump can later be loaded into a new index file, perhaps on another computer. + .IP "\fB-L\fP or \fB--load\fP" + In this mode, \fBagedu\fP expects to read a dump produced by the \fB-D\fP option from its standard input. It constructs an index file from that dump, exactly as it would have if it had read the same data from a disk scan in \fB-s\fP mode. + .IP "\fB-S\fP \fIdirectory\fP or \fB--scan-dump\fP \fIdirectory\fP" +-In this mode, \fBagedu\fP will scan a directory tree and convert the results straight into a dump on standard output, without generating an index file at all. So running \fBagedu -S /path\fP should produce equivalent output to that of \fBagedu -s /path -D\fP, except that the latter will produce an index file as a side effect whereas \fB-S\fP will not. ++In this mode, \fBagedu\fP will scan a directory tree and convert the results straight into a dump on standard output, without generating an index file at all. So running \fBagedu \-S /path\fP should produce equivalent output to that of \fBagedu \-s /path \-D\fP, except that the latter will produce an index file as a side effect whereas \fB-S\fP will not. + .RS + .PP + (The output will not be exactly \fIidentical\fP, due to a difference in treatment of last-access times on directories. However, it should be effectively equivalent for most purposes. See the documentation of the \fB--dir-atime\fP option in the next section for further detail.) +@@ -167,7 +167,7 @@ + .PP + The faking of atimes on directories also requires a processing pass over the index file after the main disk scan is complete. \fB--dir-atime\fP also turns this pass off. Hence, this option affects the \fB-L\fP option as well as \fB-s\fP and \fB-S\fP. + .PP +-(The previous section mentioned that there might be subtle differences between the output of \fBagedu -s /path -D\fP and \fBagedu -S /path\fP. This is why. Doing a scan with \fB-s\fP and then dumping it with \fB-D\fP will dump the fully faked atimes on the directories, whereas doing a scan-to-dump with \fB-S\fP will dump only \fIpartially\fP faked atimes - specifically, each directory\*(Aqs last modification time - since the subsequent processing pass will not have had a chance to take place. However, loading either of the resulting dump files with \fB-L\fP will perform the atime-faking processing pass, leading to the same data in the index file in each case. In normal usage it should be safe to ignore all of this complexity.) ++(The previous section mentioned that there might be subtle differences between the output of \fBagedu \-s /path \-D\fP and \fBagedu \-S /path\fP. This is why. Doing a scan with \fB-s\fP and then dumping it with \fB-D\fP will dump the fully faked atimes on the directories, whereas doing a scan-to-dump with \fB-S\fP will dump only \fIpartially\fP faked atimes - specifically, each directory\*(Aqs last modification time - since the subsequent processing pass will not have had a chance to take place. However, loading either of the resulting dump files with \fB-L\fP will perform the atime-faking processing pass, leading to the same data in the index file in each case. In normal usage it should be safe to ignore all of this complexity.) + .RE + .IP "\fB--mtime\fP" + This option causes \fBagedu\fP to index files by their last modification time instead of their last access time. You might want to use this if your last access times were completely useless for some reason: for example, if you had recently searched every file on your system, the system would have lost all the information about what files you hadn\*(Aqt recently accessed before then. Using this option is liable to be less effective at finding genuinely wasted space than the normal mode (that is, it will be more likely to flag things as disused when they\*(Aqre not, so you will have more candidates to go through by hand looking for data you don\*(Aqt need), but may be better than nothing if your last-access times are unhelpful. +@@ -212,4 +212,4 @@ + The data structure also does not usefully permit access control within the data file, so it would be difficult - even given the willingness to do additional coding - to run a system-wide \fBagedu\fP scan on a \fBcron\fP job and serve the right subset of reports to each user. + .SH "LICENCE" + .PP +-\fBagedu\fP is free software, distributed under the MIT licence. Type \fBagedu --licence\fP to see the full licence text. ++\fBagedu\fP is free software, distributed under the MIT licence. Type \fBagedu \-\-licence\fP to see the full licence text. --- agedu-8642.orig/debian/patches/series +++ agedu-8642/debian/patches/series @@ -0,0 +1 @@ +manpage-hyphens.patch