View | Details | Raw Unified | Return to bug 184519 | Differences between
and this patch

Collapse All | Expand All

(-)Makefile (-31 / +26 lines)
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
.if ! defined(WITH_PKGNG) && ! exists(${BRO_PREFIX})
29
NEED_ROOT=	yes
30
NEED_ROOT=	yes
31
.endif
32
NO_MTREE=	yes
30
.else
33
.else
31
PLIST_SUB+=	CLEANUP_PREFIX="@comment "
34
PLIST_SUB+=	CLEANUP_PREFIX="@comment "
32
.endif
35
.endif
33
CMAKE_ARGS+=	-D CMAKE_INSTALL_PREFIX:PATH=${PREFIX} \
36
CMAKE_ARGS+=	-D CMAKE_INSTALL_PREFIX:PATH=${PREFIX} \
34
		-D BRO_ETC_INSTALL_DIR:PATH=${PREFIX}/etc \
37
		-D BRO_ETC_INSTALL_DIR:PATH=${PREFIX}/etc
35
		-D PY_MOD_INSTALL_DIR:PATH=${PREFIX}
36
38
37
OPTIONS_DEFINE=	DEBUG PYTHON RUBY
39
OPTIONS_DEFINE=	DEBUG PYTHON RUBY
40
OPTIONS_SUB=
38
41
39
DEBUG_DESC=	Compile in debugging mode
42
DEBUG_DESC=	Compile in debugging mode
40
PYTHON_DESC=	Build python bindings for broccoli
43
PYTHON_DESC=	Build python bindings for broccoli
41
RUBY_DESC=	Build ruby bindings for broccoli
44
RUBY_DESC=	Build ruby bindings for broccoli
42
45
43
.include <bsd.port.options.mk>
46
DEBUG_CMAKE_ON=	-D ENABLE_DEBUG:BOOL=true
47
PYTHON_USE=	python=yes
48
PYTHON_CMAKE_ON=	-D PY_MOD_INSTALL_DIR:PATH=${PYTHON_SITELIBDIR}
49
PYTHON_CMAKE_OFF=	-D DISABLE_PYTHON_BINDINGS:BOOL=true
50
RUBY_USE=	ruby=yes
51
RUBY_CMAKE_ON=	-D RB_INSTALL_DIR:PATH=${RUBY_SITELIBDIR} \
52
		-D RB_ARCH_INSTALL_DIR:PATH=${RUBY_SITEARCHLIBDIR}
53
RUBY_CMAKE_OFF=		-D DISABLE_RUBY_BINDINGS:BOOL=true
44
54
45
.if ${PORT_OPTIONS:MDEBUG}
55
post-install::
46
CMAKE_ARGS+=		-D ENABLE_DEBUG:BOOL=true
56
.if defined(BRO_PREFIX) && ! defined(WITH_PKGNG) && ! exists(${BRO_PREFIX})
57
	# pkg_install needs PREFIX in order to make a package from STAGEDIR/PREFIX.
58
	${MKDIR} ${PREFIX}
47
.endif
59
.endif
48
60
	${MKDIR} ${STAGEDIR}${PREFIX}/etc
49
.if ${PORT_OPTIONS:MPYTHON}
61
	${MV} ${STAGEDIR}${PREFIX}/etc/broccoli.conf ${STAGEDIR}${PREFIX}/etc/broccoli.conf.example
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)
62
.if defined(BRO_PREFIX)
67
	@${MKDIR} ${PREFIX}
63
	# bsd.python.mk isn't PREFIX-safe yet.
64
	${MV} ${STAGEDIR}${PYTHON_LIBDIR} ${STAGEDIR}${PYTHON_LIBDIR:S/${LOCALBASE}/${PREFIX}/}
68
.endif
65
.endif
69
	@${MKDIR} ${STAGEDIR}${PREFIX}/etc
70
	@${INSTALL_SCRIPT} ${WRKSRC}/aux/broccoli/broccoli.conf ${STAGEDIR}${PREFIX}/etc/broccoli.conf.example
71
66
72
.include <bsd.port.mk>
67
.include <bsd.port.mk>
(-)pkg-plist (-4 / +16 lines)
Lines 7-17 Link Here
7
lib/libbroccoli.so
7
lib/libbroccoli.so
8
lib/libbroccoli.so.5
8
lib/libbroccoli.so.5
9
lib/libbroccoli.so.5.1.0
9
lib/libbroccoli.so.5.1.0
10
%%PYTHON%%lib/python/_broccoli_intern.so
10
%%PYTHON%%%%PYTHON_SITELIBDIR%%/_broccoli_intern.so
11
%%PYTHON%%lib/python/broccoli.py
11
%%PYTHON%%%%PYTHON_SITELIBDIR%%/broccoli.py
12
%%RUBY%%lib/ruby/broccoli_ext.so
12
%%RUBY%%%%RUBY_SITELIBDIR%%/Broccoli/connection.rb
13
%%RUBY%%%%RUBY_SITELIBDIR%%/Broccoli/event.rb
14
%%RUBY%%%%RUBY_SITELIBDIR%%/Broccoli/record.rb
15
%%RUBY%%%%RUBY_SITELIBDIR%%/broccoli.rb
16
%%RUBY%%%%RUBY_SITEARCHLIBDIR%%/broccoli_ext.so
17
%%RUBY%%@dirrmtry %%RUBY_SITELIBDIR%%/Broccoli
18
%%CLEANUP_PREFIX%%%%PORTDOCS%%@dirrmtry share
19
%%CLEANUP_PREFIX%%%%RUBY%%@dirrmtry lib/ruby/site_ruby/1.9/i386-freebsd9
20
%%CLEANUP_PREFIX%%%%RUBY%%@dirrmtry lib/ruby/site_ruby/1.9
21
%%CLEANUP_PREFIX%%%%RUBY%%@dirrmtry lib/ruby/site_ruby
22
%%CLEANUP_PREFIX%%%%RUBY%%@dirrmtry lib/ruby
23
%%CLEANUP_PREFIX%%%%PYTHON%%@dirrmtry lib/python2.7/site-packages
24
%%CLEANUP_PREFIX%%%%PYTHON%%@dirrmtry lib/python2.7
13
%%CLEANUP_PREFIX%%@dirrmtry lib
25
%%CLEANUP_PREFIX%%@dirrmtry lib
14
%%CLEANUP_PREFIX%%@dirrmtry include
26
%%CLEANUP_PREFIX%%@dirrmtry include
15
%%CLEANUP_PREFIX%%@dirrmtry etc
27
%%CLEANUP_PREFIX%%@dirrmtry etc
16
%%CLEANUP_PREFIX%%@dirrmtry bin
28
%%CLEANUP_PREFIX%%@dirrmtry bin
17
%%CLEANUP_PREFIX%%@dirrmtry %D
29
%%CLEANUP_PREFIX%%@unexec rmdir %D || :

Return to bug 184519