Lines 1-8
Link Here
|
1 |
# $FreeBSD$ |
1 |
# $FreeBSD$ |
2 |
|
2 |
|
3 |
PORTNAME= barnyard2 |
3 |
PORTNAME= barnyard2 |
4 |
PORTVERSION= 1.10 |
4 |
PORTVERSION= 1.11 |
5 |
PORTREVISION?= 0 |
|
|
6 |
CATEGORIES= security |
5 |
CATEGORIES= security |
7 |
|
6 |
|
8 |
MAINTAINER= pauls@utdallas.edu |
7 |
MAINTAINER= pauls@utdallas.edu |
Lines 13-34
Link Here
|
13 |
USE_GITHUB= yes |
12 |
USE_GITHUB= yes |
14 |
GH_ACCOUNT= firnsy |
13 |
GH_ACCOUNT= firnsy |
15 |
GH_PROJECT= ${PORTNAME} |
14 |
GH_PROJECT= ${PORTNAME} |
16 |
GH_TAGNAME= v2-${PORTVERSION} |
15 |
GH_TAGNAME= master |
17 |
GH_COMMIT= 2f5d496 |
16 |
GH_COMMIT= 4dfdc80 |
18 |
|
17 |
|
19 |
OPTIONS_DEFINE= MYSQL PGSQL BRO SNORT SNORTSAM SURICATA |
18 |
OPTIONS_DEFINE= 64BIT ARUBA BRO GRE IPv6 MPLS MYSQL MYSQL-SSL ODBC PRELUDE PGSQL |
20 |
OPTIONS_DEFAULT=#empty |
|
|
21 |
NO_OPTIONS_SORT=yes |
19 |
NO_OPTIONS_SORT=yes |
22 |
|
20 |
|
23 |
BRO_DESC= Depend on security/bro |
21 |
64BIT_DESC= Enable 64bit compilation (experimental) |
24 |
MYSQL_DESC= Enable MySQL support |
22 |
ARUBA_DESC= Enable aruba support |
25 |
PGSQL_DESC= Enable PostgreSQL support |
23 |
BRO_DESC= Enable bro support (libbroccoli) |
26 |
SNORT_DESC= Depend on security/snort |
24 |
GRE_DESC= Enable gre support |
27 |
SNORTSAM_DESC= Depend on security/snortsam |
25 |
IPv6_DESC= Enable ipv6 support |
28 |
SURICATA_DESC= Depend on security/suricata |
26 |
MPLS_DESC= Enable mpls support |
|
|
27 |
MYSQL_DESC= Enable mysql support |
28 |
MYSQL-SSL_DESC= Enable mysql ssl support (experimental) |
29 |
ODBC_DESC= Enable odbc support |
30 |
PRELUDE_DESC= Enable prelude support |
31 |
PGSQL_DESC= Enable postgresql support |
29 |
|
32 |
|
30 |
.if !defined(SLAVE) |
33 |
.if defined(SLAVE) |
31 |
OPTIONS_DEFINE+=TCL |
34 |
OPTIONS_DEFINE+= TCL |
|
|
35 |
OPTIONS_DESC= Enable tcl support for sguil |
36 |
OPTIONS_DEFAULT+= TCL |
32 |
.endif |
37 |
.endif |
33 |
|
38 |
|
34 |
USE_AUTOTOOLS= libtoolize aclocal autoheader automake autoconf |
39 |
USE_AUTOTOOLS= libtoolize aclocal autoheader automake autoconf |
Lines 44-90
Link Here
|
44 |
|
49 |
|
45 |
PORTDOCS1= README RELEASE.NOTES |
50 |
PORTDOCS1= README RELEASE.NOTES |
46 |
PORTDOCS2= INSTALL README.aruba README.database README.sguil README.snortsam |
51 |
PORTDOCS2= INSTALL README.aruba README.database README.sguil README.snortsam |
47 |
PORTEXAMPLES= create_db2 create_mysql create_postgresql SCHEMA_ACCESS create_mssql create_oracle.sql |
52 |
PORTEXAMPLES= SCHEMA_ACCESS create_db2 create_mssql create_mysql create_oracle.sql create_postgresql |
48 |
PORTDOCS= ${PORTDOCS1} ${PORTDOCS2} |
|
|
49 |
|
53 |
|
50 |
.include <bsd.port.options.mk> |
54 |
.include <bsd.port.options.mk> |
51 |
|
55 |
|
|
|
56 |
.if ${PORT_OPTIONS:M64BIT} |
57 |
CONFIGURE_ARGS+= --enable-64bit-gcc |
58 |
.else |
59 |
CONFIGURE_ARGS+= --disable-64bit-gcc |
60 |
.endif |
61 |
|
62 |
.if ${PORT_OPTIONS:MARUBA} |
63 |
CONFIGURE_ARGS+= --enable-aruba |
64 |
.else |
65 |
CONFIGURE_ARGS+= --disable-aruba |
66 |
.endif |
67 |
|
68 |
.if ${PORT_OPTIONS:MBRO} |
69 |
BROKEN= Will not compile until bro update is committed - deselect this option |
70 |
BUILD_DEPENDS+= bro:${PORTSDIR}/security/bro-barnyard2 |
71 |
CONFIGURE_ARGS+= --enable-bro --with-broccoli=${LOCALBASE}/lib |
72 |
.else |
73 |
CONFIGURE_ARGS+= --disable-bro |
74 |
.endif |
75 |
|
76 |
.if ${PORT_OPTIONS:MGRE} |
77 |
CONFIGURE_ARGS+= --enable-gre |
78 |
.else |
79 |
CONFIGURE_ARGS+= --disable-gre |
80 |
.endif |
81 |
|
82 |
.if ${PORT_OPTIONS:MIPv6} |
83 |
CONFIGURE_ARGS+= --enable-ipv6 |
84 |
.else |
85 |
CONFIGURE_ARGS+= --disable-ipv6 |
86 |
.endif |
87 |
|
88 |
.if ${PORT_OPTIONS:MMPLS} |
89 |
CONFIGURE_ARGS+= --enable-mpls |
90 |
.else |
91 |
CONFIGURE_ARGS+= --disable-mpls |
92 |
.endif |
93 |
|
52 |
.if ${PORT_OPTIONS:MMYSQL} |
94 |
.if ${PORT_OPTIONS:MMYSQL} |
53 |
USE_MYSQL= yes |
95 |
USE_MYSQL= yes |
54 |
CONFIGURE_ARGS+= --with-mysql \ |
96 |
CONFIGURE_ARGS+= --with-mysql \ |
55 |
--with-mysql-includes=${LOCALBASE}/include/mysql \ |
97 |
--with-mysql-includes=${LOCALBASE}/include/mysql \ |
56 |
--with-mysql-libraries=${LOCALBASE}/lib/mysql |
98 |
--with-mysql-libraries=${LOCALBASE}/lib/mysql |
57 |
SUB_LIST+= MYSQL=" mysql" |
|
|
58 |
.else |
99 |
.else |
59 |
CONFIGURE_ARGS+= --without-mysql |
100 |
CONFIGURE_ARGS+= --without-mysql |
60 |
SUB_LIST+= MYSQL="" |
|
|
61 |
.endif |
101 |
.endif |
62 |
|
102 |
|
63 |
.if ${PORT_OPTIONS:MPGSQL} |
103 |
.if ${PORT_OPTIONS:MMYSQL-SSL} |
64 |
USE_PGSQL= yes |
104 |
OPTIONS_DEFAULT+= MYSQL |
65 |
CONFIGURE_ARGS+= --with-postgresql=${LOCALBASE} |
105 |
CONFIGURE_ARGS+= --enable-mysql-ssl-support |
66 |
SUB_LIST+= PGSQL=" postgresql" |
|
|
67 |
.else |
106 |
.else |
68 |
CONFIGURE_ARGS+= --without-postgresql |
107 |
CONFIGURE_ARGS+= --disable-mysql-ssl-support |
69 |
SUB_LIST+= PGSQL="" |
|
|
70 |
.endif |
108 |
.endif |
71 |
|
109 |
|
72 |
.if ${PORT_OPTIONS:MBRO} |
110 |
.if ${PORT_OPTIONS:MODBC} |
73 |
RUN_DEPENDS+= ${LOCALBASE}/bin/bro:${PORTSDIR}/security/bro |
111 |
LIB_DEPENDS+= odbc:${PORTSDIR}/databases/unixODBC |
|
|
112 |
CONFIGURE_ARGS+= --with-odbc |
113 |
.else |
114 |
CONFIGURE_ARGS+= --without-odbc |
74 |
.endif |
115 |
.endif |
75 |
|
116 |
|
76 |
.if ${PORT_OPTIONS:MSNORT} |
117 |
.if ${PORT_OPTIONS:MPRELUDE} |
77 |
RUN_DEPENDS+= ${LOCALBASE}/bin/snort:${PORTSDIR}/security/snort |
118 |
BUILD_DEPENDS+= prelude-manager:${PORTSDIR}/security/prelude-manager |
|
|
119 |
CONFIGURE_ARGS+= --enable-prelude |
120 |
.else |
121 |
CONFIGURE_ARGS+= --disable-prelude |
78 |
.endif |
122 |
.endif |
79 |
|
123 |
|
80 |
.if ${PORT_OPTIONS:MSNORTSAM} |
124 |
.if ${PORT_OPTIONS:MPGSQL} |
81 |
RUN_DEPENDS+= ${LOCALBASE}/bin/snortsnam:${PORTSDIR}/security/snortsam |
125 |
USE_PGSQL= yes |
|
|
126 |
CONFIGURE_ARGS+= --with-postgresql=${LOCALBASE}/bin/pg_config --with-pgsql-includes=${LOCALBASE}/include/postgresql/server |
127 |
.else |
128 |
CONFIGURE_ARGS+= --without-postgresql |
82 |
.endif |
129 |
.endif |
83 |
|
130 |
|
84 |
.if ${PORT_OPTIONS:MSURICATA} |
|
|
85 |
RUN_DEPENDS+= ${LOCALBASE}/bin/suricata:${PORTSDIR}/security/suricata |
86 |
.endif |
87 |
|
88 |
.if ${PORT_OPTIONS:MTCL} |
131 |
.if ${PORT_OPTIONS:MTCL} |
89 |
USE_TCL= yes |
132 |
USE_TCL= yes |
90 |
CONFIGURE_ARGS+= --with-tcl=${LOCALBASE}/lib/tcl${TCL_VER} |
133 |
CONFIGURE_ARGS+= --with-tcl=${LOCALBASE}/lib/tcl${TCL_VER} |
Lines 97-102
Link Here
|
97 |
${WRKSRC}/etc/barnyard2.conf |
140 |
${WRKSRC}/etc/barnyard2.conf |
98 |
|
141 |
|
99 |
post-install: |
142 |
post-install: |
|
|
143 |
@cp ${WRKSRC}/etc/barnyard2.conf ${PREFIX}/etc/barnyard2.conf.sample |
100 |
if [ ! -f ${PREFIX}/etc/barnyard2.conf ]; then \ |
144 |
if [ ! -f ${PREFIX}/etc/barnyard2.conf ]; then \ |
101 |
${CP} -p ${PREFIX}/etc/barnyard2.conf.sample ${PREFIX}/etc/barnyard2.conf; \ |
145 |
${CP} -p ${PREFIX}/etc/barnyard2.conf.sample ${PREFIX}/etc/barnyard2.conf; \ |
102 |
fi |
146 |
fi |