Lines 3-8
Link Here
|
3 |
|
3 |
|
4 |
PORTNAME= broccoli |
4 |
PORTNAME= broccoli |
5 |
PORTVERSION= 2.2 |
5 |
PORTVERSION= 2.2 |
|
|
6 |
PORTREVISION= 1 |
6 |
CATEGORIES= security |
7 |
CATEGORIES= security |
7 |
MASTER_SITES= http://www.bro.org/downloads/release/ |
8 |
MASTER_SITES= http://www.bro.org/downloads/release/ |
8 |
DISTNAME= bro-${PORTVERSION} |
9 |
DISTNAME= bro-${PORTVERSION} |
Lines 14-72
Link Here
|
14 |
|
15 |
|
15 |
BUILD_DEPENDS= bison:${PORTSDIR}/devel/bison \ |
16 |
BUILD_DEPENDS= bison:${PORTSDIR}/devel/bison \ |
16 |
swig:${PORTSDIR}/devel/swig13 |
17 |
swig:${PORTSDIR}/devel/swig13 |
17 |
LIB_DEPENDS= GeoIP:${PORTSDIR}/net/GeoIP |
18 |
LIB_DEPENDS= libGeoIP.so:${PORTSDIR}/net/GeoIP |
18 |
|
19 |
|
19 |
EXTRACT_AFTER_ARGS= ${DISTNAME}/aux/broccoli |
20 |
EXTRACT_AFTER_ARGS= ${DISTNAME}/aux/broccoli |
20 |
|
21 |
|
21 |
USES= cmake:outsource perl5 |
22 |
USES= cmake:outsource |
22 |
USE_LDCONFIG= yes |
23 |
USE_LDCONFIG= yes |
23 |
NO_MTREE= yes |
|
|
24 |
CMAKE_SOURCE_PATH= ${WRKSRC}/aux/broccoli |
24 |
CMAKE_SOURCE_PATH= ${WRKSRC}/aux/broccoli |
25 |
|
25 |
|
26 |
.if defined(BRO_PREFIX) |
26 |
.if defined(BRO_PREFIX) |
27 |
PREFIX=${BRO_PREFIX} |
27 |
PREFIX=${BRO_PREFIX} |
28 |
PLIST_SUB+= CLEANUP_PREFIX="" |
28 |
PLIST_SUB+= CLEANUP_PREFIX="" |
29 |
NEED_ROOT= yes |
29 |
NO_MTREE= yes |
30 |
.else |
30 |
.else |
31 |
PLIST_SUB+= CLEANUP_PREFIX="@comment " |
31 |
PLIST_SUB+= CLEANUP_PREFIX="@comment " |
32 |
.endif |
32 |
.endif |
33 |
CMAKE_ARGS+= -D CMAKE_INSTALL_PREFIX:PATH=${PREFIX} \ |
33 |
CMAKE_ARGS+= -D CMAKE_INSTALL_PREFIX:PATH=${PREFIX} \ |
34 |
-D BRO_ETC_INSTALL_DIR:PATH=${PREFIX}/etc \ |
34 |
-D BRO_ETC_INSTALL_DIR:PATH=${PREFIX}/etc |
35 |
-D PY_MOD_INSTALL_DIR:PATH=${PREFIX} |
|
|
36 |
|
35 |
|
37 |
OPTIONS_DEFINE= DEBUG PYTHON RUBY |
36 |
OPTIONS_DEFINE= DEBUG PYTHON RUBY |
|
|
37 |
OPTIONS_SUB= |
38 |
|
38 |
|
39 |
DEBUG_DESC= Compile in debugging mode |
39 |
DEBUG_DESC= Compile in debugging mode |
40 |
PYTHON_DESC= Build python bindings for broccoli |
40 |
PYTHON_DESC= Build python bindings for broccoli |
41 |
RUBY_DESC= Build ruby bindings for broccoli |
41 |
RUBY_DESC= Build ruby bindings for broccoli |
42 |
|
42 |
|
43 |
.include <bsd.port.options.mk> |
43 |
DEBUG_CMAKE_ON= -D ENABLE_DEBUG:BOOL=true |
|
|
44 |
PYTHON_USE= python=yes |
45 |
PYTHON_CMAKE_ON= -D PY_MOD_INSTALL_DIR:PATH=${PYTHON_SITELIBDIR} |
46 |
PYTHON_CMAKE_OFF= -D DISABLE_PYTHON_BINDINGS:BOOL=true |
47 |
RUBY_USE= ruby=yes |
48 |
RUBY_CMAKE_ON= -D RB_INSTALL_DIR:PATH=${RUBY_SITELIBDIR} \ |
49 |
-D RB_ARCH_INSTALL_DIR:PATH=${RUBY_SITEARCHLIBDIR} |
50 |
RUBY_CMAKE_OFF= -D DISABLE_RUBY_BINDINGS:BOOL=true |
44 |
|
51 |
|
45 |
.if ${PORT_OPTIONS:MDEBUG} |
52 |
post-install:: |
46 |
CMAKE_ARGS+= -D ENABLE_DEBUG:BOOL=true |
|
|
47 |
.endif |
48 |
|
49 |
.if ${PORT_OPTIONS:MPYTHON} |
50 |
USE_PYTHON= yes |
51 |
PLIST_SUB+= PYTHON="" |
52 |
.else |
53 |
CMAKE_ARGS+= -D DISABLE_PYTHON_BINDINGS:BOOL=true |
54 |
PLIST_SUB+= PYTHON="@comment " |
55 |
.endif |
56 |
|
57 |
.if ${PORT_OPTIONS:MRUBY} |
58 |
USE_RUBY= yes |
59 |
PLIST_SUB+= RUBY="" |
60 |
.else |
61 |
CMAKE_ARGS+= -D DISABLE_RUBY_BINDINGS:BOOL=true |
62 |
PLIST_SUB+= RUBY="@comment " |
63 |
.endif |
64 |
|
65 |
post-stage:: |
66 |
.if defined(BRO_PREFIX) |
53 |
.if defined(BRO_PREFIX) |
67 |
@${MKDIR} ${PREFIX} |
54 |
@${MKDIR} ${STAGEDIR}${PREFIX} |
68 |
.endif |
55 |
.endif |
69 |
@${MKDIR} ${STAGEDIR}${PREFIX}/etc |
56 |
@${MKDIR} ${STAGEDIR}${PREFIX}/etc |
70 |
@${INSTALL_SCRIPT} ${WRKSRC}/aux/broccoli/broccoli.conf ${STAGEDIR}${PREFIX}/etc/broccoli.conf.example |
57 |
@${MV} ${STAGEDIR}${PREFIX}/etc/broccoli.conf ${STAGEDIR}${PREFIX}/etc/broccoli.conf.example |
71 |
|
58 |
|
72 |
.include <bsd.port.mk> |
59 |
.include <bsd.port.mk> |