diff options
author | Matsuu Takuto <matsuu@gentoo.org> | 2007-11-01 16:23:27 +0000 |
---|---|---|
committer | Matsuu Takuto <matsuu@gentoo.org> | 2007-11-01 16:23:27 +0000 |
commit | a1b043eadaad3f0f94b4250c2672aedb0a0df24d (patch) | |
tree | 9d83140419c961651e5bb29b81a2249a9e4ff905 /app-forensics | |
parent | Sparc stable --- Bug #194114 --- I've had it installed for a while. (diff) | |
download | gentoo-2-a1b043eadaad3f0f94b4250c2672aedb0a0df24d.tar.gz gentoo-2-a1b043eadaad3f0f94b4250c2672aedb0a0df24d.tar.bz2 gentoo-2-a1b043eadaad3f0f94b4250c2672aedb0a0df24d.zip |
Added pkg_config, bug #197538.
(Portage version: 2.1.3.16)
Diffstat (limited to 'app-forensics')
-rw-r--r-- | app-forensics/aide/ChangeLog | 9 | ||||
-rw-r--r-- | app-forensics/aide/aide-0.10_p20040917-r1.ebuild | 114 | ||||
-rw-r--r-- | app-forensics/aide/aide-0.13.1.ebuild | 12 | ||||
-rw-r--r-- | app-forensics/aide/files/aide-0.10-gentoo.diff | 81 | ||||
-rw-r--r-- | app-forensics/aide/files/aide-0.10_p20040917-r1-fix-psql.diff | 137 | ||||
-rw-r--r-- | app-forensics/aide/files/digest-aide-0.10_p20040917-r1 | 3 |
6 files changed, 18 insertions, 338 deletions
diff --git a/app-forensics/aide/ChangeLog b/app-forensics/aide/ChangeLog index dd079520d9d5..b5e790177153 100644 --- a/app-forensics/aide/ChangeLog +++ b/app-forensics/aide/ChangeLog @@ -1,6 +1,13 @@ # 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.32 2007/10/09 02:14:26 beandog Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-forensics/aide/ChangeLog,v 1.33 2007/11/01 16:23:26 matsuu Exp $ + + 01 Nov 2007; <matsuu@gentoo.org> -files/aide-0.10-gentoo.diff, + -files/aide-0.10_p20040917-r1-fix-psql.diff, + -aide-0.10_p20040917-r1.ebuild, aide-0.13.1.ebuild: + Added pkg_config, bug #197538. + Removed old versions. + Fixed dependency. 09 Oct 2007; Steve Dibb <beandog@gentoo.org> aide-0.13.1.ebuild: amd64 stable, security bug 191597 diff --git a/app-forensics/aide/aide-0.10_p20040917-r1.ebuild b/app-forensics/aide/aide-0.10_p20040917-r1.ebuild deleted file mode 100644 index d8b2869d0a88..000000000000 --- a/app-forensics/aide/aide-0.10_p20040917-r1.ebuild +++ /dev/null @@ -1,114 +0,0 @@ -# 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.10_p20040917-r1.ebuild,v 1.8 2007/09/26 19:06:52 armin76 Exp $ -WANT_AUTOCONF='2.5' -WANT_AUTOMAKE='1.7' -inherit eutils autotools - -DESCRIPTION="AIDE (Advanced Intrusion Detection Environment) is a replacement for Tripwire" -HOMEPAGE="http://aide.sourceforge.net/" -SRC_URI="mirror://gentoo/${P}.tar.gz" - -SLOT="0" -LICENSE="GPL-2" -KEYWORDS="alpha amd64 ppc sparc x86" -IUSE="nls postgres zlib crypt" - -DEPEND="app-arch/gzip - sys-devel/bison - sys-devel/flex - app-crypt/mhash - crypt? ( dev-libs/libgcrypt ) - postgres? ( dev-db/postgresql ) - zlib? ( sys-libs/zlib )" -RDEPEND="nls? ( sys-devel/gettext )" - -MY_PF=${PF%%_*} -S=${WORKDIR}/${PN} - -src_unpack() { - unpack ${A} - cd ${S} - - use postgres && epatch ${FILESDIR}/${PF}-fix-psql.diff - epatch ${FILESDIR}/${MY_PF}-gentoo.diff - - eautoreconf -} - -src_compile() { - # passing --without-psql or --with-psql causes postgres to be enabled ... - # it's a broken configure.in file ... so lets just work around it - local myconf="" - use postgres && myconf="$myconf --with-psql" - use crypt && myconf="$myconf --with-gcrypt" - - econf \ - `use_with zlib` \ - `use_with nls locale` \ - --with-mhash \ - --sysconfdir=/etc/aide \ - --with-extra-lib=/usr/lib \ - ${myconf} \ - || die - emake || die -} - -src_test() { - # aide abort()'s inside the sandbox for some reason - if ! has sandbox ${FEATURES}; - then - src/aide --init -c doc/aide.conf -V20 \ - || die "failed to initialise database" - mv aide.db.new doc/aide.db - make check || die "failed self test" - fi -} - -src_install() { - make DESTDIR="${D}" install || die - use nls || rm -rf ${D}/usr/lib/locale - - keepdir /var/lib/aide - keepdir /var/log/aide - - insinto /etc/aide - doins ${FILESDIR}/aide.conf - - exeinto /usr/sbin - newexe ${FILESDIR}/aideinit aideinit - - exeinto /etc/cron.daily - newexe ${FILESDIR}/aide.cron 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/aide-0.13.1.ebuild b/app-forensics/aide/aide-0.13.1.ebuild index 55c0415e88ff..24ffeb64c4d3 100644 --- a/app-forensics/aide/aide-0.13.1.ebuild +++ b/app-forensics/aide/aide-0.13.1.ebuild @@ -1,6 +1,6 @@ # 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.7 2007/10/09 02:14:26 beandog Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-forensics/aide/aide-0.13.1.ebuild,v 1.8 2007/11/01 16:23:26 matsuu Exp $ WANT_AUTOCONF='latest' WANT_AUTOMAKE='latest' inherit eutils autotools @@ -20,7 +20,7 @@ DEPEND="acl? ( sys-apps/acl ) mhash? ( >=app-crypt/mhash-0.9.2 ) !mhash? ( dev-libs/libgcrypt ) nls? ( virtual/libintl ) - postgres? ( dev-db/postgresql ) + postgres? ( dev-db/libpq ) selinux? ( sys-libs/libselinux ) xattr? ( sys-apps/attr ) zlib? ( sys-libs/zlib )" @@ -34,6 +34,14 @@ DEPEND="${DEPEND} 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}" diff --git a/app-forensics/aide/files/aide-0.10-gentoo.diff b/app-forensics/aide/files/aide-0.10-gentoo.diff deleted file mode 100644 index 4664df190c86..000000000000 --- a/app-forensics/aide/files/aide-0.10-gentoo.diff +++ /dev/null @@ -1,81 +0,0 @@ -diff -Naur aide-0.10/src/commandconf.c aide-0.10.fixed/src/commandconf.c ---- aide-0.10/src/commandconf.c 2003-11-04 09:39:48.000000000 -0600 -+++ aide-0.10.fixed/src/commandconf.c 2004-09-11 09:37:44.143790160 -0500 -@@ -29,7 +29,7 @@ - #include "aide.h" - #include "conf_lex.h" - #include "conf_yacc.h" --#include "db.h" -+#include "../include/db.h" - #include "db_config.h" - #include "gen_list.h" - #include "symboltable.h" -@@ -224,7 +224,7 @@ - } - /* FIXME This does not handle the case that @@end_config is on - buffer boundary. */ -- if((tmp=strnstr(buf,"@@end_config",retval))!=NULL){ -+ if((conf->confmd != MHASH_FAILED) && ((tmp=strnstr(buf,"@@end_config",retval))!=NULL)){ - /* We have end of config don't feed the last line to mhash */ - mhash(conf->confmd,(void*)buf,tmp-buf); - } else { -diff -Naur aide-0.10/src/compare_db.c aide-0.10.fixed/src/compare_db.c ---- aide-0.10/src/compare_db.c 2003-11-04 09:39:48.000000000 -0600 -+++ aide-0.10.fixed/src/compare_db.c 2004-09-11 09:31:44.222506512 -0500 -@@ -30,7 +30,7 @@ - #include "gnu_regex.h" - #include "gen_list.h" - #include "list.h" --#include "db.h" -+#include "../include/db.h" - #include "util.h" - #include "commandconf.h" - #include "gen_list.h" -diff -Naur aide-0.10/src/conf_yacc.y aide-0.10.fixed/src/conf_yacc.y ---- aide-0.10/src/conf_yacc.y 2003-08-18 08:03:22.000000000 -0500 -+++ aide-0.10.fixed/src/conf_yacc.y 2004-09-11 09:31:44.223506360 -0500 -@@ -25,7 +25,7 @@ - #include <string.h> - #include "list.h" - #include "gen_list.h" --#include "db.h" -+#include "../include/db.h" - #include "db_config.h" - #include "symboltable.h" - #include "commandconf.h" -diff -Naur aide-0.10/src/db.c aide-0.10.fixed/src/db.c ---- aide-0.10/src/db.c 2003-11-04 09:13:06.000000000 -0600 -+++ aide-0.10.fixed/src/db.c 2004-09-11 09:31:44.224506208 -0500 -@@ -22,7 +22,7 @@ - #include <stdio.h> - #include <stdlib.h> - #include <errno.h> --#include "db.h" -+#include "../include/db.h" - #include "db_file.h" - #include "db_disk.h" - -diff -Naur aide-0.10/src/db_sql.c aide-0.10.fixed/src/db_sql.c ---- aide-0.10/src/db_sql.c 2003-01-16 04:37:34.000000000 -0600 -+++ aide-0.10.fixed/src/db_sql.c 2004-09-11 09:31:44.225506056 -0500 -@@ -31,7 +31,7 @@ - #include <string.h> - #include <gcrypt.h> - #include "base64.h" --#include "db.h" -+#include "../include/db.h" - - #include "db_sql.h" - #include "db_config.h" -diff -Naur aide-0.10/src/gen_list.c aide-0.10.fixed/src/gen_list.c ---- aide-0.10/src/gen_list.c 2003-11-04 09:39:48.000000000 -0600 -+++ aide-0.10.fixed/src/gen_list.c 2004-09-11 09:31:44.226505904 -0500 -@@ -38,7 +38,7 @@ - #include "list.h" - #include "gen_list.h" - #include "seltree.h" --#include "db.h" -+#include "../include/db.h" - #include "db_config.h" - #include "compare_db.h" - #include "commandconf.h" diff --git a/app-forensics/aide/files/aide-0.10_p20040917-r1-fix-psql.diff b/app-forensics/aide/files/aide-0.10_p20040917-r1-fix-psql.diff deleted file mode 100644 index fe6ac712115f..000000000000 --- a/app-forensics/aide/files/aide-0.10_p20040917-r1-fix-psql.diff +++ /dev/null @@ -1,137 +0,0 @@ -diff -urN aide.orig/src/db.c aide/src/db.c ---- aide.orig/src/db.c 2004-09-17 22:37:09.110596472 -0400 -+++ aide/src/db.c 2004-09-18 01:03:54.923909368 -0400 -@@ -175,7 +175,7 @@ - #ifdef WITH_PSQL - case url_sql: { - error(255,"db_sql readline..."); -- s=db_readline_sql(db); -+ s=db_readline_sql(db, conf); - - break; - } -diff -urN aide.orig/src/db_sql.c aide/src/db_sql.c ---- aide.orig/src/db_sql.c 2004-09-17 22:37:09.085600272 -0400 -+++ aide/src/db_sql.c 2004-09-18 01:14:05.191134648 -0400 -@@ -156,7 +156,7 @@ - return ret; - } - --void db_readline_sql_int(int* d,int db,int i) -+void db_readline_sql_int(int* d,int db,int i,db_config* conf) - { - FILE** db_filep=NULL; - -@@ -182,7 +182,7 @@ - - } - --void db_readline_sql_char(char** d,int db,const int i) -+void db_readline_sql_char(char** d,int db,const int i,db_config* conf) - { - - volatile int cr,des; -@@ -221,27 +221,27 @@ - - } - --void db_readline_sql_byte(void** d,int db,int i) { -+void db_readline_sql_byte(void** d,int db,int i,db_config* conf) { - -- db_readline_sql_char(d,db,i); -+ db_readline_sql_char((char **)d,db,i,conf); - - if (*d!=NULL) { -- *d=base64tobyte(*d,strlen(*d)); -+ *d=(void *)base64tobyte(*d,strlen(*d)); - } - - } - --void db_readline_sql_time(void** d,int db,int i) { -+void db_readline_sql_time(void** d,int db,int i,db_config* conf) { - -- db_readline_sql_char(d,db,i); -+ db_readline_sql_char((char **)d,db,i,conf); - - if (*d!=NULL) { -- *d=base64totime_t(*d); -+ *d=(void *)base64totime_t(*d); - } - - } - --db_line* db_readline_sql(int db) { -+db_line* db_readline_sql(int db,db_config* conf) { - - volatile db_line* rline; - int i; -@@ -275,33 +275,35 @@ - } - rline=(db_line*)malloc(1*sizeof(db_line)); - -- db_readline_sql_byte(&(rline->md5),db,(int)db_md5); -- db_readline_sql_byte(&(rline->sha1),db,db_sha1); -- db_readline_sql_byte(&(rline->rmd160),db,db_rmd160); -- db_readline_sql_byte(&(rline->tiger),db,db_tiger); -+ db_readline_sql_byte((void *)&(rline->md5), db,(int)db_md5, conf); -+ db_readline_sql_byte((void *)&(rline->sha1), db, db_sha1, conf); -+ db_readline_sql_byte((void *)&(rline->rmd160),db, db_rmd160, conf); -+ db_readline_sql_byte((void *)&(rline->tiger), db, db_tiger, conf); - #ifdef WITH_MHASH -- db_readline_sql_byte(&(rline->crc32),db,db_crc32); -- db_readline_sql_byte(&(rline->haval),db,db_haval); -- db_readline_sql_byte(&(rline->gost),db,db_gost); -+ db_readline_sql_byte((void *)&(rline->crc32), db, db_crc32, conf); -+ db_readline_sql_byte((void *)&(rline->haval), db, db_haval, conf); -+ db_readline_sql_byte((void *)&(rline->gost), db, db_gost, conf); - #endif -- db_readline_sql_char(&(rline->filename),db,db_filename); -- db_readline_sql_char(&(rline->linkname),db,db_linkname); -+ db_readline_sql_char((char **)&(rline->filename),db,db_filename, conf); -+ db_readline_sql_char((char **)&(rline->linkname),db,db_linkname, conf); - -- db_readline_sql_int(&(rline->perm),db,db_perm); -- db_readline_sql_int(&(rline->uid),db,db_uid); -- db_readline_sql_int(&(rline->gid),db,db_gid); -- db_readline_sql_int(&(rline->inode),db,db_inode); -- db_readline_sql_int(&(rline->nlink),db,db_lnkcount); -- -- db_readline_sql_int(&(rline->size),db,db_osize); -- db_readline_sql_int(&(rline->bcount),db,db_bcount); -- db_readline_sql_int(&(rline->attr),db,db_attr); -- -- db_readline_sql_time(&(rline->atime),db,db_atime); -- db_readline_sql_time(&(rline->ctime),db,db_ctime); -- db_readline_sql_time(&(rline->mtime),db,db_mtime); -+ db_readline_sql_int((int *)&(rline->perm), db, db_perm, conf); -+ db_readline_sql_int((int *)&(rline->uid), db, db_uid, conf); -+ db_readline_sql_int((int *)&(rline->gid), db, db_gid, conf); -+ db_readline_sql_int((int *)&(rline->inode), db, db_inode, conf); -+ db_readline_sql_int((int *)&(rline->nlink), db, db_lnkcount, conf); -+ -+ db_readline_sql_int((int *)&(rline->size), db, (int)db_osize, conf); -+ db_readline_sql_int((int *)&(rline->bcount),db, db_bcount, conf); -+ db_readline_sql_int((int *)&(rline->attr), db, db_attr, conf); -+ -+ db_readline_sql_time((void *)&(rline->atime),db, db_atime, conf); -+ db_readline_sql_time((void *)&(rline->ctime),db, db_ctime, conf); -+ db_readline_sql_time((void *)&(rline->mtime),db, db_mtime, conf); - -+#ifdef WITH_ACL - rline->acl=NULL; -+#endif - - ((psql_data*)(*db_filep))->curread++; - -diff -urN aide.orig/include/db_sql.h aide/include/db_sql.h ---- aide.orig/include/db_sql.h 2004-09-17 22:37:09.296568200 -0400 -+++ aide/include/db_sql.h 2004-09-18 01:02:26.605335832 -0400 -@@ -50,6 +50,6 @@ - }; - - int db_close_sql(void*); --db_line* db_readline_sql(int db); -+db_line* db_readline_sql(int db, db_config* conf); - - #endif diff --git a/app-forensics/aide/files/digest-aide-0.10_p20040917-r1 b/app-forensics/aide/files/digest-aide-0.10_p20040917-r1 deleted file mode 100644 index 11ca8cc0d84d..000000000000 --- a/app-forensics/aide/files/digest-aide-0.10_p20040917-r1 +++ /dev/null @@ -1,3 +0,0 @@ -MD5 bfea36bd2a4254e212dcc19df54667fb aide-0.10_p20040917.tar.gz 201023 -RMD160 4390149398890f1d1fcea56d2d419968c65147a3 aide-0.10_p20040917.tar.gz 201023 -SHA256 684d64e830810f93f4ed63d251df74fa3036cc64d6d0a1e8236a994159c1560d aide-0.10_p20040917.tar.gz 201023 |