mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
app-admin/sagan: drop old
Signed-off-by: Aaron Bauman <bman@gentoo.org>
This commit is contained in:
@@ -1,2 +1 @@
|
||||
DIST sagan-0.2.3.tar.gz 231774 BLAKE2B b385a4b22f2fe7567dbb0c52ec022794eacf057a0dc797daa0432ef4bdfc344473a500298825f56a32513025e9c7cee3ff70fc577d7a9454e87022510a71edb4 SHA512 2110f3d34db69cb5c453b8e37d06debeea7531ebf15a9b78954ac1657ddce34feaaff87d14695759c3deb2eed5ecc0e6fec5881fb5037af8efa6c3c9600242cc
|
||||
DIST sagan-1.0.0RC3.tar.gz 285207 BLAKE2B 7322ffc73a8e86f07ef106b04feb9140ba94a51b9e286ef0c0b0d3fa609e8e03cef4c75e1d32502c1b70a4c078d8601d2a1c58058137bb793c8a52cecc4be20b SHA512 29388a339b290bb4de2359c0c54b9e1d43ef207b223a499a1a4faa36de4d9590a777a796dd773948e995d052b71f3ef47ca5bad5c133116c4dbb53b4fe336123
|
||||
|
||||
@@ -1,85 +0,0 @@
|
||||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
AUTOTOOLS_AUTORECONF=1
|
||||
AUTOTOOLS_IN_SOURCE_BUILD=1
|
||||
|
||||
inherit eutils autotools-utils 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/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="~amd64 ~x86"
|
||||
IUSE="+libdnet +lognorm mysql +pcap postgres smtp snort"
|
||||
|
||||
RDEPEND="dev-libs/libpcre
|
||||
app-admin/sagan-rules[lognorm?]
|
||||
smtp? ( net-libs/libesmtp )
|
||||
pcap? ( net-libs/libpcap )
|
||||
mysql? ( dev-db/mysql-connector-c:= )
|
||||
postgres? ( dev-db/postgresql:* )
|
||||
lognorm? ( dev-libs/liblognorm )
|
||||
libdnet? ( dev-libs/libdnet )
|
||||
snort? ( >=net-analyzer/snortsam-2.50 )
|
||||
"
|
||||
|
||||
DEPEND="virtual/pkgconfig
|
||||
${RDEPEND}"
|
||||
|
||||
DOCS=( AUTHORS ChangeLog FAQ INSTALL README NEWS TODO )
|
||||
PATCHES=( "${FILESDIR}"/mysql_check.patch )
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup sagan
|
||||
enewuser sagan -1 -1 /dev/null sagan
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myeconfargs=(
|
||||
$(use_enable mysql)
|
||||
$(use_enable postgres postgresql)
|
||||
$(use_enable smtp esmtp)
|
||||
$(use_enable lognorm)
|
||||
$(use_enable libdnet)
|
||||
$(use_enable pcap libpcap)
|
||||
$(use_enable snort snortsam)
|
||||
--disable-prelude
|
||||
)
|
||||
|
||||
autotools-utils_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
autotools-utils_src_install
|
||||
|
||||
diropts -g sagan -o sagan -m 775
|
||||
|
||||
dodir /var/log/sagan
|
||||
|
||||
keepdir /var/log/sagan
|
||||
|
||||
touch "${ED}"/var/log/sagan/sagan.log
|
||||
chown sagan.sagan "${ED}"/var/log/sagan/sagan.log
|
||||
|
||||
newinitd "${FILESDIR}"/sagan.init sagan
|
||||
newconfd "${FILESDIR}"/sagan.confd sagan
|
||||
|
||||
insinto /usr/share/doc/${PF}/examples
|
||||
doins -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"
|
||||
}
|
||||
@@ -1,85 +0,0 @@
|
||||
# Copyright 1999-2017 Gentoo Foundation
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=5
|
||||
|
||||
AUTOTOOLS_AUTORECONF=1
|
||||
AUTOTOOLS_IN_SOURCE_BUILD=1
|
||||
|
||||
inherit eutils autotools-utils 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/${P}.tar.gz"
|
||||
|
||||
LICENSE="GPL-2"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE="+libdnet +lognorm mysql +pcap postgres smtp snort"
|
||||
|
||||
RDEPEND="dev-libs/libpcre
|
||||
app-admin/sagan-rules[lognorm?]
|
||||
smtp? ( net-libs/libesmtp )
|
||||
pcap? ( net-libs/libpcap )
|
||||
mysql? ( virtual/mysql )
|
||||
postgres? ( dev-db/postgresql:* )
|
||||
lognorm? ( dev-libs/liblognorm )
|
||||
libdnet? ( dev-libs/libdnet )
|
||||
snort? ( >=net-analyzer/snortsam-2.50 )
|
||||
"
|
||||
|
||||
DEPEND="virtual/pkgconfig
|
||||
${RDEPEND}"
|
||||
|
||||
DOCS=( AUTHORS ChangeLog FAQ INSTALL README NEWS TODO )
|
||||
PATCHES=( "${FILESDIR}"/mysql_check.patch )
|
||||
|
||||
pkg_setup() {
|
||||
enewgroup sagan
|
||||
enewuser sagan -1 -1 /dev/null sagan
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
local myeconfargs=(
|
||||
$(use_enable mysql)
|
||||
$(use_enable postgres postgresql)
|
||||
$(use_enable smtp esmtp)
|
||||
$(use_enable lognorm)
|
||||
$(use_enable libdnet)
|
||||
$(use_enable pcap libpcap)
|
||||
$(use_enable snort snortsam)
|
||||
--disable-prelude
|
||||
)
|
||||
|
||||
autotools-utils_src_configure
|
||||
}
|
||||
|
||||
src_install() {
|
||||
autotools-utils_src_install
|
||||
|
||||
diropts -g sagan -o sagan -m 775
|
||||
|
||||
dodir /var/log/sagan
|
||||
|
||||
keepdir /var/log/sagan
|
||||
|
||||
touch "${ED}"/var/log/sagan/sagan.log
|
||||
chown sagan.sagan "${ED}"/var/log/sagan/sagan.log
|
||||
|
||||
newinitd "${FILESDIR}"/sagan.init sagan
|
||||
newconfd "${FILESDIR}"/sagan.confd sagan
|
||||
|
||||
insinto /usr/share/doc/${PF}/examples
|
||||
doins -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"
|
||||
}
|
||||
Reference in New Issue
Block a user