diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-07-24 02:11:45 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-07-24 02:11:45 +0100 |
commit | b49088575eb777ced2551f484da86317332d6087 (patch) | |
tree | bf9a151cf2d61956340d555659ffc098ee1da466 /app-admin/sagan/files | |
parent | 514d1bbe260df2521fe60f1a3ec87cfcfde1a829 (diff) |
gentoo resync : 24.07.2021
Diffstat (limited to 'app-admin/sagan/files')
-rw-r--r-- | app-admin/sagan/files/sagan-1.0.0-liblognorm-json-c.patch | 53 | ||||
-rw-r--r-- | app-admin/sagan/files/sagan.init | 17 |
2 files changed, 0 insertions, 70 deletions
diff --git a/app-admin/sagan/files/sagan-1.0.0-liblognorm-json-c.patch b/app-admin/sagan/files/sagan-1.0.0-liblognorm-json-c.patch deleted file mode 100644 index a1b3fb290f50..000000000000 --- a/app-admin/sagan/files/sagan-1.0.0-liblognorm-json-c.patch +++ /dev/null @@ -1,53 +0,0 @@ ---- a/configure.ac -+++ b/configure.ac -@@ -192,29 +192,15 @@ If you're not interested in libesmtp sup - fi - - if test "$LOGNORM" = "yes"; then -- AC_MSG_RESULT([------- liblognorm support is enabled -------]) -- AC_CHECK_HEADER([liblognorm.h]) -- AC_CHECK_HEADERS([json/json.h json.h], [break], [AC_MSG_ERROR([json-c headers not found or not usable. --This library is important for the correlation aspects of Sagan! Please see --https://wiki.quadrantsec.com/bin/view/Main/LibLogNorm. To disable this feature --use the --disable-lognorm flag.])]) -- AC_CHECK_LIB(estr, main,,AC_MSG_ERROR(The libestr library cannot be found. --This library is important for the correlation aspects of Sagan! Please see --https://wiki.quadrantsec.com/bin/view/Main/LibLogNorm. To disable this feature --use the --disable-lognorm flag. )) -- AC_CHECK_LIB(ee, main,,AC_MSG_ERROR(The libee library cannot be found. --This library is important for the correlation aspects of Sagan! Please see --https://wiki.quadrantsec.com/bin/view/Main/LibLogNorm. To disable this feature --use the --disable-lognorm flag. )) -- AC_CHECK_LIB(lognorm, main,,AC_MSG_ERROR(The liblognorm library cannot be found. --This library is important for the correlation aspects of Sagan! Please see --https://wiki.quadrantsec.com/bin/view/Main/LibLogNorm. To disable this feature --use the --disable-lognorm flag. )) -- AC_CHECK_LIB(json, json_object_put,, [ AC_CHECK_LIB(json-c, json_object_put,,AC_MSG_ERROR(The json library cannot be found. --This library is important for the correlation aspects of Sagan! Please see --https://wiki.quadrantsec.com/bin/view/Main/LibLogNorm. To disable this feature --use the --disable-lognorm flag.)) ],) -- fi -+ AC_MSG_RESULT([------- liblognorm support is enabled -------]) -+ -+ PKG_CHECK_MODULES(LIBEE, libee >= 0.3.2) -+ PKG_CHECK_MODULES(LIBESTR, libestr >= 0.1.9) -+ PKG_CHECK_MODULES([JSON_C], [json-c],, [ -+ PKG_CHECK_MODULES([JSON_C], [json],,) -+ ]) -+ PKG_CHECK_MODULES(LIBLOGNORM, lognorm >= 1.0.2) -+fi - - if test "$LIBPCAP" = "yes"; then - AC_MSG_RESULT([------- libpcap support is enabled -------]) ---- a/src/Makefile.am -+++ b/src/Makefile.am -@@ -2,6 +2,9 @@ AUTOMAKE_OPIONS=foreign no-dependencies - - bin_PROGRAMS = sagan - -+sagan_CFLAGS = $(JSON_C_CFLAGS) $(LIBESTR_CFLAGS) $(LIBLOGNORM_CFLAGS) -+sagan_LDFLAGS = $(JSON_C_LIBS) $(LIBESTR_LIBS) $(LIBLOGNORM_LIBS) -+ - sagan_SOURCES = sagan.c \ - sagan-classifications.c \ - sagan-config.c \ diff --git a/app-admin/sagan/files/sagan.init b/app-admin/sagan/files/sagan.init deleted file mode 100644 index 99f1f24e3bfa..000000000000 --- a/app-admin/sagan/files/sagan.init +++ /dev/null @@ -1,17 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -pidfile="/var/run/sagan/sagan.pid" -command="/usr/bin/sagan" -command_args="-D \"${SAGAN_OPTS}\" -u \"${SAGAN_USER}\"" - -depend() { - use logger mysql postgresql - need localmount -} - -start_pre() { - checkpath -d -o sagan /var/run/sagan - checkpath -p -o sagan -m 0644 /var/run/sagan/sagan.fifo -} |