freebsd-ports/net-mgmt/pftabled/Makefile
Martin Matuska 17e550ca2f Explicitly depend on p5-Digest-MD5 only if PERL_LEVEL < 500703
Explicitly depend on p5-Digest-SHA only if PERL_LEVEL < 501000
2010-09-21 16:08:11 +00:00

44 lines
1,012 B
Makefile

# New ports collection makefile for: pftabled
# Date created: 2006-11-21
# Whom: Bartlomiej Rutkowski <r@robakdesign.com>
#
# $FreeBSD$
#
PORTNAME= pftabled
PORTVERSION= 1.08
PORTREVISION= 1
CATEGORIES= net-mgmt
MASTER_SITES= http://www.wolfermann.org/
MAINTAINER= chifeng@gmail.com
COMMENT= The pftabled is a tool to manage your pf tables remotely
USE_RC_SUBR= pftabled
MAN1= pftabled.0
PLIST_FILES= bin/pftabled-client sbin/pftabled
GNU_CONFIGURE= yes
USE_GMAKE= yes
OPTIONS= PERLC "A Sample Perl Client" On
.include <bsd.port.pre.mk>
.if !defined(WITHOUT_PERLC)
. if ${PERL_LEVEL} < 500703
RUN_DEPENDS+= p5-Digest-MD5>=2.16:${PORTSDIR}/security/p5-Digest-MD5
. endif
PLIST_FILES+= bin/pftabled-client.pl bin/pftabled-client.py
post-install:
${INSTALL_SCRIPT} ${WRKSRC}/pftabled-client.pl ${PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/pftabled-client.py ${PREFIX}/bin
.endif
post-patch:
@${REINPLACE_CMD} -e 's|cat1/pftabled.0|man1/pftabled.0|' ${WRKSRC}/Makefile.in
.include <bsd.port.post.mk>