freebsd-ports/security/ipfcount/Makefile
Mark Linimon 9839011ec3 Welcome bsd.perl.mk. Add support for constructs such as USE_PERL5=5.8.0+.
Drop support for antique perl.

Work done by:	gabor
Sponsored by:	Google Summer of Code 2007
Hat:		portmgr
2007-09-08 01:12:10 +00:00

48 lines
1.1 KiB
Makefile

# 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
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.mk>