blob: d648ec2f7d5bec369e6043984913889727b60cc2 (
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
|
# Created by: Roman Shterenzon <roman@xpert.com>
# $FreeBSD$
PORTNAME= fwbuilder
DISTVERSION= 5.1.0
PORTVERSION= ${DISTVERSION}
PORTREVISION= 2
CATEGORIES= security
BUILD= 3599
# XXX in developement version of this port: PKGNAMESUFFIX= -devel
.if defined(PKGNAMESUFFIX) && ${PKGNAMESUFFIX} == -devel
MASTER_SITES= http://www.fwbuilder.org/nightly_builds/fwbuilder-5.0/current_build/
PORTVERSION= ${DISTVERSION}.b${BUILD}
PORTREVISION= 1
.else
MASTER_SITES= SF/${PORTNAME}/Current_Packages/${PORTVERSION}
.endif
DISTVERSIONSUFFIX= .${BUILD}
MAINTAINER= cy@FreeBSD.org
COMMENT= Firewall Builder GUI and policy compilers
#OPTIONS_DEFINE= DOCS
.if defined(PKGNAMESUFFIX) && ${PKGNAMESUFFIX} == -devel
CONFLICTS= fwbuilder-[234].* fwbuilder-devel-[234].* \
libfwbuilder-[234].* libfwbuilder-devel-[234].*
.else
CONFLICTS= fwbuilder-[234].* fwbuilder-devel-* \
libfwbuilder-[234].* libfwbuilder-devel-*
.endif
LIB_DEPENDS= libxslt.so:${PORTSDIR}/textproc/libxslt \
libnetsnmp.so:${PORTSDIR}/net-mgmt/net-snmp
PLIST_SUB= BUILD_VERSION=${DISTVERSION}.${BUILD}
USE_QT4= corelib \
gui \
iconengines \
inputmethods \
linguist_build \
moc_build \
rcc_build \
qmake_build \
svg \
uic_build \
xml
QTDIR?= ${QT_PREFIX}
USE_OPENSSL= yes
USES= gmake libtool
USE_AUTOTOOLS= libtoolize aclocal autoconf
CONFIGURE_ENV= QMAKESPEC=${LOCALBASE}/share/qt/mkspecs/freebsd-g++ \
INSTALL_ROOT=${STAGEDIR}
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
CONFIGURE_ARGS= --with-docdir=${DOCSDIR} --with-qtdir=${QTDIR} \
--prefix=${PREFIX}
MAKE_ARGS+= QTDIR="${QTDIR}" \
QMAKESPEC=${LOCALBASE}/share/qt/mkspecs/freebsd-g++
MAKE_ENV= INSTALL_ROOT=${STAGEDIR}
USE_LDCONFIG= yes
PLIST_SUB+= PORTVERSION="${PORTVERSION}"
PORTDOCS= *
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 800107
MAKE_ENV+= CCACHE_DISABLE=yes
.endif
.if ${OSVERSION} >= 1000055
# IMPORTANT: Newer versions of rcs will NOT work with fwbuilder.
RUN_DEPENDS= rcs:${PORTSDIR}/devel/rcs57
.endif
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/fwbuilder
@${ECHO} If you are upgrading from a previous version of fwbuilder,
@${ECHO} please make sure to backup your fwbuilder database files
@${ECHO} prior to invoking fwbuilder for the first time.
.if empty(PORT_OPTIONS:MDOCS)
BROKEN= DOCS must be enabled in this port
.endif
.include <bsd.port.post.mk>
|