diff options
author | tg <tg@FreeBSD.org> | 1998-04-29 10:55:40 +0000 |
---|---|---|
committer | tg <tg@FreeBSD.org> | 1998-04-29 10:55:40 +0000 |
commit | 7d1633d2cefb1ec23477774034c771ddd2868b7e (patch) | |
tree | 39d60aa6b5c568b87cf959ae9556cd9617367da1 | |
parent | 6d915053427246556f299f0bc097d158fd9a2c5f (diff) | |
download | FreeBSD-ports-7d1633d2cefb1ec23477774034c771ddd2868b7e.zip FreeBSD-ports-7d1633d2cefb1ec23477774034c771ddd2868b7e.tar.gz |
New sgrep port. From the man page:
sgrep (structured grep) is a tool for searching text files
and filtering text streams using structural criteria. The
data model of sgrep is based on regions, which are non-
empty substrings of text. Regions are typically occur-
rences of constant strings or meaningful text elements,
which are recognizable through some delimiting strings.
PR: 6449
Submitted by: A Joseph Koshy <koshy@india.hp.com>
-rw-r--r-- | textproc/sgrep/Makefile | 23 | ||||
-rw-r--r-- | textproc/sgrep/distinfo | 1 | ||||
-rw-r--r-- | textproc/sgrep/files/patch-aa | 30 | ||||
-rw-r--r-- | textproc/sgrep/files/patch-ab | 11 | ||||
-rw-r--r-- | textproc/sgrep/pkg-comment | 1 | ||||
-rw-r--r-- | textproc/sgrep/pkg-descr | 11 | ||||
-rw-r--r-- | textproc/sgrep/pkg-plist | 3 | ||||
-rw-r--r-- | textproc/sgrep2/Makefile | 23 | ||||
-rw-r--r-- | textproc/sgrep2/distinfo | 1 | ||||
-rw-r--r-- | textproc/sgrep2/files/patch-aa | 30 | ||||
-rw-r--r-- | textproc/sgrep2/files/patch-ab | 11 | ||||
-rw-r--r-- | textproc/sgrep2/pkg-comment | 1 | ||||
-rw-r--r-- | textproc/sgrep2/pkg-descr | 11 | ||||
-rw-r--r-- | textproc/sgrep2/pkg-plist | 3 |
14 files changed, 160 insertions, 0 deletions
diff --git a/textproc/sgrep/Makefile b/textproc/sgrep/Makefile new file mode 100644 index 0000000..977ff62 --- /dev/null +++ b/textproc/sgrep/Makefile @@ -0,0 +1,23 @@ +# New ports collection makefile for: sgrep +# Version required: 0.99 +# Date created: Apr 29 1998 +# Whom: <koshy@india.hp.com> +# +# $Id$ +# + +DISTNAME= sgrep-0.99 +CATEGORIES= textproc +MASTER_SITES= ftp://ftp.cs.helsinki.fi/pub/Software/Local/Sgrep/ + +MAINTAINER= koshy@india.hp.com + +MAN1= sgrep.1 + +# Override the install target in the supplied makefile +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/sgrep ${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/sgrep.1 ${MANPREFIX}/man/man1 + ${INSTALL_DATA} ${WRKSRC}/sample.sgreprc ${PREFIX}/share/sgreprc + +.include <bsd.port.mk> diff --git a/textproc/sgrep/distinfo b/textproc/sgrep/distinfo new file mode 100644 index 0000000..67caeb5 --- /dev/null +++ b/textproc/sgrep/distinfo @@ -0,0 +1 @@ +MD5 (sgrep-0.99.tar.gz) = af09a90c4f1929bfae4818c8962a8907 diff --git a/textproc/sgrep/files/patch-aa b/textproc/sgrep/files/patch-aa new file mode 100644 index 0000000..d4e33b3 --- /dev/null +++ b/textproc/sgrep/files/patch-aa @@ -0,0 +1,30 @@ +--- Makefile-- Wed Apr 29 12:08:55 1998 ++++ Makefile Wed Apr 29 12:20:29 1998 +@@ -10,11 +10,11 @@ + # + + # This is where the executable goes +-BINDIR = /usr/local/bin/ ++BINDIR = ${PREFIX}/bin + # Where sgrep library files are placed (sgreprc) +-LIBDIR = /usr/local/lib ++LIBDIR = ${PREFIX}/share + # Where the manual page goes +-MANFILE = /usr/local/man/man1/sgrep.1 ++MANFILE = ${PREFIX}/man/man1/sgrep.1 + # Where the sample rc file goes + RCFILE = $(LIBDIR)/sgreprc + # If you can't install as root you might wan't to use this as rc file +@@ -45,11 +45,7 @@ + clean: + -rm -f $(OBJECTS) + +-install: sgrep +- cp sgrep $(BINDIR)/sgrep +- chmod 755 $(BINDIR)/sgrep +- cp sgrep.1 $(MANFILE) +- chmod 644 $(MANFILE) ++install: + + install.rc: sample.sgreprc + cp sample.sgreprc $(RCFILE) diff --git a/textproc/sgrep/files/patch-ab b/textproc/sgrep/files/patch-ab new file mode 100644 index 0000000..25d8e32 --- /dev/null +++ b/textproc/sgrep/files/patch-ab @@ -0,0 +1,11 @@ +--- sgrep.1-- Wed Apr 29 12:26:40 1998 ++++ sgrep.1 Wed Apr 29 12:26:49 1998 +@@ -91,7 +91,7 @@ + \fB$HOME/.sgreprc,\fP + or if it doesn't exist, + from file +-\fB/usr/lib/sgreprc, \fP ++\fB/usr/local/share/sgreprc, \fP + and then from the command line. Different behavior + can be specified through command line options. + .Pp diff --git a/textproc/sgrep/pkg-comment b/textproc/sgrep/pkg-comment new file mode 100644 index 0000000..1860f9f --- /dev/null +++ b/textproc/sgrep/pkg-comment @@ -0,0 +1 @@ +A `grep' for structured text like SGML and HTML. diff --git a/textproc/sgrep/pkg-descr b/textproc/sgrep/pkg-descr new file mode 100644 index 0000000..c2ca2e0 --- /dev/null +++ b/textproc/sgrep/pkg-descr @@ -0,0 +1,11 @@ +`sgrep' (structured grep) is a tool for searching text files and +filtering text streams using structural criteria. Complex criteria +can be specified as macros using M4. + +Sgrep was created by: + + Jani Jaakkola, email:Jani.Jaakkola@helsinki.fi + Pekka Kilpelainen, email: Pekka.Kilpelainen@helsinki.fi + +- Koshy + <jkoshy@acm.org> diff --git a/textproc/sgrep/pkg-plist b/textproc/sgrep/pkg-plist new file mode 100644 index 0000000..556e7fe --- /dev/null +++ b/textproc/sgrep/pkg-plist @@ -0,0 +1,3 @@ +bin/sgrep +share/sgreprc +man/man1/sgrep.1.gz diff --git a/textproc/sgrep2/Makefile b/textproc/sgrep2/Makefile new file mode 100644 index 0000000..977ff62 --- /dev/null +++ b/textproc/sgrep2/Makefile @@ -0,0 +1,23 @@ +# New ports collection makefile for: sgrep +# Version required: 0.99 +# Date created: Apr 29 1998 +# Whom: <koshy@india.hp.com> +# +# $Id$ +# + +DISTNAME= sgrep-0.99 +CATEGORIES= textproc +MASTER_SITES= ftp://ftp.cs.helsinki.fi/pub/Software/Local/Sgrep/ + +MAINTAINER= koshy@india.hp.com + +MAN1= sgrep.1 + +# Override the install target in the supplied makefile +do-install: + ${INSTALL_PROGRAM} ${WRKSRC}/sgrep ${PREFIX}/bin + ${INSTALL_MAN} ${WRKSRC}/sgrep.1 ${MANPREFIX}/man/man1 + ${INSTALL_DATA} ${WRKSRC}/sample.sgreprc ${PREFIX}/share/sgreprc + +.include <bsd.port.mk> diff --git a/textproc/sgrep2/distinfo b/textproc/sgrep2/distinfo new file mode 100644 index 0000000..67caeb5 --- /dev/null +++ b/textproc/sgrep2/distinfo @@ -0,0 +1 @@ +MD5 (sgrep-0.99.tar.gz) = af09a90c4f1929bfae4818c8962a8907 diff --git a/textproc/sgrep2/files/patch-aa b/textproc/sgrep2/files/patch-aa new file mode 100644 index 0000000..d4e33b3 --- /dev/null +++ b/textproc/sgrep2/files/patch-aa @@ -0,0 +1,30 @@ +--- Makefile-- Wed Apr 29 12:08:55 1998 ++++ Makefile Wed Apr 29 12:20:29 1998 +@@ -10,11 +10,11 @@ + # + + # This is where the executable goes +-BINDIR = /usr/local/bin/ ++BINDIR = ${PREFIX}/bin + # Where sgrep library files are placed (sgreprc) +-LIBDIR = /usr/local/lib ++LIBDIR = ${PREFIX}/share + # Where the manual page goes +-MANFILE = /usr/local/man/man1/sgrep.1 ++MANFILE = ${PREFIX}/man/man1/sgrep.1 + # Where the sample rc file goes + RCFILE = $(LIBDIR)/sgreprc + # If you can't install as root you might wan't to use this as rc file +@@ -45,11 +45,7 @@ + clean: + -rm -f $(OBJECTS) + +-install: sgrep +- cp sgrep $(BINDIR)/sgrep +- chmod 755 $(BINDIR)/sgrep +- cp sgrep.1 $(MANFILE) +- chmod 644 $(MANFILE) ++install: + + install.rc: sample.sgreprc + cp sample.sgreprc $(RCFILE) diff --git a/textproc/sgrep2/files/patch-ab b/textproc/sgrep2/files/patch-ab new file mode 100644 index 0000000..25d8e32 --- /dev/null +++ b/textproc/sgrep2/files/patch-ab @@ -0,0 +1,11 @@ +--- sgrep.1-- Wed Apr 29 12:26:40 1998 ++++ sgrep.1 Wed Apr 29 12:26:49 1998 +@@ -91,7 +91,7 @@ + \fB$HOME/.sgreprc,\fP + or if it doesn't exist, + from file +-\fB/usr/lib/sgreprc, \fP ++\fB/usr/local/share/sgreprc, \fP + and then from the command line. Different behavior + can be specified through command line options. + .Pp diff --git a/textproc/sgrep2/pkg-comment b/textproc/sgrep2/pkg-comment new file mode 100644 index 0000000..1860f9f --- /dev/null +++ b/textproc/sgrep2/pkg-comment @@ -0,0 +1 @@ +A `grep' for structured text like SGML and HTML. diff --git a/textproc/sgrep2/pkg-descr b/textproc/sgrep2/pkg-descr new file mode 100644 index 0000000..c2ca2e0 --- /dev/null +++ b/textproc/sgrep2/pkg-descr @@ -0,0 +1,11 @@ +`sgrep' (structured grep) is a tool for searching text files and +filtering text streams using structural criteria. Complex criteria +can be specified as macros using M4. + +Sgrep was created by: + + Jani Jaakkola, email:Jani.Jaakkola@helsinki.fi + Pekka Kilpelainen, email: Pekka.Kilpelainen@helsinki.fi + +- Koshy + <jkoshy@acm.org> diff --git a/textproc/sgrep2/pkg-plist b/textproc/sgrep2/pkg-plist new file mode 100644 index 0000000..556e7fe --- /dev/null +++ b/textproc/sgrep2/pkg-plist @@ -0,0 +1,3 @@ +bin/sgrep +share/sgreprc +man/man1/sgrep.1.gz |