import textproc/grepcidr, ok jasper@

grepcidr can be used to filter a list of IP addresses against one or
more Classless Inter-Domain Routing (CIDR) specifications, or arbitrary
networks specified by an address range. As with grep, there are options
to invert matching and load patterns from a file. grepcidr is capable
of comparing thousands or even millions of IPs to networks with little
memory usage and in reasonable computation time.

grepcidr has endless uses in network software, including: mail filtering
and processing, network security, log analysis, and many custom applications.
This commit is contained in:
sthen 2014-05-14 10:06:20 +00:00
parent b50c3300e1
commit 288bb090a0
5 changed files with 51 additions and 0 deletions

View File

@ -0,0 +1,25 @@
# $OpenBSD: Makefile,v 1.1.1.1 2014/05/14 10:06:20 sthen Exp $
COMMENT= filter files for IP address matches
DISTNAME= grepcidr-1.4
CATEGORIES= textproc net
HOMEPAGE= http://www.pc-tools.net/unix/grepcidr/
MAINTAINER= Stuart Henderson <sthen@openbsd.org>
# GPLv2+
PERMIT_PACKAGE_CDROM= Yes
WANTLIB += c
MASTER_SITES= http://www.pc-tools.net/files/unix/
MAKE_FLAGS= CFLAGS="${CFLAGS}"
FAKE_FLAGS= MANDIR="${PREFIX}/man"
NO_TEST= Yes
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (grepcidr-1.4.tar.gz) = D+ymppBaspPRWnfvWVa/WK5d6o2I62PAbIAk6UQb2zs=
SIZE (grepcidr-1.4.tar.gz) = 13806

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-Makefile,v 1.1.1.1 2014/05/14 10:06:20 sthen Exp $
--- Makefile.orig Wed May 14 10:35:50 2014
+++ Makefile Wed May 14 10:35:54 2014
@@ -14,8 +14,6 @@ LDFLAGS=
all: grepcidr
-grepcidr: grepcidr.o
-
doc: grepcidr.1
grepcidr.1: grepcidr.sgml

View File

@ -0,0 +1,9 @@
grepcidr can be used to filter a list of IP addresses against one or
more Classless Inter-Domain Routing (CIDR) specifications, or arbitrary
networks specified by an address range. As with grep, there are options
to invert matching and load patterns from a file. grepcidr is capable
of comparing thousands or even millions of IPs to networks with little
memory usage and in reasonable computation time.
grepcidr has endless uses in network software, including: mail filtering
and processing, network security, log analysis, and many custom applications.

View File

@ -0,0 +1,3 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2014/05/14 10:06:20 sthen Exp $
@bin bin/grepcidr
@man man/man1/grepcidr.1