112 Commits

Author SHA1 Message Date
Craig Leres
31edac49c3 Restore GeoIP support via net/libmaxminddb and a new GEOIP2 option
which defaults to enabled, mimicking pre-geoip-deprecation.

PR:		235138
Submitted by:	bofh
Approved by:	ler (mentor, implicit)
2019-02-02 21:32:35 +00:00
Craig Leres
7b95c737bb net/GeoIP has been deprecated but security/bro builds without it;
remove GeoIP dependency and undeprecate.

Approved by:    ler (mentor, implicit)
2019-01-14 17:51:27 +00:00
Adam Weinberger
b48ed2e966 Deprecate everything that depends on net/GeoIP and everything that depends
on those ports.
2019-01-13 21:22:06 +00:00
Tobias C. Berner
707c6bf295 Change cmake default behaviour to outsource.
Ports that build out of source now simply can use "USES=cmake"
instead of "USES=cmake:outsource". Ports that fail to build
out of source now need to specify "USES=cmake:insource".

I tried to only set insource where explictely needed.

PR:		232038
Exp-run by:	antoine
2018-12-25 20:25:39 +00:00
Craig Leres
dca411da1e Update to 2.6.1:
- Update the embedded SQLite library from 3.18.0 to 3.26.0 to
   address a remote code execution vulnerability ("Magellan").

 - Uses a bundled version of the actor-framework (caf) library so
   we can remove the port-local build for caf.

Replace broctl-config.sh absolute symlink with a relative one.

Approved by:	ler (mentor, implicit)
MFH:		2018Q4
Security:	b80f039d-579e-4b82-95ad-b534a709f220
2018-12-20 01:25:09 +00:00
Gerald Pfeifer
a9f015d155 Bump PORTREVISION for ports depending on the canonical version of GCC
defined via Mk/bsd.default-versions.mk which has moved from GCC 7.4 t
GCC 8.2 under most circumstances.

This includes ports
 - with USE_GCC=yes or USE_GCC=any,
 - with USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and
 - with USES=compiler specifying openmp, nestedfct, c11, c++0x, c++11-lang,
   c++11-lib, c++14-lang, c++17-lang, or gcc-c++11-lib
plus, as a double check, everything INDEX-11 showed depending on lang/gcc7.

PR:		231590
2018-12-12 01:35:33 +00:00
Craig Leres
4e97af8f27 Bro 2.5.5 does not build under 12.0-ALPHA10 due to openssl 1.1.1
in the base. Unbreak build by statically linking against
security/openssl. This is a stopgap until Bro 2.6 which supports
openssl 1.1 is released. It is currently in beta and due in a
few weeks.

Add missing NETMAP_DESC while we're here.

Reviewed by:	ler (mentor)
Approved by:	ler (mentor)
Differential Revision:	https://reviews.freebsd.org/D17602
2018-10-17 23:05:55 +00:00
Craig Leres
9b93fbb32b Update to 2.5.5 which addresses security issues:
- Fix array bounds checking in BinPAC: for arrays that are
      fields within a record, the bounds check was based on a pointer
      to the start of the record rather than the start of the array
      field, potentially resulting in a buffer over-read.

    - Fix SMTP command string comparisons: the number of bytes
      compared was based on the user-supplied string length and can
      lead to incorrect matches. e.g. giving a command of "X"
      incorrectly matched "X-ANONYMOUSTLS" (and an empty commands
      match anything).

    - Weird" events are now generally suppressed/sampled by default
      according to some tunable parameters.

    - Improved handling of empty lines in several text protocol
      analyzers that can cause performance issues when seen in long
      sequences.

    - Add `smtp_excessive_pending_cmds' weird which serves as a
      notification for when the "pending command" queue has reached
      an upper limit and been cleared to prevent one from attempting
      to slowly exhaust memory.

Approved by: ler (mentor, implicit)
MFH: 2018Q3
Security: d0be41fe-2a20-4633-b057-4e8b25c41780
2018-08-30 00:13:32 +00:00
Gerald Pfeifer
09f9633cb6 Bump PORTREVISION for ports depending on the canonical version of GCC
in the ports tree (via Mk/bsd.default-versions.mk and lang/gcc) which
has now moved from GCC 6 to GCC 7 by default.

This includes ports
 - featuring USE_GCC=yes or USE_GCC=any,
 - featuring USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and those
 - with USES=compiler specifying one of openmp, nestedfct, c11, c++0x,
   c++11-lib, c++11-lang, c++14-lang, c++17-lang, or gcc-c++11-lib.

PR:		222542
2018-07-29 22:18:44 +00:00
Craig Leres
6446738031 Update to 2.5.4 which fixes multiple memory allocation issues:
- Multiple fixes and improvements to BinPAC generated code
   related to array parsing, with potential impact to all Bro's
   BinPAC-generated analyzers in the form of buffer over-reads
   or other invalid memory accesses depending on whether a
   particular analyzer incorrectly assumed that the
   evaulated-array-length expression is actually the number of
   elements that were parsed out from the input.

 - The NCP analyzer (not enabled by default and also updated
   to actually work with newer Bro APIs in the release) performed
   a memory allocation based directly on a field in the input
   packet and using signed integer storage. This could result
   in a signed integer overflow and memory allocations of
   negative or very large size, leading to a crash or memory
   exhaustion. The new NCP::max_frame_size tuning option now
   limits the maximum amount of memory that can be allocated.

Other fixes:

 - A memory leak in the SMBv1 analyzer.

 - The MySQL analyzer was generally not working as intended,
   for example, it now is able to parse responses that contain
   multiple results/rows.

Add gettext-runtime to USES to address a poudriere testport
warning.

Reviewed by:	matthew (mentor)
Approved by:	matthew (mentor)
MFH:		2018Q2
Security:	2f4fd3aa-32f8-4116-92f2-68f05398348e
Differential Revision:	https://reviews.freebsd.org/D15678
2018-06-08 16:40:46 +00:00
Mathieu Arnold
8dcaabcd6e Add PY_FLAVOR to Python module dependencies.
Sponsored by:	Absolight
2018-05-22 13:15:13 +00:00
Bryan Drewery
b0d89f2ee0 Fix CCACHE_BUILD support. 2018-03-21 03:45:55 +00:00
Craig Leres
ac10630762 r412841 of devel/google-perftools changed the path for bin/pprof
to bin/perftools-pprof; update RUN_DEPENDS for security/bro
accordingly.

Reported by:	James Welcher
Reviewed by:	ler (mentor)
Approved by:	ler (mentor)
Differential Revision:	https://reviews.freebsd.org/D14708
2018-03-16 15:33:34 +00:00
Craig Leres
e4214ee68a Update to 2.5.3 which fixes an integer overflow:
http://blog.bro.org/2018/02/bro-253-released-security-update.html

Note that a CVE has not been assigned yet.

Reviewed by:	matthew (mentor)
Approved by:	matthew (mentor)
MFH:		2018Q1
Differential Revision:	https://reviews.freebsd.org/D14444
2018-02-20 22:29:08 +00:00
Craig Leres
0dfdf42758 Add a NETMAP option to build and install the bro netmap plugin.
PR: 224918
Reported by: Shane Peters
Reviewed by: matthew (mentor)
Approved by: matthew (mentor)
Differential Revision: https://reviews.freebsd.org/D14378
2018-02-19 22:04:08 +00:00
Mathieu Arnold
da0c098f60 Use USE_GITHUB instead of hand crafting urls.
Sponsored by:	Absolight
2018-02-15 13:51:44 +00:00
Craig Leres
091aedd1fc Update to 2.5.2. Changes since 2.5.1:
- Patch OOB write in content-line analyzer:

     https://bro-tracker.atlassian.net/browse/BIT-1856

     A combination of packets can trigger an out of bound write of
     '0' byte in the content-line analyzer.

Reviewed by:	ler (mentor)
Approved by:	ler (mentor)
Differential Revision:	https://reviews.freebsd.org/D12754
2017-10-22 00:00:26 +00:00
Dmitry Marakasov
7e4b3fdefe - Update WWW
Approved by:	portmgr blanket
2017-09-20 09:01:54 +00:00
Craig Leres
ac3c81acea Update MAINTAINER on my ports and "Created by" on the ones I created
to use my @FreeBSD.org email address.

 - devel/arduino
 - devel/arduino-glcd
 - devel/arduino-irremote
 - devel/arduino-mk
 - devel/arduino-sevseg
 - net/hostapd
 - net/py-pcap
 - security/bro
 - security/broccoli
 - security/create-cert
 - sysutils/lbl-cf
 - sysutils/lbl-hf
 - www/mini_httpd

Reviewed by:	ler (mentor)
Approved by:	ler (mentor)
Differential Revision:	https://reviews.freebsd.org/D12374
2017-09-15 18:18:26 +00:00
Gerald Pfeifer
e59c88cece Bump PORTREVISION for ports depending on the canonical version of GCC
(via Mk/bsd.default-versions.mk and lang/gcc) which has moved from
GCC 5.4 to GCC 6.4 under most circumstances.

This includes ports
 - with USE_GCC=yes or USE_GCC=any,
 - with USES=fortran,
 - using Mk/bsd.octave.mk which in turn features USES=fortran, and
 - with USES=compiler specifying openmp, nestedfct, c++11-lib, c++11-lang,
   c++14-lang, c++0x, c11, or gcc-c++11-lib.

PR:		219275
2017-09-10 20:55:38 +00:00
Steve Wills
3692c7df06 security/bro: Update to 2.5.1
Also, unbreak build with BROKER, add rc.d script

PR:		217656
Submitted by:	leres@ee.lbl.gov (maintainer)
2017-08-21 02:12:48 +00:00
Tobias C. Berner
870fa73e3d Fix shebangs.
Approved by:	rakuco (mentor, implicit)
2017-05-16 21:05:08 +00:00
Mark Linimon
b5fc89bb28 Provide more descriptive error messages for ports failing on powerpc64.
While here, pet portlint.

Approved by:	portmgr (tier-2 blanket)
2017-04-30 04:35:10 +00:00
Gerald Pfeifer
04d6f52202 Bump PORTREVISIONs for ports depending on the canonical version of GCC and
lang/gcc which have moved from GCC 4.9.4 to GCC 5.4 (at least under some
circumstances such as versions of FreeBSD or platforms).

This includes ports
 - with USE_GCC=yes or USE_GCC=any,
 - with USES=fortran,
 - using using Mk/bsd.octave.mk which in turn has USES=fortran, and
 - with USES=compiler specifying openmp, nestedfct, c++11-lib, c++14-lang,
   c++11-lang, c++0x, c11, or gcc-c++11-lib.

PR:		216707
2017-04-01 15:23:30 +00:00
Dmitry Marakasov
8244fe99bc - Remove always-true/false conditions after FreeBSD 9, 10.1, 10.2 EOL
Approved by:	portmgr blanket
2017-01-11 10:08:38 +00:00
Alexey Dokuchaev
bb20c8e307 Do not redefine DEBUG_DESC when its meaning more or less matches the default
option description.  Those ports where it meant something more specific were
left untouched.
2016-10-28 17:55:30 +00:00
John Marino
313fc1326d securty/bro: Modernize options, remove Ports SSL option, support LibreSSL
The "build with Ports SSL" option is no longer valid.  The SSL library is
selected through the SSL_DEFAULT value.  While removing the PORTS_SSL
option, modernize the entire set of options under the general
infrastructure blanket.  The SSL work, including the support for LibreSSL
was done under the SSL blanket.
2016-09-13 02:58:03 +00:00
Mathieu Arnold
04d330d94f Fix ports depending on security/(open|libre)ssl directly.
Sponsored by:	Absolight
2016-07-04 10:01:09 +00:00
Mathieu Arnold
5b55a8a53e Fix usage of WITH_OPENSSL_BASE, WITH_OPENSSL_PORT and OPENSSL_PORT.
WITH_OPENSSL_* can't be set after bsd.port.pre.mk.
Fold all other usage into using SSL_DEFAULT == foo

PR:		210149
Submitted by:	mat
Exp-run by:	antoine
Sponsored by:	The FreeBSD Foundation, Absolight
Differential Revision:	https://reviews.freebsd.org/D6577
2016-06-16 13:23:13 +00:00
Steve Wills
86cd4fbe5a many ports: mark broken on powerpc64 2016-04-21 16:43:14 +00:00
Mathieu Arnold
597afc47ba Remove ${PORTSDIR}/ from dependencies, categories r, s, t, and u.
With hat:	portmgr
Sponsored by:	Absolight
2016-04-01 14:25:16 +00:00
Dmitry Marakasov
0b5828572f - Switch to options helpers
- Remove always false condition

Approved by:	portmgr blanket
2015-12-20 15:28:49 +00:00
Thomas Zander
6f1821384b Update to upstream version 2.4.1, add BROKER OPTION
PR:		203849
Submitted by:	leres@ee.lbl.gov (maintainer)
2015-10-23 19:04:50 +00:00
Bartek Rutkowski
4417174b50 security/bro: add ELASTICSEARCH option
PR:		198018
Submitted by:	Craig Leres <leres@ee.lbl.gov>
2015-03-04 14:21:29 +00:00
Kurt Jaeger
07b7d49a72 security/bro, security/broccoli: 2.3 -> 2.3.2
This updates bro and broccoli from 2.3 and 2.3.2, which is a security
update.

Changes to the bro port:
- Rework openssl option logic
- Remove obsolete
- pkgng related changes

Changes to the broccoli port:
- Remove unused DOCS option
- Enable PYTHON by default
- pkgng related changes
- Minor portlint changes

Changes in 2.3.2:
- DNP3: fix reachable assertion and buffer over-read/overflow.
  CVE number pending. (Travis Emmert, Jon Siwek)
- Update binpac: Fix potential out-of-bounds memory reads in
  generated code. CVE-2014-9586. (John Villamil and Chris Rohlf
  - Yahoo Paranoids, Jon Siwek)
- BIT-1234: Fix build on systems that already have ntohll/htonll.
  (Jon Siwek)
- BIT-1291: Delete prebuilt python bytecode files from git.  (Jon Siwek)
- Adding call to new binpac::init() function. (Robin Sommer)

Changes in 2.3.1:
- Fix a reference counting bug in ListVal ctor. (Jon Siwek)
- Fix possible buffer over-read in DNS TSIG parsing. (Jon Siwek)
- Change EDNS parsing code to use rdlength more cautiously.  (Jon Siwek)
- Fix null pointer dereference in OCSP verification code in
  case no certificate is sent as part as the ocsp reply. Addresses
  BIT-1212.  (Johanna Amann)
- Fix OCSP reply validation. Addresses BIT-1212 (Johanna Amann)
- Make links in documentation templates protocol relative. (Johanna Amann)

PR:		197107
Submitted by:	Craig Leres <leres@ee.lbl.gov> (maintainer)
Reviewed by:	koobs
2015-02-02 22:25:23 +00:00
Baptiste Daroussin
209ab56cad Remove pkg_install only bits
Submitted by:	maintainer (private mail)
2014-09-02 21:59:23 +00:00
Baptiste Daroussin
d96aa38d95 Remove support for pkg_install
Merge back bsd.pkgng.mk into bsd.port.mk
Add a note about @stopdaemon not being supported anymore

With hat:	portmgr
Differential Revision:	https://reviews.freebsd.org/D693
2014-09-01 13:03:25 +00:00
John Marino
adcddca1ea security/bro: Add su flags so pkg initialization works
PR:		192646
Submitted by:	maintainer (Craig Leres)
2014-08-15 00:05:17 +00:00
Adam Weinberger
e91f5afdf5 Bump PORTREVISION on all ports that depend on net/GeoIP for
r364627.

Approved by:	portmgr (not really, but touches unstaged ports)
2014-08-11 17:05:50 +00:00
Carlo Strub
ad94cadf35 Update to 2.3
PR:		192105
Submitted by:	leres@ee.lbl.gov (maintainer)
2014-08-10 21:51:58 +00:00
Raphael Kubo da Costa
cfff7adfbc - Fix the build with libc++.
- Convert to new-new OPTIONS framework.
- Use new *_DEPENDS formats.
- Fix LICENSE.

PR:		ports/185455
Submitted by:	Craig Leres <leres@ee.lbl.gov> (maintainer)
2014-01-06 19:31:52 +00:00
Antoine Brodin
aa1382cff4 Fix build on FreeBSD 8 when misc/compat5x is installed
Submitted by:	Craig Leres (maintainer)
2013-12-02 18:07:41 +00:00
Antoine Brodin
c04ed7243f Revert part of previous commit, old pkg_create is unable to create a
package if it can't resolve prefix

Submitted by:	Craig Leres (maintainer)
2013-12-01 07:55:28 +00:00
Antoine Brodin
b3b9b846da - Fix packaging with pkgng: create empty dirs to be packed in STAGEDIR
- Fix build on FreeBSD 8: depend on libmagic ABI version from ports
- While here, use new LIB_DEPENDS syntax

PR:		ports/184194
PR:		ports/184381
Submitted by:	Craig Leres (maintainer)
Reported by:	Mark Martinec and pkg-fallout
2013-12-01 07:29:17 +00:00
Philippe Audeoud
b043db56bc - Update to 2.2
- Support STAGE
- Update MASTER_SITES
- Add LICENSE

PR:		ports/183940
Submitted by:	maintainer
2013-11-22 15:02:56 +00:00
Thomas Abthorpe
b29113ab0d - Fix build with clang
PR:		ports/183279
Submitted by:	Craig Leres <leres@ee.lbl.gov> (maintainer)
2013-10-25 15:02:57 +00:00
Thomas Abthorpe
4965f0bc28 - Remove the real un-needed patch
- Restore needed file
- Bump PORTREVISION

Submitted by:	maintainer
Pointyhat to:	tabthorpe
2013-10-19 13:24:59 +00:00
Thomas Abthorpe
da1e3da8ba - Remove un-needed patch
Submitted by:	maintainer via email
2013-10-17 12:47:25 +00:00
Thomas Abthorpe
15e0b75b85 - Split broccoli library into separate port
- Use new infrastructure
- Bump PORTREVISION

PR:		ports/182475
Submitted by:	Craig Leres <leres@ee.lbl.gov> (maintainer)
2013-10-16 22:56:27 +00:00
Baptiste Daroussin
a65ed2e51b Add NO_STAGE all over the place in preparation for the staging support (cat: security) 2013-09-20 22:55:24 +00:00