svn commit: r316366 - in head/sysutils: . py-pytsk

Antoine Brodin antoine at FreeBSD.org
Tue Apr 23 15:53:15 UTC 2013


Author: antoine
Date: Tue Apr 23 15:53:14 2013
New Revision: 316366
URL: http://svnweb.freebsd.org/changeset/ports/316366

Log:
  New port: py-pytsk,  python bindings for the sleuthkit
  WWW: https://code.google.com/p/pytsk/
  
  Approved by:	miwi (mentor)

Added:
  head/sysutils/py-pytsk/
  head/sysutils/py-pytsk/Makefile   (contents, props changed)
  head/sysutils/py-pytsk/distinfo   (contents, props changed)
  head/sysutils/py-pytsk/pkg-descr   (contents, props changed)
Modified:
  head/sysutils/Makefile

Modified: head/sysutils/Makefile
==============================================================================
--- head/sysutils/Makefile	Tue Apr 23 15:40:16 2013	(r316365)
+++ head/sysutils/Makefile	Tue Apr 23 15:53:14 2013	(r316366)
@@ -737,6 +737,7 @@
     SUBDIR += py-iowait
     SUBDIR += py-nagiosplugin
     SUBDIR += py-psutil
+    SUBDIR += py-pytsk
     SUBDIR += py-ranger
     SUBDIR += py-salt
     SUBDIR += py-salt-api

Added: head/sysutils/py-pytsk/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/py-pytsk/Makefile	Tue Apr 23 15:53:14 2013	(r316366)
@@ -0,0 +1,52 @@
+# Created by: Antoine Brodin <antoine at FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME=	pytsk
+DISTVERSION=	2012-11-10
+CATEGORIES=	sysutils security devel python
+MASTER_SITES=	GOOGLE_CODE
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+EXTRACT_SUFX=	.tgz
+
+MAINTAINER=	antoine at FreeBSD.org
+COMMENT=	Python bindings for the Sleuthkit
+
+LICENSE=	AL2
+
+LIB_DEPENDS=	tsk3:${PORTSDIR}/sysutils/sleuthkit
+
+WRKSRC=		${WRKDIR}/${PORTNAME}
+
+USE_PYTHON=	-2.7
+USE_PYDISTUTILS=yes
+PYDISTUTILS_PKGNAME=pytsk3
+PYDISTUTILS_PKGVERSION=0.1
+
+post-patch:
+	${REINPLACE_CMD} -e '/socket\.h/ { h; s|socket|types|; G; }' ${WRKSRC}/misc.h
+	${REINPLACE_CMD} -e 's|/usr/include/tsk3/|${LOCALBASE}/include/tsk3/|' \
+		-e "s|LIBRARY_DIRS = \[\]|LIBRARY_DIRS = ['${LOCALBASE}/lib/']|" \
+		-e "s|= \[CONFIG\['TSK3_HEADER_LOCATION'\]\]|= ['${LOCALBASE}/include/']|" \
+		${WRKSRC}/setup.py
+
+DOCSDIR=	${PREFIX}/share/doc/py-${PORTNAME}
+PORTDOCS=	LICENSE README
+
+EXAMPLESDIR=	${PREFIX}/share/examples/py-${PORTNAME}
+PORTEXAMPLES=	*
+
+PLIST_FILES=	%%PYTHON_SITELIBDIR%%/pytsk3.so
+
+.include <bsd.port.options.mk>
+
+post-install:
+.if ${PORT_OPTIONS:MDOCS}
+	@${MKDIR} ${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S,^,${WRKSRC}/,} ${DOCSDIR}
+.endif
+.if ${PORT_OPTIONS:MEXAMPLES}
+	@${MKDIR} ${EXAMPLESDIR}
+	${INSTALL_DATA} ${WRKSRC}/samples/*.py ${EXAMPLESDIR}
+.endif
+
+.include <bsd.port.mk>

Added: head/sysutils/py-pytsk/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/py-pytsk/distinfo	Tue Apr 23 15:53:14 2013	(r316366)
@@ -0,0 +1,2 @@
+SHA256 (pytsk-2012-11-10.tgz) = 6135a25b83032bdab699c6cf329eff2eb27eab09b57f8f7a89bf9974b279661c
+SIZE (pytsk-2012-11-10.tgz) = 69401

Added: head/sysutils/py-pytsk/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/sysutils/py-pytsk/pkg-descr	Tue Apr 23 15:53:14 2013	(r316366)
@@ -0,0 +1,3 @@
+Python bindings for the Sleuthkit
+
+WWW: http://code.google.com/p/pytsk/


More information about the svn-ports-all mailing list