debian/0000755000000000000000000000000012206160125007161 5ustar debian/control0000644000000000000000000000166712164037444010610 0ustar Source: agedu Section: utils Priority: optional Maintainer: Alexander Prinsier Build-Depends: debhelper (>= 9), autotools-dev, dh-autoreconf Standards-Version: 3.9.4 Homepage: http://www.chiark.greenend.org.uk/~sgtatham/agedu/ Package: agedu Architecture: any Depends: ${shlibs:Depends}, ${misc:Depends} Description: 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. debian/copyright0000644000000000000000000000303112164034771011123 0ustar 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-2010, Alexander Prinsier and is licensed under the same license as the source package itself, see the text above. debian/changelog0000644000000000000000000000334412164047273011052 0ustar agedu (9723-1) unstable; urgency=low * Version bump to r9723 (Closes: #698183) * Updated to Standards-Version 3.9.4 * Simplification of debian/rules -- Alexander Prinsier Sat, 29 Jun 2013 15:20:30 +0200 agedu (8928-1) unstable; urgency=low * Version bump to r8928 * Switched to source format 3.0 (quilt) * Updated the Standards-Version to 3.8.4 * Removed README.source * Cleanup of debian/rules -- Alexander Prinsier Wed, 16 Jun 2010 12:33:13 +0200 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 debian/compat0000644000000000000000000000000212164035407010366 0ustar 9 debian/watch0000644000000000000000000000012312164034771010220 0ustar version=3 http://www.chiark.greenend.org.uk/~sgtatham/agedu/agedu-r([\d]+).tar.gz debian/docs0000644000000000000000000000000512164034771010041 0ustar TODO debian/patches/0000755000000000000000000000000012164040235010612 5ustar debian/patches/series0000644000000000000000000000002612164035033012025 0ustar manpage-hyphens.patch debian/patches/manpage-hyphens.patch0000644000000000000000000002270612164040235014726 0ustar This patch converts several hyphens to minus signs in the manpage as per lintian warning "hyphen-used-as-minus-sign". Author: Alexander Prinsier --- a/agedu.1 +++ b/agedu.1 @@ -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.) @@ -183,13 +183,13 @@ .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. .RS .PP -Another use for this mode might be to find \fIrecently created\fP large data. If your disk has been gradually filling up for years, the default mode of \fBagedu\fP will let you find unused data to delete; but if you know your disk had plenty of space recently and now it\*(Aqs suddenly full, and you suspect that some rogue program has left a large core dump or output file, then \fBagedu --mtime\fP might be a convenient way to locate the culprit. +Another use for this mode might be to find \fIrecently created\fP large data. If your disk has been gradually filling up for years, the default mode of \fBagedu\fP will let you find unused data to delete; but if you know your disk had plenty of space recently and now it\*(Aqs suddenly full, and you suspect that some rogue program has left a large core dump or output file, then \fBagedu \-\-mtime\fP might be a convenient way to locate the culprit. .RE .PP The following option affects all the modes that generate reports: the web server mode \fB-w\fP, the stand-alone HTML generation mode \fB-H\fP and the text report mode \fB-t\fP. @@ -258,4 +258,4 @@ Finally, of course, \fBagedu\fP\*(Aqs normal usage mode depends critically on the OS providing last-access times which are at least approximately right. So a file system mounted with Linux\*(Aqs `\fBnoatime\fP' option, or the equivalent on any other OS, will not give useful results! (However, the Linux mount option `\fBrelatime\fP', which distributions now tend to use by default, should be fine for all but specialist purposes: it reduces the accuracy of last-access times so that they might be wrong by up to 24 hours, but if you\*(Aqre looking for files that have been unused for months or years, that\*(Aqs not a problem.) .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. --- a/configure.ac +++ b/configure.ac @@ -11,6 +11,7 @@ AC_PROG_CC_C99 AC_PROG_INSTALL AC_CHECK_PROG([HALIBUT],[halibut],[yes],[no]) +AC_DEFINE([HALIBUT],[no],[Do not use halibut for manpage generation]) AM_CONDITIONAL([HAVE_HALIBUT],[test "x$HALIBUT" = "xyes"]) # Checks for libraries. debian/rules0000755000000000000000000000074112164034777010263 0ustar #!/usr/bin/make -f # -*- makefile -*- # Sample debian/rules that uses debhelper. # This file was originally written by Joey Hess and Craig Small. # As a special exception, when this file is copied by dh-make into a # dh-make output file, you may use that output file without restriction. # This special exception was added by Craig Small in version 0.37 of dh-make. # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 %: dh $@ --with autotools-dev --with autoreconf debian/source/0000755000000000000000000000000012164034771010473 5ustar debian/source/format0000644000000000000000000000001412164034771011701 0ustar 3.0 (quilt)