From owner-freebsd-ports Tue Jun 6 0:50: 6 2000 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id 602FF37BEA5 for ; Tue, 6 Jun 2000 00:50:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id AAA76530; Tue, 6 Jun 2000 00:50:01 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Received: from bsd.caece.net (bsd.ce.ntu.edu.tw [140.112.13.1]) by hub.freebsd.org (Postfix) with ESMTP id B548A37B57A for ; Tue, 6 Jun 2000 00:46:50 -0700 (PDT) (envelope-from leeym@bsd.caece.net) Received: (from leeym@localhost) by bsd.caece.net (8.9.3/8.9.0) id PAA45692; Tue, 6 Jun 2000 15:46:25 +0800 (CST) Message-Id: <200006060746.PAA45692@bsd.caece.net> Date: Tue, 6 Jun 2000 15:46:25 +0800 (CST) From: leeym@cae.ce.ntu.edu.tw Reply-To: leeym@cae.ce.ntu.edu.tw To: FreeBSD-gnats-submit@freebsd.org X-Send-Pr-Version: 3.2 Subject: ports/19050: new port: misc/whichman Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org >Number: 19050 >Category: ports >Synopsis: new port: misc/whichman >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports >State: open >Quarter: >Keywords: >Date-Required: >Class: change-request >Submitter-Id: current-users >Arrival-Date: Tue Jun 06 00:50:00 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Yen-Ming Lee >Release: FreeBSD 3.4-STABLE i386 >Organization: CAE group, Civil engineering, NTU, Taiwan. >Environment: FreeBSD utopia.leeym.yi.org 4.0-STABLE FreeBSD 4.0-STABLE #5: Tue Jun 6 09:51:10 CST 2000 root@utopia.leeym.yi.org:/usr/src/sys/compile/UTOPIA i386 >Description: whichman uses a fault tolerant approximate matching algorithm to search for man-pages that match approximately the specified name. >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: # # whichman # whichman/pkg # whichman/pkg/COMMENT # whichman/pkg/DESCR # whichman/pkg/PLIST # whichman/patches # whichman/patches/patch-aa # whichman/patches/patch-ab # whichman/files # whichman/files/md5 # whichman/Makefile # echo c - whichman mkdir -p whichman > /dev/null 2>&1 echo c - whichman/pkg mkdir -p whichman/pkg > /dev/null 2>&1 echo x - whichman/pkg/COMMENT sed 's/^X//' >whichman/pkg/COMMENT << 'END-of-whichman/pkg/COMMENT' Xwhichman uses a fault tolerant approximate matching algorithm to search for Xman-pages that match approximately the specified name. END-of-whichman/pkg/COMMENT echo x - whichman/pkg/DESCR sed 's/^X//' >whichman/pkg/DESCR << 'END-of-whichman/pkg/DESCR' XThis package holds THREE little search utilities. X X------------------------------------------------------------- X Xwhichman -- search utility for man pages and it works X much like the well known unix command "where". X X------------------------------------------------------------- X Xftff -- a fault tolerant file finder X Xftff works like the whichman above but searches the directory Xtree. This is a case in-sensitive and fault tolerant way of X'find . -name xxxx -print' X X------------------------------------------------------------- X Xftwhich -- a fault tolerant "which" command X Xftwhich finds files (programs) which are in one of the directories in Xyour PATH and uses a fault tolerant search algorithem. X XGuido Socher END-of-whichman/pkg/DESCR echo x - whichman/pkg/PLIST sed 's/^X//' >whichman/pkg/PLIST << 'END-of-whichman/pkg/PLIST' Xbin/whichman Xbin/ftwhich Xbin/ftff END-of-whichman/pkg/PLIST echo c - whichman/patches mkdir -p whichman/patches > /dev/null 2>&1 echo x - whichman/patches/patch-aa sed 's/^X//' >whichman/patches/patch-aa << 'END-of-whichman/patches/patch-aa' X--- whichman.c.orig Tue Jun 6 15:16:51 2000 X+++ whichman.c Tue Jun 6 15:17:09 2000 X@@ -399,8 +399,8 @@ X X mpath = (char *) getenv("MANPATH"); X if (mpath == NULL || *mpath == '\0') { X- fprintf(stderr,"Warning: MANPATH not defined, using /usr/man\n"); X- mpath="/usr/man"; X+ fprintf(stderr,"Warning: MANPATH not defined, using /usr/share/man\n"); X+ mpath="/usr/share/man"; X } X /* make a copy that is static */ X cmpath = (char *)malloc(sizeof(char)*(strlen(mpath) + 2)); END-of-whichman/patches/patch-aa echo x - whichman/patches/patch-ab sed 's/^X//' >whichman/patches/patch-ab << 'END-of-whichman/patches/patch-ab' X--- Makefile.orig Wed Apr 12 04:04:09 2000 X+++ Makefile Tue Jun 6 15:26:16 2000 X@@ -1,6 +1,6 @@ X # written by Guido Socher X-PREFIX=/usr X-INSTALL=install X+PREFIX=/usr/local X+INSTALL=install -c X MANP=man1/whichman.1 man1/ftff.1 man1/ftwhich.1 X CC=gcc X CFLAGS= -Wall -O2 END-of-whichman/patches/patch-ab echo c - whichman/files mkdir -p whichman/files > /dev/null 2>&1 echo x - whichman/files/md5 sed 's/^X//' >whichman/files/md5 << 'END-of-whichman/files/md5' XMD5 (whichman-1.9.tar.gz) = 6a35697ad7c6e55631dae0dbe8620096 END-of-whichman/files/md5 echo x - whichman/Makefile sed 's/^X//' >whichman/Makefile << 'END-of-whichman/Makefile' X# New ports collection makefile for: whichman X# Date created: June 6th 2000 X# Whom: Yen-Ming Lee X# X# $FreeBSD$ X# X XPORTNAME= whichman XPORTVERSION= 1.9 XCATEGORIES= misc XMASTER_SITES= ftp://sunsite.unc.edu/pub/Linux/apps/doctools/ \ X http://www.metalab.unc.edu/pub/Linux/apps/doctools/ \ X http://www.linuxfocus.org/~guido.socher/ \ X http://linuxberg.concepts.nl/files/console/system/ X XMAINTAINER= leeym@cae.ce.ntu.edu.tw XMAN1= whichman.1 ftff.1 ftwhich.1 X X.include END-of-whichman/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