1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-21 04:06:46 +00:00
freebsd-ports/net-mgmt/grepip/Makefile
Mathieu Arnold 8d6597e0bb Remove ${PORTSDIR}/ from dependencies, categories m, n, o, and p.
With hat:	portmgr
Sponsored by:	Absolight
2016-04-01 14:16:16 +00:00

33 lines
739 B
Makefile

# Created by: Serge Maslov <serge@maslov.biz>
# $FreeBSD$
PORTNAME= grepip
PORTVERSION= 1.0
PORTREVISION= 2
CATEGORIES= net-mgmt
MASTER_SITES= http://komquats.com/distfiles/ \
LOCAL/cy
MAINTAINER= cy@FreeBSD.org
COMMENT= Print lines contans IP matching a pattern in CIDR format
LIB_DEPENDS= libpcre.so:devel/pcre
PLIST_FILES= bin/grepip
PORTDOCS= README.txt
OPTIONS_DEFINE= DOCS
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 ${STAGEDIR}${PREFIX}/bin
${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.txt ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>