diff options
author | pav <pav@FreeBSD.org> | 2006-01-24 02:53:34 +0800 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2006-01-24 02:53:34 +0800 |
commit | cfd02f8d68f428f525673ef902eb4849f6717d43 (patch) | |
tree | 5e4e37c6b2743605f53b253f47440f8beae9f080 /sysutils/agef | |
parent | 7e98ac4689ce4de668f6c860606bf8d0d8063338 (diff) | |
download | freebsd-ports-gnome-cfd02f8d68f428f525673ef902eb4849f6717d43.tar.gz freebsd-ports-gnome-cfd02f8d68f428f525673ef902eb4849f6717d43.tar.zst freebsd-ports-gnome-cfd02f8d68f428f525673ef902eb4849f6717d43.zip |
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.
PR: ports/92130
Submitted by: Jeffrey H. Johnson <CPE1704TKS@bellsouth.net>
Diffstat (limited to 'sysutils/agef')
-rw-r--r-- | sysutils/agef/Makefile | 24 | ||||
-rw-r--r-- | sysutils/agef/distinfo | 4 | ||||
-rw-r--r-- | sysutils/agef/files/patch-Makefile | 49 | ||||
-rw-r--r-- | sysutils/agef/files/patch-agef.c | 29 | ||||
-rw-r--r-- | sysutils/agef/files/patch-customize.h | 37 | ||||
-rw-r--r-- | sysutils/agef/pkg-descr | 9 |
6 files changed, 152 insertions, 0 deletions
diff --git a/sysutils/agef/Makefile b/sysutils/agef/Makefile new file mode 100644 index 000000000000..a9dd15b1666a --- /dev/null +++ b/sysutils/agef/Makefile @@ -0,0 +1,24 @@ +# New ports collection makefile for: agef +# Date created: 21 January 2006 +# Whom: Jeffrey H. Johnson <CPE1704TKS@bellsouth.net> +# +# $FreeBSD$ +# + +PORTNAME= agef +PORTVERSION= 3.0 +CATEGORIES= sysutils +MASTER_SITES= ftp://ftp.unicamp.br/pub/unix-c/file-mgmt/ \ + http://ftp.br.xemacs.org/pub/unix-c/file-mgmt/ \ + http://www.scn.rain.com/pub/news/ +DISTNAME= agef +EXTRACT_SUFX= .tar.Z + +MAINTAINER= CPE1704TKS@bellsouth.net +COMMENT= Show disk usage of file sizes and counts sorted by file age + +ALL_TARGET= ${PORTNAME} +MAN8= agef.8 +PLIST_FILES= bin/agef + +.include <bsd.port.mk> diff --git a/sysutils/agef/distinfo b/sysutils/agef/distinfo new file mode 100644 index 000000000000..951b189d71e6 --- /dev/null +++ b/sysutils/agef/distinfo @@ -0,0 +1,4 @@ +MD5 (agef.tar.Z) = ebf5519d264cf638e48e3c90fb1c6c2e +SHA256 (agef.tar.Z) = 56cd1ca818aa4e52a9d68ec44989e8f95dff4b4287c3778eb3fd55bf9b99a8ed +RMD160 (agef.tar.Z) = b35e8cb847f7d3e7dbb340cbc52ced859e0a1f5e +SIZE (agef.tar.Z) = 13761 diff --git a/sysutils/agef/files/patch-Makefile b/sysutils/agef/files/patch-Makefile new file mode 100644 index 000000000000..3788f8ae0a5b --- /dev/null +++ b/sysutils/agef/files/patch-Makefile @@ -0,0 +1,49 @@ +*** Makefile.orig Sun Feb 26 17:37:21 1989 +--- Makefile Sat Jan 21 23:10:07 2006 +*************** +*** 32,43 **** + + + # Standard things you may wish to change: + # + # INSTALL directory to install agef in + +! INSTALL = /usr/local/bin + + + # The following OPTIONS may be defined: + # + # LSTAT we have the lstat(2) system call (BSD only) +--- 32,45 ---- + + + # Standard things you may wish to change: + # + # INSTALL directory to install agef in ++ # INSTALLMAN directory to install agef.8 in + +! INSTALL = ${PREFIX}/bin +! INSTALLMAN = ${PREFIX}/man/man8 + + + # The following OPTIONS may be defined: + # + # LSTAT we have the lstat(2) system call (BSD only) +*************** +*** 53,64 **** +--- 55,69 ---- + CFLAGS= -O $(SYS) $(OPTIONS) + SRCS= agef.c hash.c direct.c \ + hash.h customize.h patchlevel.h + OBJS= agef.o hash.o + ++ all: agef ++ + install: agef + install -m 0511 agef $(INSTALL) ++ install -m 0644 agef.8 $(INSTALLMAN) + + clean: + rm -f $(OBJS) agef *~ + + agef: $(OBJS) diff --git a/sysutils/agef/files/patch-agef.c b/sysutils/agef/files/patch-agef.c new file mode 100644 index 000000000000..cdce7fdba9bc --- /dev/null +++ b/sysutils/agef/files/patch-agef.c @@ -0,0 +1,29 @@ +*** agef.c.orig Sat Jan 21 22:23:18 2006 +--- agef.c Sat Jan 21 22:23:36 2006 +*************** +*** 75,86 **** + unsigned ages[MAXAGES]; /* age categories */ + int inodes[MAXAGES];/* inode count */ + long sizes[MAXAGES]; /* block count */ + + char topdir[NAMELEN];/* our starting directory */ +! long today, +! time(); /* today's date */ + + + + main(argc, argv) + int argc; +--- 75,86 ---- + unsigned ages[MAXAGES]; /* age categories */ + int inodes[MAXAGES];/* inode count */ + long sizes[MAXAGES]; /* block count */ + + char topdir[NAMELEN];/* our starting directory */ +! long today; +! time_t time(); /* today's date */ + + + + main(argc, argv) + int argc; diff --git a/sysutils/agef/files/patch-customize.h b/sysutils/agef/files/patch-customize.h new file mode 100644 index 000000000000..c5cdd97e4c29 --- /dev/null +++ b/sysutils/agef/files/patch-customize.h @@ -0,0 +1,37 @@ +*** customize.h.orig Sat Jan 21 22:22:14 2006 +--- customize.h Sat Jan 21 22:24:41 2006 +*************** +*** 7,22 **** + */ + + #define FLOAT_FORMAT "%d %#4.1fM" /* if your printf does %# */ + /*#define FLOAT_FORMAT "%d %4.1fM" /* if it doesn't do %# */ + +! #define NAMELEN 512 /* max size of a full pathname */ + + #ifdef BSD +! # include <sys/dir.h> + # define OPEN DIR +! # define READ struct direct + # define NAME(x) ((x).d_name) + #else + #ifdef SYS_V + /* Customize this. This is part of Doug Gwyn's package for */ + /* reading directories. If you've put this file somewhere */ +--- 7,22 ---- + */ + + #define FLOAT_FORMAT "%d %#4.1fM" /* if your printf does %# */ + /*#define FLOAT_FORMAT "%d %4.1fM" /* if it doesn't do %# */ + +! #define NAMELEN 1024 /* max size of a full pathname */ + + #ifdef BSD +! # include <dirent.h> + # define OPEN DIR +! # define READ struct dirent + # define NAME(x) ((x).d_name) + #else + #ifdef SYS_V + /* Customize this. This is part of Doug Gwyn's package for */ + /* reading directories. If you've put this file somewhere */ diff --git a/sysutils/agef/pkg-descr b/sysutils/agef/pkg-descr new file mode 100644 index 000000000000..773c8a6b48c7 --- /dev/null +++ b/sysutils/agef/pkg-descr @@ -0,0 +1,9 @@ +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. |