aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/pftabled/Makefile
blob: 4b0444cacc57e9d3825703ecb9a2945eee7f53ea (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
# New ports collection makefile for:	pftabled
# Date created:		2006-11-21
# Whom:			Bartlomiej Rutkowski <r@robakdesign.com>
#
# $FreeBSD$
#

PORTNAME=	pftabled
PORTVERSION=	1.08
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)
RUN_DEPEND=	p5-Digest-MD5>=0:${PORTSDIR}/security/p5-Digest-MD5
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>