[gentoo-commits] repo/gentoo:master commit in: app-forensics/foremost/

2024-05-05 Thread Conrad Kostecki
commit: f0663fa9c241e8cc8ac55806f74cff82c37d389f
Author: Michael Mair-Keimberger  levelnine  at>
AuthorDate: Sun May  5 16:45:53 2024 +
Commit: Conrad Kostecki  gentoo  org>
CommitDate: Sun May  5 18:56:06 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f0663fa9

app-forensics/foremost: use HTTPS

Signed-off-by: Michael Mair-Keimberger  levelnine.at>
Signed-off-by: Conrad Kostecki  gentoo.org>

 app-forensics/foremost/foremost-1.5.7-r4.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/app-forensics/foremost/foremost-1.5.7-r4.ebuild 
b/app-forensics/foremost/foremost-1.5.7-r4.ebuild
index 3e049658452f..8175620881ee 100644
--- a/app-forensics/foremost/foremost-1.5.7-r4.ebuild
+++ b/app-forensics/foremost/foremost-1.5.7-r4.ebuild
@@ -6,10 +6,10 @@ EAPI=7
 inherit toolchain-funcs prefix
 
 DESCRIPTION="Console program to recover files based on their headers and 
footers"
-HOMEPAGE="http://foremost.sourceforge.net/;
+HOMEPAGE="https://foremost.sourceforge.net/;
 #SRC_URI="https://downloads.sourceforge.net/${PN}/${P}.tar.gz;
 # starting to hate sf.net ...
-SRC_URI="http://foremost.sourceforge.net/pkg/${P}.tar.gz;
+SRC_URI="https://foremost.sourceforge.net/pkg/${P}.tar.gz;
 
 LICENSE="public-domain"
 SLOT="0"



[gentoo-commits] repo/gentoo:master commit in: app-forensics/foremost/

2024-03-02 Thread Andreas K. Hüttel
commit: 0c5d0dccb656bacf693045229a74c7a385622620
Author: Andreas K. Hüttel  gentoo  org>
AuthorDate: Sat Mar  2 23:58:56 2024 +
Commit: Andreas K. Hüttel  gentoo  org>
CommitDate: Sat Mar  2 23:58:56 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0c5d0dcc

app-forensics/foremost: Apply musl-1.2.4 largefile workaround

Bug: https://bugs.gentoo.org/906187
Signed-off-by: Andreas K. Hüttel  gentoo.org>

 app-forensics/foremost/foremost-1.5.7-r4.ebuild | 7 ---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/app-forensics/foremost/foremost-1.5.7-r4.ebuild 
b/app-forensics/foremost/foremost-1.5.7-r4.ebuild
index 38ddba4b3495..0f553f7f35d8 100644
--- a/app-forensics/foremost/foremost-1.5.7-r4.ebuild
+++ b/app-forensics/foremost/foremost-1.5.7-r4.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=7
@@ -14,7 +14,6 @@ SRC_URI="http://foremost.sourceforge.net/pkg/${P}.tar.gz;
 LICENSE="public-domain"
 SLOT="0"
 KEYWORDS="amd64 ppc x86 ~arm64-macos ~x64-macos"
-IUSE=""
 
 src_prepare() {
PATCHES=(
@@ -30,8 +29,10 @@ src_prepare() {
 }
 
 src_compile() {
+   # see also bug 906187
+
emake \
-   RAW_FLAGS="${CFLAGS} -Wall ${LDFLAGS}" \
+   RAW_FLAGS="${CFLAGS} -Wall ${LDFLAGS} -D_LARGEFILE64_SOURCE" \
RAW_CC="$(tc-getCC) -DVERSION=\\\"${PV}\\\"" \
CONF=/etc
 }



[gentoo-commits] repo/gentoo:master commit in: app-forensics/foremost/

2024-03-02 Thread Andreas K. Hüttel
commit: 7133c7d8f044d094257684ab69434e84a84c586f
Author: Andreas K. Hüttel  gentoo  org>
AuthorDate: Sat Mar  2 23:57:36 2024 +
Commit: Andreas K. Hüttel  gentoo  org>
CommitDate: Sat Mar  2 23:57:36 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7133c7d8

app-forensics/foremost: drop 1.5.7-r3

Signed-off-by: Andreas K. Hüttel  gentoo.org>

 app-forensics/foremost/foremost-1.5.7-r3.ebuild | 41 -
 1 file changed, 41 deletions(-)

diff --git a/app-forensics/foremost/foremost-1.5.7-r3.ebuild 
b/app-forensics/foremost/foremost-1.5.7-r3.ebuild
deleted file mode 100644
index 7e998708b14f..
--- a/app-forensics/foremost/foremost-1.5.7-r3.ebuild
+++ /dev/null
@@ -1,41 +0,0 @@
-# Copyright 1999-2022 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=7
-
-inherit toolchain-funcs
-
-DESCRIPTION="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;
-
-LICENSE="public-domain"
-SLOT="0"
-KEYWORDS="amd64 ppc x86"
-IUSE=""
-
-PATCHES=(
-   "${FILESDIR}/${PN}-1.4-config-location.patch"
-   "${FILESDIR}/${PN}-1.5.7-format-security.patch" # bug 521038
-   "${FILESDIR}/${PN}-1.5.7-set-but-unused.patch" # bug 706886
-   "${FILESDIR}/${PN}-1.5.7-fno-common.patch" # bug 722196
-   "${FILESDIR}/${PN}-1.5.7-musl.patch" # bug 830473
-)
-
-src_compile() {
-   emake \
-   RAW_FLAGS="${CFLAGS} -Wall ${LDFLAGS}" \
-   RAW_CC="$(tc-getCC) -DVERSION=\\\"${PV}\\\"" \
-   CONF=/etc
-}
-
-src_install() {
-   dobin foremost
-   gunzip foremost.8.gz || die
-   doman foremost.8
-   insinto /etc
-   doins foremost.conf
-   dodoc README CHANGES
-}



[gentoo-commits] repo/gentoo:master commit in: app-forensics/foremost/

2023-12-01 Thread Arthur Zamarin
commit: 790b3a7bd81276616b3dcb8c1d896bc3f8beb38b
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Fri Dec  1 19:41:32 2023 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Fri Dec  1 19:41:32 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=790b3a7b

app-forensics/foremost: Stabilize 1.5.7-r4 ppc, #914516

Signed-off-by: Arthur Zamarin  gentoo.org>

 app-forensics/foremost/foremost-1.5.7-r4.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-forensics/foremost/foremost-1.5.7-r4.ebuild 
b/app-forensics/foremost/foremost-1.5.7-r4.ebuild
index 8175f78724b1..38ddba4b3495 100644
--- a/app-forensics/foremost/foremost-1.5.7-r4.ebuild
+++ b/app-forensics/foremost/foremost-1.5.7-r4.ebuild
@@ -13,7 +13,7 @@ SRC_URI="http://foremost.sourceforge.net/pkg/${P}.tar.gz;
 
 LICENSE="public-domain"
 SLOT="0"
-KEYWORDS="amd64 ~ppc x86 ~arm64-macos ~x64-macos"
+KEYWORDS="amd64 ppc x86 ~arm64-macos ~x64-macos"
 IUSE=""
 
 src_prepare() {



[gentoo-commits] repo/gentoo:master commit in: app-forensics/foremost/

2023-09-22 Thread Arthur Zamarin
commit: c71a9c6719769073f6ef584d923f1ea05ef62138
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Fri Sep 22 12:14:05 2023 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Fri Sep 22 12:14:05 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c71a9c67

app-forensics/foremost: Stabilize 1.5.7-r4 x86, #914516

Signed-off-by: Arthur Zamarin  gentoo.org>

 app-forensics/foremost/foremost-1.5.7-r4.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-forensics/foremost/foremost-1.5.7-r4.ebuild 
b/app-forensics/foremost/foremost-1.5.7-r4.ebuild
index 5592ecf60186..8175f78724b1 100644
--- a/app-forensics/foremost/foremost-1.5.7-r4.ebuild
+++ b/app-forensics/foremost/foremost-1.5.7-r4.ebuild
@@ -13,7 +13,7 @@ SRC_URI="http://foremost.sourceforge.net/pkg/${P}.tar.gz;
 
 LICENSE="public-domain"
 SLOT="0"
-KEYWORDS="amd64 ~ppc ~x86 ~arm64-macos ~x64-macos"
+KEYWORDS="amd64 ~ppc x86 ~arm64-macos ~x64-macos"
 IUSE=""
 
 src_prepare() {



[gentoo-commits] repo/gentoo:master commit in: app-forensics/foremost/

2023-09-22 Thread Arthur Zamarin
commit: f4fcf6d1e3a78e8d6530e56245d7ffead292ae6e
Author: Arthur Zamarin  gentoo  org>
AuthorDate: Fri Sep 22 09:49:51 2023 +
Commit: Arthur Zamarin  gentoo  org>
CommitDate: Fri Sep 22 09:49:51 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f4fcf6d1

app-forensics/foremost: Stabilize 1.5.7-r4 amd64, #914516

Signed-off-by: Arthur Zamarin  gentoo.org>

 app-forensics/foremost/foremost-1.5.7-r4.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-forensics/foremost/foremost-1.5.7-r4.ebuild 
b/app-forensics/foremost/foremost-1.5.7-r4.ebuild
index 7efec700c421..5592ecf60186 100644
--- a/app-forensics/foremost/foremost-1.5.7-r4.ebuild
+++ b/app-forensics/foremost/foremost-1.5.7-r4.ebuild
@@ -13,7 +13,7 @@ SRC_URI="http://foremost.sourceforge.net/pkg/${P}.tar.gz;
 
 LICENSE="public-domain"
 SLOT="0"
-KEYWORDS="~amd64 ~ppc ~x86 ~arm64-macos ~x64-macos"
+KEYWORDS="amd64 ~ppc ~x86 ~arm64-macos ~x64-macos"
 IUSE=""
 
 src_prepare() {



[gentoo-commits] repo/gentoo:master commit in: app-forensics/foremost/files/

2023-07-30 Thread Benda XU
commit: cbb557262a820ed960408d225152bc5ccaab3bcf
Author: Benda Xu  gentoo  org>
AuthorDate: Sun Jul 30 11:11:41 2023 +
Commit: Benda XU  gentoo  org>
CommitDate: Sun Jul 30 11:52:27 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cbb55726

app-forensics/foremost: simplify the musl patch.

This make it work also for Darwin.

Bug: https://bugs.gentoo.org/830473
Signed-off-by: Benda Xu  gentoo.org>

 .../foremost/files/foremost-1.5.7-musl.patch   | 76 --
 1 file changed, 14 insertions(+), 62 deletions(-)

diff --git a/app-forensics/foremost/files/foremost-1.5.7-musl.patch 
b/app-forensics/foremost/files/foremost-1.5.7-musl.patch
index 0f8994b2328f..18bca055c584 100644
--- a/app-forensics/foremost/files/foremost-1.5.7-musl.patch
+++ b/app-forensics/foremost/files/foremost-1.5.7-musl.patch
@@ -1,78 +1,30 @@
 a/cli.c
-+++ b/cli.c
-@@ -4,7 +4,7 @@
- 
- void fatal_error (f_state * s, char *msg)
-   {
--  fprintf(stderr, "%s: %s%s", __progname, msg, NEWLINE);
-+  fprintf(stderr, "%s: %s%s", program_invocation_short_name, msg, 
NEWLINE);
-   if (get_audit_file_open(s))
-   {
-   audit_msg(s, msg);
-@@ -16,7 +16,7 @@
- void print_error(f_state *s, char *fn, char *msg)
- {
-   if (!(get_mode(s, mode_quiet)))
--  fprintf(stderr, "%s: %s: %s%s", __progname, fn, msg, NEWLINE);
-+  fprintf(stderr, "%s: %s: %s%s", program_invocation_short_name, 
fn, msg, NEWLINE);
- }
- 
- void print_message(f_state *s, char *format, va_list argp)
 a/helpers.c
-+++ b/helpers.c
-@@ -133,7 +133,7 @@
-   if (ioctl(fd, BLKGETSIZE, _sectors))
-   {
-   #if defined(__DEBUG)
--  fprintf(stderr, "%s: ioctl call to BLKGETSIZE 
failed.%s", __progname, NEWLINE);
-+  fprintf(stderr, "%s: ioctl call to BLKGETSIZE 
failed.%s", program_invocation_short_name, NEWLINE);
-   #endif
-   }
-   else
 a/main.c
-+++ b/main.c
-@@ -55,18 +55,18 @@
- 
- void try_msg(void)
- {
--  fprintf(stderr, "Try `%s -h` for more information.%s", __progname, 
NEWLINE);
-+  fprintf(stderr, "Try `%s -h` for more information.%s", 
program_invocation_short_name, NEWLINE);
- }
- 
- /* The usage function should, at most, display 22 lines of text to fit
-on a single screen */
- void usage(void)
- {
--  fprintf(stderr, "%s version %s by %s.%s", __progname, VERSION, AUTHOR, 
NEWLINE);
-+  fprintf(stderr, "%s version %s by %s.%s", 
program_invocation_short_name, VERSION, AUTHOR, NEWLINE);
-   fprintf(stderr,
-   "%s %s [-v|-V|-h|-T|-Q|-q|-a|-w-d] [-t ] [-s 
] [-k ] \n\t[-b ] [-c ] [-o ] [-i 

[gentoo-commits] repo/gentoo:master commit in: app-forensics/foremost/

2023-07-30 Thread Benda XU
commit: 9a6ec44dcc26a52c273ac0a2d0826052c0607c24
Author: Benda Xu  gentoo  org>
AuthorDate: Sun Jul 30 11:46:49 2023 +
Commit: Benda XU  gentoo  org>
CommitDate: Sun Jul 30 11:52:29 2023 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9a6ec44d

app-forensics/foremost: support Prefix and keyword {x64,arm64}-macos

Signed-off-by: Benda Xu  gentoo.org>

 app-forensics/foremost/foremost-1.5.7-r4.ebuild | 46 +
 1 file changed, 46 insertions(+)

diff --git a/app-forensics/foremost/foremost-1.5.7-r4.ebuild 
b/app-forensics/foremost/foremost-1.5.7-r4.ebuild
new file mode 100644
index ..7efec700c421
--- /dev/null
+++ b/app-forensics/foremost/foremost-1.5.7-r4.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit toolchain-funcs prefix
+
+DESCRIPTION="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;
+
+LICENSE="public-domain"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86 ~arm64-macos ~x64-macos"
+IUSE=""
+
+src_prepare() {
+   PATCHES=(
+   "${FILESDIR}/${PN}-1.4-config-location.patch"
+   "${FILESDIR}/${PN}-1.5.7-format-security.patch" # bug 521038
+   "${FILESDIR}/${PN}-1.5.7-set-but-unused.patch" # bug 706886
+   "${FILESDIR}/${PN}-1.5.7-fno-common.patch" # bug 722196
+   "${FILESDIR}/${PN}-1.5.7-musl.patch" # bug 830473
+   )
+
+   default
+   hprefixify config.c
+}
+
+src_compile() {
+   emake \
+   RAW_FLAGS="${CFLAGS} -Wall ${LDFLAGS}" \
+   RAW_CC="$(tc-getCC) -DVERSION=\\\"${PV}\\\"" \
+   CONF=/etc
+}
+
+src_install() {
+   dobin foremost
+   gunzip foremost.8.gz || die
+   doman foremost.8
+   insinto /etc
+   doins foremost.conf
+   dodoc README CHANGES
+}



[gentoo-commits] repo/gentoo:master commit in: app-forensics/foremost/files/, app-forensics/foremost/

2022-07-13 Thread David Seifert
commit: 231b90fbc3ab287472363374377241a4eacf24cd
Author: David Seifert  gentoo  org>
AuthorDate: Wed Jul 13 18:12:06 2022 +
Commit: David Seifert  gentoo  org>
CommitDate: Wed Jul 13 18:12:06 2022 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=231b90fb

app-forensics/foremost: fix musl build

Closes: https://bugs.gentoo.org/830473
Signed-off-by: David Seifert  gentoo.org>

 .../foremost/files/foremost-1.5.7-musl.patch   | 81 ++
 app-forensics/foremost/foremost-1.5.7-r3.ebuild|  3 +-
 2 files changed, 83 insertions(+), 1 deletion(-)

diff --git a/app-forensics/foremost/files/foremost-1.5.7-musl.patch 
b/app-forensics/foremost/files/foremost-1.5.7-musl.patch
new file mode 100644
index ..0f8994b2328f
--- /dev/null
+++ b/app-forensics/foremost/files/foremost-1.5.7-musl.patch
@@ -0,0 +1,81 @@
+--- a/cli.c
 b/cli.c
+@@ -4,7 +4,7 @@
+ 
+ void fatal_error (f_state * s, char *msg)
+   {
+-  fprintf(stderr, "%s: %s%s", __progname, msg, NEWLINE);
++  fprintf(stderr, "%s: %s%s", program_invocation_short_name, msg, 
NEWLINE);
+   if (get_audit_file_open(s))
+   {
+   audit_msg(s, msg);
+@@ -16,7 +16,7 @@
+ void print_error(f_state *s, char *fn, char *msg)
+ {
+   if (!(get_mode(s, mode_quiet)))
+-  fprintf(stderr, "%s: %s: %s%s", __progname, fn, msg, NEWLINE);
++  fprintf(stderr, "%s: %s: %s%s", program_invocation_short_name, 
fn, msg, NEWLINE);
+ }
+ 
+ void print_message(f_state *s, char *format, va_list argp)
+--- a/helpers.c
 b/helpers.c
+@@ -133,7 +133,7 @@
+   if (ioctl(fd, BLKGETSIZE, _sectors))
+   {
+   #if defined(__DEBUG)
+-  fprintf(stderr, "%s: ioctl call to BLKGETSIZE 
failed.%s", __progname, NEWLINE);
++  fprintf(stderr, "%s: ioctl call to BLKGETSIZE 
failed.%s", program_invocation_short_name, NEWLINE);
+   #endif
+   }
+   else
+--- a/main.c
 b/main.c
+@@ -55,18 +55,18 @@
+ 
+ void try_msg(void)
+ {
+-  fprintf(stderr, "Try `%s -h` for more information.%s", __progname, 
NEWLINE);
++  fprintf(stderr, "Try `%s -h` for more information.%s", 
program_invocation_short_name, NEWLINE);
+ }
+ 
+ /* The usage function should, at most, display 22 lines of text to fit
+on a single screen */
+ void usage(void)
+ {
+-  fprintf(stderr, "%s version %s by %s.%s", __progname, VERSION, AUTHOR, 
NEWLINE);
++  fprintf(stderr, "%s version %s by %s.%s", 
program_invocation_short_name, VERSION, AUTHOR, NEWLINE);
+   fprintf(stderr,
+   "%s %s [-v|-V|-h|-T|-Q|-q|-a|-w-d] [-t ] [-s 
] [-k ] \n\t[-b ] [-c ] [-o ] [-i 

[gentoo-commits] repo/gentoo:master commit in: app-forensics/foremost/files/, app-forensics/foremost/

2020-08-28 Thread Andreas Sturmlechner
commit: 5f27cd2cfe23e244fc8164a2fec14dcf07c0dda6
Author: Andreas Sturmlechner  gentoo  org>
AuthorDate: Fri Aug 28 20:55:20 2020 +
Commit: Andreas Sturmlechner  gentoo  org>
CommitDate: Fri Aug 28 21:02:23 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5f27cd2c

app-forensics/foremost: Fix build with GCC-10/-fno-common

- EAPI-7 bump
- Drop unused eutils.eclass
- Drop filler word from description
- Apply best practice to LICENSE-SLOT-KEYWORDS-IUSE
- Break up emake block with some newlines
- Fix PATCHES indendation
- Add missing || die

Closes: https://bugs.gentoo.org/722196
Package-Manager: Portage-3.0.4, Repoman-3.0.1
Signed-off-by: Andreas Sturmlechner  gentoo.org>

 .../foremost/files/foremost-1.5.7-fno-common.patch | 99 ++
 app-forensics/foremost/foremost-1.5.7-r3.ebuild| 26 +++---
 2 files changed, 115 insertions(+), 10 deletions(-)

diff --git a/app-forensics/foremost/files/foremost-1.5.7-fno-common.patch 
b/app-forensics/foremost/files/foremost-1.5.7-fno-common.patch
new file mode 100644
index 000..8506f59cf95
--- /dev/null
+++ b/app-forensics/foremost/files/foremost-1.5.7-fno-common.patch
@@ -0,0 +1,99 @@
+diff -up foremost-1.5.7/api.c.me foremost-1.5.7/api.c
+--- foremost-1.5.7/api.c.me2020-02-06 14:15:48.218200745 +0100
 foremost-1.5.7/api.c   2020-02-06 14:16:42.624853860 +0100
+@@ -20,6 +20,7 @@ int  currFATblk;
+ int   highblk = 0;
+ int   block_list[OUR_BLK_SIZE / sizeof(int)];
+ extern interrno;
++struct DIRECTORY *dirlist, *dl;
+ 
+ /*Inititialize those globals used by extract_ole*/
+ void init_ole()
+diff -up foremost-1.5.7/extract.c.me foremost-1.5.7/extract.c
+--- foremost-1.5.7/extract.c.me2020-02-06 14:10:30.446386101 +0100
 foremost-1.5.7/extract.c   2020-02-06 14:15:14.736798823 +0100
+@@ -25,6 +25,7 @@ extern char *extract_name;
+ extern intextract;
+ extern intFATblk;
+ extern inthighblk;
++extern struct DIRECTORY *dirlist, *dl;
+ 
+ 
/
+  *Function: extract_zip
+diff -up foremost-1.5.7/main.h.me foremost-1.5.7/main.h
+--- foremost-1.5.7/main.h.me   2020-02-06 13:48:46.923922983 +0100
 foremost-1.5.7/main.h  2020-02-06 13:50:08.001849830 +0100
+@@ -292,7 +292,7 @@ char *__progname;
+ /* -
+State Variable and Global Variables
+- */
+-char wildcard;
++extern char wildcard;
+ typedef struct f_state 
+ {
+   off_t mode;
+@@ -344,7 +344,7 @@ typedef struct s_spec
+ int written; /*used for -a mode*/
+ }s_spec;
+ 
+-s_spec search_spec[50];  /*ARRAY OF BUILTIN SEARCH TYPES*/
++extern s_spec search_spec[50];  /*ARRAY OF BUILTIN SEARCH TYPES*/
+ 
+ typedef struct f_info {
+   char *file_name;
+@@ -367,7 +367,7 @@ typedef struct f_info {
+ } f_info;
+ 
+ /* Set if the user hits ctrl-c */
+-int signal_caught;
++extern int signal_caught;
+ 
+ /* -
+Function definitions
+@@ -433,7 +433,7 @@ off_t find_file_size(FILE *f);
+ char *human_readable(off_t size, char *buffer);
+ char *units(unsigned int c);
+ unsigned int chop(char *buf);
+-void print_search_specs(f_state *s);
++extern void print_search_specs(f_state *s);
+ int memwildcardcmp(const void *s1, const void *s2,size_t n,int caseSensitive);
+ int charactersMatch(char a, char b, int caseSensitive);
+ void printx(unsigned char* buf,int start, int end);
+diff -up foremost-1.5.7/ole.h.me foremost-1.5.7/ole.h
+--- foremost-1.5.7/ole.h.me2020-02-06 14:08:16.524783353 +0100
 foremost-1.5.7/ole.h   2020-02-06 14:10:02.954056080 +0100
+@@ -84,8 +84,8 @@ struct DIRECTORY
+   int s2;
+   int d1;
+   int d2;
+-}
+-*dirlist, *dl;
++};
++
+ 
+ int   get_dir_block(unsigned char *fd, int blknum, 
int buffersize);
+ int   get_dir_info(unsigned char *src);
+diff -up foremost-1.5.7/state.c.me foremost-1.5.7/state.c
+--- foremost-1.5.7/state.c.me  2020-02-06 14:06:44.514684887 +0100
 foremost-1.5.7/state.c 2020-02-06 14:08:03.329625827 +0100
+@@ -2,6 +2,9 @@
+ 
+ #include "main.h"
+ 
++s_spec search_spec[50];
++char wildcard;
++
+ int initialize_state (f_state * s, int argc, char **argv)
+   {
+   char**argv_copy = argv;
+diff -up foremost-1.5.7/main.c.me foremost-1.5.7/main.c
+--- foremost-1.5.7/main.c.me   2020-02-06 14:20:09.918342282 +0100
 foremost-1.5.7/main.c  2020-02-06 14:20:42.531733786 +0100
+@@ -15,6 +15,7 @@
+  *
+  */
+ #include "main.h"
++int signal_caught;
+ 
+ #ifdef __WIN32
+ 

diff --git a/app-forensics/foremost/foremost-1.5.7-r3.ebuild 
b/app-forensics/foremost/foremost-1.5.7-r3.ebuild
index 56cdeee6ed5..c3742c31553 100644

[gentoo-commits] repo/gentoo:master commit in: app-forensics/foremost/files/, app-forensics/foremost/

2020-05-10 Thread Mike Auty
commit: f165f8e07e457725b89c1ab479bf987f3af6c1cf
Author: Mike Auty  gentoo  org>
AuthorDate: Sun May 10 11:51:45 2020 +
Commit: Mike Auty  gentoo  org>
CommitDate: Sun May 10 11:51:45 2020 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f165f8e0

app-forensics/foremost: Fixes issue 706886

Package-Manager: Portage-2.3.99, Repoman-2.3.22
Signed-off-by: Mike Auty  gentoo.org>

 .../files/foremost-1.5.7-set-but-unused.patch  | 230 +
 app-forensics/foremost/foremost-1.5.7-r3.ebuild|  11 +-
 2 files changed, 234 insertions(+), 7 deletions(-)

diff --git a/app-forensics/foremost/files/foremost-1.5.7-set-but-unused.patch 
b/app-forensics/foremost/files/foremost-1.5.7-set-but-unused.patch
new file mode 100644
index 000..59b52c68615
--- /dev/null
+++ b/app-forensics/foremost/files/foremost-1.5.7-set-but-unused.patch
@@ -0,0 +1,230 @@
+diff --git a/api.c b/api.c
+index e3ee339..67463a6 100755
+--- a/api.c
 b/api.c
+@@ -478,7 +478,7 @@ int dump_dirent(int which_one)
+ {
+   int i;
+   char*p;
+-  short   unknown;
++  // shortunknown;
+   struct OLE_DIR  *dir;
+ 
+   dir = (struct OLE_DIR *) [which_one * sizeof(struct OLE_DIR)];
+@@ -493,7 +493,7 @@ int dump_dirent(int which_one)
+   p = dir->name;
+   if (*p < ' ')
+   {
+-  unknown = *((short *)p);
++  //unknown = *((short *)p);
+ 
+   //fprintf (stderr, "%04x\t", unknown);
+   p += 2; /* step over unknown short */
+diff --git a/engine.c b/engine.c
+index 85add5f..4a1ef13 100755
+--- a/engine.c
 b/engine.c
+@@ -316,7 +316,6 @@ int search_chunk(f_state *s, unsigned char *buf, f_info 
*i, u_int64_t chunk_size
+   //u_int64_t   buf_off = 0;
+ 
+   unsigned char   *foundat = buf;
+-  unsigned char   *current_pos = NULL;
+   unsigned char   *header_pos = NULL;
+   unsigned char   *newbuf = NULL;
+   unsigned char   *ind_ptr = NULL;
+@@ -461,7 +460,6 @@ int search_chunk(f_state *s, unsigned char *buf, f_info 
*i, u_int64_t chunk_size
+   }
+ 
+   c_offset = (foundat - buf);
+-  current_pos = foundat;
+ 
+   /*Now lets analyze the file and see if we can 
determine its size*/
+ 
+@@ -511,12 +509,12 @@ int search_chunk(f_state *s, unsigned char *buf, f_info 
*i, u_int64_t chunk_size
+   newbuf = 
read_from_disk(c_offset + f_offset, i, needle->max_len);
+   if (newbuf == NULL)
+   break;
+-  current_pos = extract_file(s,
+-  
   c_offset,
+-  
   newbuf,
+-  
   needle->max_len,
+-  
   needle,
+-  
   f_offset);
++  extract_file(s,
++ c_offset,
++ newbuf,
++ 
needle->max_len,
++ needle,
++ f_offset);
+   
+   /*Lets put the fp back*/
+   fseeko(i->handle, saveme, 
SEEK_SET);
+diff --git a/extract.c b/extract.c
+index 9639117..4fecde5 100755
+--- a/extract.c
 b/extract.c
+@@ -553,7 +553,6 @@ unsigned char *extract_htm(f_state *s, u_int64_t c_offset, 
unsigned char *founda
+ {
+   unsigned char   *buf = foundat;
+   unsigned char   *extractbuf = NULL;
+-  unsigned char   *currentpos = NULL;
+ 
+   int bytes_to_search = 0;
+   int i = 0;
+@@ -582,7 +581,6 @@ unsigned char *extract_htm(f_state *s, u_int64_t c_offset, 
unsigned char *founda
+   }
+ 
+   /*Store the current position and search for the HTML> tag*/
+-  currentpos = foundat;
+   foundat = bm_search(needle->footer,
+   needle->footer_len,
+   foundat,
+@@ -1146,15 +1144,15 @@ unsigned char 

[gentoo-commits] repo/gentoo:master commit in: app-forensics/foremost/

2018-10-15 Thread Mike Auty
commit: 5357f1605c1f99ad51e50c72fe6ff6e33f1da71c
Author: Mike Auty  gentoo  org>
AuthorDate: Mon Oct 15 23:35:31 2018 +
Commit: Mike Auty  gentoo  org>
CommitDate: Mon Oct 15 23:38:28 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5357f160

app-forensics/foremost: Remove old package with QA issue.

Fixes bug 619928.

Package-Manager: Portage-2.3.51, Repoman-2.3.11
Signed-off-by: Mike Auty  gentoo.org>

 app-forensics/foremost/foremost-1.5.7-r2.ebuild | 35 -
 1 file changed, 35 deletions(-)

diff --git a/app-forensics/foremost/foremost-1.5.7-r2.ebuild 
b/app-forensics/foremost/foremost-1.5.7-r2.ebuild
deleted file mode 100644
index 5bb7b1464fb..000
--- a/app-forensics/foremost/foremost-1.5.7-r2.ebuild
+++ /dev/null
@@ -1,35 +0,0 @@
-# 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
-}



[gentoo-commits] repo/gentoo:master commit in: app-forensics/foremost/

2018-10-14 Thread Sergei Trofimovich
commit: 4804f2de95d63ef6e0768fa0f8fb8d3b8297e464
Author: Sergei Trofimovich  gentoo  org>
AuthorDate: Sun Oct 14 08:53:59 2018 +
Commit: Sergei Trofimovich  gentoo  org>
CommitDate: Sun Oct 14 08:53:59 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4804f2de

app-forensics/foremost: stable 1.5.7-r3 for ppc, bug #662642

Signed-off-by: Sergei Trofimovich  gentoo.org>
Package-Manager: Portage-2.3.51, Repoman-2.3.11
RepoMan-Options: --include-arches="ppc"

 app-forensics/foremost/foremost-1.5.7-r3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-forensics/foremost/foremost-1.5.7-r3.ebuild 
b/app-forensics/foremost/foremost-1.5.7-r3.ebuild
index 8cc4d22b4a5..531cf1318f8 100644
--- a/app-forensics/foremost/foremost-1.5.7-r3.ebuild
+++ b/app-forensics/foremost/foremost-1.5.7-r3.ebuild
@@ -11,7 +11,7 @@ HOMEPAGE="http://foremost.sourceforge.net/;
 # starting to hate sf.net ...
 SRC_URI="http://foremost.sourceforge.net/pkg/${P}.tar.gz;
 
-KEYWORDS="amd64 ~ppc x86"
+KEYWORDS="amd64 ppc x86"
 IUSE=""
 LICENSE="public-domain"
 SLOT="0"



[gentoo-commits] repo/gentoo:master commit in: app-forensics/foremost/

2018-10-06 Thread Mikle Kolyada
commit: 0b2304c7fb34c73bb6f220207a84f71afcaba14c
Author: Mikle Kolyada  gentoo  org>
AuthorDate: Sun Oct  7 00:16:09 2018 +
Commit: Mikle Kolyada  gentoo  org>
CommitDate: Sun Oct  7 00:17:42 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0b2304c7

app-forensics/foremost: amd64 stable wrt bug #662642

Signed-off-by: Mikle Kolyada  gentoo.org>
Package-Manager: Portage-2.3.49, Repoman-2.3.11

 app-forensics/foremost/foremost-1.5.7-r3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app-forensics/foremost/foremost-1.5.7-r3.ebuild 
b/app-forensics/foremost/foremost-1.5.7-r3.ebuild
index a6f53cf4fb2..8cc4d22b4a5 100644
--- a/app-forensics/foremost/foremost-1.5.7-r3.ebuild
+++ b/app-forensics/foremost/foremost-1.5.7-r3.ebuild
@@ -11,7 +11,7 @@ HOMEPAGE="http://foremost.sourceforge.net/;
 # starting to hate sf.net ...
 SRC_URI="http://foremost.sourceforge.net/pkg/${P}.tar.gz;
 
-KEYWORDS="~amd64 ~ppc x86"
+KEYWORDS="amd64 ~ppc x86"
 IUSE=""
 LICENSE="public-domain"
 SLOT="0"



[gentoo-commits] repo/gentoo:master commit in: app-forensics/foremost/

2018-10-06 Thread Thomas Deutschmann
commit: 2ea57ae53b69c7563d75fc4b292b341c1db0b020
Author: Thomas Deutschmann  gentoo  org>
AuthorDate: Sat Oct  6 23:00:40 2018 +
Commit: Thomas Deutschmann  gentoo  org>
CommitDate: Sat Oct  6 23:04:48 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2ea57ae5

app-forensics/foremost: x86 stable (bug #662642)

Package-Manager: Portage-2.3.50, Repoman-2.3.11
Signed-off-by: Thomas Deutschmann  gentoo.org>

 app-forensics/foremost/foremost-1.5.7-r3.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/app-forensics/foremost/foremost-1.5.7-r3.ebuild 
b/app-forensics/foremost/foremost-1.5.7-r3.ebuild
index 69d67a469d2..a6f53cf4fb2 100644
--- a/app-forensics/foremost/foremost-1.5.7-r3.ebuild
+++ b/app-forensics/foremost/foremost-1.5.7-r3.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=6
@@ -11,7 +11,7 @@ HOMEPAGE="http://foremost.sourceforge.net/;
 # starting to hate sf.net ...
 SRC_URI="http://foremost.sourceforge.net/pkg/${P}.tar.gz;
 
-KEYWORDS="~amd64 ~ppc ~x86"
+KEYWORDS="~amd64 ~ppc x86"
 IUSE=""
 LICENSE="public-domain"
 SLOT="0"



[gentoo-commits] repo/gentoo:master commit in: app-forensics/foremost/

2018-06-03 Thread Aaron Bauman
commit: 120ea3158698b4212e25279fb036f98d975c3c67
Author: Aaron Bauman  gentoo  org>
AuthorDate: Sun Jun  3 18:38:02 2018 +
Commit: Aaron Bauman  gentoo  org>
CommitDate: Mon Jun  4 01:12:20 2018 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=120ea315

app-forensics/foremost: drop old EAPI

Package-Manager: Portage-2.3.40, Repoman-2.3.9

 app-forensics/foremost/Manifest |  1 -
 app-forensics/foremost/foremost-0.69.ebuild | 25 -
 2 files changed, 26 deletions(-)

diff --git a/app-forensics/foremost/Manifest b/app-forensics/foremost/Manifest
index 204f4523139..96062d4cef6 100644
--- a/app-forensics/foremost/Manifest
+++ b/app-forensics/foremost/Manifest
@@ -1,2 +1 @@
-DIST foremost-0.69.tar.gz 27719 BLAKE2B 
c4e4837e0c97b8ca90cd5b67b2731a801947b40a089c24083b4695905ac39556d4bb2aa2970d7b4d7f4567c4c500785403256fc031ab3460b99ce94018070136
 SHA512 
3d25e62995f7da0e47ffbd9b90ac2d1a6a870ae0e310eb46b8332e914372008c44abe6ef504f875de60d22cfdfac439e53ec65d7cae255d4a989ee9cfa1020b6
 DIST foremost-1.5.7.tar.gz 52352 BLAKE2B 
5642c1afd86aab0a2f90986c3b030d37b37700c5d0e4b04e4f4a2004d69745280fabd4086a72c33b9eab05b57d125d6b11105c9e11b0112e30077f101eeab7ac
 SHA512 
8827c29d52496783be26374f3943eb26a154d842f34e50fb489f87b3a5045bf85f1e44d7d8d8b12b2355ba3fe4b06a0db979cc22c0f431593c5976001eb931ab

diff --git a/app-forensics/foremost/foremost-0.69.ebuild 
b/app-forensics/foremost/foremost-0.69.ebuild
deleted file mode 100644
index 79f9c3240c6..000
--- a/app-forensics/foremost/foremost-0.69.ebuild
+++ /dev/null
@@ -1,25 +0,0 @@
-# Copyright 1999-2018 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=0
-
-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
-}



[gentoo-commits] repo/gentoo:master commit in: app-forensics/foremost/

2017-08-11 Thread Michał Górny
commit: 9f46c84aaa451dd1a25295f6db6a4a6697456578
Author: Michał Górny  gentoo  org>
AuthorDate: Fri Aug 11 17:30:40 2017 +
Commit: Michał Górny  gentoo  org>
CommitDate: Fri Aug 11 17:37:55 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9f46c84a

app-forensics/foremost: Remove forensics@ project, #626500

 app-forensics/foremost/metadata.xml | 4 
 1 file changed, 4 deletions(-)

diff --git a/app-forensics/foremost/metadata.xml 
b/app-forensics/foremost/metadata.xml
index 2a03d9fdc3f..b06edf62c08 100644
--- a/app-forensics/foremost/metadata.xml
+++ b/app-forensics/foremost/metadata.xml
@@ -4,10 +4,6 @@
   
 ike...@gentoo.org
   
-  
-forens...@gentoo.org
-Gentoo Forensics Project
-  
   
 foremost
   



[gentoo-commits] repo/gentoo:master commit in: app-forensics/foremost/

2017-05-28 Thread Mike Auty
commit: 014d83968309be28a94292a677a0d55a02e9d0fc
Author: Mike Auty  gentoo  org>
AuthorDate: Sun May 28 09:34:45 2017 +
Commit: Mike Auty  gentoo  org>
CommitDate: Sun May 28 09:35:35 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=014d8396

app-forensics/foremost: Uncompress man page before using doman.

Remove the version of foremost missing the security patch and
add a new unstable version to uncompress the man page before
using doman on it (bug 619928).

Package-Manager: Portage-2.3.6, Repoman-2.3.2

 .../{foremost-1.5.7-r1.ebuild => foremost-1.5.7-r3.ebuild}| 11 +++
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/app-forensics/foremost/foremost-1.5.7-r1.ebuild 
b/app-forensics/foremost/foremost-1.5.7-r3.ebuild
similarity index 78%
rename from app-forensics/foremost/foremost-1.5.7-r1.ebuild
rename to app-forensics/foremost/foremost-1.5.7-r3.ebuild
index a96a90521a0..69d67a469d2 100644
--- a/app-forensics/foremost/foremost-1.5.7-r1.ebuild
+++ b/app-forensics/foremost/foremost-1.5.7-r3.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2012 Gentoo Foundation
+# Copyright 1999-2017 Gentoo Foundation
 # Distributed under the terms of the GNU General Public License v2
 
-EAPI=4
+EAPI=6
 
 inherit eutils toolchain-funcs
 
@@ -11,13 +11,15 @@ HOMEPAGE="http://foremost.sourceforge.net/;
 # starting to hate sf.net ...
 SRC_URI="http://foremost.sourceforge.net/pkg/${P}.tar.gz;
 
-KEYWORDS="amd64 ppc x86"
+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() {
@@ -27,7 +29,8 @@ src_compile() {
 
 src_install() {
dobin foremost
-   doman foremost.8.gz
+   gunzip foremost.8.gz
+   doman foremost.8
insinto /etc
doins foremost.conf
dodoc README CHANGES