[Forensics-changes] [yara] 329/415: Added Python bindings package

Hilko Bengen bengen at moszumanska.debian.org
Thu Apr 3 05:43:20 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 fd568115bfbf0de46e7932fbf96d963f7389e63b
Author: Hilko Bengen <bengen at debian.org>
Date:   Sat Dec 21 14:44:15 2013 +0100

    Added Python bindings package
---
 debian/control                  | 31 ++++++++++++++++++++++++++++++-
 debian/patches/fix-python-build | 14 ++++++++++++++
 debian/patches/series           |  1 +
 debian/python-yara.docs         |  1 +
 debian/python-yara.install      |  1 +
 debian/rules                    | 16 +++++++++++++++-
 debian/yara.docs                |  1 +
 7 files changed, 63 insertions(+), 2 deletions(-)

diff --git a/debian/control b/debian/control
index 2825b0e..1d2d75d 100644
--- a/debian/control
+++ b/debian/control
@@ -4,7 +4,7 @@ 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), autotools-dev, libpcre3-dev
+Build-Depends: debhelper (>= 9), dh-autoreconf, libpcre3-dev, python-dev
 Standards-Version: 3.9.5
 Homepage: http://plusvic.github.io/yara/
 # Vcs-Git: git://anonscm.debian.org/forensics/yara.git
@@ -93,3 +93,32 @@ Description: help to identify and classify malwares (development files)
  The Volatility Framework is an example of the software that uses YARA.
  .
  This package provides development libraries and headers.
+
+Package: python-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 bindings.
diff --git a/debian/patches/fix-python-build b/debian/patches/fix-python-build
new file mode 100644
index 0000000..f8b40e5
--- /dev/null
+++ b/debian/patches/fix-python-build
@@ -0,0 +1,14 @@
+Index: yara/yara-python/setup.py
+===================================================================
+--- yara.orig/yara-python/setup.py	2013-12-21 14:48:26.230383113 +0100
++++ yara/yara-python/setup.py	2013-12-21 14:50:09.059686946 +0100
+@@ -10,7 +10,8 @@
+                                     name='yara',
+                                     sources=['yara-python.c'],
+                                     libraries=['yara','pcre'],
+-                                    include_dirs=['/usr/local/include']
++                                    include_dirs=['../libyara'],
++                                    library_dirs=['../libyara/.libs']
+                                     )])
+ 
+ 
diff --git a/debian/patches/series b/debian/patches/series
index 112ed86..6da592e 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
+fix-python-build
 manpage
diff --git a/debian/python-yara.docs b/debian/python-yara.docs
new file mode 100644
index 0000000..885ac68
--- /dev/null
+++ b/debian/python-yara.docs
@@ -0,0 +1 @@
+yara-python/README
diff --git a/debian/python-yara.install b/debian/python-yara.install
new file mode 100644
index 0000000..3defa6d
--- /dev/null
+++ b/debian/python-yara.install
@@ -0,0 +1 @@
+/usr/lib/python*
\ No newline at end of file
diff --git a/debian/rules b/debian/rules
index a7a3ef8..035ce68 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,4 +2,18 @@
 #export DH_VERBOSE=1
 
 %:
-	dh $@  --with autotools-dev
+	dh $@  --with autoreconf,python2
+override_dh_auto_configure:
+	dh_auto_configure
+	dh_auto_configure --sourcedirectory=yara-python
+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
+override_dh_auto_install:
+	dh_auto_install
+	dh_auto_install --sourcedirectory=yara-python
+override_dh_install:
+	dh_install --fail-missing -X.la
diff --git a/debian/yara.docs b/debian/yara.docs
new file mode 100644
index 0000000..b43bf86
--- /dev/null
+++ b/debian/yara.docs
@@ -0,0 +1 @@
+README.md

-- 
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