import security/ssdeep

ssdeep is a fuzzy hashing program and library that is useful for finding
almost identical files.

From pkg/DESCR:
"ssdeep is a program for computing context triggered piecewise hashes (CTPH).
Also called fuzzy hashes, CTPH can match inputs that have homologies.  Such
inputs have sequences of identical bytes in the same order, although bytes
in between these sequences may be different in both content and length.

The package also includes a fuzzy hashing API, which is documented in the
README file."

ok mmcc@ zhuk@
This commit is contained in:
lteo 2016-03-25 01:11:40 +00:00
parent c147fd4c6e
commit e48a0d15aa
4 changed files with 61 additions and 0 deletions

35
security/ssdeep/Makefile Normal file
View File

@ -0,0 +1,35 @@
# $OpenBSD: Makefile,v 1.1.1.1 2016/03/25 01:11:40 lteo Exp $
COMMENT = fuzzy hashing program and library
DISTNAME = ssdeep-2.13
CATEGORIES = security
SHARED_LIBS = fuzzy 0.0 # 3.0
HOMEPAGE = http://ssdeep.sourceforge.net/
MAINTAINER = Lawrence Teo <lteo@openbsd.org>
# GPLv2
PERMIT_PACKAGE_CDROM = Yes
WANTLIB = c m stdc++
MASTER_SITES = ${MASTER_SITE_SOURCEFORGE:=ssdeep/}
CONFIGURE_STYLE = gnu
NO_TEST = yes
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/ssdeep
${INSTALL_DATA} ${WRKSRC}/sample.c ${PREFIX}/share/examples/ssdeep
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/ssdeep
.for file in AUTHORS ChangeLog FILEFORMAT INSTALL NEWS README
${INSTALL_DATA} ${WRKSRC}/${file} \
${PREFIX}/share/doc/ssdeep
.endfor
.include <bsd.port.mk>

2
security/ssdeep/distinfo Normal file
View File

@ -0,0 +1,2 @@
SHA256 (ssdeep-2.13.tar.gz) = bkypRFfLUP8zQ9TdWFRzgXpGGlWmZtocWnRmeSTw+MU=
SIZE (ssdeep-2.13.tar.gz) = 380712

View File

@ -0,0 +1,7 @@
ssdeep is a program for computing context triggered piecewise hashes (CTPH).
Also called fuzzy hashes, CTPH can match inputs that have homologies. Such
inputs have sequences of identical bytes in the same order, although bytes
in between these sequences may be different in both content and length.
The package also includes a fuzzy hashing API, which is documented in the
README file.

17
security/ssdeep/pkg/PLIST Normal file
View File

@ -0,0 +1,17 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2016/03/25 01:11:40 lteo Exp $
@bin bin/ssdeep
include/edit_dist.h
include/fuzzy.h
lib/libfuzzy.a
lib/libfuzzy.la
@lib lib/libfuzzy.so.${LIBfuzzy_VERSION}
@man man/man1/ssdeep.1
share/doc/ssdeep/
share/doc/ssdeep/AUTHORS
share/doc/ssdeep/ChangeLog
share/doc/ssdeep/FILEFORMAT
share/doc/ssdeep/INSTALL
share/doc/ssdeep/NEWS
share/doc/ssdeep/README
share/examples/ssdeep/
share/examples/ssdeep/sample.c