blob: f40a82fb0cebace0f8cd2cbe67e88389c0042151 (
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
45
46
47
48
49
50
51
52
53
54
|
# New ports collection makefile for: ipfcount
# Date created: 22 December 2005
# Whom: Robert Archer <freebsd@deathbeforedecaf.net>
#
# $FreeBSD$
#
PORTNAME= ipfcount
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 ipf logs by counting and sorting the fields
PLIST_FILES= bin/ipfcount
MAN1= ipfcount.1
USE_PERL5= yes
.if !defined(NOPORTDOCS)
PLIST_DIRS= %%EXAMPLESDIR%%
PLIST_FILES+= %%EXAMPLESDIR%%/100.ipfcount
SUB_FILES= pkg-message
.endif
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 500600
IGNORE= requires perl 5.6 or higher - see the lang/perl5.8 port
.endif
post-patch:
@${REINPLACE_CMD} -e '1s,^#![^ ]*,#!${PERL},' ${WRKSRC}/ipfcount
do-build:
cd ${WRKSRC} && pod2man ipfcount > ipfcount.1
do-install:
${INSTALL_SCRIPT} ${WRKSRC}/ipfcount ${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/ipfcount.1 ${PREFIX}/man/man1/ipfcount.1
.if !defined(NOPORTDOCS)
${MKDIR} ${EXAMPLESDIR}
${INSTALL_SCRIPT} ${WRKSRC}/100.ipfcount ${EXAMPLESDIR}
.endif
post-install:
.if !defined(NOPORTDOCS)
@${CAT} ${PKGMESSAGE}
.endif
.include <bsd.port.post.mk>
|