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:
parent
b50c3300e1
commit
288bb090a0
25
textproc/grepcidr/Makefile
Normal file
25
textproc/grepcidr/Makefile
Normal 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>
|
2
textproc/grepcidr/distinfo
Normal file
2
textproc/grepcidr/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (grepcidr-1.4.tar.gz) = D+ymppBaspPRWnfvWVa/WK5d6o2I62PAbIAk6UQb2zs=
|
||||
SIZE (grepcidr-1.4.tar.gz) = 13806
|
12
textproc/grepcidr/patches/patch-Makefile
Normal file
12
textproc/grepcidr/patches/patch-Makefile
Normal 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
|
9
textproc/grepcidr/pkg/DESCR
Normal file
9
textproc/grepcidr/pkg/DESCR
Normal 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.
|
3
textproc/grepcidr/pkg/PLIST
Normal file
3
textproc/grepcidr/pkg/PLIST
Normal 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
|
Loading…
x
Reference in New Issue
Block a user