summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Vershilov <qnikst@gentoo.org>2012-09-01 17:43:29 +0000
committerAlexander Vershilov <qnikst@gentoo.org>2012-09-01 17:43:29 +0000
commit047abca780519305d5217888864ffe2a1ccdb225 (patch)
tree180649b5ebb30fa81d555fdeba1a74839640a912 /app-admin/sagan
parentKeyword ~ppc, bug #428356 (diff)
downloadgentoo-2-047abca780519305d5217888864ffe2a1ccdb225.tar.gz
gentoo-2-047abca780519305d5217888864ffe2a1ccdb225.tar.bz2
gentoo-2-047abca780519305d5217888864ffe2a1ccdb225.zip
app-admin/sagan bump thanks to slepnoga
(Portage version: 2.2.0_alpha120/cvs/Linux x86_64)
Diffstat (limited to 'app-admin/sagan')
-rw-r--r--app-admin/sagan/ChangeLog8
-rw-r--r--app-admin/sagan/metadata.xml5
-rw-r--r--app-admin/sagan/sagan-0.2.2_p2.ebuild91
3 files changed, 103 insertions, 1 deletions
diff --git a/app-admin/sagan/ChangeLog b/app-admin/sagan/ChangeLog
index a8ce556f10d0..92f4efadca9f 100644
--- a/app-admin/sagan/ChangeLog
+++ b/app-admin/sagan/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for app-admin/sagan
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/app-admin/sagan/ChangeLog,v 1.11 2012/06/19 14:18:17 maksbotan Exp $
+# $Header: /var/cvsroot/gentoo-x86/app-admin/sagan/ChangeLog,v 1.12 2012/09/01 17:43:29 qnikst Exp $
+
+*sagan-0.2.2_p2 (01 Sep 2012)
+
+ 01 Sep 2012; Alexander Vershilov <qnikst@gentoo.org> +sagan-0.2.2_p2.ebuild,
+ metadata.xml:
+ app-admin/sagan-0.2.2_p2.ebuild bump, thanks to slepnoga
*sagan-0.2.0-r2 (19 Jun 2012)
*sagan-0.2.1-r1 (19 Jun 2012)
diff --git a/app-admin/sagan/metadata.xml b/app-admin/sagan/metadata.xml
index af8e988b6185..754fceeb8cce 100644
--- a/app-admin/sagan/metadata.xml
+++ b/app-admin/sagan/metadata.xml
@@ -3,10 +3,15 @@
<pkgmetadata>
<maintainer>
<email>andreis.vinogradovs@gmail.com</email>
+ <name>Andreis Vinogradovs</name>
</maintainer>
<maintainer>
<email>maksbotan@gentoo.org</email>
</maintainer>
+<maintainer>
+ <email>qnikst@gentoo.org</email>
+ <name>Alexander Vershilov</name>
+</maintainer>
<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>
diff --git a/app-admin/sagan/sagan-0.2.2_p2.ebuild b/app-admin/sagan/sagan-0.2.2_p2.ebuild
new file mode 100644
index 000000000000..f266cbfa2987
--- /dev/null
+++ b/app-admin/sagan/sagan-0.2.2_p2.ebuild
@@ -0,0 +1,91 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-admin/sagan/sagan-0.2.2_p2.ebuild,v 1.1 2012/09/01 17:43:29 qnikst Exp $
+
+EAPI=4
+
+MY_PV="0.2.2-r2"
+inherit eutils autotools-utils user
+
+DESCRIPTION="Sagan is a multi-threaded, real time system and event log monitoring system"
+HOMEPAGE="http://sagan.softwink.com/"
+SRC_URI="http://sagan.softwink.com/download/${PN}-${MY_PV}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="smtp mysql postgres prelude snort +lognorm +libdnet +pcap"
+
+DEPEND="virtual/pkgconfig
+ ${RDEPEND}"
+
+RDEPEND="dev-libs/libpcre
+ app-admin/sagan-rules[lognorm?]
+ smtp? ( net-libs/libesmtp )
+ pcap? ( net-libs/libpcap )
+ mysql? ( virtual/mysql )
+ postgres? ( dev-db/postgresql-base )
+ prelude? ( dev-libs/libprelude )
+ lognorm? ( dev-libs/liblognorm )
+ libdnet? ( dev-libs/libdnet )
+ snort? ( >=net-analyzer/snortsam-2.50 )
+ "
+
+AUTOTOOLS_IN_SOURCE_BUILD=1
+DOCS=(AUTHORS ChangeLog FAQ INSTALL README NEWS TODO)
+S="${WORKDIR}/${PN}-${MY_PV}"
+
+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 prelude )
+ $(use_enable lognorm)
+ $(use_enable libdnet)
+ $(use_enable pcap libpcap)
+ $(use_enable snort snortsam)
+ )
+
+ autotools-utils_src_configure
+}
+
+src_install() {
+ autotools-utils_src_install
+
+ diropts -g sagan -o sagan -m 775
+
+ dodir /var/log/sagan
+ dodir /var/run/sagan
+
+ keepdir /var/log/sagan
+ keepdir /var/run/sagan
+
+ mkfifo -m 0640 "${ED}"/var/run/sagan.fifo
+ chown sagan.root "${ED}"/var/run/sagan.fifo
+
+ 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"
+}