freebsd-ports/net-mgmt/grepcidr/Makefile
Philip M. Gollucci d780ccf8fb * Add an option to apply patch allowing to search for pattern anywhere in line
* Add -DHAVE_STRING_H to make compiler happy
* Bump PORTREVISION

PR:             ports/141437
Submitted by:   "Alexander V. Chernikov" <melifaro@ipfw.ru>
Approved by:    maintainer timeout (1 month)
2010-01-14 23:19:21 +00:00

34 lines
777 B
Makefile

# New ports collection makefile for: grepcidr
# Date created: 2005-04-24
# Whom: Douglas Fraser <doug@idmf.net>
#
# $FreeBSD$
#
PORTNAME= grepcidr
PORTVERSION= 1.3
PORTREVISION= 1
CATEGORIES= net-mgmt textproc
MASTER_SITES= http://www.pc-tools.net/files/unix/
MAINTAINER= doug+ports@idmf.net
COMMENT= Filter IP addresses matching IPv4 CIDR/network specification
OPTIONS= SEARCH "Enable pattern search anywhere in line" off
PLIST_FILES= bin/grepcidr
.include <bsd.port.pre.mk>
.if defined(WITH_SEARCH)
EXTRA_PATCHES+= ${FILESDIR}/find_anywhere.diff
.endif
do-configure:
@${REINPLACE_CMD} \
-e 's|/usr/local/bin|${PREFIX}/bin|' \
-e 's|-s -O3 -Wall -pedantic|${CFLAGS} -DHAVE_STRING_H|' \
-e 's|gcc|${CC}|' \
${WRKSRC}/Makefile
.include <bsd.port.post.mk>