diff options
author | Maxim Koltsov <maksbotan@gentoo.org> | 2012-06-19 14:18:17 +0000 |
---|---|---|
committer | Maxim Koltsov <maksbotan@gentoo.org> | 2012-06-19 14:18:17 +0000 |
commit | e9ca7498cbd10c896f685a1d62f19e31167ab35c (patch) | |
tree | dc76c0382906692d21af9f3eca8dc5371ca7b285 /app-admin/sagan | |
parent | remove old (diff) | |
download | gentoo-2-e9ca7498cbd10c896f685a1d62f19e31167ab35c.tar.gz gentoo-2-e9ca7498cbd10c896f685a1d62f19e31167ab35c.tar.bz2 gentoo-2-e9ca7498cbd10c896f685a1d62f19e31167ab35c.zip |
Fix documentation installation path, bug 421477
(Portage version: 2.1.10.65/cvs/Linux x86_64)
Diffstat (limited to 'app-admin/sagan')
-rw-r--r-- | app-admin/sagan/ChangeLog | 9 | ||||
-rw-r--r-- | app-admin/sagan/sagan-0.2.0-r2.ebuild | 85 | ||||
-rw-r--r-- | app-admin/sagan/sagan-0.2.1-r1.ebuild | 89 |
3 files changed, 182 insertions, 1 deletions
diff --git a/app-admin/sagan/ChangeLog b/app-admin/sagan/ChangeLog index d5e6969427d1..a8ce556f10d0 100644 --- a/app-admin/sagan/ChangeLog +++ b/app-admin/sagan/ChangeLog @@ -1,6 +1,13 @@ # 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.10 2012/06/08 11:43:53 phajdan.jr Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-admin/sagan/ChangeLog,v 1.11 2012/06/19 14:18:17 maksbotan Exp $ + +*sagan-0.2.0-r2 (19 Jun 2012) +*sagan-0.2.1-r1 (19 Jun 2012) + + 19 Jun 2012; Maxim Koltsov <maksbotan@gentoo.org> +sagan-0.2.0-r2.ebuild, + +sagan-0.2.1-r1.ebuild: + Fix documentation installation path, bug 421477 08 Jun 2012; Pawel Hajdan jr <phajdan.jr@gentoo.org> sagan-0.2.1.ebuild: x86 stable wrt bug #418497 diff --git a/app-admin/sagan/sagan-0.2.0-r2.ebuild b/app-admin/sagan/sagan-0.2.0-r2.ebuild new file mode 100644 index 000000000000..57c4a4380286 --- /dev/null +++ b/app-admin/sagan/sagan-0.2.0-r2.ebuild @@ -0,0 +1,85 @@ +# 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.0-r2.ebuild,v 1.1 2012/06/19 14:18:17 maksbotan Exp $ + +EAPI=4 + +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/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="smtp mysql postgres prelude +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 )" + +AUTOTOOLS_IN_SOURCE_BUILD=1 +DOCS=(AUTHORS ChangeLog FAQ INSTALL README NEWS TODO) + +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) ) + + 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" +} diff --git a/app-admin/sagan/sagan-0.2.1-r1.ebuild b/app-admin/sagan/sagan-0.2.1-r1.ebuild new file mode 100644 index 000000000000..f63b601ae5f1 --- /dev/null +++ b/app-admin/sagan/sagan-0.2.1-r1.ebuild @@ -0,0 +1,89 @@ +# 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.1-r1.ebuild,v 1.1 2012/06/19 14:18:17 maksbotan Exp $ + +EAPI=4 + +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/${P}.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) + +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" +} |