diff options
author | az <az@FreeBSD.org> | 2005-11-07 15:40:11 +0800 |
---|---|---|
committer | az <az@FreeBSD.org> | 2005-11-07 15:40:11 +0800 |
commit | e154e62ecb3a4931fc5a81b8595da44bc5252188 (patch) | |
tree | ef5abbf5b69f24c1c91478023025251a838e318b /net-mgmt | |
parent | af0e84fd73421aeb83cffa7f87f8831d85abe80b (diff) | |
download | freebsd-ports-gnome-e154e62ecb3a4931fc5a81b8595da44bc5252188.tar.gz freebsd-ports-gnome-e154e62ecb3a4931fc5a81b8595da44bc5252188.tar.zst freebsd-ports-gnome-e154e62ecb3a4931fc5a81b8595da44bc5252188.zip |
Add net-mgmt/grepip
grepip searches the named input FILE (or standard input if no files are named),
for lines containing an IP address matched to the given CIDR.
grepip finds IP in any context of a line, while grepcidr only if all line is IP.
PR: ports/88384
Submitted by: Serge Maslov <serge@maslov.biz>
Approved by: sem (mentor, implict)
Diffstat (limited to 'net-mgmt')
-rw-r--r-- | net-mgmt/Makefile | 1 | ||||
-rw-r--r-- | net-mgmt/grepip/Makefile | 34 | ||||
-rw-r--r-- | net-mgmt/grepip/distinfo | 2 | ||||
-rw-r--r-- | net-mgmt/grepip/pkg-descr | 7 |
4 files changed, 44 insertions, 0 deletions
diff --git a/net-mgmt/Makefile b/net-mgmt/Makefile index 9b394928decb..e0d77ffd3e0e 100644 --- a/net-mgmt/Makefile +++ b/net-mgmt/Makefile @@ -52,6 +52,7 @@ SUBDIR += fprobe SUBDIR += gps SUBDIR += grepcidr + SUBDIR += grepip SUBDIR += icmpmonitor SUBDIR += icmpquery SUBDIR += ifgraph diff --git a/net-mgmt/grepip/Makefile b/net-mgmt/grepip/Makefile new file mode 100644 index 000000000000..3bc2b8deafc0 --- /dev/null +++ b/net-mgmt/grepip/Makefile @@ -0,0 +1,34 @@ +# New ports collection makefile for: grepip +# Date created: 2 Nov 2005 +# Whom: Serge Maslov <serge@maslov.biz> +# +# $FreeBSD$ +# + +PORTNAME= grepip +PORTVERSION= 1.0 +CATEGORIES= net-mgmt +MASTER_SITES= ftp://ftp.lexa.ru/pub/domestic/lexa/ \ + ftp://ftp.des.tstu.ru/pub/mirror/Unix/apache/apache.lexa.ru/pub/domestic/lexa/ + +MAINTAINER= Serge@Maslov.biz +COMMENT= Print lines contans IP matching a pattern in CIDR format + +LIB_DEPENDS= pcre:${PORTSDIR}/devel/pcre + +PLIST_FILES= bin/grepip %%PORTDOCS%%%%DOCSDIR%%/README.txt +PLIST_DIRS= %%PORTDOCS%%%%DOCSDIR%% + +do-build: + cd ${WRKSRC}; \ + ${CC} ${CFLAGS} -c patricia.c; \ + ${CC} ${CFLAGS} -I${LOCALBASE}/include -o grepip grepip.c patricia.o -L${LOCALBASE}/lib -lpcre + +do-install: + @${INSTALL_PROGRAM} ${WRKSRC}/grepip ${PREFIX}/bin +.if !defined(NOPORTDOCS) + @${MKDIR} ${DOCSDIR} + @${INSTALL_DATA} ${WRKSRC}/README.txt ${DOCSDIR} +.endif + +.include <bsd.port.mk> diff --git a/net-mgmt/grepip/distinfo b/net-mgmt/grepip/distinfo new file mode 100644 index 000000000000..0722448aedab --- /dev/null +++ b/net-mgmt/grepip/distinfo @@ -0,0 +1,2 @@ +MD5 (grepip-1.0.tar.gz) = 5f4528775f196a59f646195629dede4c +SIZE (grepip-1.0.tar.gz) = 15490 diff --git a/net-mgmt/grepip/pkg-descr b/net-mgmt/grepip/pkg-descr new file mode 100644 index 000000000000..fb7fafc09710 --- /dev/null +++ b/net-mgmt/grepip/pkg-descr @@ -0,0 +1,7 @@ +grepip searches the named input FILE (or standard input if no files are named), +for lines containing an IP address matched to the given CIDR. +grepip finds IP in any context of a line, while grepcidr only if all line is IP. + +WWW: http://www.lexa.ru/lexa/ + +- Serge Maslov <serge@maslov.biz> |