aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt
diff options
context:
space:
mode:
authorcy <cy@FreeBSD.org>2011-07-19 12:58:34 +0800
committercy <cy@FreeBSD.org>2011-07-19 12:58:34 +0800
commit7616499a6997a28421b22bf243ff970d91399686 (patch)
tree0b20dafcc90166c1b935423a98590944f2afeb89 /net-mgmt
parent2dac56e85b7714319e7d20bc3df756820a78c368 (diff)
downloadfreebsd-ports-gnome-7616499a6997a28421b22bf243ff970d91399686.tar.gz
freebsd-ports-gnome-7616499a6997a28421b22bf243ff970d91399686.tar.zst
freebsd-ports-gnome-7616499a6997a28421b22bf243ff970d91399686.zip
Bring back this port. Host the distfile on my website. Assume ownership
of this port.
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/