aboutsummaryrefslogtreecommitdiff
path: root/net-mgmt/circe/Makefile
blob: 823db1643f99b94ecfbb8e3efe00b8700ef7e2a0 (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
42
43
44
45
46
47
48
49
50
51
# New ports collection makefile for: circe
# Date created:		23 July 2010
# Whom:			Berkeley NAC-Team
#
# $FreeBSD$
#

PORTNAME=	circe
PORTVERSION=	0.2.3
CATEGORIES=	net-mgmt
MASTER_SITES=	http://bws.berkeley.edu/ports/

MAINTAINER=	circe-port-maintainers@bws.net.berkeley.edu
COMMENT=	A captive portal-based network access control solution in perl

LICENSE=	BSD

RUN_DEPENDS=	p5-Net-IP-Match-XS>=0:${PORTSDIR}/net-mgmt/p5-Net-IP-Match-XS \
		p5-IO-Socket-SSL>=0:${PORTSDIR}/security/p5-IO-Socket-SSL \
		p5-IO>=0:${PORTSDIR}/devel/p5-IO \
		p5-Error>=0:${PORTSDIR}/lang/p5-Error \
		p5-Sys-Syslog>=0:${PORTSDIR}/sysutils/p5-Sys-Syslog \
		p5-TryCatch>=0:${PORTSDIR}/lang/p5-TryCatch \
		p5-Data-Validate-IP>=0:${PORTSDIR}/net-mgmt/p5-Data-Validate-IP \
		p5-Regexp-Common>=0:${PORTSDIR}/textproc/p5-Regexp-Common \
		p5-Getopt-Long>=0:${PORTSDIR}/devel/p5-Getopt-Long \
		p5-BerkeleyDB>=0:${PORTSDIR}/databases/p5-BerkeleyDB \
		p5-Crypt-CBC>=0:${PORTSDIR}/security/p5-Crypt-CBC \
		p5-Proc-PID-File>=0:${PORTSDIR}/devel/p5-Proc-PID-File

USE_PERL5=	yes

DIST_SUBDIR=	${PORTNAME}
WRKSRC=		${WRKDIR}

OPTIONS=	ENCRYPT "Encrypt the destination URL in redirection" Off

.include <bsd.port.options.mk>

.if defined(WITH_ENCRYPT)
RUN_DEPENDS+=	p5-Crypt-DES>=0:${PORTSDIR}/security/p5-Crypt-DES \
		p5-Crypt-OpenSSL-AES>=0:${PORTSDIR}/security/p5-Crypt-OpenSSL-AES
.endif

MANCOMPRESSED=	no

post-patch:
	@${REINPLACE_CMD} -e 's|$$(SITE_PERL)|${PREFIX}/${SITE_PERL_REL}|g' ${WRKSRC}/Makefile
	@${REINPLACE_CMD} -e 's|$$(SITE_PERL_REL)|${SITE_PERL_REL}|g' ${WRKSRC}/Makefile

.include <bsd.port.mk>