aboutsummaryrefslogtreecommitdiffstats
path: root/sysutils
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2006-01-24 04:21:39 +0800
committerpav <pav@FreeBSD.org>2006-01-24 04:21:39 +0800
commit40f7e598a097ffb9563c86b45f8632bcf7e70069 (patch)
treeb95a46325f7029802c004165fc257e64e056e945 /sysutils
parent4991393b651fb5f47a39d4c8bfe73fe83aeb3085 (diff)
downloadfreebsd-ports-gnome-40f7e598a097ffb9563c86b45f8632bcf7e70069.tar.gz
freebsd-ports-gnome-40f7e598a097ffb9563c86b45f8632bcf7e70069.tar.zst
freebsd-ports-gnome-40f7e598a097ffb9563c86b45f8632bcf7e70069.zip
Using a list of pathnames, this program filters the output of du(1) to
find the amount of disk space used for each of the paths (actually, it collects all values in one single du run). It adds the new value to the list, shifting old values up. It then generates a nice report of the amount of disk space occupied in each of the specified paths, together with the amount it grew (or shrinked) since the previous run, and since 7 runs ago. When run daily, this gives daily and weekly figures. PR: ports/92139 Submitted by: Jeffrey H. Johnson <CPE1704TKS@bellsouth.net>
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/Makefile1
-rw-r--r--sysutils/dusage/Makefile29
-rw-r--r--sysutils/dusage/distinfo4
-rw-r--r--sysutils/dusage/files/patch-Makefile8
-rw-r--r--sysutils/dusage/pkg-descr18
5 files changed, 60 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile
index 589ec5db8bea..930a5d8629d8 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -121,6 +121,7 @@
SUBDIR += dupfind
SUBDIR += duplicity
SUBDIR += durep
+ SUBDIR += dusage
SUBDIR += dvd+rw-tools
SUBDIR += dvdbackup
SUBDIR += dvdimagecmp
diff --git a/sysutils/dusage/Makefile b/sysutils/dusage/Makefile
new file mode 100644
index 000000000000..6972695b4f1f
--- /dev/null
+++ b/sysutils/dusage/Makefile
@@ -0,0 +1,29 @@
+# New ports collection makefile for: dusage
+# Date created: 22 January 2006
+# Whom: Jeffrey H. Johnson <CPE1704TKS@bellsouth.net>
+#
+# $FreeBSD$
+#
+
+PORTNAME= dusage
+PORTVERSION= 19900227
+CATEGORIES= sysutils
+MASTER_SITES= ftp://ftp.unicamp.br/pub/unix-c/sysadmin/ \
+ http://ftp.br.xemacs.org/pub/unix-c/sysadmin/
+DISTNAME= dusage
+EXTRACT_SUFX= .tar.Z
+
+MAINTAINER= CPE1704TKS@bellsouth.net
+COMMENT= Report about disk space in use, change since last run, etc
+
+NO_BUILD= yes
+USE_PERL5= yes
+
+NO_CDROM= may not be sold
+RESTRICTED= may not be used to harm any living creature including the world and the universe
+
+ALL_TARGET= ${PORTNAME}
+MAN1= dusage.1
+PLIST_FILES= bin/dusage
+
+.include <bsd.port.mk>
diff --git a/sysutils/dusage/distinfo b/sysutils/dusage/distinfo
new file mode 100644
index 000000000000..80072a700409
--- /dev/null
+++ b/sysutils/dusage/distinfo
@@ -0,0 +1,4 @@
+SIZE (dusage.tar.Z) = 10436
+MD5 (dusage.tar.Z) = f2d95cdf9bb7747cdc855079142b9e23
+SHA256 (dusage.tar.Z) = 4010c9c543c0d20a27d823c44d1e51a6f1245f6480abfbdde0be661482f05b5f
+RMD160 (dusage.tar.Z) = fedc871da417a715715d89284d3f6d6f781b726b
diff --git a/sysutils/dusage/files/patch-Makefile b/sysutils/dusage/files/patch-Makefile
new file mode 100644
index 000000000000..a30e229abed9
--- /dev/null
+++ b/sysutils/dusage/files/patch-Makefile
@@ -0,0 +1,8 @@
+*** Makefile.orig Sun Jan 22 01:18:50 2006
+--- Makefile Sun Jan 22 01:20:04 2006
+***************
+*** 0 ****
+--- 1,3 ----
++ install:
++ install -m 755 dusage.pl ${PREFIX}/bin/dusage
++ install -m 644 dusage.1 ${PREFIX}/man/man1
diff --git a/sysutils/dusage/pkg-descr b/sysutils/dusage/pkg-descr
new file mode 100644
index 000000000000..a9d2b6597cb1
--- /dev/null
+++ b/sysutils/dusage/pkg-descr
@@ -0,0 +1,18 @@
+Guarding disk space is one of the problems of system management.
+
+Using a list of pathnames, this program filters the output of du(1) to
+find the amount of disk space used for each of the paths (actually, it
+collects all values in one single du run). It adds the new value to
+the list, shifting old values up. It then generates a nice report of
+the amount of disk space occupied in each of the specified paths,
+together with the amount it grew (or shrinked) since the previous run,
+and since 7 runs ago. When run daily, this gives daily and weekly
+figures.
+
+This program requires perl version 3.0, patchlevel 4 or higher.
+
+Copyright 1990 Johan Vromans, all rights reserved.
+
+Peaceware. This program may be used, modified and distributed as long as
+this copyright notice remains part of the source. It may not be sold, or
+be used to harm any living creature including the world and the universe.