diff options
-rw-r--r-- | net-mgmt/grepip/Makefile | 35 | ||||
-rw-r--r-- | net-mgmt/grepip/distinfo | 2 | ||||
-rw-r--r-- | net-mgmt/grepip/pkg-descr | 5 |
3 files changed, 42 insertions, 0 deletions
diff --git a/net-mgmt/grepip/Makefile b/net-mgmt/grepip/Makefile new file mode 100644 index 000000000000..77e42c5f7aa7 --- /dev/null +++ b/net-mgmt/grepip/Makefile @@ -0,0 +1,35 @@ +# New ports collection makefile for: grepip +# Date created: 2 Nov 2005 +# Whom: Serge Maslov <serge@maslov.biz> +# +# $FreeBSD$ +# + +PORTNAME= grepip +PORTVERSION= 1.0 +PORTREVISION= 1 +CATEGORIES= net-mgmt +MASTER_SITES= http://komquats.com/distfiles/ \ + ${MASTER_SITE_LOCAL}/cy/ + +MAINTAINER= cy@FreeBSD.org +COMMENT= Print lines contans IP matching a pattern in CIDR format + +LIB_DEPENDS= pcre:${PORTSDIR}/devel/pcre + +PLIST_FILES= bin/grepip +PORTDOCS= README.txt + +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..3bdef2e4fe84 --- /dev/null +++ b/net-mgmt/grepip/distinfo @@ -0,0 +1,2 @@ +SHA256 (grepip-1.0.tar.gz) = ef4d9a9e239a4e5b3ca5671f83eaf3ef349e641a10a6d8d47e609ec9c0dcd526 +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..17e34337ef6e --- /dev/null +++ b/net-mgmt/grepip/pkg-descr @@ -0,0 +1,5 @@ +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/ |