diff options
author | vs <vs@FreeBSD.org> | 2004-12-15 20:39:25 +0800 |
---|---|---|
committer | vs <vs@FreeBSD.org> | 2004-12-15 20:39:25 +0800 |
commit | 19b36d1f65d69fa8a1941ac639df773e12c4f9a1 (patch) | |
tree | 3a6d3782a911921d7710e7c0516822fbf822d674 /sysutils/foremost | |
parent | da67b04c81558d92754beb29e47abfe5c661dac2 (diff) | |
download | freebsd-ports-gnome-19b36d1f65d69fa8a1941ac639df773e12c4f9a1.tar.gz freebsd-ports-gnome-19b36d1f65d69fa8a1941ac639df773e12c4f9a1.tar.zst freebsd-ports-gnome-19b36d1f65d69fa8a1941ac639df773e12c4f9a1.zip |
Add foremost 0.69, console program to recover files based on their
headers and footers.
PR: ports/68414
Submitted by: Yonatan <Yonatan@xpert.com>
Diffstat (limited to 'sysutils/foremost')
-rw-r--r-- | sysutils/foremost/Makefile | 31 | ||||
-rw-r--r-- | sysutils/foremost/distinfo | 2 | ||||
-rw-r--r-- | sysutils/foremost/files/patch-Makefile | 32 | ||||
-rw-r--r-- | sysutils/foremost/files/patch-foremost.h | 18 | ||||
-rw-r--r-- | sysutils/foremost/pkg-descr | 7 |
5 files changed, 90 insertions, 0 deletions
diff --git a/sysutils/foremost/Makefile b/sysutils/foremost/Makefile new file mode 100644 index 000000000000..8b1297632052 --- /dev/null +++ b/sysutils/foremost/Makefile @@ -0,0 +1,31 @@ +# Ports collection makefile for: foremost +# Date created: 16 June 2004 +# Whom: Yonatan <Yonatan@xpert.com> +# +# $FreeBSD$ +# + +PORTNAME= foremost +PORTVERSION= 0.69 +CATEGORIES= sysutils +MASTER_SITES= ${MASTER_SITE_SOURCEFORGE} +MASTER_SITE_SUBDIR= ${PORTNAME} + +MAINTAINER= yonatan@xpert.com +COMMENT= Console program to recover files based on their headers and footers + +USE_GMAKE= yes +ALL_TARGET= openbsd +MAN1= foremost.1 +USE_REINPLACE= yes + +PLIST_FILES= bin/foremost etc/foremost.conf.sample + +post-patch: + @${REINPLACE_CMD} -e 's|PREFIX|${PREFIX}|' ${WRKSRC}/foremost.h + +post-install: + @${STRIP_CMD} ${PREFIX}/bin/foremost + @${INSTALL} -Cm 644 ${WRKSRC}/foremost.conf ${PREFIX}/etc/foremost.conf.sample + +.include <bsd.port.mk> diff --git a/sysutils/foremost/distinfo b/sysutils/foremost/distinfo new file mode 100644 index 000000000000..e9408fe4d7f2 --- /dev/null +++ b/sysutils/foremost/distinfo @@ -0,0 +1,2 @@ +MD5 (foremost-0.69.tar.gz) = c52a0aa87180a5331f28acbb6563e9b2 +SIZE (foremost-0.69.tar.gz) = 27719 diff --git a/sysutils/foremost/files/patch-Makefile b/sysutils/foremost/files/patch-Makefile new file mode 100644 index 000000000000..0d51f3c66b89 --- /dev/null +++ b/sysutils/foremost/files/patch-Makefile @@ -0,0 +1,32 @@ +--- Makefile.orig Fri Jan 9 13:45:23 2004 ++++ Makefile Wed Jun 16 21:36:33 2004 +@@ -1,5 +1,5 @@ + +-CC = gcc ++CC?= gcc + CC_OPTS = -Wall -O2 + GOAL = foremost + +@@ -14,8 +14,9 @@ + #--------------------------------------------------------------------- + + # Where foremost gets installed +-BIN = /usr/local/bin +-MAN = /usr/local/man/man1 ++PREFIX ?= /usr/local ++BIN = $(PREFIX)/bin ++MAN = $(PREFIX)/man/man1 + + # This should be commented out when debugging is done + #CC_OPTS += -D__DEBUG -ggdb +@@ -55,8 +56,8 @@ + $(CC) -o $(GOAL) $(OBJS) + + install: all +- install -CDm 755 $(GOAL) $(BIN)/$(GOAL) +- install -CDm 644 $(GOAL).1 $(MAN)/$(GOAL).1 ++ install -Cm 755 $(GOAL) $(BIN)/$(GOAL) ++ install -Cm 644 $(GOAL).1 $(MAN)/$(GOAL).1 + + uninstall: + rm -f $(BIN)/$(GOAL) $(MAN)/$(GOAL).1 diff --git a/sysutils/foremost/files/patch-foremost.h b/sysutils/foremost/files/patch-foremost.h new file mode 100644 index 000000000000..b60ca7b74002 --- /dev/null +++ b/sysutils/foremost/files/patch-foremost.h @@ -0,0 +1,18 @@ +--- foremost.h.orig Fri Jan 9 13:45:23 2004 ++++ foremost.h Wed Jun 16 22:51:42 2004 +@@ -40,6 +40,7 @@ + #define strtoull strtoul + #include <sys/ttycom.h> + #include <sys/param.h> ++#include <libgen.h> /* for basename() */ + #endif /* ifdef __OPENBSD */ + + #ifdef __LINUX +@@ -178,7 +179,7 @@ + #define FOREMOST_NOEXTENSION '\xFF' + + #define FOREMOST_DEFAULT_WILDCARD '?' +-#define FOREMOST_DEFAULT_CONFIG_FILE "foremost.conf" ++#define FOREMOST_DEFAULT_CONFIG_FILE "PREFIX/etc/foremost.conf" + + #define FOREMOST_DEFAULT_OUTPUT_DIR "foremost-output" diff --git a/sysutils/foremost/pkg-descr b/sysutils/foremost/pkg-descr new file mode 100644 index 000000000000..20e91179e942 --- /dev/null +++ b/sysutils/foremost/pkg-descr @@ -0,0 +1,7 @@ + Foremost is a console program to recover files based on their headers + and footers. Foremost can work on image files, such as those generated + by dd, Safeback, Encase, etc, or directly on a drive. The headers and + footers are specified by a configuration file, so you can pick and + choose which headers you want to look for. + +WWW: http://foremost.sourceforge.net |