diff options
author | antoine <antoine@FreeBSD.org> | 2013-04-23 23:53:14 +0800 |
---|---|---|
committer | antoine <antoine@FreeBSD.org> | 2013-04-23 23:53:14 +0800 |
commit | bf6b02518fb34102acfdada15722453b6a38531f (patch) | |
tree | 826fae7b77bcb30766346df693188881781c3d1e /sysutils/py-pytsk | |
parent | f471d3544b7e5249e90d4a6a069a58078fe2651e (diff) | |
download | freebsd-ports-gnome-bf6b02518fb34102acfdada15722453b6a38531f.tar.gz freebsd-ports-gnome-bf6b02518fb34102acfdada15722453b6a38531f.tar.zst freebsd-ports-gnome-bf6b02518fb34102acfdada15722453b6a38531f.zip |
New port: py-pytsk, python bindings for the sleuthkit
WWW: https://code.google.com/p/pytsk/
Approved by: miwi (mentor)
Diffstat (limited to 'sysutils/py-pytsk')
-rw-r--r-- | sysutils/py-pytsk/Makefile | 52 | ||||
-rw-r--r-- | sysutils/py-pytsk/distinfo | 2 | ||||
-rw-r--r-- | sysutils/py-pytsk/pkg-descr | 3 |
3 files changed, 57 insertions, 0 deletions
diff --git a/sysutils/py-pytsk/Makefile b/sysutils/py-pytsk/Makefile new file mode 100644 index 000000000000..43c78c5a2366 --- /dev/null +++ b/sysutils/py-pytsk/Makefile @@ -0,0 +1,52 @@ +# Created by: Antoine Brodin <antoine@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@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> diff --git a/sysutils/py-pytsk/distinfo b/sysutils/py-pytsk/distinfo new file mode 100644 index 000000000000..228833b0bd1d --- /dev/null +++ b/sysutils/py-pytsk/distinfo @@ -0,0 +1,2 @@ +SHA256 (pytsk-2012-11-10.tgz) = 6135a25b83032bdab699c6cf329eff2eb27eab09b57f8f7a89bf9974b279661c +SIZE (pytsk-2012-11-10.tgz) = 69401 diff --git a/sysutils/py-pytsk/pkg-descr b/sysutils/py-pytsk/pkg-descr new file mode 100644 index 000000000000..212a6b39fe0e --- /dev/null +++ b/sysutils/py-pytsk/pkg-descr @@ -0,0 +1,3 @@ +Python bindings for the Sleuthkit + +WWW: http://code.google.com/p/pytsk/ |