aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorsobomax <sobomax@FreeBSD.org>2000-06-06 22:13:30 +0800
committersobomax <sobomax@FreeBSD.org>2000-06-06 22:13:30 +0800
commit52a9f9854dc82aaafcaeaaeaeb983bd4a768e10e (patch)
treebdfe92d725a92efe1b6003f331bdfc927c6aca30
parent43cf8932f26d45c05f3ed850b3a789c1ed520194 (diff)
downloadfreebsd-ports-gnome-52a9f9854dc82aaafcaeaaeaeb983bd4a768e10e.tar.gz
freebsd-ports-gnome-52a9f9854dc82aaafcaeaaeaeb983bd4a768e10e.tar.zst
freebsd-ports-gnome-52a9f9854dc82aaafcaeaaeaeb983bd4a768e10e.zip
Initial import of whichman - a set of 3 utilities to perform approximate
search among manpages and files. PR: 19050 Submitted by: Yen-Ming Lee <leeym@cae.ce.ntu.edu.tw>
-rw-r--r--misc/whichman/Makefile20
-rw-r--r--misc/whichman/distinfo1
-rw-r--r--misc/whichman/files/patch-aa13
-rw-r--r--misc/whichman/files/patch-ab40
-rw-r--r--misc/whichman/pkg-comment1
-rw-r--r--misc/whichman/pkg-descr20
-rw-r--r--misc/whichman/pkg-plist3
7 files changed, 98 insertions, 0 deletions
diff --git a/misc/whichman/Makefile b/misc/whichman/Makefile
new file mode 100644
index 000000000000..868d9ccb582b
--- /dev/null
+++ b/misc/whichman/Makefile
@@ -0,0 +1,20 @@
+# New ports collection makefile for: whichman
+# Date created: 6 June 2000
+# Whom: Yen-Ming Lee <leeym@cae.ce.ntu.edu.tw>
+#
+# $FreeBSD$
+#
+
+PORTNAME= whichman
+PORTVERSION= 1.9
+CATEGORIES= misc
+MASTER_SITES= ftp://sunsite.unc.edu/pub/Linux/apps/doctools/ \
+ http://www.metalab.unc.edu/pub/Linux/apps/doctools/ \
+ http://www.linuxfocus.org/~guido.socher/ \
+ http://linuxberg.concepts.nl/files/console/system/
+
+MAINTAINER= leeym@cae.ce.ntu.edu.tw
+
+MAN1= whichman.1 ftff.1 ftwhich.1
+
+.include <bsd.port.mk>
diff --git a/misc/whichman/distinfo b/misc/whichman/distinfo
new file mode 100644
index 000000000000..d94672095112
--- /dev/null
+++ b/misc/whichman/distinfo
@@ -0,0 +1 @@
+MD5 (whichman-1.9.tar.gz) = 6a35697ad7c6e55631dae0dbe8620096
diff --git a/misc/whichman/files/patch-aa b/misc/whichman/files/patch-aa
new file mode 100644
index 000000000000..53796c3cfafe
--- /dev/null
+++ b/misc/whichman/files/patch-aa
@@ -0,0 +1,13 @@
+--- whichman.c.orig Tue Jun 6 15:16:51 2000
++++ whichman.c Tue Jun 6 15:17:09 2000
+@@ -399,8 +399,8 @@
+
+ mpath = (char *) getenv("MANPATH");
+ if (mpath == NULL || *mpath == '\0') {
+- fprintf(stderr,"Warning: MANPATH not defined, using /usr/man\n");
+- mpath="/usr/man";
++ fprintf(stderr,"Warning: MANPATH not defined, using /usr/share/man\n");
++ mpath="/usr/share/man";
+ }
+ /* make a copy that is static */
+ cmpath = (char *)malloc(sizeof(char)*(strlen(mpath) + 2));
diff --git a/misc/whichman/files/patch-ab b/misc/whichman/files/patch-ab
new file mode 100644
index 000000000000..55f7660fee33
--- /dev/null
+++ b/misc/whichman/files/patch-ab
@@ -0,0 +1,40 @@
+--- Makefile.orig Tue Apr 11 23:04:09 2000
++++ Makefile Tue Jun 6 16:57:24 2000
+@@ -1,9 +1,9 @@
+ # written by Guido Socher
+-PREFIX=/usr
++#PREFIX=/usr/local
+ INSTALL=install
+ MANP=man1/whichman.1 man1/ftff.1 man1/ftwhich.1
+-CC=gcc
+-CFLAGS= -Wall -O2
++CC?=gcc
++CFLAGS?= -Wall -O2
+ #sun c/c++-compiler:
+ #CC=CC
+ #CFLAGS= -O
+@@ -29,17 +29,17 @@
+ $(CC) $(CFLAGS) -c levdist.c
+
+ install: whichman ftff ftwhich $(MANP)
+- strip whichman
+- strip ftwhich
+- strip ftff
++# strip whichman
++# strip ftwhich
++# strip ftff
+ [ -d "$(PREFIX)/bin" ] || $(INSTALL) -d $(PREFIX)/bin
+ [ -d "$(PREFIX)/man/man1" ] || $(INSTALL) -d $(PREFIX)/man/man1
+- $(INSTALL) -m 755 whichman $(PREFIX)/bin
+- $(INSTALL) -m 755 ftwhich $(PREFIX)/bin
+- $(INSTALL) -m 755 ftff $(PREFIX)/bin
++ $(BSD_INSTALL_PROGRAM) whichman $(PREFIX)/bin
++ $(BSD_INSTALL_PROGRAM) ftwhich $(PREFIX)/bin
++ $(BSD_INSTALL_PROGRAM) ftff $(PREFIX)/bin
+ for p in $(MANP) ; do \
+ echo "installing $$p in $(PREFIX)/man/man1"; \
+- $(INSTALL) -m 644 $$p $(PREFIX)/man/man1 ;\
++ $(BSD_INSTALL_MAN) $$p $(PREFIX)/man/man1 ;\
+ done
+
+ install_with_cp: whichman ftff ftwhich $(MANP)
diff --git a/misc/whichman/pkg-comment b/misc/whichman/pkg-comment
new file mode 100644
index 000000000000..36457038aad1
--- /dev/null
+++ b/misc/whichman/pkg-comment
@@ -0,0 +1 @@
+Approximate matching searching utilities to search for manpages and files
diff --git a/misc/whichman/pkg-descr b/misc/whichman/pkg-descr
new file mode 100644
index 000000000000..d0ddc1d11cf8
--- /dev/null
+++ b/misc/whichman/pkg-descr
@@ -0,0 +1,20 @@
+Approximate matching searching utilities to search for manpages and files.
+
+This package holds THREE little search utilities:
+
+* whichman -- search utility for man pages and it works
+ much like the well known unix command "where".
+
+* ftff -- a fault tolerant file finder
+
+ ftff works like the whichman above but searches the directory
+ tree. This is a case in-sensitive and fault tolerant way of
+ 'find . -name xxxx -print'
+
+* ftwhich -- a fault tolerant "which" command
+
+ ftwhich finds files (programs) which are in one of the directories in
+ your PATH and uses a fault tolerant search algorithem.
+
+--
+Guido Socher <guido.s@writeme.com>
diff --git a/misc/whichman/pkg-plist b/misc/whichman/pkg-plist
new file mode 100644
index 000000000000..8925dc2cbce1
--- /dev/null
+++ b/misc/whichman/pkg-plist
@@ -0,0 +1,3 @@
+bin/whichman
+bin/ftwhich
+bin/ftff