diff options
author | 2006-06-28 23:35:59 +0000 | |
---|---|---|
committer | 2006-06-28 23:35:59 +0000 | |
commit | 8a73db66ee033dd03cf3b81c61efdf8b59562ee9 (patch) | |
tree | d20756dce80cae360ec63944b1a68fd359d38b7b /app-forensics | |
parent | Fix bug #87004. (diff) | |
download | gentoo-2-8a73db66ee033dd03cf3b81c61efdf8b59562ee9.tar.gz gentoo-2-8a73db66ee033dd03cf3b81c61efdf8b59562ee9.tar.bz2 gentoo-2-8a73db66ee033dd03cf3b81c61efdf8b59562ee9.zip |
version bump
(Portage version: 2.1.1_pre1-r5)
Diffstat (limited to 'app-forensics')
-rw-r--r-- | app-forensics/pyflag/ChangeLog | 8 | ||||
-rw-r--r-- | app-forensics/pyflag/files/digest-pyflag-0.82 | 3 | ||||
-rw-r--r-- | app-forensics/pyflag/files/pyflag-0.82-nodbtool.patch | 34 | ||||
-rw-r--r-- | app-forensics/pyflag/pyflag-0.82.ebuild | 88 |
4 files changed, 132 insertions, 1 deletions
diff --git a/app-forensics/pyflag/ChangeLog b/app-forensics/pyflag/ChangeLog index 10f2faf477ea..a904c5da9771 100644 --- a/app-forensics/pyflag/ChangeLog +++ b/app-forensics/pyflag/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for app-forensics/pyflag # Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-forensics/pyflag/ChangeLog,v 1.4 2006/02/15 20:53:18 jokey Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-forensics/pyflag/ChangeLog,v 1.5 2006/06/28 23:35:59 dragonheart Exp $ + +*pyflag-0.82 (28 Jun 2006) + + 28 Jun 2006; Daniel Black <dragonheart@gentoo.org> + +files/pyflag-0.82-nodbtool.patch, +pyflag-0.82.ebuild: + version bump 15 Feb 2006; Markus Ullmann <jokey@gentoo.org> pyflag-0.80.1.ebuild: Removing virtual/libpcap wrt bug #117898 diff --git a/app-forensics/pyflag/files/digest-pyflag-0.82 b/app-forensics/pyflag/files/digest-pyflag-0.82 new file mode 100644 index 000000000000..979ae275ee97 --- /dev/null +++ b/app-forensics/pyflag/files/digest-pyflag-0.82 @@ -0,0 +1,3 @@ +MD5 9844124e6af54d4963a9d837678e902d pyflag-0.82.tar.bz2 944549 +RMD160 42d4d8b1e8b45afa93f243f853ed02ee8b903d7b pyflag-0.82.tar.bz2 944549 +SHA256 fa42c5e42e927e8eb00aff0bad009e25b62576291dcfccc7d18d5397b9fe1ed2 pyflag-0.82.tar.bz2 944549 diff --git a/app-forensics/pyflag/files/pyflag-0.82-nodbtool.patch b/app-forensics/pyflag/files/pyflag-0.82-nodbtool.patch new file mode 100644 index 000000000000..766b799a9ead --- /dev/null +++ b/app-forensics/pyflag/files/pyflag-0.82-nodbtool.patch @@ -0,0 +1,34 @@ +diff -ru pyflag-0.82.orig/configure.in pyflag-0.82/configure.in +--- pyflag-0.82.orig/configure.in 2006-06-25 20:20:30.000000000 +1000 ++++ pyflag-0.82/configure.in 2006-06-29 08:38:25.000000000 +1000 +@@ -15,6 +15,7 @@ + AC_CHECK_HEADER(pcap.h,,AC_MSG_ERROR([You Must install libpcap-dev to build pyflag])) + AC_CHECK_HEADER(magic.h,,AC_MSG_ERROR([You Must install libmagic-dev to build pyflag this may be part of file the package for some distros])) + #AC_CHECK_FILE($srcdir/src/filesystems/sleuthkit-2.03.tar.gz,,AC_MSG_ERROR([You Must download sleuthkit-2.03.tar.gz and place in src/filesystems ])) ++AM_CONDITIONAL(HAVE_DBTOOL, test x$HAVE_DBTOOL = xyes) + + # python checks + # (requires autoconf 1.5+ and the macros in acinclude.m4) +@@ -40,7 +41,7 @@ + fi + + # try to find magic files +-AC_ARG_WITH(magic, AC_HELP_STRING([--with-magic], [specify a colon-separated list of system magic files, default autodetect]),,[magic=$(file -v | tail -1 | awk '{print $4}')]) ++AC_ARG_WITH(magic, AC_HELP_STRING([--with-magic], [specify a colon-separated list of system magic files, default autodetect]),,[magic=$(file -v | tail -n 1 | awk '{print $4}')]) + AC_SUBST(magic) + + +diff -ru pyflag-0.82.orig/src/Makefile.am pyflag-0.82/src/Makefile.am +--- pyflag-0.82.orig/src/Makefile.am 2006-03-17 22:05:58.000000000 +1100 ++++ pyflag-0.82/src/Makefile.am 2006-06-29 08:37:43.000000000 +1000 +@@ -1,4 +1,9 @@ +-SUBDIRS = lib mailtools indextools_ng network regtools virustools filesystems include ++SUBDIRS = lib mailtools indextools_ng network regtools virustools include ++ ++if HAVE_DBTOOL ++else ++SUBDIRS+=filesystems ++endif + + # main pyflag (python) application + ## The pyflag directory goes in the system site-packages diff --git a/app-forensics/pyflag/pyflag-0.82.ebuild b/app-forensics/pyflag/pyflag-0.82.ebuild new file mode 100644 index 000000000000..bca7cd36e68e --- /dev/null +++ b/app-forensics/pyflag/pyflag-0.82.ebuild @@ -0,0 +1,88 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-forensics/pyflag/pyflag-0.82.ebuild,v 1.1 2006/06/28 23:35:59 dragonheart Exp $ + +inherit eutils autotools + +DESCRIPTION="Tool for analysing log files, tcpdump files and hard disk images" +HOMEPAGE="http://pyflag.sf.net" +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2" +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" + +IUSE="" +COMMON_DEPEND=" + net-libs/libpcap + sys-apps/file + dev-python/mysql-python + sys-libs/zlib + app-antivirus/clamav + >=app-forensics/sleuthkit-2.03 + dev-python/pexpect + dev-python/imaging + media-libs/ploticus" + +RDEPEND="${COMMON_DEPEND} + dev-db/mysql" + +DEPEND=">=dev-lang/swig-1.3 + ${COMMON_DEPEND}" + +# +# TODO: init scripts +# + +src_unpack() { + unpack "${A}" + epatch "${FILESDIR}/${P}-nodbtool.patch" + cd "${S}" + AT_M4DIR="config" eautoreconf +} + +src_install() { + emake DESTDIR="${D}" install || die + + #maybe later + #newinitd "${FILESDIR}/${P}-init" pyflag + #newconfd "${FILESDIR}/${P}-conf" pyflag +} + +pkg_postinst() { + einfo "Optionally enter database details in /etc/pyflagrc" + einfo + einfo "To start PyFlag just run \"pyflag\" as a normal user" + einfo "then open your web browser on http://localhost:8000" + einfo + einfo "To create a database user \"emerge --config =${PF}\"" +} + +pkg_config() { + ewarn "This creates the approprate adminstrative user for pyflag" + ewarn "Run pyflag with the entered credentials to create the" + ewarn "tables and database." + einfo + einfo "Enter user to create:" + read USER + einfo "Enter user's password:" + read PASSWORD + + # note - poor privledge separation is used in pyflag + # recommend not sharing with other security consious databases. + # it may be possible to imporve this a bit using manual permission setting. + einfo "Enter mysql root database password:" + echo GRANT ALL PRIVILEGES ON "*.*" TO $USER@localhost \ + IDENTIFIED BY \"$PASSWORD\"\; FLUSH PRIVILEGES\; \ + | /usr/bin/mysql -u root -p + + einfo "Do you want this data to be used for all users (y/n)?" + ewarn "Warning - all credentials will be in a world readable file" + ewarn "This overwrites settings in ${ROOT}/etc/pyflagrc" + read GLOBAL + if [ "${GLOBAL}" == "y" ] || [ "${GLOBAL}" == "Y" ]; then + einfo "updating global settings" + sed -i -e "s:PYFLAG_DBUSER=.*:PYFLAG_DBUSER=$USER:" \ + -e "s:PYFLAG_DBPASSWD=.*:PYFLAG_DBPASSWD=$PASSWORD:" \ + "${ROOT}/etc/pyflagrc" + fi +} |