if a port needs 2.x then set MODPY_VERSION=${MODPY_DEFAULT_VERSION_2}.
This commit doesn't change any versions currently used; it may be that
some ports have MODPY_DEFAULT_VERSION_2 but don't require it, those
should be cleaned up in the course of updating ports where possible.
Python module ports providing py3-* packages should still use
FLAVOR=python3 so that we don't have a mixture of dependencies some
using ${MODPY_FLAVOR} and others not.
- typo in default config
- use directories setup in PLIST for suricata-update and default config
- add missing @sample
- tweak readme
- build with libmaxminddb support
- add debug packages
- reinstate patches to run as !root
I still see problems with this, after running for a few minutes I get a
'unlocking already-unlocked mutex' SIGABRT, same before/after this diff
revision.py was generated during the build if git was present, and as such
it ended up in PLIST. remove the file instead as it serves no purpose for us.
prompted by aja@ and naddy@
Use ports-gcc on !clang archs, because suricata needs thread local storage.
While here, make spacing consistent in the Makefile.
Tested on macppc with gcc-4.9 and gcc-8.3.
ok jasper@ (maintainer)
Files are created as root, user _suricata cannot open them. Use
filemode 664 in the default config where possible. Use syslog for
general logging. Fix possible NULL dereference found by Emmanuel
Roullit.
OK sthen@ gonzalo@
Suricata uses libcap-ng on Linux and runs as root elsewhere.
Switch to _suricata user and group in config to avoid running as root.
To remove pid file its directory must be writable by suricata user.
Fix pid file removal if it is specified in config file.
setresuid()/gid() patch from Emmanuel Roullit
OK gonzalo@
available at build time. Add them to lib depends and wantlib
to create a package that always depends on all it needs.
Portcheck complained about an unknown VARBASE, add it to subst vars.
OK gonzalo@