Index: head/sysutils/py-pytsk/Makefile =================================================================== --- head/sysutils/py-pytsk/Makefile (revision 433211) +++ head/sysutils/py-pytsk/Makefile (revision 433212) @@ -1,29 +1,29 @@ # Created by: Antoine Brodin # $FreeBSD$ PORTNAME= pytsk -PORTVERSION= 20161109 +PORTVERSION= 20170128 CATEGORIES= sysutils security devel python MASTER_SITES= CHEESESHOP \ https://github.com/py4n6/pytsk/releases/download/${PORTVERSION}/ PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} DISTNAME= ${PORTNAME}3-${PORTVERSION} MAINTAINER= antoine@FreeBSD.org COMMENT= Python bindings for the Sleuthkit LICENSE= APACHE20 LIB_DEPENDS= libtalloc.so:devel/talloc \ libtsk.so:sysutils/sleuthkit USES= python USE_PYTHON= distutils autoplist post-extract: ${RM} ${WRKSRC}/pytsk3.c post-patch: ${REINPLACE_CMD} 's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/setup.py .include Index: head/sysutils/py-pytsk/distinfo =================================================================== --- head/sysutils/py-pytsk/distinfo (revision 433211) +++ head/sysutils/py-pytsk/distinfo (revision 433212) @@ -1,3 +1,3 @@ -TIMESTAMP = 1478710780 -SHA256 (pytsk3-20161109.tar.gz) = 424d8303dc9e03b62c3cbc26bc0cf9f05b9e061483ed8d823cd64c294390b7f6 -SIZE (pytsk3-20161109.tar.gz) = 2800870 +TIMESTAMP = 1485627915 +SHA256 (pytsk3-20170128.tar.gz) = 71df82052f209583b2c042fed2abc5110ff83d950cdf748d6cbad244d709ce46 +SIZE (pytsk3-20170128.tar.gz) = 2803782 Index: head/sysutils/py-pytsk/files/patch-setup.py =================================================================== --- head/sysutils/py-pytsk/files/patch-setup.py (revision 433211) +++ head/sysutils/py-pytsk/files/patch-setup.py (revision 433212) @@ -1,44 +1,44 @@ # Unbundle sleuthkit and talloc ---- setup.py.orig 2016-09-04 05:23:42 UTC +--- setup.py.orig 2017-01-28 14:19:35 UTC +++ setup.py @@ -169,9 +169,9 @@ class BuildExtCommand(build_ext): def run(self): compiler = new_compiler(compiler=self.compiler) - self.define = self.configure_source_tree(compiler) + self.define = [("HAVE_TSK_LIBTSK_H", "")] - libtsk_path = "sleuthkit/tsk" + libtsk_path = "%%LOCALBASE%%/include/tsk" if not os.access("pytsk3.c", os.R_OK): # Generate the Python binding code (pytsk3.c). @@ -325,7 +325,7 @@ class ProjectBuilder(object): self._argv = argv # The path to the "tsk" directory. - self._libtsk_path = "sleuthkit/tsk" + self._libtsk_path = "%%LOCALBASE%%/include/tsk" # paths under the tsk/ directory which contain files we need to compile. self._sub_library_names = "auto base docs fs hashdb img vs".split() @@ -333,14 +333,14 @@ class ProjectBuilder(object): # The args for the extension builder. self.extension_args = dict( define_macros=[], - include_dirs=["talloc", "sleuthkit/tsk", "sleuthkit", "."], - library_dirs=[], - libraries=[], + include_dirs=[".", "%%LOCALBASE%%/include"], + library_dirs=["%%LOCALBASE%%/lib"], + libraries=["tsk", "talloc"], ) # The sources to build. self._source_files = ["class.c", "error.c", "tsk3.c", - "pytsk3.c", "talloc/talloc.c"] + "pytsk3.c"] # Path to the top of the unpacked sleuthkit sources. self._sleuthkit_path = "sleuthkit"