freebsd-ports/net-mgmt/grepip/Makefile
Andrej Zverev 7ee5c2644a 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)
2005-11-07 07:40:11 +00:00

35 lines
905 B
Makefile

# 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>