From owner-freebsd-ports Sat Jun 2 21:20:15 2001 Delivered-To: freebsd-ports@hub.freebsd.org Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id 2A74637B423 for ; Sat, 2 Jun 2001 21:20:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.11.1/8.11.1) id f534K2a01824; Sat, 2 Jun 2001 21:20:02 -0700 (PDT) (envelope-from gnats) Received: from mistral.imasy.or.jp (mistral.imasy.or.jp [202.227.24.84]) by hub.freebsd.org (Postfix) with ESMTP id 88F8F37B423 for ; Sat, 2 Jun 2001 21:13:44 -0700 (PDT) (envelope-from yohta@mistral.imasy.or.jp) Received: (from yohta@localhost) by mistral.imasy.or.jp (8.11.3/8.11.3/mistral) id f5341Uw34880; Sun, 3 Jun 2001 13:01:30 +0900 (JST) (envelope-from yohta) Message-Id: <200106030401.f5341Uw34880@mistral.imasy.or.jp> Date: Sun, 3 Jun 2001 13:01:30 +0900 (JST) From: mistral@imasy.or.jp Reply-To: mistral@imasy.or.jp To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.113 Subject: ports/27848: new port: du2ps Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org >Number: 27848 >Category: ports >Synopsis: New port: du2ps - filter for converting output of du to PostScript file >Confidential: no >Severity: non-critical >Priority: medium >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Sat Jun 02 21:20:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: Yoshihiko Sarumaru >Release: FreeBSD 4.3-STABLE i386 >Organization: IMASY >Environment: System: FreeBSD mistral.imasy.or.jp 4.3-STABLE FreeBSD 4.3-STABLE #4: Mon May 28 13:21:07 JST 2001 yohta@mistral.imasy.or.jp:/usr/obj/usr/src/sys/PCG-505R i386 >Description: du2ps is a similar program to xdu, but it generates result as PostScript file. >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: # # sysutils/ # sysutils/du2ps # sysutils/du2ps/files # sysutils/du2ps/files/patch-aa # sysutils/du2ps/files/patch-ab # sysutils/du2ps/files/du2ps.1 # sysutils/du2ps/pkg-plist # sysutils/du2ps/pkg-descr # sysutils/du2ps/pkg-comment # sysutils/du2ps/distinfo # sysutils/du2ps/Makefile # echo c - sysutils/ mkdir -p sysutils/ > /dev/null 2>&1 echo c - sysutils/du2ps mkdir -p sysutils/du2ps > /dev/null 2>&1 echo c - sysutils/du2ps/files mkdir -p sysutils/du2ps/files > /dev/null 2>&1 echo x - sysutils/du2ps/files/patch-aa sed 's/^X//' >sysutils/du2ps/files/patch-aa << 'END-of-sysutils/du2ps/files/patch-aa' X--- du2ps.h.orig Tue Mar 15 18:17:00 1994 X+++ du2ps.h Fri Jun 1 15:39:04 2001 X@@ -51,6 +51,8 @@ X #define FONT_FAMILY "Times-Roman" X #define LINE_WIDTH 0.5 X #define HEAD_SEP 5.0 X+#define A3_WIDTH 841.889764 X+#define A3_HEIGHT 1190.55118 X #define A4_WIDTH 595.275591 X #define A4_HEIGHT 841.889764 X #define B4_WIDTH 728.503937 END-of-sysutils/du2ps/files/patch-aa echo x - sysutils/du2ps/files/patch-ab sed 's/^X//' >sysutils/du2ps/files/patch-ab << 'END-of-sysutils/du2ps/files/patch-ab' X--- getopt.c.orig Wed Mar 16 11:41:27 1994 X+++ getopt.c Fri Jun 1 15:40:02 2001 X@@ -22,6 +22,7 @@ X "du2ps [options] < infile > outfile", X "OPTIONS:", X " -land ... landscape", X+ " -a3 ... A3", X " -b4 ... B4", X " -b5 ... B5", X " -us ... US letter", X@@ -62,6 +63,10 @@ X i++; X } else if(!strcmp("-sa", argv[i])){ X cmp = cmp_alph; X+ i++; X+ } else if(!strcmp("-a3", argv[i])){ X+ paper_width = A3_WIDTH; X+ paper_height = A3_HEIGHT; X i++; X } else if(!strcmp("-b4", argv[i])){ X paper_width = B4_WIDTH; END-of-sysutils/du2ps/files/patch-ab echo x - sysutils/du2ps/files/du2ps.1 sed 's/^X//' >sysutils/du2ps/files/du2ps.1 << 'END-of-sysutils/du2ps/files/du2ps.1' X.\" X.\" Copyleft by nagae@an.ip.titech.ac.jp and mac@research.co.jp X.\" du2ps.man X.TH du2ps 1 "Mar 2, 1994" X.SH NAME Xdu2ps \- filter for converting output of du to PostScript file X.SH SYNOPSIS X.B du2ps X[ X.I options X] X< X.I du_out_file X> X.I ps_file X.SH DESCRIPTION XThe X.B du2ps Xreads output of X.BR du (1), Xthen generate a figure of hierarchical structure and utilization of Xdirectory as one page PostScript file. X.PP XEach directory is illustrated as rectangle in utilization order with Xheight corresponding to its utilization, and sub directories are placed Xbranched from left to right recursively. X.SH OPTIONS X.TP X.B \-land XLayout in landscape. XDefault is in portrait. X.TP X.B \-sa XPlace directories in alphabetical order. XDefault is in utilization order. X.TP X.B \-b4 X.TP X.B \-b5 X.TP X.B \-us XSwitch page size to B4, B5, or US letter. Default is A4. X.TP X.BI \-ff " name" XSpecify font name for text. Default is Times-Roman. X.TP X.BI \-fs " size" XSpecify font size. Default is 8.0 [pt]. X.TP X.BI \-ms " size" XSpecify margin around page. Default is 50.0 [pt]. X.TP X.BI \-lw " size" XLine width for drawing rectangle area. Default is 0.5 [pt]. X.TP X.BI \-ncols " num" XSpecify number of rectangle columns (maximum directory depth). XDefault is 7 for portrait and 10 for landscape. X.TP X.BI \-eps " width height" XOutput in EPS format. X.I Width Xand X.I height Xare the width and height of BoundingBox. X.SH EXAMPLES X.B " du | du2ps | lpr X.IP XThe most left directory name becomes ``.'', and ``The number of disk Xblocks used at .'' will be displayed at the upper left corner. X. X.B " du /home/taro/work | du2ps | lpr X.PP X.B " du ~taro/work | du2ps | lpr X.IP XThe most left directory name becomes ``work'', and X``The number of disk blocks used at /home/taro/work'' Xwill be displayed at the upper left corner. X.PP X.B " du ../../ps | du2ps -us -fs 16 > tmp.ps; gs tmp.ps X.IP XThe most left directory name becomes ``ps'', and X``The number of disk blocks used at ../../ps'' Xwill be displayed at the upper left corner. XThe ``-us'' option makes entire page to fit paper, because default size of XGhostScript is US letter. X.PP X.B " du ~taro/work ~taro/bin | du2ps -eps 200 300 > fig1.eps X.IP XThe most left directory name becomes ``taro'', and X``The number of disk blocks used at /home/taro'' Xwill be display at the upper left corner. XOutput will be commented with ``%%BoundingBox: 0 0 200 300''. X.PP X.B " du work bin | du2ps -eps 100 100 -fs 4 > fig2.eps X.IP XThe most left directory name becomes ``..'', and X``The number of disk blocks used at'' Xwill be display at the upper left corner. X.SH SEE ALSO X.BR du (1), X.BR xdu (1) X.SH AUTHORS XTakanori Nagae and XShigeru Makino X.PP XThe du2ps is based on xdu. XThe author of xdu is Phillip C. Dykstra . END-of-sysutils/du2ps/files/du2ps.1 echo x - sysutils/du2ps/pkg-plist sed 's/^X//' >sysutils/du2ps/pkg-plist << 'END-of-sysutils/du2ps/pkg-plist' Xbin/du2ps END-of-sysutils/du2ps/pkg-plist echo x - sysutils/du2ps/pkg-descr sed 's/^X//' >sysutils/du2ps/pkg-descr << 'END-of-sysutils/du2ps/pkg-descr' XThe du2ps reads output of du(1), then generate a figure of Xherarchical structure and utilization of each directory. X XThe du2ps is a similar program to xdu, but it produces result as Xa PostScript file. X XThe default paper is ISO A4, but you can select Letter or ISO A3/B4/B5. XYou can also specify font name, font size, number of columns and other Xoptions. X XAuthor: Takanori Nagae and X Shigeru Makino XWWW: http://www.shobi-u.ac.jp/~tnagae/ X X- XYoshihiko Sarumaru END-of-sysutils/du2ps/pkg-descr echo x - sysutils/du2ps/pkg-comment sed 's/^X//' >sysutils/du2ps/pkg-comment << 'END-of-sysutils/du2ps/pkg-comment' XFilter for converting output of du to PostScript file END-of-sysutils/du2ps/pkg-comment echo x - sysutils/du2ps/distinfo sed 's/^X//' >sysutils/du2ps/distinfo << 'END-of-sysutils/du2ps/distinfo' XMD5 (du2ps-2.1.tgz) = f39e4724cb1a8831f0355fbeb8d819a6 END-of-sysutils/du2ps/distinfo echo x - sysutils/du2ps/Makefile sed 's/^X//' >sysutils/du2ps/Makefile << 'END-of-sysutils/du2ps/Makefile' X# New ports collection makefile for: du2ps X# Date created: 31 May 2001 X# Whom: Yoshihiko Sarumaru X# X# $FreeBSD:$ X# X XPORTNAME= du2ps XPORTVERSION= 2.1 XCATEGORIES= sysutils XMASTER_SITES= http://www.shobi-u.ac.jp/~tnagae/src/ps-c/du2ps/du2ps-2.1/ XEXTRACT_SUFX= .tgz X XMAINTAINER= mistral@imasy.or.jp X X# Nkf is required for just converting character code of japanese manual XBUILD_DEPENDS= nkf:${PORTSDIR}/japanese/nkf X XMAKEFILE= makefile XALL_TARGET= X XMAN1= du2ps.1 XMANLANG= "" ja X Xdo-install: X ${INSTALL_PROGRAM} ${WRKSRC}/du2ps ${PREFIX}/bin/du2ps X ${INSTALL_MAN} ${FILESDIR}/du2ps.1 ${PREFIX}/man/man1/du2ps.1 X nkf -e ${WRKSRC}/du2ps.man > ${WRKDIR}/du2ps.1.ja X ${INSTALL_MAN} ${WRKDIR}/du2ps.1.ja ${PREFIX}/man/ja/man1/du2ps.1 X X.include END-of-sysutils/du2ps/Makefile exit >Release-Note: >Audit-Trail: >Unformatted: To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message