diff options
author | Matsuu Takuto <matsuu@gentoo.org> | 2008-04-13 16:17:59 +0000 |
---|---|---|
committer | Matsuu Takuto <matsuu@gentoo.org> | 2008-04-13 16:17:59 +0000 |
commit | 89213fae178ff3afec1f68466480768e413da4a6 (patch) | |
tree | 951201b6f06814edb43b995a51e5b72db9f76cab /app-forensics | |
parent | fix 217278 (diff) | |
download | historical-89213fae178ff3afec1f68466480768e413da4a6.tar.gz historical-89213fae178ff3afec1f68466480768e413da4a6.tar.bz2 historical-89213fae178ff3afec1f68466480768e413da4a6.zip |
removed mailx dependency, bug #215637.
Package-Manager: portage-2.1.4.4
Diffstat (limited to 'app-forensics')
-rw-r--r-- | app-forensics/aide/ChangeLog | 12 | ||||
-rw-r--r-- | app-forensics/aide/Manifest | 8 | ||||
-rw-r--r-- | app-forensics/aide/aide-0.13.1-r1.ebuild | 4 | ||||
-rw-r--r-- | app-forensics/aide/aide-0.13.1-r2.ebuild | 140 | ||||
-rw-r--r-- | app-forensics/aide/files/aide-0.13.1-configure.patch | 74 | ||||
-rwxr-xr-x | app-forensics/aide/files/aide.cron | 37 |
6 files changed, 258 insertions, 17 deletions
diff --git a/app-forensics/aide/ChangeLog b/app-forensics/aide/ChangeLog index d9af97fb8d70..c48f605b6172 100644 --- a/app-forensics/aide/ChangeLog +++ b/app-forensics/aide/ChangeLog @@ -1,6 +1,14 @@ # 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.34 2007/12/23 06:37:49 matsuu Exp $ +# Copyright 2002-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/app-forensics/aide/ChangeLog,v 1.35 2008/04/13 16:17:59 matsuu Exp $ + +*aide-0.13.1-r2 (13 Apr 2008) + + 13 Apr 2008; MATSUU Takuto <matsuu@gentoo.org> + +files/aide-0.13.1-configure.patch, files/aide.cron, + +aide-0.13.1-r2.ebuild: + Removed mailx dependency, bug #215637. + Clean up. 23 Dec 2007; MATSUU Takuto <matsuu@gentoo.org> +aide-0.13.1-r1.ebuild: Removed /etc/cron.daily/aide.cron, bug #195690. diff --git a/app-forensics/aide/Manifest b/app-forensics/aide/Manifest index 92171b6d7bf6..9bb39d013908 100644 --- a/app-forensics/aide/Manifest +++ b/app-forensics/aide/Manifest @@ -1,9 +1,11 @@ +AUX aide-0.13.1-configure.patch 2201 RMD160 46f6cf31c0446ce238733d0434c4e3b1126b87fc SHA1 68bb2ced2ebd17ab1f5c5a940e0804f71cd903af SHA256 aa1b35d3d692d6844b3fc1b39e9ae3ed1779d7699f111bd6852a01dde228457d AUX aide-0.13.1-gentoo.patch 1218 RMD160 a696dfa3819a9be30e34de1d87dcd218283bfd44 SHA1 44085e22669cc2a616979d559afccd3deff37724 SHA256 c78aed624a51f683b83f2cc45239748861e14fe9e3a94277b0e1040b9a87eb00 AUX aide.conf 2713 RMD160 4f1de8580deb49af8bf93fb2df19f411f2990841 SHA1 0970af5c16aee29aed81f394575be27a66cfcdd4 SHA256 093c6397a4e26ab24127684eb8f9bb223ee5f2c2f9720e54c8ad8b425d52ba49 -AUX aide.cron 5775 RMD160 910672eaaf6a4e91d84c0e4bab749a044eb78434 SHA1 635b5ba4571ca6c4993cdc7800a3065772cf689f SHA256 38288dd97136ed855ee609d5912b0d801a0fe0f405afb3fcb0fb27411bbf0920 +AUX aide.cron 5997 RMD160 07a10b1bae5373eb186d72ec9b0e9c0987dd1cee SHA1 09f8f66eaec409bc7e2cd77bb74da48fc6136d66 SHA256 f4874c85d808c9f1726421c5f1146c4aa6a6bf831f61962c8265d5e7272f4558 AUX aideinit 2948 RMD160 c5a3f7dd8de191b26f32830ff003d4488452e01e SHA1 cd3f73f3324d7b1655a68c18ef2a0b7543a5d28f SHA256 a7d82272bb381f08d7efcb4fdb9a1eace8c113b3fa2052cc23a2d2871381bba2 DIST aide-0.13.1.tar.gz 285400 RMD160 802ac5bd817032bf3a696db7f547bef322b2487a SHA1 0112ee0a974020b99f09d1f2a9fb05433a7b9681 SHA256 b55065413bad3c24af51a551e6ab7cd4a9ecd9f449929261a45fc2f53e040021 -EBUILD aide-0.13.1-r1.ebuild 3871 RMD160 9257148c8f086dc464aaad04b47195e652433967 SHA1 53c6dd2eebd9bd0f809735aab5fa2f8e1d3fd17a SHA256 4aa6cec175979e6406404be4e0a863ea7365283b7fc598815e04b6447f59e710 +EBUILD aide-0.13.1-r1.ebuild 3871 RMD160 1a2f40e83843b4fce773c1faa444bfc778a3bf99 SHA1 1c0dfe07ee2ade54b11c03f70bf89b8197cf5f47 SHA256 b88b9fdb4ef8490a68a0ee3179d7938a3740934311423f517a22ba9754599df5 +EBUILD aide-0.13.1-r2.ebuild 3711 RMD160 708d9a45442feb0b3f8fbf54e264044698795d64 SHA1 484953b0857fb34e80fa63fb0063ae91b7d7e0fd SHA256 f72ef3869030c97c62b32f804caf685cba9ab1809fff28e8ea8dfd6b8cf61c0f EBUILD aide-0.13.1.ebuild 3896 RMD160 e3418084039af555caead6680317d151720cf40b SHA1 f0e7f49e5701a0d15cd1cc260db7ef3283b69c4a SHA256 74c3752afd53ab2a668cc3d8e966990545bce272ed07189e07d03777ccc5dfdf -MISC ChangeLog 7329 RMD160 bebb7fb288f1848d1b2ab0a5aac3a33ddb7e1e09 SHA1 717b30199f25ccdebdfc7b73e396a98706d2736f SHA256 ae88338fafe93067ba10b7a0a3449fef4ffc4442a9d90e09e54d676c23194d06 +MISC ChangeLog 7544 RMD160 a681ea6ba89c87cc81cd69faf1359f2ed28cfed1 SHA1 6c29410c2d08be74eeb3fc6c452effb63a0eca61 SHA256 e4c17ebde7f4a211b8ac80c001979d6db2b5fce1f31aa5ceafec435cf21798cf MISC metadata.xml 227 RMD160 8fd92f1523d63aec4ec954abee49accf1064c6e6 SHA1 d1d36ec61b481027477edfb7a93cb1c42fb83ff6 SHA256 bb6f7d60ac5d9f18aaea588265033a77bfdeb50676739866d80241cfb869c77c diff --git a/app-forensics/aide/aide-0.13.1-r1.ebuild b/app-forensics/aide/aide-0.13.1-r1.ebuild index bae287f740be..ed6a9268b691 100644 --- a/app-forensics/aide/aide-0.13.1-r1.ebuild +++ b/app-forensics/aide/aide-0.13.1-r1.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2007 Gentoo Foundation +# Copyright 1999-2008 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-r1.ebuild,v 1.1 2007/12/23 06:37:49 matsuu Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-forensics/aide/aide-0.13.1-r1.ebuild,v 1.2 2008/04/13 16:17:59 matsuu Exp $ WANT_AUTOCONF='latest' WANT_AUTOMAKE='latest' inherit eutils autotools diff --git a/app-forensics/aide/aide-0.13.1-r2.ebuild b/app-forensics/aide/aide-0.13.1-r2.ebuild new file mode 100644 index 000000000000..afde310507a4 --- /dev/null +++ b/app-forensics/aide/aide-0.13.1-r2.ebuild @@ -0,0 +1,140 @@ +# Copyright 1999-2008 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-r2.ebuild,v 1.1 2008/04/13 16:17:59 matsuu Exp $ + +WANT_AUTOCONF='latest' +WANT_AUTOMAKE='latest' + +inherit eutils autotools multilib + +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" + +DEPEND="acl? ( sys-apps/acl ) + curl? ( net-misc/curl ) + mhash? ( >=app-crypt/mhash-0.9.2 ) + !mhash? ( dev-libs/libgcrypt ) + nls? ( virtual/libintl ) + postgres? ( dev-db/libpq ) + 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" + + 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 + --with-extra-lib=/usr/$(get_libdir)" +# $(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 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-configure.patch b/app-forensics/aide/files/aide-0.13.1-configure.patch new file mode 100644 index 000000000000..75eb5559ebba --- /dev/null +++ b/app-forensics/aide/files/aide-0.13.1-configure.patch @@ -0,0 +1,74 @@ +--- configure.in.old 2008-01-26 15:07:28.000000000 +0100 ++++ configure.in 2008-01-26 15:14:05.000000000 +0100 +@@ -160,7 +160,9 @@ + fi + + # Check whether static linking has explicitly been disabled +-AC_ARG_ENABLE(static,[ --disable-static Disable static linking (lowers the security of aide)], [aide_static_choice=$enableval], [aide_static_choice=yes]) ++AC_ARG_ENABLE(static, ++ AC_HELP_STRING([--disable-static],[Disable static linking (lowers the security of aide)]), ++ [aide_static_choice=$enableval], [aide_static_choice=yes]) + + if test "$aide_static_choice" != "yes"; then + LD_STATIC_FLAG="" +@@ -190,8 +192,8 @@ + AC_CHECK_FUNCS(stricmp strnstr strnlen) + + AC_ARG_WITH([mmap], +- [AC_HELP_STRING([--with-mmap], +- [use mmap @<:@default=check@:>@])], ++ AC_HELP_STRING([--with-mmap], ++ [use mmap @<:@default=check@:>@]), + [], + [with_mmap=check] + ) +@@ -283,8 +285,8 @@ + AC_CHECK_HEADERS(syslog.h inttypes.h fcntl.h) + + AC_ARG_WITH([locale], +- [AC_HELP_STRING([--with-locale], +- [use locale stuff])], ++ AC_HELP_STRING([--with-locale], ++ [use locale stuff]), + [], + [with_locale=no] + ) +@@ -369,10 +371,10 @@ + [AC_HELP_STRING([--with-posix-acl], + [use POSIX ACLs (no checking)])], + [], +- [with_posix_acl_support=no] ++ [with_posix_acl=no] + ) + +-AS_IF([test "x$with_posix_acl_support" != xno], ++AS_IF([test "x$with_posix_acl" != xno], + [AC_DEFINE(WITH_POSIX_ACL,1,[use POSIX ACLs]) + AC_DEFINE(WITH_ACL,1,[use ACL]) + ACLLIB="-lacl" +@@ -388,10 +390,10 @@ + [AC_HELP_STRING([--with-selinux], + [use SELinux (no checking)])], + [], +- [with_selinux_support=no] ++ [with_selinux=no] + ) + +-AS_IF([test "x$with_selinux_support" != xno], ++AS_IF([test "x$with_selinux" != xno], + [AC_DEFINE(WITH_SELINUX,1,[use SELinux]) + if test -n "$PKG_CONFIG" && $PKG_CONFIG --exists libselinux; then + SELINUXLIB=$(${PKG_CONFIG} --libs libselinux --static) +@@ -410,10 +412,10 @@ + [AC_HELP_STRING([--with-xattr], + [use xattr (no checking)])], + [], +- [with_xattr_support=no] ++ [with_xattr=no] + ) + +-AS_IF([test "x$with_xattr_support" != xno], ++AS_IF([test "x$with_xattr" != xno], + [AC_DEFINE(WITH_XATTR,1,[use xattr]) + ATTRLIB=-lattr + compoptionstring="${compoptionstring}WITH_XATTR\\n" diff --git a/app-forensics/aide/files/aide.cron b/app-forensics/aide/files/aide.cron index 34a24dd25a17..c28b78f8e9db 100755 --- a/app-forensics/aide/files/aide.cron +++ b/app-forensics/aide/files/aide.cron @@ -29,6 +29,7 @@ LOGDIR="/var/log/aide" LOGFILE="aide.log" CONFFILE="/etc/aide/aide.conf" ERRORLOG="aide_error.log" +MAILLOG="aide_mail.log" ERRORTMP=`tempfile --directory "/tmp" --prefix "$ERRORLOG"` [ -f /usr/bin/aide ] || exit 0 @@ -44,10 +45,13 @@ DATABASE="${DATABASE:-/var/lib/aide/aide.db}" AIDEARGS="-V4" if [ ! -f $DATABASE ]; then - ( - echo "Fatal error: The AIDE database does not exist!" - echo "This may mean you haven't created it, or it may mean that someone has removed it." - ) | /bin/mail -s "Daily AIDE report for $FQDN" $MAILTO + /usr/sbin/sendmail $MAILTO <<EOF +Subject: Daily AIDE report for $FQDN +From: root@${FQDN} +To: ${MAILTO} +Fatal error: The AIDE database does not exist! +This may mean you haven't created it, or it may mean that someone has removed it. +EOF exit 0 fi @@ -63,7 +67,9 @@ if [ -n "$QUIETREPORTS" ] && [ $QUIETREPORTS -a \! -s $LOGDIR/$LOGFILE -a \! -s exit 0 fi -(cat << EOF; +MAILTMP=`tempfile --directory "/tmp" --prefix "$MAILLOG"` + +(cat << EOF This is an automated report generated by the Advanced Intrusion Detection Environment on $FQDN ${DATE}. @@ -72,7 +78,7 @@ EOF # include error log in daily report e-mail if [ "$RETVAL" != "0" ]; then - cat > "$LOGDIR/$ERRORLOG" << EOF; + cat > "$LOGDIR/$ERRORLOG" << EOF ***************************************************************************** * aide returned a non-zero exit value * @@ -89,7 +95,7 @@ rm -f "$ERRORTMP" if [ -s "$LOGDIR/$ERRORLOG" ]; then errorlines=`wc -l "$LOGDIR/$ERRORLOG" | awk '{ print $1 }'` if [ ${errorlines:=0} -gt $LINES ]; then - cat << EOF; + cat << EOF **************************************************************************** * aide has returned many errors. * @@ -129,7 +135,7 @@ if [ -n "$NOISE" ]; then if [ -s "$NOISETMP" ]; then loglines=`< $NOISETMP wc -l | awk '{ print $1 }'` if [ ${loglines:=0} -gt $LINES ]; then - cat << EOF; + cat << EOF **************************************************************************** * aide has returned long output which has been truncated in this mail * @@ -155,7 +161,7 @@ fi if [ -s "$LOGDIR/$LOGFILE" ]; then loglines=`wc -l "$LOGDIR/$LOGFILE" | awk '{ print $1 }'` if [ ${loglines:=0} -gt $LINES ]; then - cat << EOF; + cat << EOF **************************************************************************** * aide has returned long output which has been truncated in this mail * @@ -172,4 +178,15 @@ EOF else echo "AIDE detected no changes." fi -) | /bin/mail -s "Daily AIDE report for $FQDN" $MAILTO +) > ${MAILTMP} + +( +cat <<EOF +Subject: Daily AIDE report for $FQDN +From: root@${FQDN} +To: ${MAILTO} +EOF +cat ${MAILTMP} +) | /usr/sbin/sendmail $MAILTO + +rm -f "$MAILTMP" |