diff options
author | Conrad Kostecki <conikost@gentoo.org> | 2021-07-20 22:30:31 +0200 |
---|---|---|
committer | Conrad Kostecki <conikost@gentoo.org> | 2021-07-20 22:30:47 +0200 |
commit | 9912daea885e0217ecfe8debad3fd1c585516829 (patch) | |
tree | 16e6ad0f2795c2af1e128f6476d7544af52e1ca2 /app-admin/sagan | |
parent | app-admin/sagan: x86 stable (diff) | |
download | gentoo-9912daea885e0217ecfe8debad3fd1c585516829.tar.gz gentoo-9912daea885e0217ecfe8debad3fd1c585516829.tar.bz2 gentoo-9912daea885e0217ecfe8debad3fd1c585516829.zip |
app-admin/sagan: drop old version
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
Diffstat (limited to 'app-admin/sagan')
-rw-r--r-- | app-admin/sagan/Manifest | 1 | ||||
-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 | ||||
-rw-r--r-- | app-admin/sagan/metadata.xml | 2 | ||||
-rw-r--r-- | app-admin/sagan/sagan-1.0.0_rc3-r1.ebuild | 102 |
5 files changed, 0 insertions, 175 deletions
diff --git a/app-admin/sagan/Manifest b/app-admin/sagan/Manifest index 04660dd53e3f..75ebb958f0e6 100644 --- a/app-admin/sagan/Manifest +++ b/app-admin/sagan/Manifest @@ -1,2 +1 @@ -DIST sagan-1.0.0RC3.tar.gz 285207 BLAKE2B 7322ffc73a8e86f07ef106b04feb9140ba94a51b9e286ef0c0b0d3fa609e8e03cef4c75e1d32502c1b70a4c078d8601d2a1c58058137bb793c8a52cecc4be20b SHA512 29388a339b290bb4de2359c0c54b9e1d43ef207b223a499a1a4faa36de4d9590a777a796dd773948e995d052b71f3ef47ca5bad5c133116c4dbb53b4fe336123 DIST sagan-2.0.1.tar.gz 487936 BLAKE2B 84a137bb0001c6758979d17cf67442262f732f7d49ce397183c0c226d6135e2c3cd8362452ef6b893e75a9cf5e874256d88f740b94df0dfa39587fc771ad4f8d SHA512 0cc288b67f641346bb0dbfcac2682c8c2b09e3e508b94dd5b2d5a81c2a80c7989f1d54725041210511877bd6b2338e8b0fdcae01f7084d39d48abef073d1fe64 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 -} diff --git a/app-admin/sagan/metadata.xml b/app-admin/sagan/metadata.xml index 4a81536f6250..69fe306ea6a4 100644 --- a/app-admin/sagan/metadata.xml +++ b/app-admin/sagan/metadata.xml @@ -4,11 +4,9 @@ <!-- maintainer-needed --> <use> <flag name="smtp">Build witch SMTP (E-Mail) support</flag> - <flag name="lognorm">Add support for log/rules normalizations via <pkg>dev-libs/liblognorm</pkg></flag> <flag name="redis">Add support for the Redis database via <pkg>dev-libs/hiredis</pkg></flag> <flag name="pcap">Add support for network packet capture via <pkg>net-libs/libpcap</pkg></flag> <flag name="libdnet">Add support for <pkg>dev-libs/libdnet</pkg></flag> - <flag name="snort">Add support to interact with Snort IDE using <pkg>net-analyzer/snortsam</pkg></flag> </use> <upstream> <remote-id type="github">quadrantsec/sagan</remote-id> diff --git a/app-admin/sagan/sagan-1.0.0_rc3-r1.ebuild b/app-admin/sagan/sagan-1.0.0_rc3-r1.ebuild deleted file mode 100644 index a2f95b1c21f3..000000000000 --- a/app-admin/sagan/sagan-1.0.0_rc3-r1.ebuild +++ /dev/null @@ -1,102 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 - -inherit autotools flag-o-matic user - -DESCRIPTION="Sagan is a multi-threaded, real time system and event log monitoring system" -HOMEPAGE="http://sagan.quadrantsec.com/" -SRC_URI="http://sagan.quadrantsec.com/download/sagan-1.0.0RC3.tar.gz" -S="${WORKDIR}/sagan-1.0.0RC3/" - -LICENSE="GPL-2" -SLOT="0" -KEYWORDS="amd64 x86" -IUSE="geoip +libdnet +lognorm mysql +pcap smtp snort" - -BDEPEND="virtual/pkgconfig" -RDEPEND=" - app-admin/sagan-rules[lognorm(+)?] - dev-libs/libpcre - geoip? ( dev-libs/geoip ) - lognorm? ( - dev-libs/liblognorm - dev-libs/json-c:= - dev-libs/libee - dev-libs/libestr - ) - libdnet? ( dev-libs/libdnet ) - pcap? ( net-libs/libpcap ) - smtp? ( net-libs/libesmtp ) - snort? ( >=net-analyzer/snortsam-2.50 ) -" -DEPEND="${RDEPEND}" - -# Package no longer logs directly to a database -# and relies on Unified2 format to accomplish it -RDEPEND="${RDEPEND} mysql? ( net-analyzer/barnyard2[mysql] )" - -REQUIRED_USE="mysql? ( libdnet )" - -DOCS=( AUTHORS ChangeLog FAQ INSTALL README NEWS TODO ) - -PATCHES=( - "${FILESDIR}"/${PN}-1.0.0-liblognorm-json-c.patch -) - -pkg_setup() { - enewgroup sagan - enewuser sagan -1 -1 /dev/null sagan -} - -src_prepare() { - default - - eautoreconf -} - -src_configure() { - append-flags -fcommon - - local myeconfargs=( - $(use_enable smtp esmtp) - $(use_enable lognorm) - $(use_enable libdnet) - $(use_enable pcap libpcap) - $(use_enable snort snortsam) - $(use_enable geoip) - ) - - econf "${myeconfargs[@]}" -} - -src_install() { - default - - diropts -g sagan -o sagan -m 775 - - dodir /var/log/sagan - - keepdir /var/log/sagan - - touch "${ED}"/var/log/sagan/sagan.log || die - chown sagan.sagan "${ED}"/var/log/sagan/sagan.log || die - - newinitd "${FILESDIR}"/sagan.init-r1 sagan - newconfd "${FILESDIR}"/sagan.confd sagan - - docinto examples - dodoc -r extra/* -} - -pkg_postinst() { - if use smtp; then - ewarn "You have enabled smtp use flag. If you plan on using Sagan with" - ewarn "email, create valid writable home directory for user 'sagan'" - ewarn "For security reasons it was created with /dev/null home directory" - fi - - einfo "For configuration assistance see" - einfo "http://wiki.quadrantsec.com/bin/view/Main/SaganHOWTO" -} |