Bug#792800: src:libewf: Add Python bindings
Hilko Bengen
bengen at debian.org
Sat Jul 18 17:16:49 UTC 2015
Package: src:libewf
Version: 20140608-5
Severity: normal
Tags: patch
Control: block 792335 by -1
Please add a package with Python bindings, this is needed for Plaso (ITP
bug at #792335).
Thanks,
-Hilko
diff --git a/debian/control b/debian/control
index 7a3a2d5..dda1942 100644
--- a/debian/control
+++ b/debian/control
@@ -15,7 +15,8 @@ Build-Depends: debhelper (>= 9),
libssl-dev,
flex,
bison,
- pkg-config
+ pkg-config,
+ python-dev,
Standards-Version: 3.9.6
Homepage: https://github.com/libyal/libewf
Vcs-Browser: https://anonscm.debian.org/cgit/forensics/libewf.git
@@ -78,3 +79,17 @@ Description: collection of tools for reading and writing EWF files
investigations.
.
This package contains tools to acquire, verify and export EWF files.
+
+Package: python-libewf
+Section: python
+Architecture: any
+Depends: libewf2 (= ${binary:Version}), ${shlibs:Depends}, ${misc:Depends}, ${python:Depends}
+Description: support for Expert Witness Compression format -- Python bindings
+ Libewf is a library with support for reading and writing the Expert Witness
+ Compression Format (EWF).
+ This library allows you to read media information of EWF files in the SMART
+ (EWF-S01) format and the EnCase (EWF-E01) format. It supports files created
+ by EnCase 1 to 6, linen and FTK Imager. The libewf is useful for forensics
+ investigations.
+ .
+ This package contains Python bindings for libewf.
diff --git a/debian/python-libewf.install b/debian/python-libewf.install
new file mode 100644
index 0000000..47e0ed4
--- /dev/null
+++ b/debian/python-libewf.install
@@ -0,0 +1 @@
+/usr/lib/python*
diff --git a/debian/rules b/debian/rules
index 8adfa25..f6088e6 100755
--- a/debian/rules
+++ b/debian/rules
@@ -13,7 +13,7 @@ override_dh_clean:
do rm -f $$filename; done
override_dh_auto_configure:
- dh_auto_configure -- LDFLAGS="-Wl,--as-needed $(LDFLAGS)"
+ dh_auto_configure -- --enable-python LDFLAGS="-Wl,--as-needed $(LDFLAGS)"
override_dh_strip:
dh_strip --dbg-package=libewf-dbg
@@ -25,7 +25,8 @@ override_dh_install:
find debian/tmp/usr/lib -name "*.la" -exec \
sed -i -e "s,^dependency_libs=.*,dependency_libs=''," {} +
dh_install
+ rm -f debian/python-libewf/usr/lib/python2.7/dist-packages/*.a
%:
- dh $@ --with autoreconf
+ dh $@ --with autoreconf,python2
More information about the forensics-devel
mailing list