From: "Conrad Kostecki" <conikost@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/sagan/
Date: Tue, 20 Jul 2021 19:36:47 +0000 (UTC) [thread overview]
Message-ID: <1626809595.e5fcd787923424979c9b114281551f63d8289400.conikost@gentoo> (raw)
commit: e5fcd787923424979c9b114281551f63d8289400
Author: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
AuthorDate: Tue Jul 20 19:33:15 2021 +0000
Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org>
CommitDate: Tue Jul 20 19:33:15 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e5fcd787
app-admin/sagan: drop old version
Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org>
app-admin/sagan/sagan-2.0.1-r4.ebuild | 134 ----------------------------------
1 file changed, 134 deletions(-)
diff --git a/app-admin/sagan/sagan-2.0.1-r4.ebuild b/app-admin/sagan/sagan-2.0.1-r4.ebuild
deleted file mode 100644
index 6cd0b6adfd4..00000000000
--- a/app-admin/sagan/sagan-2.0.1-r4.ebuild
+++ /dev/null
@@ -1,134 +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 tmpfiles systemd
-
-DESCRIPTION="Sagan is a multi-threaded, real time system and event log monitoring system"
-HOMEPAGE="https://sagan.quadrantsec.com/"
-SRC_URI="https://sagan.quadrantsec.com/download/${P}.tar.gz"
-
-LICENSE="GPL-2"
-SLOT="0"
-KEYWORDS="~amd64 ~x86"
-IUSE="geoip +libdnet +lognorm mysql redis +pcap smtp"
-
-BDEPEND="virtual/pkgconfig"
-DEPEND="
- acct-group/sagan
- acct-user/sagan
- app-admin/sagan-rules[lognorm?]
- dev-libs/libpcre
- dev-libs/libyaml
- geoip? ( dev-libs/geoip )
- lognorm? (
- dev-libs/liblognorm
- dev-libs/libfastjson:=
- dev-libs/libestr
- )
- redis? ( dev-libs/hiredis )
- pcap? ( net-libs/libpcap )
- smtp? ( net-libs/libesmtp )
-"
-
-# Package no longer logs directly to a database
-# and relies on Unified2 format to accomplish it
-RDEPEND="
- ${DEPEND}
- mysql? ( net-analyzer/barnyard2[mysql] )
-"
-
-REQUIRED_USE="mysql? ( libdnet )"
-
-DOCS=( AUTHORS ChangeLog FAQ INSTALL README NEWS TODO )
-
-src_prepare() {
- default
-
- eautoreconf
-}
-
-src_configure() {
- append-flags -fcommon
-
- # TODO: poke at strstr logic and enable/disable CPU_FLAGS_X86_*
- # accordingly?
- # Note that not all of these are used:
- # https://github.com/quadrantsec/sagan/blob/main/m4/ax_ext.m4
- local myeconfargs=(
- $(use_enable smtp esmtp)
- $(use_enable lognorm)
- $(use_enable redis)
- $(use_enable pcap libpcap)
- $(use_enable geoip)
- )
-
- econf "${myeconfargs[@]}"
-}
-
-src_install() {
- default
-
- # No need to create this at build/install time
- rm -r "${ED}"/var/run/ || die
-
- # Fix paths in config file
- sed -i \
- -e "s:/usr/local/:${EPREFIX}/:" \
- -e "s:/var/run/sagan:${EPREFIX}/run/sagan:" \
- "${ED}"/etc/sagan.yaml || die
-
- diropts -g sagan -o sagan -m 750
- # bug #775902
- keepdir /var/sagan/{,fifo}
- keepdir /var/log/sagan/{,stats}
-
- fowners sagan:sagan /var/log/sagan/{,stats}
-
- touch "${ED}"/var/log/sagan/sagan.log || die
- fowners sagan:sagan /var/log/sagan/sagan.log || die
-
- newinitd "${FILESDIR}"/sagan.init-r1 sagan
- newconfd "${FILESDIR}"/sagan.confd sagan
-
- systemd_dounit "${FILESDIR}"/sagan.service
- newtmpfiles "${FILESDIR}"/sagan.tmpfiles sagan.conf
-
- insinto /etc/logrotate.d
- newins "${FILESDIR}"/sagan.logrotate sagan
-
- docinto examples
- dodoc -r extra/*
-}
-
-pkg_preinst() {
- # bug #775902 revealed that we need 750 on /var/log/sagan or e.g.
- # logrotate will fail. Let's inform the user to fix up permissions
- # in such a case.
- # (fperms won't modify the live filesystem.)
- HAD_BROKEN_PERMS=0
-
- if has_version "<app-admin/sagan-2.0.1-r4" ; then
- HAD_BROKEN_PERMS=1
- fi
-}
-
-pkg_postinst() {
- tmpfiles_process sagan.conf
-
- if [[ "${HAD_BROKEN_PERMS}" -eq 1 ]] ; then
- ewarn "Please fix the permissions on ${EPREFIX}/var/log/sagan:"
- ewarn "e.g. chmod 750 ${EPREFIX}/var/log/sagan"
- ewarn "See bug #775902"
- fi
-
- 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"
-}
next reply other threads:[~2021-07-20 19:36 UTC|newest]
Thread overview: 31+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-07-20 19:36 Conrad Kostecki [this message]
-- strict thread matches above, loose matches on Subject: below --
2024-11-23 18:27 [gentoo-commits] repo/gentoo:master commit in: app-admin/sagan/ Michał Górny
2024-11-23 14:32 Michał Górny
2023-06-11 8:22 Joonas Niilola
2022-03-23 1:24 Sam James
2021-07-20 20:30 Conrad Kostecki
2021-07-20 20:30 Conrad Kostecki
2021-07-20 20:22 Conrad Kostecki
2021-07-20 19:36 Conrad Kostecki
2021-03-15 1:26 Sam James
2021-03-15 1:26 Sam James
2021-03-15 1:26 Sam James
2021-03-12 15:35 Sam James
2021-03-12 15:28 Sam James
2021-03-12 15:25 Sam James
2021-03-11 12:40 Sam James
2021-03-11 12:39 Sam James
2021-03-11 8:27 Sam James
2021-03-11 8:16 Sam James
2021-03-11 8:07 Sam James
2021-03-11 8:04 Sam James
2021-03-11 7:29 Sam James
2021-02-11 2:12 Sam James
2021-01-06 19:21 Andreas K. Hüttel
2020-09-24 1:06 Aaron Bauman
2017-12-19 21:45 Thomas Deutschmann
2016-05-29 20:21 Alexander Vershilov
2016-04-04 9:00 Ian Delaney
2015-11-01 13:05 Mikle Kolyada
2015-10-30 9:18 Agostino Sarubbo
2015-10-14 9:31 Ian Delaney
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1626809595.e5fcd787923424979c9b114281551f63d8289400.conikost@gentoo \
--to=conikost@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox