summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Longinotti <chtekk@gentoo.org>2006-05-24 13:10:45 +0000
committerLuca Longinotti <chtekk@gentoo.org>2006-05-24 13:10:45 +0000
commit94efd73ee86c596e02610c1dd826319fd7936406 (patch)
tree2dbbde25de816cf95171dda9a2a8687d697419ca /app-forensics
parentUpdate samhain. (diff)
downloadgentoo-2-94efd73ee86c596e02610c1dd826319fd7936406.tar.gz
gentoo-2-94efd73ee86c596e02610c1dd826319fd7936406.tar.bz2
gentoo-2-94efd73ee86c596e02610c1dd826319fd7936406.zip
Update samhain.
(Portage version: 2.1_rc1-r3) (Unsigned Manifest commit)
Diffstat (limited to 'app-forensics')
-rw-r--r--app-forensics/samhain/Manifest26
-rw-r--r--app-forensics/samhain/files/digest-samhain-2.1.1a1
-rw-r--r--app-forensics/samhain/samhain-2.1.1a.ebuild206
3 files changed, 23 insertions, 210 deletions
diff --git a/app-forensics/samhain/Manifest b/app-forensics/samhain/Manifest
index 01f5d5806353..41d76ca6d09f 100644
--- a/app-forensics/samhain/Manifest
+++ b/app-forensics/samhain/Manifest
@@ -1,4 +1,24 @@
-MD5 030344394c0b0f279c3bbb9fc3f8c519 ChangeLog 549
-MD5 12e07a6eab2f91df8fa03f448ed57312 files/digest-samhain-2.1.1a 74
+DIST samhain_signed-2.1.3.tar.gz 1326778 RMD160 26d3b2519d33a814d122e214a1b35a2f82534112 SHA256 351efd78f0f07a9d3eb128c7f1bb8959e32c0a783632890ab850365e9dfd1a5f size 1326778
+DIST samhain_signed-2.2.0.tar.gz 1520179 RMD160 c61e9b1bd71ff3e2a8592badef788a4aba26f22b SHA256 6b02ccae95a46c831569026d43da517440213f6d407cd1bd19a287114167554a size 1520179
+EBUILD samhain-2.1.3.ebuild 7178 RMD160 2910eb1c353c7564affa630b59a8a92d8eda4d0c SHA1 12a7a1391c65370586f35f709acdb2c540af7f20 SHA256 06364264b4eac93e8ea75cda93b42e867318ee2d5a0be4999e9f2ef31280d6ea size 7178
+MD5 d6a5aca8b552bd7f02050d2bc120a7b0 samhain-2.1.3.ebuild 7178
+RMD160 2910eb1c353c7564affa630b59a8a92d8eda4d0c samhain-2.1.3.ebuild 7178
+SHA256 06364264b4eac93e8ea75cda93b42e867318ee2d5a0be4999e9f2ef31280d6ea samhain-2.1.3.ebuild 7178
+EBUILD samhain-2.2.0.ebuild 7178 RMD160 feaabc5543d8098374fb35808fcd963ad12d5565 SHA1 3e396e6a5fbd0ea366f78c99cd43d94894547489 SHA256 496d36d60a2cdb84a7fd203d80557172b78e1e893e440d53e227689e5dd1d91e size 7178
+MD5 79f80a203494da2a5b90573cb9b62e84 samhain-2.2.0.ebuild 7178
+RMD160 feaabc5543d8098374fb35808fcd963ad12d5565 samhain-2.2.0.ebuild 7178
+SHA256 496d36d60a2cdb84a7fd203d80557172b78e1e893e440d53e227689e5dd1d91e samhain-2.2.0.ebuild 7178
+MISC ChangeLog 886 RMD160 9759062ff7f5cf1b5df378ed82153ebe809e843e SHA1 d6bbd6232c4a8b62dde2d1b0d39a6173fcdbf8a4 SHA256 7fcdbe5a8c5cd3e399aa2fc88aaa6dd82f69c6176b20c110b2466773ddc7b846 size 886
+MD5 af8678cba884d39df6b7526138164977 ChangeLog 886
+RMD160 9759062ff7f5cf1b5df378ed82153ebe809e843e ChangeLog 886
+SHA256 7fcdbe5a8c5cd3e399aa2fc88aaa6dd82f69c6176b20c110b2466773ddc7b846 ChangeLog 886
+MISC metadata.xml 230 RMD160 fd2ff2b82d75b757b306ba2de0f742b6cd1f966e SHA1 b4e616879ea88965ecb0709eaa12d7fe1d5dbe1d SHA256 903c9de2c99aeba3f9543766df6ea311ad16e4e44c2e9f66519880eccb76050e size 230
MD5 b1bcc1a84490adeeaff207fb5578fa44 metadata.xml 230
-MD5 4b9be9e02b0c044e0b65ae1388bf9668 samhain-2.1.1a.ebuild 7098
+RMD160 fd2ff2b82d75b757b306ba2de0f742b6cd1f966e metadata.xml 230
+SHA256 903c9de2c99aeba3f9543766df6ea311ad16e4e44c2e9f66519880eccb76050e metadata.xml 230
+MD5 9a133ead39dbe1f2c5ac88acdcb22f1c files/digest-samhain-2.1.3 265
+RMD160 7e5dc4b711bd902b291025baafadb5896d9a0ee5 files/digest-samhain-2.1.3 265
+SHA256 93015c4440fa41dd28c57ce8f810eb027be46e84d46970ee77c75903cc47f882 files/digest-samhain-2.1.3 265
+MD5 c5b2170ae6682c977f8f4eb22708d542 files/digest-samhain-2.2.0 265
+RMD160 541f376e98df64b5c23426c661b9bd6c6e8260f6 files/digest-samhain-2.2.0 265
+SHA256 4c05000b6693d57d6e73515dc72580b5abe2067126291efddb40d23fee5c115a files/digest-samhain-2.2.0 265
diff --git a/app-forensics/samhain/files/digest-samhain-2.1.1a b/app-forensics/samhain/files/digest-samhain-2.1.1a
deleted file mode 100644
index 13def3fae04a..000000000000
--- a/app-forensics/samhain/files/digest-samhain-2.1.1a
+++ /dev/null
@@ -1 +0,0 @@
-MD5 08c4bb97072ff46f2e6df485e164878d samhain_signed-2.1.1a.tar.gz 1325523
diff --git a/app-forensics/samhain/samhain-2.1.1a.ebuild b/app-forensics/samhain/samhain-2.1.1a.ebuild
deleted file mode 100644
index 34588364d2f3..000000000000
--- a/app-forensics/samhain/samhain-2.1.1a.ebuild
+++ /dev/null
@@ -1,206 +0,0 @@
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/app-forensics/samhain/samhain-2.1.1a.ebuild,v 1.2 2005/12/26 00:42:11 chtekk Exp $
-
-KEYWORDS="~x86"
-DESCRIPTION="Advanced file integrity and intrusion detection tool."
-HOMEPAGE="http://la-samhna.de/samhain/"
-SRC_URI="http://la-samhna.de/archive/samhain_signed-${PV}.tar.gz"
-LICENSE="GPL-2"
-SLOT="0"
-IUSE="crypt debug login-watch mounts-check mysql netclient netserver postgres prelude static suidcheck userfiles xml"
-
-RESTRICT="nostrip"
-
-DEPEND="crypt? ( >=app-crypt/gnupg-1.2 )
- mysql? ( >=dev-db/mysql-3.23.26 )
- postgres? ( >=dev-db/postgresql-7.2 )
- prelude? ( >=dev-libs/libprelude-0.8.10 )
- >=sys-apps/sed-4
- app-arch/tar
- app-arch/gzip"
-
-# Samhain stealth mode options
-#
-# If you would like to enable stealth mode, please set and uncomment the
-# following options or pass them as enviroment variables when emerging
-# the package (like INSTALL_NAME="asd" emerge samhain).
-# If you set the variables here, don't forget to redigest the ebuild by
-# issuing 'ebuild samhain-2.1.1a.ebuild digest', also remember that with
-# your next emerge sync, the changes to the ebuild will be lost!
-#
-# Read the Samhain manual for additional information.
-#
-# STEALTH should be set to either 'full' or 'micro' (mandatory)
-#STEALTH=""
-#
-# XOR_VALUE should be a whole number from 128 to 255 (mandatory)
-#XOR_VALUE=""
-#
-# INSTALL_NAME can be set to change the name of the Samhain binaries
-# to the name you specify (optional)
-#INSTALL_NAME=""
-
-if [[ "${STEALTH}" == "full" ]] ; then
- RDEPEND="media-gfx/imagemagick"
-fi
-
-pkg_setup() {
- if use static ; then
- if use postgres || use prelude ; then
- ewarn "At the moment it isn't possible to build a static Samhain with"
- ewarn "Prelude and/or PostgreSQL support on Gentoo, the compilation"
- ewarn "fails during the linking process."
- echo
- ewarn "This will be looked at and fixed in the future, in the meantime,"
- ewarn "patches to fix this are always welcome and appreciated! ;)"
- ewarn "(Open a bug on bugs.gentoo.org for them or send them to"
- ewarn "the maintainer directly, thanks!)"
- die "Please turn the 'postgres' and/or 'prelude' USE flags off when building with 'static'"
- fi
- fi
-
- if use mysql && use postgres ; then
- ewarn "You cannot compile both database backends into Samhain at once,"
- ewarn "you need to choose between MySQL or PostgreSQL and disable the"
- ewarn "one you don't want to use."
- die "Please choose between 'mysql' or 'postgres' USE flags"
- fi
-}
-
-src_unpack() {
- unpack ${A}
- tar -xzf "samhain-${PV}.tar.gz"
-}
-
-src_compile() {
- local myconf
-
- if use crypt ; then
- myconf="${myconf} --with-gpg=/usr/bin/gpg --with-checksum=no"
-
- if [[ -n "${KEY_FPR}" ]] ; then
- einfo "Setting built-in key fingerprint to ${KEY_FPR}"
- FPR=`echo ${KEY_FPR} | sed "s/ //g"`
- myconf="${myconf} --with-fp=${FPR}"
- fi
- fi
-
- if [[ -n "${STEALTH}" ]] ; then
- [[ -z "${XOR_VALUE}" ]] && die "Variable XOR_VALUE must be set for stealth mode"
- echo
- einfo "Enabling stealth mode '${STEALTH}', setting XOR_VALUE to ${XOR_VALUE}"
-
- if [[ "${STEALTH}" == "full" ]] ; then
- myconf="${myconf} --enable-stealth=${XOR_VALUE}"
- sed -e "s:STEGIN=@stegin_prg@:STEGIN=:g" -i samhain-install.sh.in
- elif [[ "${STEALTH}" == "micro" ]] ; then
- myconf="${myconf} --enable-micro-stealth=${XOR_VALUE}"
- else
- die "STEALTH must be set to either 'full' or 'micro'"
- fi
-
- if [[ -n "${INSTALL_NAME}" ]] ; then
- echo
- einfo "Setting alternative samhain name to ${INSTALL_NAME}"
- echo
- myconf="${myconf} --enable-install-name=${INSTALL_NAME}"
- fi
- fi
-
- use mysql && myconf="${myconf} --with-database=mysql --enable-xml-log"
- use postgres && myconf="${myconf} --with-database=postgresql --enable-xml-log"
- use prelude && myconf="${myconf} --with-prelude --with-libprelude-prefix=/usr"
- use xml && myconf="${myconf} --enable-xml-log"
- use static && myconf="${myconf} --enable-static"
- use debug && myconf="${myconf} --enable-debug"
-
- use netclient && myconf="${myconf} --enable-network=client"
- use netserver && myconf="${myconf} --enable-network=server"
-
- use login-watch && myconf="${myconf} --enable-login-watch"
- use mounts-check && myconf="${myconf} --enable-mounts-check"
- use suidcheck && myconf="${myconf} --enable-suidcheck"
- use userfiles && myconf="${myconf} --enable-userfiles"
-
- myconf="${myconf} --localstatedir=/var"
-
- econf ${myconf} || die "configure failed"
- make || die "compile failed"
-}
-
-src_install() {
- make DESTDIR="${D}" install || die "make install failed"
-
- rm -Rf "${D}/var/log"
- rm -Rf "${D}/var/run"
- rm -Rf "${D}/var/state"
-
- if [[ -n "${STEALTH}" ]] ; then
- rm -Rf "${D}/usr/share"
- else
- dodoc COPYING LICENSE docs/BUGS docs/MANUAL* docs/README* docs/TODO docs/*.txt
- dohtml docs/*.html
- docinto scripts
- dodoc scripts/*
- insinto /etc
- insopts -m0600
- newins samhainrc.linux samhainrc
- exeinto /etc/init.d
- newexe init/samhain.startGentoo samhain
- fi
-
- if use netserver ; then
- chown daemon:daemon "${D}/var/lib/yule"
- chown daemon:daemon "${D}/var/log/yule"
- fi
-}
-
-pkg_postinst() {
- if [[ -n "${STEALTH}" ]] ; then
- echo
- einfo "Manual pages, documentation, and init script were NOT installed in order to"
- einfo "obscure Samhain's presence. You should also remove samhain's installation"
- einfo "traces from /var/cache/edb/world and /var/db/pkg."
- fi
-
- if [[ "${STEALTH}" == "full" ]] ; then
- echo
- einfo "In stealth mode, the configuration file must be steganographically hidden"
- einfo "in a postscript image file. The sample config has been created this way by"
- einfo "the installation process. Use the samhain_stealth utility to modify or"
- einfo "create your own configuration file."
- fi
-
- if [[ -z "${KEY_FPR}" ]] ; then
- echo
- ewarn "GnuPG support has been enabled, but fingerprint verification will be"
- ewarn "ignored. To enable fingerprint verification (strongly recommended),"
- ewarn "you must re-emerge this package with the KEY_FPR variable set to"
- ewarn "your default signing key fingerprint."
- ewarn "Please read the Samhain manual for more details."
- echo
- einfo "Enabling GnuPG support in Samhain requires that you sign your configuration"
- einfo "and and database files. Please run the following commands as root:"
- einfo
- einfo " gpg -a --clearsign --not-dash-escaped /etc/samhainrc"
- einfo " mv /etc/samhainrc.asc /etc/samhainrc"
- einfo " chmod 600 /etc/samhainrc"
- einfo
- einfo "Run the same commands on /var/lib/samhain/samhain_file after initialization."
- fi
-
- echo
- einfo "Be sure to check your settings in /etc/samhainrc. When ready, run:"
- einfo " samhain -t init"
- einfo "to initialize Samhain."
-
- echo
- einfo "Samhain stealth-mode options are also available. Please view the comments"
- einfo "in the Samhain ebuild for further configuration instructions."
-
- echo
- ewarn "Please be sure to read the Samhain manual to understand and correctly"
- ewarn "configure the Samhain utility."
- ewarn "HTML version available for viewing at http://la-samhna.de/samhain/manual/ ."
-}