ports/73007: [ new port ] sysutils/cdf: a colorized df

Roman Bogorodskiy bogorodskiy at inbox.ru
Fri Oct 22 15:30:13 UTC 2004


>Number:         73007
>Category:       ports
>Synopsis:       [ new port ] sysutils/cdf: a colorized df
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Fri Oct 22 15:30:13 GMT 2004
>Closed-Date:
>Last-Modified:
>Originator:     Roman Bogorodskiy
>Release:        FreeBSD 5.3-BETA7 i386
>Organization:
>Environment:
System: FreeBSD lame.novel.ru 5.3-BETA7 FreeBSD 5.3-BETA7 #12: Sat Oct 16 20:09:15 MSD 2004 root at lame.novel.ru:/usr/obj/usr/home/novel/current/src/sys/NOVEL i386


>Description:
	cdf means "colorized df". The main features of cdf are:

	    * customazable color schemes
	    * eye-friendly capacity bars
	    * most of such utils needs some 3rd party libraries, python interpreter
	      and so on, while cdf written in pure C

	http://bmp-plugins.berlios.de/misc/cdf/cdf.html

>How-To-Repeat:
>Fix:

# 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:
#
#	cdf
#	cdf/pkg-descr
#	cdf/Makefile
#	cdf/distinfo
#	cdf/files
#	cdf/files/patch-main.c
#	cdf/files/patch-colors.c
#
echo c - cdf
mkdir -p cdf > /dev/null 2>&1
echo x - cdf/pkg-descr
sed 's/^X//' >cdf/pkg-descr << 'END-of-cdf/pkg-descr'
Xcdf means "colorized df". The main features of cdf are:
X
X    * customazable color schemes
X    * eye-friendly capacity bars
X    * most of such utils needs some 3rd party libraries, python interpreter 
X      and so on, while cdf written in pure C
X
XWWW:	http://bmp-plugins.berlios.de/misc/cdf/cdf.html
END-of-cdf/pkg-descr
echo x - cdf/Makefile
sed 's/^X//' >cdf/Makefile << 'END-of-cdf/Makefile'
X# New ports collection makefile for:	cdf
X# Date created:		2004-10-22
X# Whom:			Charlie & <root at lame.novel.ru>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	cdf
XPORTVERSION=	0.1
XCATEGORIES=	sysutils
XMASTER_SITES=	http://bmp-plugins.berlios.de/misc/cdf/
X
XMAINTAINER=	bogorodskiy at inbox.ru
XCOMMENT=	A colorized df
X
XPLIST_FILES=	bin/cdf
X
XGNU_CONFIGURE=	yes
XCONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
X
X.include <bsd.port.mk>
END-of-cdf/Makefile
echo x - cdf/distinfo
sed 's/^X//' >cdf/distinfo << 'END-of-cdf/distinfo'
XMD5 (cdf-0.1.tar.gz) = 8591e101a9da0844c010804445091545
XSIZE (cdf-0.1.tar.gz) = 147061
END-of-cdf/distinfo
echo c - cdf/files
mkdir -p cdf/files > /dev/null 2>&1
echo x - cdf/files/patch-main.c
sed 's/^X//' >cdf/files/patch-main.c << 'END-of-cdf/files/patch-main.c'
X--- src/main.c.orig	Fri Oct 22 19:18:32 2004
X+++ src/main.c	Fri Oct 22 19:18:43 2004
X@@ -38,6 +38,8 @@
X 	
X 	
X 	blocksize = 1048576;
X+
X+	read_config_file(expand_filename("~/.cdfrc"));
X 	
X      	while ((ch = getopt(argc, argv, "gkmt:v")) != -1)
X         	switch (ch) {
END-of-cdf/files/patch-main.c
echo x - cdf/files/patch-colors.c
sed 's/^X//' >cdf/files/patch-colors.c << 'END-of-cdf/files/patch-colors.c'
X--- src/colors.c.orig	Fri Oct 22 19:03:40 2004
X+++ src/colors.c	Fri Oct 22 19:04:16 2004
X@@ -53,12 +53,6 @@
X 
X int read_colors()
X {
X-
X-#ifdef DEBUG
X-	if (read_config_file(expand_filename("~/.cdfrc")) != 0)
X-		(void)fprintf(stderr, "Using default color theme\n");
X-#endif /* DEBUG */
X-	
X 	bracket_color = (char *)malloc(64);
X 	gauge_color = (char *)malloc(64);
X 	header_color = (char *)malloc(64);
END-of-cdf/files/patch-colors.c
exit
>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list