Lines 14-20
Link Here
|
14 |
GH_TAGNAME= v2-${PORTVERSION} |
14 |
GH_TAGNAME= v2-${PORTVERSION} |
15 |
GH_COMMIT= 272eaf7 |
15 |
GH_COMMIT= 272eaf7 |
16 |
|
16 |
|
17 |
OPTIONS_DEFINE= 64BIT ARUBA BRO GRE IPV6 MPLS MYSQL MYSQL_SSL ODBC PRELUDE PGSQL |
17 |
OPTIONS_DEFINE= 64BIT ARUBA BRO GRE IPV6 MPLS MYSQL MYSQL_SSL ODBC PRELUDE PGSQL PORT_PCAP |
18 |
NO_OPTIONS_SORT=yes |
18 |
NO_OPTIONS_SORT=yes |
19 |
|
19 |
|
20 |
64BIT_DESC= Enable 64bit compilation (experimental) |
20 |
64BIT_DESC= Enable 64bit compilation (experimental) |
Lines 23-28
Link Here
|
23 |
GRE_DESC= Enable gre support |
23 |
GRE_DESC= Enable gre support |
24 |
MYSQL_SSL_DESC= Enable mysql ssl support (experimental) |
24 |
MYSQL_SSL_DESC= Enable mysql ssl support (experimental) |
25 |
PRELUDE_DESC= Enable prelude support |
25 |
PRELUDE_DESC= Enable prelude support |
|
|
26 |
PORT_PCAP_DESC= Use libpcap from ports |
26 |
|
27 |
|
27 |
.if defined(SLAVE) |
28 |
.if defined(SLAVE) |
28 |
OPTIONS_DEFINE+= TCL |
29 |
OPTIONS_DEFINE+= TCL |
Lines 44-133
Link Here
|
44 |
PORTDOCS2= INSTALL README.aruba README.database README.sguil README.sig_suppress README.snortsam |
45 |
PORTDOCS2= INSTALL README.aruba README.database README.sguil README.sig_suppress README.snortsam |
45 |
EXAMPLES= SCHEMA_ACCESS create_db2 create_mssql create_mysql create_oracle.sql create_postgresql |
46 |
EXAMPLES= SCHEMA_ACCESS create_db2 create_mssql create_mysql create_oracle.sql create_postgresql |
46 |
|
47 |
|
47 |
.include <bsd.port.options.mk> |
48 |
64BIT_CONFIGURE_ENABLE= 64bit-gcc |
48 |
|
49 |
ARUBA_CONFIGURE_ENABLE= aruba |
49 |
.if ${PORT_OPTIONS:M64BIT} |
50 |
BRO_LIB_DEPENDS= libbroccoli.so:${PORTSDIR}/security/broccoli |
50 |
CONFIGURE_ARGS+= --enable-64bit-gcc |
51 |
BRO_CONFIGURE_ON= --with-broccoli=${LOCALBASE}/lib |
51 |
.else |
52 |
BRO_CONFIGURE_ENABLE= bro |
52 |
CONFIGURE_ARGS+= --disable-64bit-gcc |
53 |
GRE_CONFIGURE_ENABLE= gre |
53 |
.endif |
54 |
IPV6_CONFIGURE_ENABLE= ipv6 |
54 |
|
55 |
MPLS_CONFIGURE_ENABLE= mpls |
55 |
.if ${PORT_OPTIONS:MARUBA} |
56 |
MYSQL_USE= MYSQL=yes |
56 |
CONFIGURE_ARGS+= --enable-aruba |
57 |
MYSQL_CONFIGURE_WITH= mysql |
57 |
.else |
58 |
MYSQL_CONFIGURE_ON= --with-mysql-includes=${LOCALBASE}/include/mysql \ |
58 |
CONFIGURE_ARGS+= --disable-aruba |
|
|
59 |
.endif |
60 |
|
61 |
.if ${PORT_OPTIONS:MBRO} |
62 |
LIB_DEPENDS+= libbroccoli.so:${PORTSDIR}/security/broccoli |
63 |
CONFIGURE_ARGS+= --enable-bro --with-broccoli=${LOCALBASE}/lib |
64 |
.else |
65 |
CONFIGURE_ARGS+= --disable-bro |
66 |
.endif |
67 |
|
68 |
.if ${PORT_OPTIONS:MGRE} |
69 |
CONFIGURE_ARGS+= --enable-gre |
70 |
.else |
71 |
CONFIGURE_ARGS+= --disable-gre |
72 |
.endif |
73 |
|
74 |
.if ${PORT_OPTIONS:MIPV6} |
75 |
CONFIGURE_ARGS+= --enable-ipv6 |
76 |
.else |
77 |
CONFIGURE_ARGS+= --disable-ipv6 |
78 |
.endif |
79 |
|
80 |
.if ${PORT_OPTIONS:MMPLS} |
81 |
CONFIGURE_ARGS+= --enable-mpls |
82 |
.else |
83 |
CONFIGURE_ARGS+= --disable-mpls |
84 |
.endif |
85 |
|
86 |
.if ${PORT_OPTIONS:MMYSQL} |
87 |
USE_MYSQL= yes |
88 |
CONFIGURE_ARGS+= --with-mysql \ |
89 |
--with-mysql-includes=${LOCALBASE}/include/mysql \ |
90 |
--with-mysql-libraries=${LOCALBASE}/lib/mysql |
59 |
--with-mysql-libraries=${LOCALBASE}/lib/mysql |
91 |
.else |
60 |
MYSQL_SSL_CONFIGURE_ENABLE= mysql-ssl-support |
92 |
CONFIGURE_ARGS+= --without-mysql |
61 |
ODBC_LIB_DEPENDS= libodbc.so:${PORTSDIR}/databases/unixODBC |
93 |
.endif |
62 |
ODBC_WITH= odbc |
94 |
|
63 |
PRELUDE_BUILD_DEPENDS= prelude-manager:${PORTSDIR}/security/prelude-manager |
95 |
.if ${PORT_OPTIONS:MMYSQL_SSL} |
64 |
PRELUDE_CONFIGURE_ENABLE= prelude |
96 |
USE_MYSQL= yes |
65 |
PGSQL_USE= PGSQL=yes |
97 |
CONFIGURE_ARGS+= --enable-mysql-ssl-support |
66 |
PGSQL_CONFIGURE_ON= --with-postgresql=${LOCALBASE}/bin/pg_config --with-pgsql-includes=${LOCALBASE}/include/postgresql/server |
98 |
.else |
67 |
PGSQL_CONFIGURE_OFF= --without-postgresql |
99 |
CONFIGURE_ARGS+= --disable-mysql-ssl-support |
68 |
TCL_USES= tcl |
100 |
.endif |
69 |
TCL_CONFIGURE_ON= --with-tcl=${LOCALBASE}/lib/tcl${TCL_VER} |
101 |
|
70 |
TCL_CONFIGURE_OFF= --without-tcl |
102 |
.if ${PORT_OPTIONS:MODBC} |
|
|
103 |
LIB_DEPENDS+= odbc:${PORTSDIR}/databases/unixODBC |
104 |
CONFIGURE_ARGS+= --with-odbc |
105 |
.else |
106 |
CONFIGURE_ARGS+= --without-odbc |
107 |
.endif |
108 |
|
109 |
.if ${PORT_OPTIONS:MPRELUDE} |
110 |
BUILD_DEPENDS+= prelude-manager:${PORTSDIR}/security/prelude-manager |
111 |
CONFIGURE_ARGS+= --enable-prelude |
112 |
.else |
113 |
CONFIGURE_ARGS+= --disable-prelude |
114 |
.endif |
115 |
|
116 |
.if ${PORT_OPTIONS:MPGSQL} |
117 |
USE_PGSQL= yes |
118 |
WANT_PGSQL_VER= 92+ |
71 |
WANT_PGSQL_VER= 92+ |
119 |
CONFIGURE_ARGS+= --with-postgresql=${LOCALBASE}/bin/pg_config --with-pgsql-includes=${LOCALBASE}/include/postgresql/server |
72 |
PORT_PCAP_LIB_DEPENDS= libpcap.so:${PORTSDIR}/net/libpcap |
120 |
.else |
73 |
PORT_PCAP_CONFIGURE_ON= --with-libpcap-includes=${LOCALBASE}/include \ |
121 |
CONFIGURE_ARGS+= --without-postgresql |
74 |
--with-libpcap-libraries=${LOCALBASE}/lib |
122 |
.endif |
|
|
123 |
|
75 |
|
124 |
.if ${PORT_OPTIONS:MTCL} |
|
|
125 |
USES+= tcl |
126 |
CONFIGURE_ARGS+= --with-tcl=${LOCALBASE}/lib/tcl${TCL_VER} |
127 |
.else |
128 |
CONFIGURE_ARGS+= --without-tcl |
129 |
.endif |
130 |
|
131 |
post-patch: |
76 |
post-patch: |
132 |
@${REINPLACE_CMD} 's|/etc|${LOCALBASE}/etc|' \ |
77 |
@${REINPLACE_CMD} 's|/etc|${LOCALBASE}/etc|' \ |
133 |
${WRKSRC}/etc/barnyard2.conf |
78 |
${WRKSRC}/etc/barnyard2.conf |