diff options
-rw-r--r-- | app-forensics/aide/ChangeLog | 10 | ||||
-rw-r--r-- | app-forensics/aide/Manifest | 24 | ||||
-rw-r--r-- | app-forensics/aide/aide-0.13.1-r5.ebuild | 149 | ||||
-rw-r--r-- | app-forensics/aide/files/aide-0.13.1-zlib.patch | 12 |
4 files changed, 192 insertions, 3 deletions
diff --git a/app-forensics/aide/ChangeLog b/app-forensics/aide/ChangeLog index 569663574b79..c2108a128cd1 100644 --- a/app-forensics/aide/ChangeLog +++ b/app-forensics/aide/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-forensics/aide -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-forensics/aide/ChangeLog,v 1.45 2009/12/16 14:13:14 matsuu Exp $ +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-forensics/aide/ChangeLog,v 1.46 2010/05/26 11:36:28 matsuu Exp $ + +*aide-0.13.1-r5 (26 May 2010) + + 26 May 2010; MATSUU Takuto <matsuu@gentoo.org> +aide-0.13.1-r5.ebuild, + +files/aide-0.13.1-zlib.patch: + Fixed zlib issue, bug #316665. *aide-0.13.1-r4 (16 Dec 2009) diff --git a/app-forensics/aide/Manifest b/app-forensics/aide/Manifest index 03022f243837..9719149d7229 100644 --- a/app-forensics/aide/Manifest +++ b/app-forensics/aide/Manifest @@ -1,14 +1,36 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + AUX aide-0.13.1-as-needed.patch 1332 RMD160 94864a43a04b29396979e1c2d53e9302f17ec83c SHA1 156491dfaed31fa06fc71c4e2d30e913c984e3c3 SHA256 778892968020b0a420372fedde4949cc58fff8fa6851473a507944d4d6b9f3c5 AUX aide-0.13.1-configure.patch 2201 RMD160 46f6cf31c0446ce238733d0434c4e3b1126b87fc SHA1 68bb2ced2ebd17ab1f5c5a940e0804f71cd903af SHA256 aa1b35d3d692d6844b3fc1b39e9ae3ed1779d7699f111bd6852a01dde228457d AUX aide-0.13.1-equ-matching.patch 2451 RMD160 515a0762483224fdfdca4197ee318f1048a7573a SHA1 e4606aaf4935955d0c4f144b415485ad5871248e SHA256 1eddf47fe7f1fb5a7868b22e2af00c2ab7b89b807c4e696621a6e74443d1e323 AUX aide-0.13.1-gentoo.patch 1218 RMD160 a696dfa3819a9be30e34de1d87dcd218283bfd44 SHA1 44085e22669cc2a616979d559afccd3deff37724 SHA256 c78aed624a51f683b83f2cc45239748861e14fe9e3a94277b0e1040b9a87eb00 AUX aide-0.13.1-libgrypt_init.patch 1957 RMD160 9d515a5e21f758dc11ac417f276b180c745e7235 SHA1 c89d092744ba2a7bf47bfa2c5b75a1702b46ba2c SHA256 66c01f0a43cde218151e7e34c9505ce7438235a779c0cd8235111d1b85392750 +AUX aide-0.13.1-zlib.patch 438 RMD160 99ad04b9396fb3bf5e50b8e52a0b03e10e692de4 SHA1 841ead3b055824177568b015b435d63e1ab0c194 SHA256 1cfa2518622ef1e1f6ad2196e2e1699abe79bfbd7a301c1151267e61e5572762 AUX aide.conf 2713 RMD160 4f1de8580deb49af8bf93fb2df19f411f2990841 SHA1 0970af5c16aee29aed81f394575be27a66cfcdd4 SHA256 093c6397a4e26ab24127684eb8f9bb223ee5f2c2f9720e54c8ad8b425d52ba49 AUX aide.cron 5997 RMD160 07a10b1bae5373eb186d72ec9b0e9c0987dd1cee SHA1 09f8f66eaec409bc7e2cd77bb74da48fc6136d66 SHA256 f4874c85d808c9f1726421c5f1146c4aa6a6bf831f61962c8265d5e7272f4558 AUX aideinit 2949 RMD160 a2cb2f5bd69e560e2d76b61b2173608435b50857 SHA1 8fcbb4d6c136cf1b2cbac3de91b3963974a6b826 SHA256 1b4a01b8f50eb0b9217df55686ccd103ea92fca3892fe3a6a0364f83cae3548f DIST aide-0.13.1.tar.gz 285400 RMD160 802ac5bd817032bf3a696db7f547bef322b2487a SHA1 0112ee0a974020b99f09d1f2a9fb05433a7b9681 SHA256 b55065413bad3c24af51a551e6ab7cd4a9ecd9f449929261a45fc2f53e040021 EBUILD aide-0.13.1-r3.ebuild 3782 RMD160 f93882c017dd19546c0d16a825a7169ac50b5993 SHA1 9a26d39322a4798237e18f986448d8b3173ade7a SHA256 5e862f78654fa96da6b4bddef670f2264ca98422a965898c64781f8211f3888a EBUILD aide-0.13.1-r4.ebuild 3864 RMD160 9004d8e99e7eb78465d58bbb3d2785b19354a4d1 SHA1 6442d364a2b37ca274f1356b73799f191307d9fa SHA256 78f53ca0c5c3534456e75a42b9edf1451101ca5cdfc5b6b0b3c257e76e1ba356 +EBUILD aide-0.13.1-r5.ebuild 3934 RMD160 94756564877136925b208b4d43bb23f307b50524 SHA1 6d52e492ad2f92566b786b1336a1509a09eab83f SHA256 140d6d6bc2ad61a5a278ebc4de693ed370f9b7715a2d621018dadc0680b82da7 EBUILD aide-0.13.1.ebuild 3909 RMD160 1055b7d279b3e9306dda868c5edee309ee780545 SHA1 8a1cd7dfd7bdbf19147a6e5ada9a7671ced1094d SHA256 3fcfcbcc5c6499dc09cb37bcd60903827df37d5c56ce48221c18a2d2c17f3320 -MISC ChangeLog 8947 RMD160 6de055201d11986682d8699d597d1ef143512f9b SHA1 c0e2551f7f090c907ed3f6ee2ffb210970020609 SHA256 5e3b489c4aa99e67c1bd7fd1c7b2aac5c6da0cc0a9b12668284a521035f2a9da +MISC ChangeLog 9118 RMD160 ffa380b5686270bfa263397236dd2cdef408f781 SHA1 0918afbdaf8c18bd2024e29d7bb23f428d75abe2 SHA256 66664e468ea80be7d7efb3d82b25113da8d66e3e46997612456d1e074e1d3d50 MISC metadata.xml 227 RMD160 8fd92f1523d63aec4ec954abee49accf1064c6e6 SHA1 d1d36ec61b481027477edfb7a93cb1c42fb83ff6 SHA256 bb6f7d60ac5d9f18aaea588265033a77bfdeb50676739866d80241cfb869c77c +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.15 (GNU/Linux) + +iQIcBAEBAgAGBQJL/QfFAAoJECaGw+YFKA1pCQEP/1m3/gyi/Ry+1TyLQ6eXm5DV +jmlLmOQiuNWZ2ZN/71hESoWU0RYcKfHpSX5ZmgN07O8R3VpNFE1Fy/ORzhOWz50s +D4I4RM01DBvpZOrx+0RXAu22wZS+iQkm0xyYktLXl+O99EM5+59vkgeO6BEhRtzN +ypwtakdgw3BpNcxaU9Yi+BUMEDEa5DknFTRxqn/q9zEpv29KyM5NJfQNmLMNlk/H +ugUKnuUOIhnN8i99aaukyrdGpqi+DuSr5rkMBNU1JpKPz5lNCvUwN+UrnH89oNFF +iBb1324Xuk/wSpqsX/T+6jub2kmo9yKocZHqvO/+XYOcl2LRbBJN6fgnYP7tNBMV +CCbIuwQK3Jawxk+6GajRLukXkYUNKDNIagNW7cvHT55JL7J3mgu3V94LePmqmyWC +c+2RogaOM6Gq9C6FzwyZyeRUgMtiTGg8uqapy6ncGnC9I0bDsERxa4l7sbeCeQfD +aP/Eq+8xV5ARh+zS+sfFIBlCAAl5vkWvx9oDEf5+wZ1Vn3Ct8tLXCmmfXGAmWtSi +/51zaQDYMQF0HHqQ98lm/vlEajzEk+QWBzkOmmLQSzF+9LcoUcg1vNVbR8Py4bM3 +KAMl96m2msvmbgZfiqZjh8R1UPB7wdEyKo0I2Wn0Twl0ckzD/OWkXNRSKcsQaDq7 +4QSCDnhYH+qASRyCaBRC +=pPQV +-----END PGP SIGNATURE----- diff --git a/app-forensics/aide/aide-0.13.1-r5.ebuild b/app-forensics/aide/aide-0.13.1-r5.ebuild new file mode 100644 index 000000000000..42d2f941801a --- /dev/null +++ b/app-forensics/aide/aide-0.13.1-r5.ebuild @@ -0,0 +1,149 @@ +# Copyright 1999-2010 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-r5.ebuild,v 1.1 2010/05/26 11:36:28 matsuu Exp $ + +inherit autotools eutils + +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 curl mhash nls postgres selinux static xattr zlib" +#IUSE="acl audit curl mhash nls postgres selinux static xattr zlib" + +# libsandbox: Can't dlopen libc: (null) +RESTRICT="test" + +DEPEND="acl? ( sys-apps/acl ) + curl? ( net-misc/curl ) + mhash? ( >=app-crypt/mhash-0.9.2 ) + !mhash? ( dev-libs/libgcrypt ) + nls? ( virtual/libintl ) + postgres? ( virtual/postgresql-base ) + selinux? ( sys-libs/libselinux ) + xattr? ( sys-apps/attr ) + zlib? ( sys-libs/zlib )" +# audit? ( sys-process/audit ) + +RDEPEND="!static? ( ${DEPEND} )" + +DEPEND="${DEPEND} + nls? ( sys-devel/gettext ) + sys-devel/bison + sys-devel/flex" + +pkg_config() { + if use mhash && use postgres ; then + eerror "We cannot emerge aide with mhash and postgres USE flags at the same time." + eerror "Please remove mhash OR postgres USE flags." + die "Please remove either mhash or postgres USE flag." + fi +} + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}/${P}-gentoo.patch" + + # fix configure switch + epatch "${FILESDIR}/${P}-configure.patch" + + # fix equal match issue, bug #204217 + epatch "${FILESDIR}/${P}-equ-matching.patch" + + # fix libgcrypt issue, bug #266175 + epatch "${FILESDIR}/${P}-libgrypt_init.patch" + + # fix as-need issue, bug #271326 + epatch "${FILESDIR}/${P}-as-needed.patch" + + # fix zlib issue, bug #316665 + epatch "${FILESDIR}/${P}-zlib.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=" + $(use_with acl posix-acl) + $(use_with !mhash gcrypt) + $(use_with mhash mhash) + $(use_with nls locale) + $(use_with postgres psql) + $(use_with selinux) + $(use_enable static) + $(use_with xattr) + $(use_with zlib) + --sysconfdir=/etc/aide" +# $(use_with audit) + + # curl doesn't work with static + use curl && ! use static && myconf="${myconf} --with-curl" + + econf ${myconf} || die "econf failed" + # parallel make borked + emake -j1 || die "emake failed" +} + +src_install() { + emake DESTDIR="${D}" install || die "emake install failed" + + keepdir /var/lib/aide + fowners root:0 /var/lib/aide + fperms 0755 /var/lib/aide + + keepdir /var/log/aide + + insinto /etc/aide + doins "${FILESDIR}"/aide.conf + + dosbin "${FILESDIR}"/aideinit + + dodoc ChangeLog AUTHORS NEWS README "${FILESDIR}"/aide.cron + dohtml doc/manual.html +} + +pkg_postinst() { + 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 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-zlib.patch b/app-forensics/aide/files/aide-0.13.1-zlib.patch new file mode 100644 index 000000000000..0ca5af25275d --- /dev/null +++ b/app-forensics/aide/files/aide-0.13.1-zlib.patch @@ -0,0 +1,12 @@ +diff -Naur aide-0.13.1.orig//src/be.c aide-0.13.1//src/be.c +--- aide-0.13.1.orig//src/be.c 2006-12-15 01:09:24.000000000 +0900 ++++ aide-0.13.1//src/be.c 2010-05-26 20:08:10.000000000 +0900 +@@ -161,7 +161,7 @@ + #endif + #ifdef WITH_ZLIB + if(iszipped && !inout){ +- fh=gzdopen(fd,"wb9+"); ++ fh=gzdopen(fd,"wb9"); + if(fh==NULL){ + error(0,_("Couldn't open file %s for %s"),u->value, + inout?"reading\n":"writing\n"); |