aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sysutils/Makefile1
-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
5 files changed, 60 insertions, 0 deletions
diff --git a/sysutils/Makefile b/sysutils/Makefile
index ad5986955df8..aaf6d33188ea 100644
--- a/sysutils/Makefile
+++ b/sysutils/Makefile
@@ -792,6 +792,7 @@
SUBDIR += savelogs
SUBDIR += sb16config
SUBDIR += sbniconfig
+ SUBDIR += scalpel
SUBDIR += scan_ffs
SUBDIR += scanbuttond
SUBDIR += scprotect
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/