From owner-svn-ports-all@freebsd.org Wed Mar 9 17:25:53 2016 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id A140BAC98EB; Wed, 9 Mar 2016 17:25:53 +0000 (UTC) (envelope-from antoine@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 mx1.freebsd.org (Postfix) with ESMTPS id 5883A368; Wed, 9 Mar 2016 17:25:53 +0000 (UTC) (envelope-from antoine@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u29HPq2X094963; Wed, 9 Mar 2016 17:25:52 GMT (envelope-from antoine@FreeBSD.org) Received: (from antoine@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u29HPqC5094961; Wed, 9 Mar 2016 17:25:52 GMT (envelope-from antoine@FreeBSD.org) Message-Id: <201603091725.u29HPqC5094961@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: antoine set sender to antoine@FreeBSD.org using -f From: Antoine Brodin Date: Wed, 9 Mar 2016 17:25:52 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r410715 - in head/security/py-dfvfs: . files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Mar 2016 17:25:53 -0000 Author: antoine Date: Wed Mar 9 17:25:52 2016 New Revision: 410715 URL: https://svnweb.freebsd.org/changeset/ports/410715 Log: Sleuthkit 4.2.0 switched from 100 nano seconds precision to 1 nano second precision for *time_nano fields. Adjust py-dfvfs for this. See: https://github.com/log2timeline/dfvfs/issues/116 Added: head/security/py-dfvfs/files/ head/security/py-dfvfs/files/patch-dfvfs_vfs_tsk__file__entry.py (contents, props changed) Modified: head/security/py-dfvfs/Makefile Modified: head/security/py-dfvfs/Makefile ============================================================================== --- head/security/py-dfvfs/Makefile Wed Mar 9 17:15:18 2016 (r410714) +++ head/security/py-dfvfs/Makefile Wed Mar 9 17:25:52 2016 (r410715) @@ -3,6 +3,7 @@ PORTNAME= dfvfs PORTVERSION= 20160108 +PORTREVISION= 1 CATEGORIES= security devel python MASTER_SITES= https://github.com/log2timeline/dfvfs/releases/download/${PORTVERSION}/ \ LOCAL/antoine Added: head/security/py-dfvfs/files/patch-dfvfs_vfs_tsk__file__entry.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/security/py-dfvfs/files/patch-dfvfs_vfs_tsk__file__entry.py Wed Mar 9 17:25:52 2016 (r410715) @@ -0,0 +1,29 @@ +# Sleuthkit 4.2.0 switched from 100 nano seconds precision to +# 1 nano second precision +# See: https://github.com/log2timeline/dfvfs/issues/116 + +--- dfvfs/vfs/tsk_file_entry.py.orig 2016-01-11 06:11:52 UTC ++++ dfvfs/vfs/tsk_file_entry.py +@@ -348,6 +348,22 @@ class TSKFileEntry(file_entry.FileEntry) + stat_object.mtime_nano = getattr( + tsk_file.info.meta, u'mtime_nano', None) + ++ # Sleuthkit 4.2.0 switched from 100 nano seconds precision to ++ # 1 nano second precision. ++ if pytsk3.TSK_VERSION_NUM >= 0x040200ff: ++ if stat_object.atime_nano is not None: ++ stat_object.atime_nano /= 100 ++ if stat_object.bkup_time_nano is not None: ++ stat_object.bkup_time_nano /= 100 ++ if stat_object.ctime_nano is not None: ++ stat_object.ctime_nano /= 100 ++ if stat_object.crtime_nano is not None: ++ stat_object.crtime_nano /= 100 ++ if stat_object.dtime_nano is not None: ++ stat_object.dtime_nano /= 100 ++ if stat_object.mtime_nano is not None: ++ stat_object.mtime_nano /= 100 ++ + # Ownership and permissions stat information. + stat_object.mode = getattr(tsk_file.info.meta, u'mode', None) + stat_object.uid = getattr(tsk_file.info.meta, u'uid', None)