1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-26 00:55:14 +00:00
freebsd-ports/net-mgmt/pftabled/Makefile
Sunpoet Po-Chuan Hsieh 91100f0fb3 - Update to 1.09
- Adjust options: add new option PYTHONC for python client

Changes:
- Add sample PHP client.
- Use mandoc manual formatter if available.

PR:		ports/152286
Submitted by:	Chifeng Qu <chifeng@gmail.com> (maintainer)
2010-11-25 11:58:25 +00:00

52 lines
1.1 KiB
Makefile

# New ports collection makefile for: pftabled
# Date created: 2006-11-21
# Whom: Bartlomiej Rutkowski <r@robakdesign.com>
#
# $FreeBSD$
#
PORTNAME= pftabled
PORTVERSION= 1.09
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 \
PYTHONC "A Sample Python 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
.endif
.if !defined(WITHOUT_PYTHONC)
PLIST_FILES+= bin/pftabled-client.py
.endif
post-patch:
@${REINPLACE_CMD} -e 's|cat1/pftabled.0|man1/pftabled.0|' ${WRKSRC}/Makefile.in
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
.include <bsd.port.post.mk>