diff options
author | Justin Lecher <jlec@gentoo.org> | 2008-12-09 19:06:13 +0000 |
---|---|---|
committer | Justin Lecher <jlec@gentoo.org> | 2008-12-09 19:06:13 +0000 |
commit | bf80c4b206a5cc337dc092e3d1c182ee9241cc39 (patch) | |
tree | 6c911068b8918f6fe2b79fb25905f5eac0a40a4d | |
parent | media-tv/em28xx-new: new snapshot (diff) | |
download | sunrise-bf80c4b206a5cc337dc092e3d1c182ee9241cc39.tar.gz sunrise-bf80c4b206a5cc337dc092e3d1c182ee9241cc39.tar.bz2 sunrise-bf80c4b206a5cc337dc092e3d1c182ee9241cc39.zip |
sys-fs/ext3grep: Initial commit - related bug 246191
svn path=/sunrise/; revision=7469
-rw-r--r-- | sys-fs/ext3grep/ChangeLog | 8 | ||||
-rw-r--r-- | sys-fs/ext3grep/Manifest | 5 | ||||
-rw-r--r-- | sys-fs/ext3grep/ext3grep-0.10.0.ebuild | 48 | ||||
-rw-r--r-- | sys-fs/ext3grep/files/gcc-4.3.patch | 170 | ||||
-rw-r--r-- | sys-fs/ext3grep/metadata.xml | 18 |
5 files changed, 249 insertions, 0 deletions
diff --git a/sys-fs/ext3grep/ChangeLog b/sys-fs/ext3grep/ChangeLog new file mode 100644 index 000000000..ce56f6137 --- /dev/null +++ b/sys-fs/ext3grep/ChangeLog @@ -0,0 +1,8 @@ +# ChangeLog for sys-fs/ext3grep +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 +# $Header: $ + + 09 Dec 2008; Justin Lecher (jlec) <jlec@j-schmitz.net> + +ext3grep-0.10.0.ebuild, +files/gcc-4.3.patch, +metadata.xml: + Initial commit - related bug 246191 + diff --git a/sys-fs/ext3grep/Manifest b/sys-fs/ext3grep/Manifest new file mode 100644 index 000000000..e7064415c --- /dev/null +++ b/sys-fs/ext3grep/Manifest @@ -0,0 +1,5 @@ +AUX gcc-4.3.patch 5338 RMD160 02bd66436fc309823c632abf0710d6d90fd7f4a6 SHA1 ffff4763ba1977577a102f0b7a00773b6304d903 SHA256 c1d887e26d7d5b19f7a3fe1653e711752259912c190f6b385f0dbb69c0523cc2 +DIST ext3grep-0.10.0.tar.gz 230848 RMD160 5ee2e7f12935d150da32e7ab3a0a03863c444f59 SHA1 38d5295196446f69df56feda41a3902e08578f02 SHA256 4faac195ea9e24753f129d681847c289991ef2dfdb1207db1c47d2a81d8d0c0f +EBUILD ext3grep-0.10.0.ebuild 885 RMD160 1ced70d25d3abca31b3783e2df3d8e3fa7c83477 SHA1 14620230130bff94d9887d80b21f1c4a847b5f13 SHA256 010725b55bb39fb976359a744fd749ad036080e1b686b4d47dfaa85c019a2994 +MISC ChangeLog 276 RMD160 89af00160815f2a52a97bb5a51208507fb5186ef SHA1 e5bc48c4ae4a6971fd504b6a64c713f0adbd2c4e SHA256 eba05076ba3da49db8d450ffe1bed7d2aaef1c62b603e0d700fb72f97b986cd2 +MISC metadata.xml 502 RMD160 beb208bc7149027d90b457403a5ddf0b6ca73f6b SHA1 c405c2ff44b5fc9db328b6d6565f588cd97ab0f0 SHA256 d4cd99acc83ff468330ac88462f75e3356f98c979360bb5a528de13f34f84628 diff --git a/sys-fs/ext3grep/ext3grep-0.10.0.ebuild b/sys-fs/ext3grep/ext3grep-0.10.0.ebuild new file mode 100644 index 000000000..a6590066a --- /dev/null +++ b/sys-fs/ext3grep/ext3grep-0.10.0.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +inherit eutils + +DESCRIPTION="recover deleted files on an ext3 file system" +HOMEPAGE="http://www.xs4all.nl/~carlo17/howto/undelete_ext3.html" +SRC_URI="http://ext3grep.googlecode.com/files/${P}.tar.gz" + +LICENSE="GPL-2" + +SLOT="0" +KEYWORDS="~x86" + +IUSE="debug largefile libcwd mmap pch" +RDEPEND="" +DEPEND="${RDEPEND} + debug? ( libcwd? ( dev-cpp/libcwd ) )" + +src_unpack(){ + unpack ${A} + cd "${S}" + epatch "${FILESDIR}"/gcc-4.3.patch +} + +src_compile() { + local myconf + + use debug && myconf="--disable-optimize" + + econf \ + $(use_enable libcwd) \ + $(use_enable debug) \ + ${myconf} \ + $(use_enable pch) \ + $(use_enable largefile) \ + $(use_enable mmap) + + emake || die "emake failed" +} + + +src_install() { + emake DESTDIR="${D}" install || die + + dodoc NEWS README || die +} diff --git a/sys-fs/ext3grep/files/gcc-4.3.patch b/sys-fs/ext3grep/files/gcc-4.3.patch new file mode 100644 index 000000000..160e4ff6f --- /dev/null +++ b/sys-fs/ext3grep/files/gcc-4.3.patch @@ -0,0 +1,170 @@ +--- src/custom.cc.orig 2008-11-09 18:02:00.000000000 +0100 ++++ src/custom.cc 2008-11-09 18:02:32.000000000 +0100 +@@ -42,6 +42,9 @@ + #include "get_block.h" + #include "init_consts.h" + #include "print_inode_to.h" ++#include <sys/time.h> ++#include <cstring> ++#include <ctime> + + // The first part of this file was written and used for custom job: + // recovering emails on a 40 GB partition that had no information +--- src/dir_inode_to_block.cc 2008-06-28 15:40:06.000000000 +0200 ++++ src/dir_inode_to_block.cc.new 2008-11-09 18:04:13.000000000 +0100 +@@ -40,6 +40,8 @@ + #include "print_inode_to.h" + #include "directories.h" + #include "journal.h" ++#include <cstring> ++#include <limits> + + //----------------------------------------------------------------------------- + // +--- src/directories.cc 2008-10-16 00:45:31.000000000 +0200 ++++ src/directories.cc.new 2008-11-09 18:08:30.000000000 +0100 +@@ -33,6 +33,9 @@ + #include "indirect_blocks.h" + #include "get_block.h" + #include "directories.h" ++#include <cstring> ++#include <ctime> ++#include <algorithm> + + //----------------------------------------------------------------------------- + // +--- src/is_blockdetection.h 2008-07-11 02:23:37.000000000 +0200 ++++ src/is_blockdetection.h.new 2008-11-09 18:09:34.000000000 +0100 +@@ -31,6 +31,8 @@ + + #include "inode.h" // Needed for InodePointer + ++#include <cstring> ++ + // Return type of is_directory. + enum is_directory_type { + isdir_no = 0, // Block is not a directory. +--- src/commandline.cc 2008-10-18 03:06:35.000000000 +0200 ++++ src/commandline.cc.new 2008-11-09 18:20:54.000000000 +0100 +@@ -32,6 +32,8 @@ + #include "globals.h" + #include "restore.h" + #include "accept.h" ++#include <ctime> ++#include <limits> + + // Commandline options. + bool commandline_superblock = false; +--- src/histogram.cc.orig 2008-11-09 18:41:42.000000000 +0100 ++++ src/histogram.cc 2008-11-09 18:41:30.000000000 +0100 +@@ -29,6 +29,7 @@ + #endif + + #include "commandline.h" ++#include <cstring> + + //----------------------------------------------------------------------------- + // +--- src/init_files.cc 2008-06-29 04:39:33.000000000 +0200 ++++ src/init_files.cc.new 2008-11-09 18:42:57.000000000 +0100 +@@ -33,6 +33,7 @@ + #include "globals.h" + #include "forward_declarations.h" + #include "journal.h" ++#include <algorithm> + + //----------------------------------------------------------------------------- + // +--- src/init_directories.cc.orig 2008-11-09 18:44:06.000000000 +0100 ++++ src/init_directories.cc 2008-11-09 18:43:49.000000000 +0100 +@@ -39,6 +39,7 @@ + #include "get_block.h" + #include "journal.h" + #include "dir_inode_to_block.h" ++#include <limits> + + all_directories_type all_directories; + inode_to_directory_type inode_to_directory; +--- src/indirect_blocks.cc 2008-10-20 20:45:29.000000000 +0200 ++++ src/indirect_blocks.cc.new 2008-11-09 18:45:45.000000000 +0100 +@@ -54,6 +54,7 @@ + #include "forward_declarations.h" + #include "endian_conversion.h" + #include "superblock.h" ++#include <set> + + //----------------------------------------------------------------------------- + // +--- src/journal.cc.orig 2008-11-09 18:47:39.000000000 +0100 ++++ src/journal.cc 2008-11-09 18:47:27.000000000 +0100 +@@ -37,6 +37,8 @@ + #include "indirect_blocks.h" + #include "get_block.h" + #include "commandline.h" ++#include <algorithm> ++#include <ctime> + + //----------------------------------------------------------------------------- + // +--- src/inode.cc 2008-06-29 04:44:39.000000000 +0200 ++++ src/inode.cc.new 2008-11-09 18:49:52.000000000 +0100 +@@ -33,6 +33,7 @@ + #include "globals.h" + #include "conversion.h" + #include "inode.h" ++#include <limits> + + #if USE_MMAP + void inode_unmap(int group) +--- src/last_undeleted_directory_inode_refering_to_block.cc 2008-07-11 19:18:57.000000000 +0200 ++++ src/last_undeleted_directory_inode_refering_to_block.cc.new 2008-11-09 18:50:53.000000000 +0100 +@@ -29,6 +29,7 @@ + #include "is_blockdetection.h" + #include "inode_refers_to.h" + #include "journal.h" ++#include <limits> + + // Return std::numeric_limits<int>::max() if the inode is still allocated + // and refering to the given block, otherwise return the Journal sequence +--- src/ostream_operators.cc.orig 2008-11-09 18:53:05.000000000 +0100 ++++ src/ostream_operators.cc 2008-11-09 18:52:26.000000000 +0100 +@@ -31,6 +31,7 @@ + #include "endian_conversion.h" + #include "superblock.h" + #include "globals.h" ++#include <ctime> + + //----------------------------------------------------------------------------- + // +--- src/print_inode_to.cc 2008-10-17 03:27:15.000000000 +0200 ++++ src/print_inode_to.cc.new 2008-11-09 18:54:26.000000000 +0100 +@@ -30,6 +30,7 @@ + #include "FileMode.h" + #include "globals.h" + #include "print_symlink.h" ++#include <ctime> + + void print_inode_to(std::ostream& os, Inode const& inode) + { +--- src/restore.cc 2008-11-09 18:58:07.000000000 +0100 ++++ src/restore.cc.new 2008-11-09 18:58:17.000000000 +0100 +@@ -44,6 +44,9 @@ + #include "FileMode.h" + #include "indirect_blocks.h" + #include "print_symlink.h" ++#include <sys/types.h> ++#include <sys/stat.h> ++#include <fcntl.h> + + + #ifdef CPPGRAPH +--- src/show_journal_inodes.cc 2008-10-18 03:06:35.000000000 +0200 ++++ src/show_journal_inodes.cc.new 2008-11-09 18:58:59.000000000 +0100 +@@ -30,6 +30,7 @@ + + #include "journal.h" + #include "print_inode_to.h" ++#include <limits> + + void show_journal_inodes(int inodenr) + { diff --git a/sys-fs/ext3grep/metadata.xml b/sys-fs/ext3grep/metadata.xml new file mode 100644 index 000000000..e8468dfe0 --- /dev/null +++ b/sys-fs/ext3grep/metadata.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <herd>private-overlay</herd> + <maintainer> + <email>justin@j-schmitz.net</email> + <name>Justin Lecher</name> + </maintainer> + <maintainer> + <email>johann@j-schmitz.net</email> + <name>Johann Schmitz</name> + </maintainer> + <use> + <flag name='largefile'>Add support for files greater then 2gb on x86</flag> + <flag name='libcwd'>Debuging support</flag> + </use> +</pkgmetadata> + |