Date: Sat, 21 Jan 2006 23:17:35 -0500 (EST) From: "Jeffrey H. Johnson" <CPE1704TKS@bellsouth.net> To: FreeBSD-gnats-submit@FreeBSD.org Cc: CPE1704TKS@bellsouth.net Subject: ports/92130: [NEW PORT] sysutils/agef: Show disk usage of file sizes and counts sorted by file age Message-ID: <20060122041735.AF5C339833@offworld.cqasys.com> Resent-Message-ID: <200601220430.k0M4U6At095809@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 92130 >Category: ports >Synopsis: [NEW PORT] sysutils/agef: Show disk usage of file sizes and counts sorted by file age >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sun Jan 22 04:30:05 GMT 2006 >Closed-Date: >Last-Modified: >Originator: Jeffrey H. Johnson >Release: FreeBSD 6.0-STABLE i386 >Organization: >Environment: System: FreeBSD offworld.cqasys.com 6.0-STABLE FreeBSD 6.0-STABLE #21: Wed Jan 18 22:35:45 EST 2006 >Description: This is the third revision of the AGEF (please pronounce this AGE-F, for "age files") program, which was initially posted to net.sources March 2, 1987. This version of the program can age by inode change time (-c), file modification time (-m), or time of last access (-a). This program is useful for cleaning up disks and maintaining large collections of small files, such as mail or news spools. PS - I hope I am sending these in correctly. :p Everything seems to pass both "port test" and "portlint -a", at least. Generated with FreeBSD Port Tools 0.63 >How-To-Repeat: >Fix: --- agef-3.0.shar begins here --- # This is a shell archive. Save it in a file, remove anything before # this line, and then unpack it by entering "sh file". Note, it may # create directories; files and directories will be owned by you and # have default permissions. # # This archive contains: # # agef # agef/files # agef/files/patch-aa # agef/files/patch-ab # agef/files/patch-ac # agef/Makefile # agef/distinfo # agef/pkg-descr # agef/pkg-plist # echo c - agef mkdir -p agef > /dev/null 2>&1 echo c - agef/files mkdir -p agef/files > /dev/null 2>&1 echo x - agef/files/patch-aa sed 's/^X//' >agef/files/patch-aa << 'END-of-agef/files/patch-aa' X*** agef.c.orig Sat Jan 21 22:23:18 2006 X--- agef.c Sat Jan 21 22:23:36 2006 X*************** X*** 75,86 **** X unsigned ages[MAXAGES]; /* age categories */ X int inodes[MAXAGES];/* inode count */ X long sizes[MAXAGES]; /* block count */ X X char topdir[NAMELEN];/* our starting directory */ X! long today, X! time(); /* today's date */ X X X X main(argc, argv) X int argc; X--- 75,86 ---- X unsigned ages[MAXAGES]; /* age categories */ X int inodes[MAXAGES];/* inode count */ X long sizes[MAXAGES]; /* block count */ X X char topdir[NAMELEN];/* our starting directory */ X! long today; X! time_t time(); /* today's date */ X X X X main(argc, argv) X int argc; END-of-agef/files/patch-aa echo x - agef/files/patch-ab sed 's/^X//' >agef/files/patch-ab << 'END-of-agef/files/patch-ab' X*** customize.h.orig Sat Jan 21 22:22:14 2006 X--- customize.h Sat Jan 21 22:24:41 2006 X*************** X*** 7,22 **** X */ X X #define FLOAT_FORMAT "%d %#4.1fM" /* if your printf does %# */ X /*#define FLOAT_FORMAT "%d %4.1fM" /* if it doesn't do %# */ X X! #define NAMELEN 512 /* max size of a full pathname */ X X #ifdef BSD X! # include <sys/dir.h> X # define OPEN DIR X! # define READ struct direct X # define NAME(x) ((x).d_name) X #else X #ifdef SYS_V X /* Customize this. This is part of Doug Gwyn's package for */ X /* reading directories. If you've put this file somewhere */ X--- 7,22 ---- X */ X X #define FLOAT_FORMAT "%d %#4.1fM" /* if your printf does %# */ X /*#define FLOAT_FORMAT "%d %4.1fM" /* if it doesn't do %# */ X X! #define NAMELEN 1024 /* max size of a full pathname */ X X #ifdef BSD X! # include <dirent.h> X # define OPEN DIR X! # define READ struct dirent X # define NAME(x) ((x).d_name) X #else X #ifdef SYS_V X /* Customize this. This is part of Doug Gwyn's package for */ X /* reading directories. If you've put this file somewhere */ END-of-agef/files/patch-ab echo x - agef/files/patch-ac sed 's/^X//' >agef/files/patch-ac << 'END-of-agef/files/patch-ac' X*** Makefile.orig Sun Feb 26 17:37:21 1989 X--- Makefile Sat Jan 21 23:10:07 2006 X*************** X*** 32,43 **** X X X # Standard things you may wish to change: X # X # INSTALL directory to install agef in X X! INSTALL = /usr/local/bin X X X # The following OPTIONS may be defined: X # X # LSTAT we have the lstat(2) system call (BSD only) X--- 32,45 ---- X X X # Standard things you may wish to change: X # X # INSTALL directory to install agef in X+ # INSTALLMAN directory to install agef.8 in X X! INSTALL = ${PREFIX}/bin X! INSTALLMAN = ${PREFIX}/man/man8 X X X # The following OPTIONS may be defined: X # X # LSTAT we have the lstat(2) system call (BSD only) X*************** X*** 53,64 **** X--- 55,69 ---- X CFLAGS= -O $(SYS) $(OPTIONS) X SRCS= agef.c hash.c direct.c \ X hash.h customize.h patchlevel.h X OBJS= agef.o hash.o X X+ all: agef X+ X install: agef X install -m 0511 agef $(INSTALL) X+ install -m 0644 agef.8 $(INSTALLMAN) X X clean: X rm -f $(OBJS) agef *~ X X agef: $(OBJS) END-of-agef/files/patch-ac echo x - agef/Makefile sed 's/^X//' >agef/Makefile << 'END-of-agef/Makefile' X# New ports collection makefile for: agef X# Date created: 21 January 2006 X# Whom: Jeffrey H. Johnson <CPE1704TKS@bellsouth.net> X# X# $FreeBSD: ports/sysutils/agef/Makefile,v 1.00 2006/01/21 23:13:25 irn Exp $ X# X XPORTNAME= agef XPORTVERSION= 3.0 XCATEGORIES= sysutils XMASTER_SITES= ftp://ftp.unicamp.br/pub/unix-c/file-mgmt/ \ X http://ftp.br.xemacs.org/pub/unix-c/file-mgmt/ \ X http://www.scn.rain.com/pub/news/ XDISTNAME= agef XEXTRACT_SUFX= .tar.Z X XMAINTAINER= CPE1704TKS@bellsouth.net XCOMMENT= Show disk usage of file sizes and counts sorted by file age X XALL_TARGET= ${PORTNAME} XMAN8= agef.8 X X.include <bsd.port.mk> END-of-agef/Makefile echo x - agef/distinfo sed 's/^X//' >agef/distinfo << 'END-of-agef/distinfo' XMD5 (agef.tar.Z) = ebf5519d264cf638e48e3c90fb1c6c2e XSHA256 (agef.tar.Z) = 56cd1ca818aa4e52a9d68ec44989e8f95dff4b4287c3778eb3fd55bf9b99a8ed XRMD160 (agef.tar.Z) = b35e8cb847f7d3e7dbb340cbc52ced859e0a1f5e XSIZE (agef.tar.Z) = 13761 END-of-agef/distinfo echo x - agef/pkg-descr sed 's/^X//' >agef/pkg-descr << 'END-of-agef/pkg-descr' XThis is the third revision of the AGEF (please pronounce this XAGE-F, for "age files") program, which was initially posted to Xnet.sources March 2, 1987. X XThis version of the program can age by inode change time (-c), Xfile modification time (-m), or time of last access (-a). X XThis program is useful for cleaning up disks and maintaining Xlarge collections of small files, such as mail or news spools. END-of-agef/pkg-descr echo x - agef/pkg-plist sed 's/^X//' >agef/pkg-plist << 'END-of-agef/pkg-plist' Xbin/agef END-of-agef/pkg-plist exit --- agef-3.0.shar ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060122041735.AF5C339833>