summaryrefslogtreecommitdiff
path: root/net-mgmt
diff options
context:
space:
mode:
authorCy Schubert <cy@FreeBSD.org>2011-07-19 04:58:34 +0000
committerCy Schubert <cy@FreeBSD.org>2011-07-19 04:58:34 +0000
commit1e8db62135a3c7f402bd888ef327b516eef7e7c5 (patch)
treec98f0749eaea4242e48f55b0ba3fd9774f67e668 /net-mgmt
parent- Update to 0.94 (diff)
Bring back this port. Host the distfile on my website. Assume ownership
of this port.
Notes
Notes: svn path=/head/; revision=277934
Diffstat (limited to 'net-mgmt')
-rw-r--r--net-mgmt/grepip/Makefile35
-rw-r--r--net-mgmt/grepip/distinfo2
-rw-r--r--net-mgmt/grepip/pkg-descr5
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/