2006-11-23 13:02:29 +01:00
|
|
|
# New ports collection makefile for: pftabled
|
|
|
|
# Date created: 2006-11-21
|
|
|
|
# Whom: Bartlomiej Rutkowski <r@robakdesign.com>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= pftabled
|
2010-11-25 12:58:25 +01:00
|
|
|
PORTVERSION= 1.09
|
2006-11-23 13:02:29 +01:00
|
|
|
CATEGORIES= net-mgmt
|
|
|
|
MASTER_SITES= http://www.wolfermann.org/
|
|
|
|
|
2009-02-18 15:49:28 +01:00
|
|
|
MAINTAINER= chifeng@gmail.com
|
2006-11-23 13:02:29 +01:00
|
|
|
COMMENT= The pftabled is a tool to manage your pf tables remotely
|
|
|
|
|
|
|
|
USE_RC_SUBR= pftabled
|
2010-04-21 15:55:50 +02:00
|
|
|
MAN1= pftabled.0
|
2006-11-23 13:02:29 +01:00
|
|
|
|
|
|
|
PLIST_FILES= bin/pftabled-client sbin/pftabled
|
|
|
|
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_GMAKE= yes
|
|
|
|
|
2010-11-25 12:58:25 +01:00
|
|
|
OPTIONS= PERLC "A Sample Perl Client" on \
|
|
|
|
PYTHONC "A Sample Python Client" on
|
2009-03-02 03:47:39 +01:00
|
|
|
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
|
|
|
.if !defined(WITHOUT_PERLC)
|
2010-09-21 18:08:11 +02:00
|
|
|
. if ${PERL_LEVEL} < 500703
|
|
|
|
RUN_DEPENDS+= p5-Digest-MD5>=2.16:${PORTSDIR}/security/p5-Digest-MD5
|
|
|
|
. endif
|
2010-11-25 12:58:25 +01:00
|
|
|
PLIST_FILES+= bin/pftabled-client.pl
|
|
|
|
.endif
|
2009-03-02 03:47:39 +01:00
|
|
|
|
2010-11-25 12:58:25 +01:00
|
|
|
.if !defined(WITHOUT_PYTHONC)
|
|
|
|
PLIST_FILES+= bin/pftabled-client.py
|
2009-03-02 03:47:39 +01:00
|
|
|
.endif
|
|
|
|
|
2009-02-19 21:20:43 +01:00
|
|
|
post-patch:
|
|
|
|
@${REINPLACE_CMD} -e 's|cat1/pftabled.0|man1/pftabled.0|' ${WRKSRC}/Makefile.in
|
|
|
|
|
2010-11-25 12:58:25 +01:00
|
|
|
post-install:
|
|
|
|
.if !defined(WITHOUT_PERLC)
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/pftabled-client.pl ${PREFIX}/bin/
|
|
|
|
.endif
|
|
|
|
.if !defined(WITHOUT_PYTHONC)
|
|
|
|
${INSTALL_SCRIPT} ${WRKSRC}/pftabled-client.py ${PREFIX}/bin/
|
|
|
|
.endif
|
|
|
|
|
2009-03-02 03:47:39 +01:00
|
|
|
.include <bsd.port.post.mk>
|