blob: 217f58d78ec9cac82ccfbf9132321ddcb813ddff (
plain)
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
|
# New ports collection makefile for: pfw
# Date created: 2005-04-14
# Whom: Renato Botelho <freebsd@galle.com.br>
#
# $FreeBSD$
#
PORTNAME= pfw
PORTVERSION= 0.6
CATEGORIES= security www
MASTER_SITES= http://www.allard.nu/pfw/download/
EXTRACT_SUFX= .tgz
MAINTAINER= freebsd@galle.com.br
COMMENT= A web frontend for the pf firewall
RUN_DEPENDS= sudo:${PORTSDIR}/security/sudo
USE_PHP= session pcre
WANT_PHP_WEB= yes
NO_BUILD= yes
PFW_PREFIX?= ${PREFIX}/www/pfw
SUB_FILES= pkg-message
SUB_LIST= PFW_PREFIX=${PFW_PREFIX}
PKGMESSAGE= ${WRKDIR}/pkg-message
.include <bsd.port.pre.mk>
.if ${OSVERSION} < 500000
IGNORE= pf is only in 5.x
.elif ${OSVERSION} < 502105
RUN_DEPENDS+= pf:${PORTSDIR}/security/pf
.endif
do-install:
.for dir in conf lib web
@${MKDIR} ${PFW_PREFIX}/${dir}
@${CP} -Rv ${WRKSRC}/${dir}/* ${PFW_PREFIX}/${dir}
.endfor
@${CP} -v ${WRKSRC}/INSTALL ${WRKSRC}/README ${PFW_PREFIX}
@${MKDIR} ${PFW_PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/bin/pfctlwrapper.sh.remote ${PFW_PREFIX}/bin
${INSTALL_SCRIPT} ${WRKSRC}/bin/pfctlwrapper.sh ${PFW_PREFIX}/bin
post-install:
@${CAT} ${PKGMESSAGE}
@${ECHO_CMD}
.include <bsd.port.post.mk>
|