Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Dec 2011 19:03:41 GMT
From:      Hakisho Nukama <nukama@gmail.com>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   ports/163544: New port: sysutils/scalpel
Message-ID:  <201112221903.pBMJ3f4k044409@red.freebsd.org>
Resent-Message-ID: <201112221910.pBMJAFQX074879@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         163544
>Category:       ports
>Synopsis:       New port: sysutils/scalpel
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Dec 22 19:10:15 UTC 2011
>Closed-Date:
>Last-Modified:
>Originator:     Hakisho Nukama
>Release:        FreeBSD 9.0-RC3
>Organization:
n/a
>Environment:
FreeBSD ports 9.0-RC3 FreeBSD 9.0-RC3 #0: Sun Dec  4 08:56:36 UTC 2011     root@farrell.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
Scalpel is a fast file carver that reads a database of header and footer 
definitions and extracts matching files or data fragments from a set of 
image files or raw device files. 
Scalpel is filesystem-independent and will carve files from 
FATx, NTFS, ext2/3, HFS+, or raw partitions. 
It is useful for both digital forensics investigation and file recovery. 

WWW:    http://www.digitalforensicssolutions.com/Scalpel/
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	scalpel
#	scalpel/distinfo
#	scalpel/files
#	scalpel/files/pkg-message.in
#	scalpel/files/patch-src__scalpel.h
#	scalpel/Makefile
#	scalpel/pkg-descr
#
echo c - scalpel
mkdir -p scalpel > /dev/null 2>&1
echo x - scalpel/distinfo
sed 's/^X//' >scalpel/distinfo << '86c842a8aecd1ee5ee17aacd139f5ae1'
XSHA256 (scalpel-2.0.tar.gz) = 164a8a58ad8473c545794e981ca6349f2b4b76107c9553baab10a8a0204267e7
XSIZE (scalpel-2.0.tar.gz) = 1436379
86c842a8aecd1ee5ee17aacd139f5ae1
echo c - scalpel/files
mkdir -p scalpel/files > /dev/null 2>&1
echo x - scalpel/files/pkg-message.in
sed 's/^X//' >scalpel/files/pkg-message.in << '9c978be59b373f047a046cbef44add66'
X************************************************************
XScalpel has been successfully installed on your system.
X
XNow it is time to configure this package. 
XCopy %%PREFIX%%/etc/scalpel.conf.sample into your working 
Xdirectory as scalpel.conf and edit it.
X
XScalpel will always use scalpel.conf in your current working 
Xdirectory, if not specified with "-c /path/to/scalpel.conf".
X
X************************************************************
9c978be59b373f047a046cbef44add66
echo x - scalpel/files/patch-src__scalpel.h
sed 's/^X//' >scalpel/files/patch-src__scalpel.h << 'c07dc15d0f5c110d09a16c497fbe59c8'
X--- ./src/scalpel.h.orig	2011-12-22 15:40:58.272748267 +0000
X+++ ./src/scalpel.h	2011-12-22 15:45:40.661981326 +0000
X@@ -73,6 +73,16 @@
X #define off64_t  off_t
X #endif /* ifdef __APPLE__ */
X 
X+#ifdef __FreeBSD__
X+#define __UNIX
X+#include <sys/ttycom.h>
X+#include <sys/param.h>
X+#include <sys/ioctl.h>
X+#include <libgen.h>
X+#include <tre/regex.h>
X+#define off64_t  off_t
X+#endif /* ifdef __FreeBSD__ */
X+
X #ifdef __linux
X #define __UNIX
X #include <linux/hdreg.h>
c07dc15d0f5c110d09a16c497fbe59c8
echo x - scalpel/Makefile
sed 's/^X//' >scalpel/Makefile << '80e7398b2f000904683eade7dea225e9'
X# New ports collection makefile for:	Scalpel
X# Date created:				2011-12-22
X# Whom:					Hakisho Nukama <nukama@gmail.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	scalpel
XPORTVERSION=	2.0
XCATEGORIES=	sysutils
XMASTER_SITES=	http://www.digitalforensicssolutions.com/Scalpel/
X
XMAINTAINER=	nukama@gmail.com
XCOMMENT=	A frugal, high performance file carver
X
XLICENSE=	GPLv2
X
XLIB_DEPENDS=	tre.5:${PORTSDIR}/textproc/libtre
X
XGNU_CONFIGURE=	yes
XSUB_FILES=	pkg-message
X
XMAN1=		scalpel.1
XPLIST_FILES+=	etc/scalpel.conf.sample bin/scalpel
X
XCFLAGS+=	-I${LOCALBASE}/include -Wall
XLDFLAGS+=	-L${LOCALBASE}/lib
X
Xpost-install:
X	@${CP} -p ${WRKSRC}/scalpel.conf ${PREFIX}/etc/scalpel.conf.sample
X	@${CAT} ${PKGMESSAGE}
X
X.include <bsd.port.mk>
80e7398b2f000904683eade7dea225e9
echo x - scalpel/pkg-descr
sed 's/^X//' >scalpel/pkg-descr << '6ea5ee02d0aca86105562ade434d4e59'
XScalpel is a fast file carver that reads a database of header and footer 
Xdefinitions and extracts matching files or data fragments from a set of 
Ximage files or raw device files. 
XScalpel is filesystem-independent and will carve files from 
XFATx, NTFS, ext2/3, HFS+, or raw partitions. 
XIt is useful for both digital forensics investigation and file recovery. 
X
XWWW:	http://www.digitalforensicssolutions.com/Scalpel/
6ea5ee02d0aca86105562ade434d4e59
exit



>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201112221903.pBMJ3f4k044409>