This is the BSD-licensed version of the well-known grep utility, obtained from
OpenBSD. It lacks some features of GNU grep. It is a proposed project idea
to replace the GNU grep with this one, but it needs to be completed first.
Patches are highly appreciated.
===> The following configuration options are available for bsd-grep-2.6.0,1:
GNU_COMPAT=on: Use GNU regex library (recommended)
NLS=on: Native Language Support
===> Use 'make config' to modify these settings
Remove WWW entries moved into port Makefiles
Commit b7f05445c00f has added WWW entries to port Makefiles based on
WWW: lines in pkg-descr files.
This commit removes the WWW: lines of moved-over URLs from these
pkg-descr files.
Approved by: portmgr (tcberner)
Add WWW entries to port Makefiles
It has been common practice to have one or more URLs at the end of the
ports' pkg-descr files, one per line and prefixed with "WWW:". These
URLs should point at a project website or other relevant resources.
Access to these URLs required processing of the pkg-descr files, and
they have often become stale over time. If more than one such URL was
present in a pkg-descr file, only the first one was tarnsfered into
the port INDEX, but for many ports only the last line did contain the
port specific URL to further information.
There have been several proposals to make a project URL available as
a macro in the ports' Makefiles, over time.
(Only the first 15 lines of the commit message are shown above )
*/*: Remove redundant '-*' from CONFLICTS definitions
The conflict checks compare the patterns first against the package
names without version (as reported by "pkg query "%n"), then - if
there was no match - agsinst the full package names including the
version (as reported by "pkg query "%n-%v").
Approved by: portmgr (blanket)
textproc/bsdgrep: stop building on FreeBSD 13+
bsdgrep will ship as the non-optional default in FreeBSD 13.0. Mark it as
IGNORE on 13 and 14, with the intention of deprecating it when stable/12 is
no longer supported. In the meantime, it is still useful on the earlier
branches for testing.
MFH: 2021Q1
textproc/bsdgrep: fix the build on recent -CURRENT
A seatbelt was added to throw a warning if a "SUBDIR." variable appeared
non-empty, since that indicates something was trying to expand a MK_
variable most likely and either opts.mk wasn't included or the name of the
variable used is wrong.
In this particular case, we're repackaging a part from base. I had stripped
the src.opts.mk include but hadn't thought to replace it with bsd.opts.mk
for userlandy stuff.
This also goes as far as fixing the test build, but doesn't yet hook up the
tests. On FreeBSD <13 these need a kyua/atf test dep, but I'd like to do a
sweep and see if there are any other ports (e.g. from NetBSD base or FreeBSD
base) that also have a dependency to weigh in on if this should just be a
one-off osversion check or a kyua/atf USES.
MFH: 2020Q4 (blanket: build fix)
[PATCH] textproc/bsdgrep: Update to 2.6.0 and set LICENSE
The following list of changes are roughly what has occurred since the last
update:
Features:
- With bsdgrep -r, the working directory is implied if no directory is
specified
- bsdgrep will now behave as bsdgrep -r does when it's named rgrep
- bsdgrep now understands -z/--null-data to use \0 as EOL
- GNU regex compatibility is now indicated with a "GNU compatible" in
the version string
Fixes:
(Only the first 15 lines of the commit message are shown above )
MASTER_SITES cleanup.
- Replace ${MASTER_SITE_FOO} with FOO.
- Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9%
of the time.)
- Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and
no hint of what it should be was present.
- Fix some logic.
- And generally, make things more simple and easy to understand.
While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and
SAMBA macros.
Also, replace some EXTRACT_SUFX occurences with USES=tar:*.
Checked by: make fetch-urlall-list
With hat: portmgr
Sponsored by: Absolight
- fix NLS support, which was wired backwards
- actually enable NLS in OPTIONS
- change LOCALBASE to PREFIX, as it was attempting to create a directory in
one, and then install a file into another
- this fixes package building
Feature safe: yes
- Update to 20110912
Chabgelog:
+ Rewritten fast matcher code: slight performance improvement and better
scalability, more reliable, more fine-grained (handles a wider scale of
patterns), uses Turbo Boyer-Moore and Quick Search algorithms
+ Readd --mmap, default is still read(2)
+ Support xz/lzma archives
+ Bugfix: support of empty pattern
+ Bugfix: pattern file cannot be a directory
+ Bugfix: proper error handling when using -F / fgrep
+ Bugfix: fix handling of ^$ anchors
+ Bugfix: partly fix content after last match of -m
- Update to 20080826
Changes
- Fix -v flag [1]
- Proper EOF checking [2]
- Better and probable fully GNU-compatible binary checking
- Readd fixed string optimizations from OpenBSD in a
cleaner way; now it works with all the features, like
--color and -o
Reported by: Chuck Swiger <cswiger@mac.com> [1],
Stuart Barkley <stuartb@4gh.net> [2]
- Make clean before building to clean up the .o files that the distfile
contains, because I forgot to make clean before tarballing this
release. For the next update it will be rolled in a clean way.
- Bump PORTREVISION
Reported by: pointyhat (via erwin)
- Update to 20080624
Changes:
- Improved GNU compatibility, e.g. all the returned status codes
should be compatible now
- Added NLS support via catgets()
- Change the way of handling gzip/bzip2 files to get rid of some
limitations, like detecting of binary bzip2 files
- Cleanups in the code
- Update to 20080615
This version is now supposed to be compatible with GNU grep 2.5.1, which
can be found in FreeBSD. According to some preliminary measurements,
they achieve almost the same level of efficiency, this version seem to be
measureably but not significantly faster. Further tests are needed
to test and examine this version of grep.
- Update to 20080406
- Fix installing of man pages
Changes:
- Minor fixes and improvements to the code [1]
- Man page completion
Obtained from: OpenBSD [1]
This is the BSD-licensed version of the well-known grep utility, obtained from
OpenBSD. It lacks some features of GNU grep. It is a proposed project idea
to replace the GNU grep with this one, but it needs to be completed first.
Patches are highly appreciated.
WWW: http://www.freebsd.org/projects/ideas/#p-bsdtexttools
Obtained from: OpenBSD