summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAaron Walker <ka0ttic@gentoo.org>2004-09-16 16:55:09 +0000
committerAaron Walker <ka0ttic@gentoo.org>2004-09-16 16:55:09 +0000
commit8202b5978bcab6be3b83784900f6ceb93203225c (patch)
treef042c73a87b32227917f3a4db048ca27f2020674 /app-forensics/tct
parentFix DESTDIR problems (sandbox violation). Closes bug #64204. (Manifest recom... (diff)
downloadgentoo-2-8202b5978bcab6be3b83784900f6ceb93203225c.tar.gz
gentoo-2-8202b5978bcab6be3b83784900f6ceb93203225c.tar.bz2
gentoo-2-8202b5978bcab6be3b83784900f6ceb93203225c.zip
Initial commit (bug #39934)
Diffstat (limited to 'app-forensics/tct')
-rw-r--r--app-forensics/tct/ChangeLog10
-rw-r--r--app-forensics/tct/Manifest6
-rw-r--r--app-forensics/tct/files/digest-tct-1.151
-rw-r--r--app-forensics/tct/files/tct-1.15-gentoo.diff76
-rw-r--r--app-forensics/tct/metadata.xml8
-rw-r--r--app-forensics/tct/tct-1.15.ebuild88
6 files changed, 189 insertions, 0 deletions
diff --git a/app-forensics/tct/ChangeLog b/app-forensics/tct/ChangeLog
new file mode 100644
index 000000000000..e230873b3c2c
--- /dev/null
+++ b/app-forensics/tct/ChangeLog
@@ -0,0 +1,10 @@
+# ChangeLog for app-forensics/tct
+# Copyright 1999-2004 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-forensics/tct/ChangeLog,v 1.1 2004/09/16 16:55:09 ka0ttic Exp $
+
+*tct-1.15 (16 Sep 2004)
+
+ 16 Sep 2004; Aaron Walker <ka0ttic@gentoo.org> +metadata.xml,
+ +tct-1.15.ebuild:
+ Initial commit (bug #39934)
+
diff --git a/app-forensics/tct/Manifest b/app-forensics/tct/Manifest
new file mode 100644
index 000000000000..357d1e6e22cb
--- /dev/null
+++ b/app-forensics/tct/Manifest
@@ -0,0 +1,6 @@
+MD5 478ff989dd3d48439827b48a36e0aaad .tct-1.15.ebuild.swp 12288
+MD5 bdc2b6b996666a4ab213ed51355fdcf4 tct-1.15.ebuild 2410
+MD5 9800dc278127ac2f4c88585063c51aff ChangeLog 258
+MD5 41bbb72e2d5a56f8446b18931f49c48a metadata.xml 236
+MD5 4f84b201211e39a37c212afd03072e54 files/tct-1.15-gentoo.diff 2134
+MD5 149e3bd10ce891ee1dd2ad2522a705f0 files/digest-tct-1.15 60
diff --git a/app-forensics/tct/files/digest-tct-1.15 b/app-forensics/tct/files/digest-tct-1.15
new file mode 100644
index 000000000000..38d219d8302e
--- /dev/null
+++ b/app-forensics/tct/files/digest-tct-1.15
@@ -0,0 +1 @@
+MD5 d4992f242f7b3a6c8137e8562935f946 tct-1.15.tar.gz 317164
diff --git a/app-forensics/tct/files/tct-1.15-gentoo.diff b/app-forensics/tct/files/tct-1.15-gentoo.diff
new file mode 100644
index 000000000000..cc4ccf5dbaa2
--- /dev/null
+++ b/app-forensics/tct/files/tct-1.15-gentoo.diff
@@ -0,0 +1,76 @@
+diff -urN tct-1.15.orig/conf/coroner.cf tct-1.15/conf/coroner.cf
+--- tct-1.15.orig/conf/coroner.cf 2004-01-22 14:48:00.000000000 -0500
++++ tct-1.15/conf/coroner.cf 2004-09-16 10:16:17.209578032 -0400
+@@ -2,7 +2,7 @@
+ # Configuration file for coroner's toolkit
+ #
+
+-$TCT_HOME = "";
++$TCT_HOME = "/usr/lib/tct";
+
+ $ETC = "$TCT_HOME/etc" unless $ETC;
+
+@@ -21,7 +21,7 @@
+ #
+ # All sensitive operations are logged with a time stamp.
+ #
+-$logfile = "coroner.log";
++$logfile = "/var/log/tct/coroner.log";
+
+ #
+ # What colors to use for MACtime HTML stuff
+diff -urN tct-1.15.orig/conf/grave-robber.cf tct-1.15/conf/grave-robber.cf
+--- tct-1.15.orig/conf/grave-robber.cf 2004-01-22 14:48:00.000000000 -0500
++++ tct-1.15/conf/grave-robber.cf 2004-09-16 10:16:02.543440243 -0400
+@@ -2,7 +2,7 @@
+ # Configuration file for coroner's toolkit
+ #
+
+-$TCT_HOME = "";
++$TCT_HOME = "/usr/lib/tct";
+
+ $LIB = "$TCT_HOME/lib" unless $LIB;
+ $BIN = "$TCT_HOME/bin" unless $BIN;
+@@ -28,7 +28,7 @@
+ #
+ # stderr goes...
+ #
+-$error_log = "error.log";
++$error_log = "/var/log/tct/error.log";
+
+ #
+ # Don't copy file larger than this (bytes). Set to 0 if don't want limits
+diff -urN tct-1.15.orig/conf/paths.pl tct-1.15/conf/paths.pl
+--- tct-1.15.orig/conf/paths.pl 2004-01-08 17:29:05.000000000 -0500
++++ tct-1.15/conf/paths.pl 2004-09-16 12:21:38.645527494 -0400
+@@ -23,7 +23,7 @@
+ $IPCS="/usr/bin/ipcs";
+ $LAST="/usr/bin/last";
+
+-$LSOF="/usr/local/sbin/lsof";
++$LSOF="/usr/sbin/lsof";
+ $MKDIR="/bin/mkdir";
+ $NETSTAT="/usr/bin/netstat";
+ $PS="/bin/ps";
+@@ -61,7 +61,7 @@
+ $PSTAT="/usr/sbin/pstat";
+
+ # linux
+-$RPM="/usr/local/bin/rpm";
++$RPM="/usr/bin/rpm";
+ $KSYMS="/sbin/ksyms";
+ $LSMOD="/sbin/lsmod";
+
+diff -urN tct-1.15.orig/reconfig tct-1.15/reconfig
+--- tct-1.15.orig/reconfig 2001-09-15 16:48:51.000000000 -0400
++++ tct-1.15/reconfig 2004-09-16 09:43:15.790293315 -0400
+@@ -157,7 +157,8 @@
+ "extras/ils2mac", "extras/realpath");
+
+ # where are we now?
+-chop($cwd = `pwd`);
++#chop($cwd = `pwd`);
++$cwd = "/usr/lib/tct";
+
+ # a few small files; suck them in, change in memory, overwrite the old one
+ for $file (@files2reconfig) {
diff --git a/app-forensics/tct/metadata.xml b/app-forensics/tct/metadata.xml
new file mode 100644
index 000000000000..b10f7d0dcdad
--- /dev/null
+++ b/app-forensics/tct/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>forensics</herd>
+ <maintainer>
+ <email>forensics@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-forensics/tct/tct-1.15.ebuild b/app-forensics/tct/tct-1.15.ebuild
new file mode 100644
index 000000000000..c9a9c104f464
--- /dev/null
+++ b/app-forensics/tct/tct-1.15.ebuild
@@ -0,0 +1,88 @@
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-forensics/tct/tct-1.15.ebuild,v 1.1 2004/09/16 16:55:09 ka0ttic Exp $
+
+inherit eutils
+
+DESCRIPTION="The Coroner's Toolkit - a collection of tools to aide in gathering and analyzing forensic data on a UNIX system"
+HOMEPAGE="http://www.porcupine.org/forensics/tct.html"
+SRC_URI="http://www.porcupine.org/forensics/${P}.tar.gz"
+
+LICENSE="IBM as-is"
+SLOT="0"
+KEYWORDS="~x86"
+IUSE=""
+
+DEPEND=">=dev-lang/perl-5.0004
+ >=sys-apps/sed-4"
+RDEPEND="${DEPEND}
+ dev-perl/DateManip"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+
+ sed -i -e "s:\$(OPT) \$(DEBUG):${CFLAGS}:" */*/Makefile \
+ || die "sed CFLAGS failed"
+
+ epatch ${FILESDIR}/${P}-gentoo.diff
+}
+
+src_install() {
+ # bins/libs
+ into /usr/lib/tct
+ dobin bin/* || die "bin installation failed"
+
+ exeinto /usr/lib/tct
+ doexe reconfig || die "reconfig installation failed"
+
+ insinto /usr/lib/tct/lib
+ doins lib/*.pl || die "lib installation failed"
+
+ exeinto /usr/lib/tct/extras
+ doexe extras/bdf extras/ils2mac extras/realpath extras/entropy/entropy \
+ extras/findkey/findkey || die "extras installation failed"
+
+ # config
+ insinto /usr/lib/tct/conf
+ doins conf/* || die "conf installation failed"
+
+ insinto /usr/lib/tct/etc
+ doins etc/magic || die "etc installation failed"
+
+ # docs
+ newdoc extras/README README.extras || die "newdoc failed"
+ dodoc docs/* Beware CHANGES INSTALL OS-NOTES README.FIRST \
+ TODO* additional-resources bibliography help-recovering-file \
+ help-when-broken-into quick-start || die "doc installation failed"
+
+ rm man/man1/file.1
+ doman man/*/* || die "man installation failed"
+
+ # setup dirs/symlinks
+ keepdir /var/log/tct
+
+ dodir /etc
+ dosym /usr/lib/tct/conf /etc/tct || die "dosym failed"
+
+ keepdir /var/lib/tct
+ dosym /var/lib/tct /usr/lib/tct/data || die "dosym failed"
+
+ dodir /usr/sbin
+ cd ${S}/bin
+ # all binaries except the following are meant for internal use
+ for bin in grave-robber lazarus mactime unrm; do
+ dosym /usr/lib/tct/bin/${bin} /usr/sbin/${bin} \
+ || die "dosym ${bin} failed"
+ done
+}
+
+pkg_postinst() {
+ echo
+ einfo "The authors of The Coroner's Toolkit highly recommend"
+ einfo "installing sys-apps/lsof for use by the toolkit."
+ einfo
+ einfo "Please read the README and quickstart files installed"
+ einfo "in /usr/share/doc/${PF} before using The Coroner's Toolkit."
+ echo
+}