From owner-svn-ports-head@freebsd.org Sat May 18 21:43:47 2019 Return-Path: Delivered-To: svn-ports-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2F80A1598D74; Sat, 18 May 2019 21:43:47 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id C13BD6AF21; Sat, 18 May 2019 21:43:46 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 9D772258FA; Sat, 18 May 2019 21:43:46 +0000 (UTC) (envelope-from yuri@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x4ILhkqS070460; Sat, 18 May 2019 21:43:46 GMT (envelope-from yuri@FreeBSD.org) Received: (from yuri@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x4ILhjUZ070456; Sat, 18 May 2019 21:43:45 GMT (envelope-from yuri@FreeBSD.org) Message-Id: <201905182143.x4ILhjUZ070456@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: yuri set sender to yuri@FreeBSD.org using -f From: Yuri Victorovich Date: Sat, 18 May 2019 21:43:45 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r501982 - in head/misc: . hashdb X-SVN-Group: ports-head X-SVN-Commit-Author: yuri X-SVN-Commit-Paths: in head/misc: . hashdb X-SVN-Commit-Revision: 501982 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: C13BD6AF21 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.97 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_LONG(-1.00)[-1.000,0]; NEURAL_HAM_SHORT(-0.97)[-0.969,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US] X-BeenThere: svn-ports-head@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree for head List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 18 May 2019 21:43:47 -0000 Author: yuri Date: Sat May 18 21:43:45 2019 New Revision: 501982 URL: https://svnweb.freebsd.org/changeset/ports/501982 Log: New port: misc/hashdb: Block hash database tool and API Added: head/misc/hashdb/ head/misc/hashdb/Makefile (contents, props changed) head/misc/hashdb/distinfo (contents, props changed) head/misc/hashdb/pkg-descr (contents, props changed) head/misc/hashdb/pkg-plist (contents, props changed) Modified: head/misc/Makefile Modified: head/misc/Makefile ============================================================================== --- head/misc/Makefile Sat May 18 21:38:06 2019 (r501981) +++ head/misc/Makefile Sat May 18 21:43:45 2019 (r501982) @@ -176,6 +176,7 @@ SUBDIR += granulate SUBDIR += grc SUBDIR += gwhich + SUBDIR += hashdb SUBDIR += hb SUBDIR += hello SUBDIR += help2man Added: head/misc/hashdb/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/misc/hashdb/Makefile Sat May 18 21:43:45 2019 (r501982) @@ -0,0 +1,40 @@ +# $FreeBSD$ + +PORTNAME= hashdb +DISTVERSIONPREFIX= v +DISTVERSION= 3.1.0-8 +DISTVERSIONSUFFIX= -g1da1b9f +CATEGORIES= misc + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Block hash database tool and API + +LICENSE= PD +LICENSE_FILE= ${WRKSRC}/COPYING + +BUILD_DEPENDS= swig3.0:devel/swig30 \ + openssl>:security/openssl +LIB_DEPENDS= libewf.so:devel/libewf +RUN_DEPENDS= openssl>:security/openssl + +USES= autoreconf gmake libtool localbase:ldflags python ssl # USES=ssl fails without openssl added to BUILD_DEPENDS/RUN_DEPENDS/LDFLAGS: see bug#237974 +GNU_CONFIGURE= yes +USE_GITHUB= yes +GH_ACCOUNT= NPS-DEEP +CONFIGURE_ARGS= --disable-static --enable-shared # this fails: https://github.com/NPS-DEEP/hashdb/issues/9 + +INSTALL_TARGET= install-strip + +CONFIGURE_ENV= PYTHON=${PYTHON_CMD} +BINARY_ALIAS= swig=${LOCALBASE}/bin/swig3.0 + +CFLAGS+= -fPIC +CXXFLAGS+= -fPIC +LDFLAGS+= ${LOCALBASE}/lib/libssl.so ${LOCALBASE}/lib/libcrypto.so + +PLIST_SUB+= PYTHON_SITELIBDIR=${PYTHONPREFIX_SITELIBDIR:S;${PREFIX}/;;} + +post-configure: + @${FIND} ${WRKSRC} -name Makefile | ${XARGS} ${REINPLACE_CMD} 's| -lstdc++ | |' + +.include Added: head/misc/hashdb/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/misc/hashdb/distinfo Sat May 18 21:43:45 2019 (r501982) @@ -0,0 +1,3 @@ +TIMESTAMP = 1558192369 +SHA256 (NPS-DEEP-hashdb-v3.1.0-8-g1da1b9f_GH0.tar.gz) = 14e1043c62269e577b1b417a9913b7f8abfb76aad0b7c5977b938449912eecec +SIZE (NPS-DEEP-hashdb-v3.1.0-8-g1da1b9f_GH0.tar.gz) = 747811 Added: head/misc/hashdb/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/misc/hashdb/pkg-descr Sat May 18 21:43:45 2019 (r501982) @@ -0,0 +1,11 @@ +hashdb is used for finding blacklist data in raw media by using cryptographic +hashes calculated from hash blocks. + +The hashdb tool provides commands for creating hash databases of MD5 hashes on +files aligned along hash block boundaries as well as querying hash databases, +merging hash databases, and performing hash lookups. + +hashdb provides C++ and Python interfaces for working with and scanning hashdb +databases. + +WWW: https://github.com/NPS-DEEP/hashdb Added: head/misc/hashdb/pkg-plist ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/misc/hashdb/pkg-plist Sat May 18 21:43:45 2019 (r501982) @@ -0,0 +1,10 @@ +bin/hashdb +include/hashdb.hpp +lib/libhashdb.a +%%PYTHON_SITELIBDIR%%/__pycache__/hashdb.cpython-36.opt-1.pyc +%%PYTHON_SITELIBDIR%%/__pycache__/hashdb.cpython-36.pyc +%%PYTHON_SITELIBDIR%%/_hashdb.so +%%PYTHON_SITELIBDIR%%/_hashdb.so.0 +%%PYTHON_SITELIBDIR%%/_hashdb.so.0.0.0 +%%PYTHON_SITELIBDIR%%/hashdb.py +man/man1/hashdb.1.gz