diff options
author | Volker Stolz <vs@FreeBSD.org> | 2004-12-15 12:39:25 +0000 |
---|---|---|
committer | Volker Stolz <vs@FreeBSD.org> | 2004-12-15 12:39:25 +0000 |
commit | 166af4876b4e84dc92cba31af909b57e27091d9c (patch) | |
tree | 3137de139a919f639117414d644d74b99d78d660 | |
parent | 740b156eb93fcd2d39e49a2746a54e7a77f3d291 (diff) | |
download | ports-166af4876b4e84dc92cba31af909b57e27091d9c.tar.gz ports-166af4876b4e84dc92cba31af909b57e27091d9c.zip |
Notes
-rw-r--r-- | sysutils/Makefile | 1 | ||||
-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 |
6 files changed, 91 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile index 18f9f4632ab6..a3b276fec1cf 100644 --- a/sysutils/Makefile +++ b/sysutils/Makefile @@ -136,6 +136,7 @@ SUBDIR += flog SUBDIR += fontedit SUBDIR += fonteditfs + SUBDIR += foremost SUBDIR += fortunelock SUBDIR += freebsd-sha1 SUBDIR += freecolor 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 |