summaryrefslogtreecommitdiff
path: root/sysutils/agedu
diff options
context:
space:
mode:
authorwiz <wiz>2009-06-07 13:48:20 +0000
committerwiz <wiz>2009-06-07 13:48:20 +0000
commit821080a30a78239da999b9dcc2b43e80af966138 (patch)
tree985237d7a5ffe29f4e2edfca9b0d0f545a33b95d /sysutils/agedu
parent4319df3eabef57e5811606024f4f341c970e0cd0 (diff)
downloadpkgsrc-821080a30a78239da999b9dcc2b43e80af966138.tar.gz
Initial import of agedu-8590:
Suppose you're running low on disk space. You need to free some up, by finding something that's a waste of space and deleting it (or moving it to an archive medium). How do you find the right stuff to delete, that saves you the maximum space at the cost of minimum inconvenience? 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. Most Unix file systems, in their default mode, helpfully record when a file was last accessed. Not just when it was written or modified, but when it was even read. So if you generated a large amount of data years ago, forgot to clean it up, and have never used it since, then it ought in principle to be possible to use those last-access time stamps to tell the difference between that and a large amount of data you're still using regularly. agedu is a program which does this. It does basically the same sort of disk scan as du, but it also records the last-access times of everything it scans. Then it builds an index that lets it efficiently generate reports giving a summary of the results for each subdirectory, and then it produces those reports on demand.
Diffstat (limited to 'sysutils/agedu')
-rw-r--r--sysutils/agedu/DESCR30
-rw-r--r--sysutils/agedu/Makefile17
-rw-r--r--sysutils/agedu/PLIST3
-rw-r--r--sysutils/agedu/distinfo5
4 files changed, 55 insertions, 0 deletions
diff --git a/sysutils/agedu/DESCR b/sysutils/agedu/DESCR
new file mode 100644
index 00000000000..cd7823b2a44
--- /dev/null
+++ b/sysutils/agedu/DESCR
@@ -0,0 +1,30 @@
+Suppose you're running low on disk space. You need to free some
+up, by finding something that's a waste of space and deleting it
+(or moving it to an archive medium). How do you find the right
+stuff to delete, that saves you the maximum space at the cost of
+minimum inconvenience?
+
+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.
+
+Most Unix file systems, in their default mode, helpfully record
+when a file was last accessed. Not just when it was written or
+modified, but when it was even read. So if you generated a large
+amount of data years ago, forgot to clean it up, and have never
+used it since, then it ought in principle to be possible to use
+those last-access time stamps to tell the difference between that
+and a large amount of data you're still using regularly.
+
+agedu is a program which does this. It does basically the same sort
+of disk scan as du, but it also records the last-access times of
+everything it scans. Then it builds an index that lets it efficiently
+generate reports giving a summary of the results for each subdirectory,
+and then it produces those reports on demand.
diff --git a/sysutils/agedu/Makefile b/sysutils/agedu/Makefile
new file mode 100644
index 00000000000..4fc36d9d312
--- /dev/null
+++ b/sysutils/agedu/Makefile
@@ -0,0 +1,17 @@
+# $NetBSD: Makefile,v 1.1.1.1 2009/06/07 13:48:20 wiz Exp $
+#
+
+DISTNAME= agedu-r8590
+PKGNAME= ${DISTNAME:S/-r/-/}
+CATEGORIES= sysutils
+MASTER_SITES= http://www.chiark.greenend.org.uk/~sgtatham/agedu/
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://www.chiark.greenend.org.uk/~sgtatham/agedu/
+COMMENT= Utility for tracking down wasted disk space
+LICENSE= mit
+
+PKG_DESTDIR_SUPPORT= user-destdir
+GNU_CONFIGURE= yes
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/sysutils/agedu/PLIST b/sysutils/agedu/PLIST
new file mode 100644
index 00000000000..ccf681057c6
--- /dev/null
+++ b/sysutils/agedu/PLIST
@@ -0,0 +1,3 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2009/06/07 13:48:20 wiz Exp $
+bin/agedu
+man/man1/agedu.1
diff --git a/sysutils/agedu/distinfo b/sysutils/agedu/distinfo
new file mode 100644
index 00000000000..8907343ac61
--- /dev/null
+++ b/sysutils/agedu/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2009/06/07 13:48:20 wiz Exp $
+
+SHA1 (agedu-r8590.tar.gz) = ee27d6b2514083dace34e452070762eb33c2af55
+RMD160 (agedu-r8590.tar.gz) = b1b6d560f5cb71fca9e6be0d7c4070b4ca802377
+Size (agedu-r8590.tar.gz) = 124908 bytes