[Forensics-changes] [yara] 342/415: Added Python3 bindings package

Hilko Bengen bengen at moszumanska.debian.org
Thu Apr 3 05:43:22 UTC 2014


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to branch debian
in repository yara.

commit 86d42718a970e2b602e4d95036b22e71d3b842bf
Author: Hilko Bengen <bengen at debian.org>
Date:   Mon Dec 23 19:12:34 2013 +0100

    Added Python3 bindings package
---
 debian/control              | 34 ++++++++++++++++++++++++++++++++--
 debian/python-yara.install  |  2 +-
 debian/python3-yara.docs    |  1 +
 debian/python3-yara.install |  1 +
 debian/rules                | 21 ++++++++++++---------
 5 files changed, 47 insertions(+), 12 deletions(-)

diff --git a/debian/control b/debian/control
index 1d2d75d..5c7f295 100644
--- a/debian/control
+++ b/debian/control
@@ -4,7 +4,8 @@ Priority: optional
 Maintainer: Debian Forensics <forensics-devel at lists.alioth.debian.org>
 Uploaders: Joao Eriberto Mota Filho <eriberto at eriberto.pro.br>,
  Hilko Bengen <bengen at debian.org>
-Build-Depends: debhelper (>= 9), dh-autoreconf, libpcre3-dev, python-dev
+Build-Depends: debhelper (>= 9), dh-autoreconf, libpcre3-dev,
+ python-all-dev, python3-all-dev,
 Standards-Version: 3.9.5
 Homepage: http://plusvic.github.io/yara/
 # Vcs-Git: git://anonscm.debian.org/forensics/yara.git
@@ -121,4 +122,33 @@ Description: help to identify and classify malwares (Python bindings)
  .
  The Volatility Framework is an example of the software that uses YARA.
  .
- This package provides Python bindings.
+ This package provides Python 2 bindings.
+
+Package: python3-yara
+Section: python
+Architecture: any
+Depends: ${shlibs:Depends}, ${misc:Depends}
+Description: help to identify and classify malwares (Python bindings)
+ YARA is a tool aimed at helping malware researchers to identify
+ and classify malware samples. With YARA you can create descriptions
+ of malware families based on textual or binary patterns contained
+ on samples of those families. Each description consists of a set of
+ strings and a Boolean expression which determines its logic. This is
+ useful in forensics analysis.
+ .
+ Complex and powerful rules can be created by using binary strings with
+ wild-cards, case-insensitive text strings, special operators, regular
+ expressions and many other features.
+ .
+ Are examples of the organizations and services using YARA:
+ .
+  - VirusTotal Intelligence (https://www.virustotal.com/intelligence/)
+  - jsunpack-n (http://jsunpack.jeek.org/)
+  - We Watch Your Website (http://www.wewatchyourwebsite.com/)
+  - FireEye, Inc. (http://www.fireeye.com)
+  - Fidelis XPS (http://www.fidelissecurity.com/network-security-appliance/ \
+    Fidelis-XPS)
+ .
+ The Volatility Framework is an example of the software that uses YARA.
+ .
+ This package provides Python 3 bindings.
diff --git a/debian/python-yara.install b/debian/python-yara.install
index 3defa6d..fe633eb 100644
--- a/debian/python-yara.install
+++ b/debian/python-yara.install
@@ -1 +1 @@
-/usr/lib/python*
\ No newline at end of file
+/usr/lib/python2*
\ No newline at end of file
diff --git a/debian/python3-yara.docs b/debian/python3-yara.docs
new file mode 100644
index 0000000..885ac68
--- /dev/null
+++ b/debian/python3-yara.docs
@@ -0,0 +1 @@
+yara-python/README
diff --git a/debian/python3-yara.install b/debian/python3-yara.install
new file mode 100644
index 0000000..028be4f
--- /dev/null
+++ b/debian/python3-yara.install
@@ -0,0 +1 @@
+/usr/lib/python3*
\ No newline at end of file
diff --git a/debian/rules b/debian/rules
index 035ce68..d1bf4c5 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,19 +1,22 @@
 #!/usr/bin/make -f
 #export DH_VERBOSE=1
 
+PYTHONS:=$(shell pyversions --installed; py3versions --installed)
+
 %:
-	dh $@  --with autoreconf,python2
-override_dh_auto_configure:
-	dh_auto_configure
-	dh_auto_configure --sourcedirectory=yara-python
+	dh $@  --with autoreconf,python2,python3
 override_dh_auto_build:
 	dh_auto_build
-	dh_auto_build --sourcedirectory=yara-python
-override_dh_auto_test:
-	dh_auto_test
-	dh_auto_test --sourcedirectory=yara-python
+	set -e; for python in $(PYTHONS); do \
+		( cd yara-python && $$python setup.py build ); \
+	done
 override_dh_auto_install:
 	dh_auto_install
-	dh_auto_install --sourcedirectory=yara-python
+	set -e; for python in $(PYTHONS); do \
+		( cd yara-python && $$python setup.py install --skip-build --root ../debian/tmp --install-layout=deb ); \
+	done
+override_dh_auto_clean:
+	dh_auto_clean
+	dh_auto_clean --sourcedirectory=yara-python
 override_dh_install:
 	dh_install --fail-missing -X.la

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/forensics/yara.git



More information about the forensics-changes mailing list