aboutsummaryrefslogtreecommitdiffstats
path: root/net-mgmt/grepip/Makefile
blob: 2a14cfafe425083a5adcbc612c4673de114c9472 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Created by: Serge Maslov <serge@maslov.biz>
# $FreeBSD$

PORTNAME=   grepip
PORTVERSION=    1.0
PORTREVISION=   2
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

NO_STAGE=   yes
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>