summaryrefslogtreecommitdiff
path: root/sysutils
diff options
context:
space:
mode:
authorcjep <cjep@pkgsrc.org>2002-11-18 22:33:40 +0000
committercjep <cjep@pkgsrc.org>2002-11-18 22:33:40 +0000
commit41044b48d05697de38eff238551271845c7a2991 (patch)
treeb28c2ac583e7f602026b9eef0b3fdb245635840d /sysutils
parent91656d45e8f89ba03196df5968b11c056d286560 (diff)
downloadpkgsrc-41044b48d05697de38eff238551271845c7a2991.tar.gz
Initial import of Jamie Howard's grep 0.16 into the NetBSD packages
collection as sysutils/bsdgrep. This is the BSD-licensed grep(1) replacement.
Diffstat (limited to 'sysutils')
-rw-r--r--sysutils/bsdgrep/DESCR1
-rw-r--r--sysutils/bsdgrep/Makefile15
-rw-r--r--sysutils/bsdgrep/PLIST9
-rw-r--r--sysutils/bsdgrep/distinfo6
-rw-r--r--sysutils/bsdgrep/patches/patch-aa36
-rw-r--r--sysutils/bsdgrep/patches/patch-ab106
6 files changed, 173 insertions, 0 deletions
diff --git a/sysutils/bsdgrep/DESCR b/sysutils/bsdgrep/DESCR
new file mode 100644
index 00000000000..32a8a9414b0
--- /dev/null
+++ b/sysutils/bsdgrep/DESCR
@@ -0,0 +1 @@
+This is the BSD-licensed grep(1) replacement by Jamie Howard.
diff --git a/sysutils/bsdgrep/Makefile b/sysutils/bsdgrep/Makefile
new file mode 100644
index 00000000000..0c9055b1e60
--- /dev/null
+++ b/sysutils/bsdgrep/Makefile
@@ -0,0 +1,15 @@
+# $NetBSD: Makefile,v 1.1.1.1 2002/11/18 22:33:40 cjep Exp $
+
+DISTNAME= grep-0.16
+PKGNAME= bsdgrep-0.16
+CATEGORIES= sysutils
+MASTER_SITES= http://www.wam.umd.edu/~howardjp/software/grep/
+
+MAINTAINER= packages@netbsd.org
+HOMEPAGE= http://www.wam.umd.edu/~howardjp/software/grep/
+COMMENT= BSD version of grep
+
+post-patch:
+ @${CP} ${WRKSRC}/grep.1 ${WRKSRC}/bgrep.1
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/sysutils/bsdgrep/PLIST b/sysutils/bsdgrep/PLIST
new file mode 100644
index 00000000000..95d74a95220
--- /dev/null
+++ b/sysutils/bsdgrep/PLIST
@@ -0,0 +1,9 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2002/11/18 22:33:40 cjep Exp $
+bin/bgrep
+bin/ebgrep
+bin/fbgrep
+bin/zbgrep
+man/man1/bgrep.1
+man/man1/ebgrep.1
+man/man1/fbgrep.1
+man/man1/zbgrep.1
diff --git a/sysutils/bsdgrep/distinfo b/sysutils/bsdgrep/distinfo
new file mode 100644
index 00000000000..07b9f87edb6
--- /dev/null
+++ b/sysutils/bsdgrep/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2002/11/18 22:33:40 cjep Exp $
+
+SHA1 (grep-0.16.tar.gz) = 37fe06c5601fadc7d062292b66f95098d5d4bc47
+Size (grep-0.16.tar.gz) = 9712 bytes
+SHA1 (patch-aa) = 359b9379f4ffd5a9fac86f6032e49479ab98fbf8
+SHA1 (patch-ab) = 7ad2fc9c23e793611f03db5ce0e6b500901c3028
diff --git a/sysutils/bsdgrep/patches/patch-aa b/sysutils/bsdgrep/patches/patch-aa
new file mode 100644
index 00000000000..aee625b8849
--- /dev/null
+++ b/sysutils/bsdgrep/patches/patch-aa
@@ -0,0 +1,36 @@
+$NetBSD: patch-aa,v 1.1.1.1 2002/11/18 22:33:40 cjep Exp $
+
+--- Makefile.orig Fri Nov 5 15:28:02 1999
++++ Makefile
+@@ -2,14 +2,22 @@
+
+-PROG= grep
++PREFIX?=/usr/local
++
++PROG= bgrep
++MAN= bgrep.1
+ SRCS= binary.c file.c grep.c mmfile.c queue.c util.c
+-LINKS= ${BINDIR}/grep ${BINDIR}/egrep \
+- ${BINDIR}/grep ${BINDIR}/fgrep \
+- ${BINDIR}/grep ${BINDIR}/zgrep
+-MLINKS= grep.1 egrep.1 \
+- grep.1 fgrep.1 \
+- grep.1 zgrep.1
++LINKS= ${BINDIR}/bgrep ${BINDIR}/ebgrep \
++ ${BINDIR}/bgrep ${BINDIR}/fbgrep \
++ ${BINDIR}/bgrep ${BINDIR}/zbgrep
++MLINKS= bgrep.1 ebgrep.1 \
++ bgrep.1 fbgrep.1 \
++ bgrep.1 zbgrep.1
++
++#CFLAGS+= -I/usr/local/include -Wall -pedantic
+
+-CFLAGS+= -I/usr/local/include -Wall -pedantic
++#LDADD= -lz -L/usr/local/lib/ -liberty
++LDADD= -lz
+
+-LDADD= -lz -L/usr/local/lib/ -liberty
++MANDIR=${PREFIX}/man
++BINDIR=${PREFIX}/bin
++MKCATPAGES=no
+
diff --git a/sysutils/bsdgrep/patches/patch-ab b/sysutils/bsdgrep/patches/patch-ab
new file mode 100644
index 00000000000..75bbbe505d9
--- /dev/null
+++ b/sysutils/bsdgrep/patches/patch-ab
@@ -0,0 +1,106 @@
+$NetBSD: patch-ab,v 1.1.1.1 2002/11/18 22:33:40 cjep Exp $
+
+--- grep.1.orig Fri Oct 29 17:02:36 1999
++++ grep.1
+@@ -35,10 +35,10 @@
+ .Dt GREP 1
+ .Os
+ .Sh NAME
+-.Nm grep, egrep, fgrep. zgrep
++.Nm bgrep, egrep, fgrep, zgrep
+ .Nd file pattern searcher
+ .Sh SYNOPSIS
+-.Nm grep
++.Nm bgrep
+ .Op Fl AB Ar num
+ .Op Fl CEFGHLPRSVZabchilnoqsvwx
+ .Op Fl e Ar pattern
+@@ -46,7 +46,7 @@
+ .Op Ar
+ .Sh DESCRIPTION
+ The
+-.Nm grep
++.Nm bgrep
+ utilities search the given input files selecting lines that match one
+ or more patterns.
+ By default, a pattern matches an input line if any regular expression
+@@ -57,7 +57,7 @@
+ to the standard output.
+ .Pp
+ The
+-.Nm grep
++.Nm bgrep
+ utility is used for simple patterns and
+ .Xr ex 1
+ or
+@@ -74,7 +74,7 @@
+ the input.
+ The
+ .Nm zgrep
+-utility acts like grep, but accepts input files compressed with the
++utility acts like bgrep, but accepts input files compressed with the
+ .Xr compress 1
+ or
+ .Xr gzip 1
+@@ -99,19 +99,19 @@
+ .Ar 2 .
+ .It Fl E
+ Force
+-.Nm grep
++.Nm bgrep
+ to behave as
+ .Nm egrep.
+ .It Fl F
+ Force
+-.Nm grep
++.Nm bgrep
+ to behave as
+ .Nm fgrep.
+ .It Fl G
+ Force
+-.Nm grep
++.Nm bgrep
+ to behave as
+-.Nm grep.
++.Nm bgrep.
+ .It Fl H
+ If
+ .Fl R
+@@ -138,7 +138,7 @@
+ Display version information.
+ .It Fl Z
+ Force
+-.Nm grep
++.Nm bgrep
+ to behave as
+ .Nm zgrep .
+ .It Fl a
+@@ -204,7 +204,7 @@
+ If no file arguments are specified, the standard input is used.
+ .Pp
+ The
+-.Nm grep
++.Nm bgrep
+ utility exits with one of the following values:
+ .Pp
+ .Bl -tag -width flag -compact
+@@ -243,16 +243,16 @@
+ .Sh EXAMPLES
+ To find all occurrences of the word patricia in a file:
+ .Pp
+-.Dl grep patricia myfile
++.Dl bgrep patricia myfile
+ .Pp
+ To find all occurrences of the pattern
+ .Ql \&.Pp
+ at the beginning of a line:
+ .Pp
+-.Dl grep '^\e.Pp'
++.Dl bgrep '^\e.Pp'
+ .Pp
+ The apostrophes assure the entire expression is evaluated by
+-.Nm grep
++.Nm bgrep
+ instead of by the
+ user's shell.
+ The caret