aboutsummaryrefslogtreecommitdiff
path: root/sysutils/scalpel
diff options
context:
space:
mode:
authorFrederic Culot <culot@FreeBSD.org>2011-12-23 09:13:21 +0000
committerFrederic Culot <culot@FreeBSD.org>2011-12-23 09:13:21 +0000
commit4067037eb0a06f667b0393d011cf76d89ca3e1b4 (patch)
treec139f2bf736c4e3646446aa748cccd041b26108d /sysutils/scalpel
parent5233080d96999415a2bdc2377f6eb51e6249ee69 (diff)
downloadports-4067037eb0a06f667b0393d011cf76d89ca3e1b4.tar.gz
ports-4067037eb0a06f667b0393d011cf76d89ca3e1b4.zip
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/ PR: ports/163544 Submitted by: Hakisho Nukama <nukama@gmail.com>
Notes
Notes: svn path=/head/; revision=287914
Diffstat (limited to 'sysutils/scalpel')
-rw-r--r--sysutils/scalpel/Makefile38
-rw-r--r--sysutils/scalpel/distinfo2
-rw-r--r--sysutils/scalpel/files/pkg-message.in11
-rw-r--r--sysutils/scalpel/pkg-descr8
4 files changed, 59 insertions, 0 deletions
diff --git a/sysutils/scalpel/Makefile b/sysutils/scalpel/Makefile
new file mode 100644
index 000000000000..bbae6fe792e1
--- /dev/null
+++ b/sysutils/scalpel/Makefile
@@ -0,0 +1,38 @@
+# New ports collection makefile for: Scalpel
+# Date created: 2011-12-22
+# Whom: Hakisho Nukama <nukama@gmail.com>
+#
+# $FreeBSD$
+#
+
+PORTNAME= scalpel
+PORTVERSION= 2.0
+CATEGORIES= sysutils
+MASTER_SITES= http://www.digitalforensicssolutions.com/Scalpel/
+
+MAINTAINER= nukama@gmail.com
+COMMENT= A frugal, high performance file carver
+
+LICENSE= GPLv2
+
+LIB_DEPENDS= tre.5:${PORTSDIR}/textproc/libtre
+
+GNU_CONFIGURE= yes
+SUB_FILES= pkg-message
+
+MAN1= scalpel.1
+PLIST_FILES+= etc/scalpel.conf.sample bin/scalpel
+
+CPPFLAGS+= -I${LOCALBASE}/include
+LDFLAGS+= -L${LOCALBASE}/lib
+
+post-patch:
+ @${REINPLACE_CMD} -e \
+ 's/#ifdef __APPLE__/#if defined(__APPLE__) || defined(__FreeBSD__)/' \
+ ${WRKSRC}/src/scalpel.h
+
+post-install:
+ @${CP} -p ${WRKSRC}/scalpel.conf ${PREFIX}/etc/scalpel.conf.sample
+ @${CAT} ${PKGMESSAGE}
+
+.include <bsd.port.mk>
diff --git a/sysutils/scalpel/distinfo b/sysutils/scalpel/distinfo
new file mode 100644
index 000000000000..63c98009c4e4
--- /dev/null
+++ b/sysutils/scalpel/distinfo
@@ -0,0 +1,2 @@
+SHA256 (scalpel-2.0.tar.gz) = 164a8a58ad8473c545794e981ca6349f2b4b76107c9553baab10a8a0204267e7
+SIZE (scalpel-2.0.tar.gz) = 1436379
diff --git a/sysutils/scalpel/files/pkg-message.in b/sysutils/scalpel/files/pkg-message.in
new file mode 100644
index 000000000000..2b0211da3bd3
--- /dev/null
+++ b/sysutils/scalpel/files/pkg-message.in
@@ -0,0 +1,11 @@
+************************************************************
+Scalpel has been successfully installed on your system.
+
+Now it is time to configure this package.
+Copy %%PREFIX%%/etc/scalpel.conf.sample into your working
+directory as scalpel.conf and edit it.
+
+Scalpel will always use scalpel.conf in your current working
+directory, if not specified with "-c /path/to/scalpel.conf".
+
+************************************************************
diff --git a/sysutils/scalpel/pkg-descr b/sysutils/scalpel/pkg-descr
new file mode 100644
index 000000000000..6bd52d5d6801
--- /dev/null
+++ b/sysutils/scalpel/pkg-descr
@@ -0,0 +1,8 @@
+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/