aboutsummaryrefslogtreecommitdiffstats
path: root/security/ipfwcount/Makefile
blob: 122f6b320a1b38b9483811eda9d5e54bba962aa2 (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
33
34
35
36
37
38
39
40
41
42
43
44
# Created by: Robert Archer <freebsd@deathbeforedecaf.net>
# $FreeBSD$

PORTNAME=   ipfwcount
PORTVERSION=    0.2.1
PORTREVISION=   1
CATEGORIES= security
MASTER_SITES=   http://deathbeforedecaf.net/misc/ports/ \
        http://users.netleader.com.au/~rob/

MAINTAINER= freebsd@deathbeforedecaf.net
COMMENT=    Summarise ipfw logs by counting and sorting the fields

PLIST_FILES=    bin/ipfwcount
MAN1=       ipfwcount.1

USES=       perl5

.if !defined(NOPORTDOCS)
PLIST_DIRS= %%EXAMPLESDIR%%
PLIST_FILES+=   %%EXAMPLESDIR%%/100.ipfwcount
SUB_FILES=  pkg-message
.endif

post-patch:
    ${REINPLACE_CMD} -e '1s,^#![^ ]*,#!${PERL},' ${WRKSRC}/ipfwcount

do-build:
    cd ${WRKSRC} && pod2man ipfwcount > ipfwcount.1

do-install:
    ${INSTALL_SCRIPT} ${WRKSRC}/ipfwcount ${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/ipfwcount.1 ${PREFIX}/man/man1/ipfwcount.1
.if !defined(NOPORTDOCS)
    ${MKDIR} ${EXAMPLESDIR}
    ${INSTALL_SCRIPT} ${WRKSRC}/100.ipfwcount ${EXAMPLESDIR}
.endif

post-install:
.if !defined(NOPORTDOCS)
    @${CAT} ${PKGMESSAGE}
.endif

.include <bsd.port.mk>