diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2017-10-09 18:53:29 +0100 |
commit | 4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch) | |
tree | ba5f07bf3f9d22d82e54a462313f5d244036c768 /app-forensics/foremost |
reinit the tree, so we can have metadata
Diffstat (limited to 'app-forensics/foremost')
-rw-r--r-- | app-forensics/foremost/Manifest | 10 | ||||
-rw-r--r-- | app-forensics/foremost/files/foremost-1.4-config-location.patch | 12 | ||||
-rw-r--r-- | app-forensics/foremost/files/foremost-1.5.7-format-security.patch | 22 | ||||
-rw-r--r-- | app-forensics/foremost/foremost-0.69.ebuild | 23 | ||||
-rw-r--r-- | app-forensics/foremost/foremost-1.5.7-r2.ebuild | 35 | ||||
-rw-r--r-- | app-forensics/foremost/foremost-1.5.7-r3.ebuild | 37 | ||||
-rw-r--r-- | app-forensics/foremost/metadata.xml | 10 |
7 files changed, 149 insertions, 0 deletions
diff --git a/app-forensics/foremost/Manifest b/app-forensics/foremost/Manifest new file mode 100644 index 000000000000..f2deffb5a9e0 --- /dev/null +++ b/app-forensics/foremost/Manifest @@ -0,0 +1,10 @@ +AUX foremost-1.4-config-location.patch 462 SHA256 43052e257b77f410e9c3594827612c6cc4805f5758d70e87a225856ca04d2932 SHA512 7b6dcc18cba4676ef4d54b87c9c31747754ecbebd9424340b2dd059495c9c6cec11513307fff802a336a99bc07c4bcd2ffcfad1c77ccdc49277ef7e40e30029e WHIRLPOOL 542c831ec2c76f6b19cd3128c21cd38ec4e822e5a5277278b75239cdef9f54c75796b1323eab7eff87cc9313386e5302e5bbe585f980edac023752c6438ee789 +AUX foremost-1.5.7-format-security.patch 680 SHA256 5e28cbc516e0b4ce959ec9ed42c35c55e9d6ad9d1eceb19bbf39ec81b885e5f2 SHA512 1c28ed1fceedec728a5060b195214fd3ec3b0fa529e87f7421ee72d73f71ecc0d48a69a5b5ff4c6179dd65781552fbd272437134498ec865bd5c620375b6f85b WHIRLPOOL 0987d9acda8a0f68e60fbca77dd50fc6756765e05af21f9270641410add430cb332010ef3f024c073ff7f50836e03023c83ce1ea1dc450445f01a819624022a9 +DIST foremost-0.69.tar.gz 27719 SHA256 de807aaf2ffb71d9d7ec296f66781aa5e426d2ae186a100a00ceedb0cd30ae03 SHA512 3d25e62995f7da0e47ffbd9b90ac2d1a6a870ae0e310eb46b8332e914372008c44abe6ef504f875de60d22cfdfac439e53ec65d7cae255d4a989ee9cfa1020b6 WHIRLPOOL 6435cb6fcdb89add7179910a707a52d89052db67daae58a18b754c6983420bdfcbb00219eb4d3e0684c290b0d9976a71c5a216f56a55fa93963ce91e83fcf6c0 +DIST foremost-1.5.7.tar.gz 52352 SHA256 502054ef212e3d90b292e99c7f7ac91f89f024720cd5a7e7680c3d1901ef5f34 SHA512 8827c29d52496783be26374f3943eb26a154d842f34e50fb489f87b3a5045bf85f1e44d7d8d8b12b2355ba3fe4b06a0db979cc22c0f431593c5976001eb931ab WHIRLPOOL 85224ce66845d01560810da3522d74d19ade08ac516b48ccac86892749e26c3bf464fe82abf30fd65f8d85b0712ba10d4c807084359c594e059a06752899b941 +EBUILD foremost-0.69.ebuild 588 SHA256 fe69fe6a9c939efa2a58036c1fabce3b48ec4c1aba8cac913c1f6645ba16a2f0 SHA512 9cdab48fdd07a34c81e891eefa22e14154c11937fe49a36a46ab5e087f138ef368dcb333d8660efb45ac1fdf962f497d340edf069934b850d26bebf542850d5c WHIRLPOOL b3ae8e2ab8d3bcdb15a92febfa4e1e594b777b6c87e82bc7fc9cb1d85e20f0ee9088026c81a4be5a5f46df5ce116a8b19ed63259b17f1e0c403b3f401d270580 +EBUILD foremost-1.5.7-r2.ebuild 847 SHA256 9d13e4196e7b7f22e5bb825dee1f8bd58e1563abc0eb5b57817b7d2aaad6d1d5 SHA512 470fc501414f9a6144910af890f9d7f6aa5f948e16b2a3dc3328c54d85490e82a94416f747b7b6c12ab6a00951405938e90a242fc52912fb5d766b071a76b28f WHIRLPOOL 25ad3ac3ed0798072075bb1216adfdf135337d7be1a13addc351ffba16f6e88795c4d43f8272b1107a225bd303eca5a579aca3eff2b5d3fa662b625fc73af8f7 +EBUILD foremost-1.5.7-r3.ebuild 890 SHA256 5771e4ea740aac58796bfb1ac1e1a7d8ab592b44a6ee834af02e844f608b5f3c SHA512 78967f04824c614d2830bbd0f3eef392ddc59e6cc0c634011bcfa9a12116f47f8a6b04b3b1586122572a89682ae739ff124fde07731b1dd4eb279a070effb496 WHIRLPOOL c04019cb9ca7cfec524fc6d15487a0c0017985fcb195730f7b6be55e842a90ef6c1d2448327ccfc90250b7f3c5db5a34b74ea2a614e1913c12c42c8f912ac3db +MISC ChangeLog 3191 SHA256 021598bc680ab1ae264960ad092991607b54b8656dd7f1a739656a907d3ce3bf SHA512 2b8834b5759b9b3bfdf20e8db2261e3ec7c62cd4a82d6f071d4e139f459a75cbaf44008e3cde996cc4966a8cb9c8ac2d9828e32b42624c550b56eeb5709eb2d2 WHIRLPOOL 37a015d1606ee8709c32d2164a10fb02ada2636b3fbf0566a8a5bd9f83fa481484dbc83b38f675b9a595783c7ac35ef1aba7164afec72e5c10626de33df7e6c1 +MISC ChangeLog-2015 4693 SHA256 b86c90ddc9d2768aac9c5f90b667563783bc195cd908e688df7af44451d50b39 SHA512 3fb7a92ebd4cb540e5e2739430743930999ad671a30e54f0467b063640a31411ae2c8fc7df3d40a4b5aa0a8df826bcd08d93f3efe2a1e772f7b698961e44a861 WHIRLPOOL 9cbe2a6160e437fe602c6038fcb5fda115dfeb20c296a364e12ab1398880f20579a67e4fc070cb5eef96c8c8675b5b74768bbf449f208815d90d375cb47109fc +MISC metadata.xml 303 SHA256 69eb222d81e08cf7744a61cb973798b647bbc96ca098475c1444dd1950e9f890 SHA512 165c108232c3a65d3fbeb0fb2f612c7c4c4c16a57e4b3e280c4ef40d6a586b56df437454283ff5b52fa3a0880d9643682493b3d75cac01170edab53bb5f1ce52 WHIRLPOOL d0c71fb5201e83cee3cfc7e13ea4cf7ed22c5f97eab7aa1e168059f44771822577f43e4fb376ced2f8a7172f83f990378787c3739e7d0af6142a96852e8df467 diff --git a/app-forensics/foremost/files/foremost-1.4-config-location.patch b/app-forensics/foremost/files/foremost-1.4-config-location.patch new file mode 100644 index 000000000000..95372e1af9c0 --- /dev/null +++ b/app-forensics/foremost/files/foremost-1.4-config-location.patch @@ -0,0 +1,12 @@ +diff -uNr foremost-1.4.orig/config.c foremost-1.4/config.c +--- foremost-1.4.orig/config.c 2006-08-31 17:50:47.000000000 +0100 ++++ foremost-1.4/config.c 2006-08-31 17:51:09.000000000 +0100 +@@ -288,7 +288,7 @@ + #ifdef __WIN32 + set_config_file(s, "/Program Files/foremost/foremost.conf"); + #else +- set_config_file(s, "/usr/local/etc/foremost.conf"); ++ set_config_file(s, "/etc/foremost.conf"); + #endif + if ((f = fopen(get_config_file(s), "r")) == NULL) + { diff --git a/app-forensics/foremost/files/foremost-1.5.7-format-security.patch b/app-forensics/foremost/files/foremost-1.5.7-format-security.patch new file mode 100644 index 000000000000..32d1a4d3c7f6 --- /dev/null +++ b/app-forensics/foremost/files/foremost-1.5.7-format-security.patch @@ -0,0 +1,22 @@ +diff --git a/extract.c b/extract.c +index 30bdf54..9639117 100755 +--- a/extract.c ++++ b/extract.c +@@ -2110,7 +2110,6 @@ unsigned char *extract_exe(f_state *s, u_int64_t c_offset, unsigned char *founda + int i = 0; + time_t compile_time = 0; + struct tm *ret_time; +- char comment[32]; + char ascii_time[32]; + + if (buflen < 100) +@@ -2145,8 +2144,7 @@ unsigned char *extract_exe(f_state *s, u_int64_t c_offset, unsigned char *founda + ret_time->tm_sec); + chop(ascii_time); + +- sprintf(comment, ascii_time); +- strcat(needle->comment, comment); ++ strcat(needle->comment, ascii_time); + exe_char = htos(&foundat[22], FOREMOST_LITTLE_ENDIAN); + if (exe_char & 0x2000) + { diff --git a/app-forensics/foremost/foremost-0.69.ebuild b/app-forensics/foremost/foremost-0.69.ebuild new file mode 100644 index 000000000000..e24f7fa122b3 --- /dev/null +++ b/app-forensics/foremost/foremost-0.69.ebuild @@ -0,0 +1,23 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +inherit toolchain-funcs + +DESCRIPTION="A console program to recover files based on their headers and footers" +HOMEPAGE="http://foremost.sourceforge.net/" +SRC_URI="http://foremost.sourceforge.net/pkg/${P}.tar.gz" + +KEYWORDS="~amd64 ppc x86" +IUSE="" +LICENSE="public-domain" +SLOT="0" + +src_compile() { + emake CC_OPTS="${CFLAGS}" CC="$(tc-getCC)" || die "emake failed" +} + +src_install() { + dobin foremost || die "dobin failed" + doman foremost.1 + dodoc foremost.conf README CHANGES TODO +} diff --git a/app-forensics/foremost/foremost-1.5.7-r2.ebuild b/app-forensics/foremost/foremost-1.5.7-r2.ebuild new file mode 100644 index 000000000000..5bb7b1464fb3 --- /dev/null +++ b/app-forensics/foremost/foremost-1.5.7-r2.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2015 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=4 + +inherit eutils toolchain-funcs + +DESCRIPTION="A console program to recover files based on their headers and footers" +HOMEPAGE="http://foremost.sourceforge.net/" +#SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" +# starting to hate sf.net ... +SRC_URI="http://foremost.sourceforge.net/pkg/${P}.tar.gz" + +KEYWORDS="amd64 ppc x86" +IUSE="" +LICENSE="public-domain" +SLOT="0" + +src_prepare() { + epatch "${FILESDIR}/${PN}-1.4-config-location.patch" + epatch "${FILESDIR}/${PN}-1.5.7-format-security.patch" +} + +src_compile() { + emake RAW_FLAGS="${CFLAGS} -Wall ${LDFLAGS}" RAW_CC="$(tc-getCC) -DVERSION=\\\"${PV}\\\"" \ + CONF=/etc +} + +src_install() { + dobin foremost + doman foremost.8.gz + insinto /etc + doins foremost.conf + dodoc README CHANGES +} diff --git a/app-forensics/foremost/foremost-1.5.7-r3.ebuild b/app-forensics/foremost/foremost-1.5.7-r3.ebuild new file mode 100644 index 000000000000..69d67a469d2d --- /dev/null +++ b/app-forensics/foremost/foremost-1.5.7-r3.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +inherit eutils toolchain-funcs + +DESCRIPTION="A console program to recover files based on their headers and footers" +HOMEPAGE="http://foremost.sourceforge.net/" +#SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" +# starting to hate sf.net ... +SRC_URI="http://foremost.sourceforge.net/pkg/${P}.tar.gz" + +KEYWORDS="~amd64 ~ppc ~x86" +IUSE="" +LICENSE="public-domain" +SLOT="0" + +src_prepare() { + epatch "${FILESDIR}/${PN}-1.4-config-location.patch" + epatch "${FILESDIR}/${PN}-1.5.7-format-security.patch" + default_src_prepare +} + +src_compile() { + emake RAW_FLAGS="${CFLAGS} -Wall ${LDFLAGS}" RAW_CC="$(tc-getCC) -DVERSION=\\\"${PV}\\\"" \ + CONF=/etc +} + +src_install() { + dobin foremost + gunzip foremost.8.gz + doman foremost.8 + insinto /etc + doins foremost.conf + dodoc README CHANGES +} diff --git a/app-forensics/foremost/metadata.xml b/app-forensics/foremost/metadata.xml new file mode 100644 index 000000000000..b06edf62c087 --- /dev/null +++ b/app-forensics/foremost/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>ikelos@gentoo.org</email> + </maintainer> + <upstream> + <remote-id type="sourceforge">foremost</remote-id> + </upstream> +</pkgmetadata> |