Commit ac9c8c1e authored by Hilko Bengen's avatar Hilko Bengen

Add python2/python3 support

parent b8c400be
......@@ -3,60 +3,63 @@ Section: admin
Priority: optional
Maintainer: Debian Security Tools <team+pkg-security@tracker.debian.org>
Uploaders: Hilko Bengen <bengen@debian.org>
Build-Depends: debhelper (>= 12), dh-python, python, python-setuptools,
python-yaml (>= 3.10),
python-xlsxwriter (>= 0.9.3),
python-artifacts (>= 20170818),
Build-Depends: debhelper (>= 12), dh-python,
python, python3,
python-setuptools, python3-setuptools,
python-yaml (>= 3.10), python3-yaml (>= 3.10),
python-xlsxwriter (>= 0.9.3), python3-xlsxwriter (>= 0.9.3),
python-artifacts (>= 20170818), python3-artifacts (>= 20170818),
python-lzma,
python-biplist (>= 1.0.3),
python-certifi (>= 2016.9.26),
python-chardet (>= 2.0.1),
python-dfdatetime (>= 20180704),
python-dfvfs (>= 20181209),
python-dfwinreg (>= 20180712),
python-dtfabric (>= 20181128),
python-efilter (>= 1.5),
python-elasticsearch (>= 5.4.0),
python-future, python-hachoir-core (>= 1.3.3),
python-biplist (>= 1.0.3), python3-biplist (>= 1.0.3),
python-certifi (>= 2016.9.26), python3-certifi (>= 2016.9.26),
python-chardet (>= 2.0.1), python3-chardet (>= 2.0.1),
python-dfdatetime (>= 20180704), python3-dfdatetime (>= 20180704),
python-dfvfs (>= 20181209), python3-dfvfs (>= 20181209),
python-dfwinreg (>= 20180712), python3-dfwinreg (>= 20180712),
python-dtfabric (>= 20181128), python3-dtfabric (>= 20181128),
python-efilter (>= 1.5), python3-efilter (>= 1.5),
python-elasticsearch (>= 5.4.0), python3-elasticsearch (>= 5.4.0),
python-future, python3-future,
python-hachoir-core (>= 1.3.3),
python-hachoir-metadata (>= 1.3.3),
python-hachoir-parser (>= 1.3.4),
python-idna,
python-libbde (>= 20140531),
python-libesedb (>= 20150409),
python-libevt (>= 20120410),
python-libevtx (>= 20141112),
python-fsapfs (>= 20181205),
python-libewf (>= 20131210),
python-libfsntfs (>= 20151130),
python-libfvde (>= 20160719),
python-libfwnt (>= 20160418),
python-libfwsi (>= 20150606),
python-liblnk (>= 20150830),
python-libmsiecf (>= 20150314),
python-libolecf (>= 20151223),
python-libqcow (>= 20131204),
python-libregf (>= 20150315),
python-libscca (>= 20151226),
python-libsigscan (>= 20150627),
python-libsmdev (>= 20140529),
python-libsmraw (>= 20140612),
python-libvhdi (>= 20131210),
python-libvmdk (>= 20140421),
python-libvshadow (>= 20160109),
python-libvslvm (>= 20160109),
python-lz4,
python-pefile,
python-psutil (>= 1.2.1),
python-crypto (>= 2.6),
python-pyparsing (>= 2.0.3),
python-dateutil (>= 1.5),
python-tsk (>= 20160721),
python-tz,
python-zmq (>= 2.1.11),
python-requests (>= 2.2.1),
python-six (>= 1.1.0),
python-urllib3,
python-yara (>= 3.4.0),
python-idna (>= 2.5), python3-idna (>= 2.5),
python-libbde (>= 20140531), python3-libbde (>= 20140531),
python-libesedb (>= 20150409), python3-libesedb (>= 20150409),
python-libevt (>= 20120410), python3-libevt (>= 20120410),
python-libevtx (>= 20141112), python3-libevtx (>= 20141112),
python-libewf (>= 20131210), python3-libewf (>= 20131210),
python-fsapfs (>= 20181205), python3-fsapfs (>= 20181205),
python-libfsntfs (>= 20151130), python3-libfsntfs (>= 20151130),
python-libfvde (>= 20160719), python3-libfvde (>= 20160719),
python-libfwnt (>= 20180117), python3-libfwnt (>= 20180117),
python-libfwsi (>= 20150606), python3-libfwsi (>= 20150606),
python-liblnk (>= 20150830), python3-liblnk (>= 20150830),
python-libmsiecf (>= 20150314), python3-libmsiecf (>= 20150314),
python-libolecf (>= 20151223), python3-libolecf (>= 20151223),
python-libqcow (>= 20131204), python3-libqcow (>= 20131204),
python-libregf (>= 20150315), python3-libregf (>= 20150315),
python-libscca (>= 20161031), python3-libscca (>= 20161031),
python-libsigscan (>= 20150627), python3-libsigscan (>= 20150627),
python-libsmdev (>= 20140529), python3-libsmdev (>= 20140529),
python-libsmraw (>= 20140612), python3-libsmraw (>= 20140612),
python-libvhdi (>= 20131210), python3-libvhdi (>= 20131210),
python-libvmdk (>= 20140421), python3-libvmdk (>= 20140421),
python-libvshadow (>= 20160109), python3-libvshadow (>= 20160109),
python-libvslvm (>= 20160109), python3-libvslvm (>= 20160109),
python-lz4 (>= 0.10.0), python3-lz4 (>= 0.10.0),
python-pefile (>= 2018.8.8), python3-pefile (>= 2018.8.8),
python-psutil (>= 5.4.3), python3-psutil (>= 5.4.3),
python-crypto (>= 2.6), python3-crypto (>= 2.6),
python-pyparsing (>= 2.0.3), python3-pyparsing (>= 2.0.3),
python-dateutil (>= 1.5), python3-dateutil (>= 1.5),
python-tsk (>= 20160721), python3-tsk (>= 20160721),
python-tz, python3-tz,
python-zmq (>= 2.1.11), python3-zmq (>= 2.1.11),
python-requests (>= 2.18.0), python3-requests (>= 2.18.0),
python-six (>= 1.1.0), python3-six (>= 1.1.0),
python-urllib3 (>= 1.21.1), python3-urllib3 (>= 1.21.1),
python-yara (>= 3.4.0), python3-yara (>= 3.4.0),
Standards-Version: 4.3.0
Homepage: http://plaso.kiddaland.net/
Vcs-Git: https://salsa.debian.org/pkg-security-team/plaso.git
......@@ -64,7 +67,16 @@ Vcs-Browser: https://salsa.debian.org/pkg-security-team/plaso
Package: plaso
Architecture: all
Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends},
Depends: ${misc:Depends},
python-plaso (>= ${source:Version}) | python3-plaso (>= ${source:Version}),
Description: super timeline all the things -- metapackage
This is a metapackage that depends on the Python 2 or Python 3
package of the Plaso libraries and scripts.
Package: python-plaso
Architecture: all
Section: python
Depends: ${misc:Depends}, ${python:Depends},
python-yaml (>= 3.10),
python-xlsxwriter (>= 0.9.3),
python-artifacts (>= 20170818),
......@@ -81,23 +93,23 @@ Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends},
python-future, python-hachoir-core (>= 1.3.3),
python-hachoir-metadata (>= 1.3.3),
python-hachoir-parser (>= 1.3.4),
python-idna,
python-idna (>= 2.5),
python-libbde (>= 20140531),
python-libesedb (>= 20150409),
python-libevt (>= 20120410),
python-libevtx (>= 20141112),
python-fsapfs (>= 20181205),
python-libewf (>= 20131210),
python-fsapfs (>= 20181205),
python-libfsntfs (>= 20151130),
python-libfvde (>= 20160719),
python-libfwnt (>= 20160418),
python-libfwnt (>= 20180117),
python-libfwsi (>= 20150606),
python-liblnk (>= 20150830),
python-libmsiecf (>= 20150314),
python-libolecf (>= 20151223),
python-libqcow (>= 20131204),
python-libregf (>= 20150315),
python-libscca (>= 20151226),
python-libscca (>= 20161031),
python-libsigscan (>= 20150627),
python-libsmdev (>= 20140529),
python-libsmraw (>= 20140612),
......@@ -105,26 +117,91 @@ Depends: ${shlibs:Depends}, ${misc:Depends}, ${python:Depends},
python-libvmdk (>= 20140421),
python-libvshadow (>= 20160109),
python-libvslvm (>= 20160109),
python-lz4,
python-pefile,
python-psutil (>= 1.2.1),
python-lz4 (>= 0.10.0),
python-pefile (>= 2018.8.8),
python-psutil (>= 5.4.3),
python-crypto (>= 2.6),
python-pyparsing (>= 2.0.3),
python-dateutil (>= 1.5),
python-tsk (>= 20160721),
python-tz,
python-zmq (>= 2.1.11),
python-requests (>= 2.2.1),
python-requests (>= 2.18.0),
python-six (>= 1.1.0),
python-urllib3,
python-urllib3 (>= 1.21.1),
python-yara (>= 3.4.0),
# ipython (>= 1.2.1),
# python-binplist (>= 0.1.4),
# python-construct.legacy | python-construct (<< 2.8),
# python-crypto (>= 2.6.0),
# python-dpkt (>= 1.8),
# python-protobuf,
Description: super timeline all the things
Breaks: plaso (<< 20190131-2~)
Replaces: plaso (<< 20190131-2~)
Description: super timeline all the things -- Python 2
Plaso (plaso langar að safna öllu) is the Python based back-end
engine used by tools such as log2timeline for automatic creation of a
super timelines. The goal of log2timeline (and thus plaso) is to
provide a single tool that can parse various log files and forensic
artifacts from computers and related systems, such as network
equipment to produce a single correlated timeline. This timeline can
then be easily analysed by forensic investigators/analysts, speeding
up investigations by correlating the vast amount of information found
on an average computer system.
.
This package contains a Plaso installation for Python 2.
Package: python3-plaso
Architecture: all
Section: python
Depends: ${misc:Depends}, ${python3:Depends},
python3-yaml (>= 3.10),
python3-xlsxwriter (>= 0.9.3),
python3-artifacts (>= 20170818),
python3-biplist (>= 1.0.3),
python3-certifi (>= 2016.9.26),
python3-chardet (>= 2.0.1),
python3-dfdatetime (>= 20180704),
python3-dfvfs (>= 20181209),
python3-dfwinreg (>= 20180712),
python3-dtfabric (>= 20181128),
python3-efilter (>= 1.5),
python3-elasticsearch (>= 5.4.0),
python3-future,
python3-idna (>= 2.5),
python3-libbde (>= 20140531),
python3-libesedb (>= 20150409),
python3-libevt (>= 20120410),
python3-libevtx (>= 20141112),
python3-libewf (>= 20131210),
python3-fsapfs (>= 20181205),
python3-libfsntfs (>= 20151130),
python3-libfvde (>= 20160719),
python3-libfwnt (>= 20180117),
python3-libfwsi (>= 20150606),
python3-liblnk (>= 20150830),
python3-libmsiecf (>= 20150314),
python3-libolecf (>= 20151223),
python3-libqcow (>= 20131204),
python3-libregf (>= 20150315),
python3-libscca (>= 20161031),
python3-libsigscan (>= 20150627),
python3-libsmdev (>= 20140529),
python3-libsmraw (>= 20140612),
python3-libvhdi (>= 20131210),
python3-libvmdk (>= 20140421),
python3-libvshadow (>= 20160109),
python3-libvslvm (>= 20160109),
python3-lz4 (>= 0.10.0),
python3-pefile (>= 2018.8.8),
python3-psutil (>= 5.4.3),
python3-crypto (>= 2.6),
python3-pyparsing (>= 2.0.3),
python3-dateutil (>= 1.5),
python3-tsk (>= 20160721),
python3-tz,
python3-zmq (>= 2.1.11),
python3-requests (>= 2.18.0),
python3-six (>= 1.1.0),
python3-urllib3 (>= 1.21.1),
python3-yara (>= 3.4.0),
Breaks: plaso (<< 20190131-2~)
Replaces: plaso (<< 20190131-2~)
Description: super timeline all the things -- Python 3
Plaso (plaso langar að safna öllu) is the Python based back-end
engine used by tools such as log2timeline for automatic creation of a
super timelines. The goal of log2timeline (and thus plaso) is to
......@@ -134,3 +211,5 @@ Description: super timeline all the things
then be easily analysed by forensic investigators/analysts, speeding
up investigations by correlating the vast amount of information found
on an average computer system.
.
This package contains a Plaso installation for Python 3.
#!/bin/sh
find debian/tmp/usr/bin -name \*.py | while read f
do
echo $f:
head -n1 $f
if head -n1 "$f" | grep python3; then
mv "$f" "$f-python3"
else
mv "$f" "$f-python2"
fi
done
plaso (20190131-1) unstable; urgency=medium
There is now the option to run Plaso with either Python 2 or Python 3,
using the python-plaso and python3-plaso packages, respectively.
The update-alternatives(1) program can be used to select which Python version
will be used globally. To select python2 or python3 on a per-call basis, the
following program names are available:
* log2timeline.py-python2, log2timeline.py-python3
* image_export.py-python2, image_export.py-python3
* pinfo.py-python2, pinfo.py-python3
* psort.py-python2, psort.py-python3
* psteal.py-python2, psteal.py-python3
-- Hilko Bengen <bengen@debian.org> Sat, 09 Feb 2019 23:53:49 +0100
/usr/lib/python2*
/usr/bin/*-python2
#!/bin/sh
set -e
case "${1}" in
configure)
update-alternatives \
--install /usr/bin/log2timeline.py log2timeline.py /usr/bin/log2timeline.py-python2 50 \
--slave /usr/bin/image_export.py image_export.py /usr/bin/image_export.py-python2 \
--slave /usr/bin/pinfo.py pinfo.py /usr/bin/pinfo.py-python2 \
--slave /usr/bin/psort.py psort.py /usr/bin/psort.py-python2 \
--slave /usr/bin/psteal.py psteal.py /usr/bin/psteal.py-python2
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`${1}'" >&2
exit 1
;;
esac
#DEBHELPER#
exit 0
#!/bin/sh
set -e
case "${1}" in
remove|deconfigure)
update-alternatives --remove log2timeline.py /usr/bin/log2timeline.py-python2
;;
upgrade|failed-upgrade)
;;
*)
echo "prerm called with unknown argument \`${1}'" >&2
exit 1
;;
esac
#DEBHELPER#
exit 0
/usr/lib/python3*
/usr/bin/*-python3
#!/bin/sh
set -e
case "${1}" in
configure)
update-alternatives \
--install /usr/bin/log2timeline.py log2timeline.py /usr/bin/log2timeline.py-python3 100 \
--slave /usr/bin/image_export.py image_export.py /usr/bin/image_export.py-python3 \
--slave /usr/bin/pinfo.py pinfo.py /usr/bin/pinfo.py-python3 \
--slave /usr/bin/psort.py psort.py /usr/bin/psort.py-python3 \
--slave /usr/bin/psteal.py psteal.py /usr/bin/psteal.py-python3
;;
abort-upgrade|abort-remove|abort-deconfigure)
;;
*)
echo "postinst called with unknown argument \`${1}'" >&2
exit 1
;;
esac
#DEBHELPER#
exit 0
#!/bin/sh
set -e
case "${1}" in
remove|deconfigure)
update-alternatives --remove log2timeline.py /usr/bin/log2timeline.py-python3
;;
upgrade|failed-upgrade)
;;
*)
echo "prerm called with unknown argument \`${1}'" >&2
exit 1
;;
esac
#DEBHELPER#
exit 0
......@@ -9,8 +9,10 @@ include /usr/share/dpkg/default.mk
# main packaging script based on dh7 syntax
%:
dh $@ --buildsystem=pybuild --with=python2
dh $@ --buildsystem=pybuild --with=python2,python3
override_dh_auto_install:
dh_auto_install -- --after-install debian/fix-scripts.sh
override_dh_compress:
dh_compress -X.rst
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment