diff options
author | Matsuu Takuto <matsuu@gentoo.org> | 2007-09-26 17:14:18 +0000 |
---|---|---|
committer | Matsuu Takuto <matsuu@gentoo.org> | 2007-09-26 17:14:18 +0000 |
commit | 602fefefd100165e9cc45df5657bac6aa6d119ec (patch) | |
tree | 1f08b5ae9e3408101a1cd8ab5af81bedf49613b3 /app-forensics/aide | |
parent | Added audit and xattr USE flag for app-forensics/aide. (diff) | |
download | gentoo-2-602fefefd100165e9cc45df5657bac6aa6d119ec.tar.gz gentoo-2-602fefefd100165e9cc45df5657bac6aa6d119ec.tar.bz2 gentoo-2-602fefefd100165e9cc45df5657bac6aa6d119ec.zip |
Version bumped.
(Portage version: 2.1.3.9)
Diffstat (limited to 'app-forensics/aide')
-rw-r--r-- | app-forensics/aide/ChangeLog | 13 | ||||
-rw-r--r-- | app-forensics/aide/aide-0.13.1.ebuild | 129 | ||||
-rw-r--r-- | app-forensics/aide/files/aide-0.13.1-gentoo.patch | 36 | ||||
-rw-r--r-- | app-forensics/aide/files/digest-aide-0.13.1 | 3 | ||||
-rw-r--r-- | app-forensics/aide/metadata.xml | 2 |
5 files changed, 181 insertions, 2 deletions
diff --git a/app-forensics/aide/ChangeLog b/app-forensics/aide/ChangeLog index 6f39975c099f..583bbc8ecca7 100644 --- a/app-forensics/aide/ChangeLog +++ b/app-forensics/aide/ChangeLog @@ -1,6 +1,17 @@ # ChangeLog for app-forensics/aide # Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-forensics/aide/ChangeLog,v 1.23 2007/09/04 18:16:06 armin76 Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-forensics/aide/ChangeLog,v 1.24 2007/09/26 17:14:17 matsuu Exp $ + +*aide-0.13.1 (26 Sep 2007) + + 26 Sep 2007; MATSUU Takuto <matsuu@gentoo.org> + +files/aide-0.13.1-gentoo.patch, metadata.xml, +aide-0.13.1.ebuild: + Version bumped, bug #126694, #191597. + Added static USE flag, bug #92250. + Added mail-client/mailx to DEPEND, bug #153952. + Fixed dependency, bug #163687. + Clean up ebuild. + Added myself to metadata.xml as maintainer. 04 Sep 2007; Raúl Porcel <armin76@gentoo.org> aide-0.10_p20040917-r1.ebuild: diff --git a/app-forensics/aide/aide-0.13.1.ebuild b/app-forensics/aide/aide-0.13.1.ebuild new file mode 100644 index 000000000000..a11053b888f4 --- /dev/null +++ b/app-forensics/aide/aide-0.13.1.ebuild @@ -0,0 +1,129 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-forensics/aide/aide-0.13.1.ebuild,v 1.1 2007/09/26 17:14:17 matsuu Exp $ +WANT_AUTOCONF='latest' +WANT_AUTOMAKE='latest' +inherit eutils autotools + +DESCRIPTION="AIDE (Advanced Intrusion Detection Environment) is a replacement for Tripwire" +HOMEPAGE="http://aide.sourceforge.net/" +SRC_URI="mirror://sourceforge/aide/${P}.tar.gz" + +SLOT="0" +LICENSE="GPL-2" +KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86" +IUSE="acl audit curl mhash nls postgres selinux static xattr zlib" + +DEPEND="acl? ( sys-apps/acl ) + audit? ( sys-process/audit ) + curl? ( net-misc/curl ) + mhash? ( >=app-crypt/mhash-0.9.2 ) + !mhash? ( dev-libs/libgcrypt ) + nls? ( virtual/libintl ) + postgres? ( dev-db/postgresql ) + selinux? ( sys-libs/libselinux ) + xattr? ( sys-apps/attr ) + zlib? ( sys-libs/zlib )" + +RDEPEND="!static? ( ${DEPEND} ) + virtual/mailx" + +DEPEND="${DEPEND} + nls? ( sys-devel/gettext ) + sys-devel/bison + sys-devel/flex" + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/${P}-gentoo.patch + + if ! use mhash ; then + # dev-libs/libgcrypt doesn't support whirlpool algorithm + sed -i -e 's/\+whirlpool//' doc/aide.conf.in || die + fi + + if ! use selinux ; then + sed -i -e 's/\+selinux//' doc/aide.conf.in || die + fi + + if ! use xattr ; then + sed -i -e 's/\+xattrs//' doc/aide.conf.in || die + fi + + if ! use acl ; then + sed -i -e 's/\+acl//' doc/aide.conf.in || die + fi + eautoreconf +} + +src_compile() { + local myconf="--sysconfdir=/etc/aide $(use_enable static)" + + # --without-* borked + use zlib && myconf="${myconf} --with-zlib" + use nls && myconf="${myconf} --with-locale" + use postgres && myconf="${myconf} --with-psql" + use selinux && myconf="${myconf} --with-selinux" + use acl && myconf="${myconf} --with-posix-acl" + use xattr && myconf="${myconf} --with-xattr" + use audit && myconf="${myconf} --with-audit" + + # curl doesn't work with static + use curl && ! use static && myconf="${myconf} --with-curl" + + # If you use dev-libs/libgcrypt, --without-mhash is needed. + use mhash \ + && myconf="${myconf} --with-mhash" \ + || myconf="${myconf} --with-gcrypt --without-mhash" + + econf ${myconf} || die + emake || die +} + +src_install() { + emake DESTDIR="${D}" install || die + + keepdir /var/lib/aide + keepdir /var/log/aide + + insinto /etc/aide + doins "${FILESDIR}"/aide.conf + # doins doc/aide.conf + + dosbin "${FILESDIR}"/aideinit + + exeinto /etc/cron.daily + doexe "${FILESDIR}"/aide.cron + + dodoc ChangeLog AUTHORS NEWS README + dohtml doc/manual.html +} + +pkg_postinst() { + chown root:0 /var/lib/aide + chmod 0755 /var/lib/aide + + elog + elog "A sample configuration file has been installed as" + elog "/etc/aide/aide.conf. Please edit to meet your needs." + elog "Read the aide.conf(5) manual page for more information." + elog "A cron file has been installed in /etc/cron.daily/aide.cron" + elog "A helper script, aideinit, has been installed and can" + elog "be used to make AIDE management easier. Please run" + elog "aideinit --help for more information" + elog + + if use postgres; then + elog "Due to a bad assumption by aide, you must issue the following" + elog "command after the database initialization (aide --init ...):" + elog + elog 'psql -c "update pg_index set indisunique=false from pg_class \\ ' + elog " where pg_class.relname='TABLE_pkey' and \ " + elog ' pg_class.oid=pg_index.indexrelid" -h HOSTNAME -p PORT DBASE USER' + elog + elog "where TABLE, HOSTNAME, PORT, DBASE, and USER are the same as" + elog "your aide.conf." + elog + fi +} diff --git a/app-forensics/aide/files/aide-0.13.1-gentoo.patch b/app-forensics/aide/files/aide-0.13.1-gentoo.patch new file mode 100644 index 000000000000..9c1c07b5ce5f --- /dev/null +++ b/app-forensics/aide/files/aide-0.13.1-gentoo.patch @@ -0,0 +1,36 @@ +diff -Naur aide-0.13.1.orig/Makefile.am aide-0.13.1/Makefile.am +--- aide-0.13.1.orig/Makefile.am 2006-10-11 03:39:01.000000000 +0900 ++++ aide-0.13.1/Makefile.am 2007-09-27 01:35:39.000000000 +0900 +@@ -33,7 +33,7 @@ + src/aide -c doc/aide.conf -V20 + + update-db: all +- src/aide -B "database_out=file://$(top_srcdir)/doc/aide.db" -c doc/aide.conf -i ++ src/aide -B "database_out=file://$(abs_top_srcdir)/doc/aide.db" -c doc/aide.conf -i + + dist-hook: configure + mkdir $(distdir)/include +diff -Naur aide-0.13.1.orig/doc/aide.conf.in aide-0.13.1/doc/aide.conf.in +--- aide-0.13.1.orig/doc/aide.conf.in 2006-11-25 04:53:56.000000000 +0900 ++++ aide-0.13.1/doc/aide.conf.in 2007-09-27 01:35:39.000000000 +0900 +@@ -19,7 +19,7 @@ + # corresponding line. + # + +-@@define TOPDIR @top_srcdir@ ++@@define TOPDIR @abs_top_srcdir@ + + @@ifndef TOPDIR + @@define TOPDIR / +diff -Naur aide-0.13.1.orig/src/Makefile.am aide-0.13.1/src/Makefile.am +--- aide-0.13.1.orig/src/Makefile.am 2006-10-28 06:10:38.000000000 +0900 ++++ aide-0.13.1/src/Makefile.am 2007-09-27 01:35:39.000000000 +0900 +@@ -20,6 +20,8 @@ + # This is no longer needed + # SUBDIRS = crypt + ++DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@ ++ + bin_PROGRAMS = aide + + aide_SOURCES = \ diff --git a/app-forensics/aide/files/digest-aide-0.13.1 b/app-forensics/aide/files/digest-aide-0.13.1 new file mode 100644 index 000000000000..4c341c826432 --- /dev/null +++ b/app-forensics/aide/files/digest-aide-0.13.1 @@ -0,0 +1,3 @@ +MD5 27978cc6bca4f0fbf3f6f5a1b330661c aide-0.13.1.tar.gz 285400 +RMD160 802ac5bd817032bf3a696db7f547bef322b2487a aide-0.13.1.tar.gz 285400 +SHA256 b55065413bad3c24af51a551e6ab7cd4a9ecd9f449929261a45fc2f53e040021 aide-0.13.1.tar.gz 285400 diff --git a/app-forensics/aide/metadata.xml b/app-forensics/aide/metadata.xml index 25f363e289d8..847fc3955a66 100644 --- a/app-forensics/aide/metadata.xml +++ b/app-forensics/aide/metadata.xml @@ -3,6 +3,6 @@ <pkgmetadata> <herd>forensics</herd> <maintainer> - <email>forensics@gentoo.org</email> + <email>matsuu@gentoo.org</email> </maintainer> </pkgmetadata> |