pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Package py-angr (no release information)
Module Name: pkgsrc-wip
Committed By: Pierre Pronchery <khorben%defora.org@localhost>
Pushed By: khorben
Date: Mon Feb 26 03:40:15 2018 +0100
Changeset: 10c3609f583196009936ecfb135a026eb7a65971
Modified Files:
Makefile
Added Files:
py-angr/DESCR
py-angr/Makefile
py-angr/PLIST
py-angr/distinfo
py-angr/patches/patch-native_Makefile
py-angr/patches/patch-native_log.c
Log Message:
Package py-angr (no release information)
angr is a suite of python libraries that let you load a binary and do a lot of
cool things to it:
* Disassembly and intermediate-representation lifting
* Program instrumentation
* Symbolic execution
* Control-flow analysis
* Data-dependency analysis
* Value-set analysis (VSA)
This does not build completely for me yet unfortunately.
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=10c3609f583196009936ecfb135a026eb7a65971
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
Makefile | 1 +
py-angr/DESCR | 10 ++++++++++
py-angr/Makefile | 31 +++++++++++++++++++++++++++++++
py-angr/PLIST | 0
py-angr/distinfo | 8 ++++++++
py-angr/patches/patch-native_Makefile | 16 ++++++++++++++++
py-angr/patches/patch-native_log.c | 18 ++++++++++++++++++
7 files changed, 84 insertions(+)
diffs:
diff --git a/Makefile b/Makefile
index c94c184282..1f9e50f6b0 100644
--- a/Makefile
+++ b/Makefile
@@ -2918,6 +2918,7 @@ SUBDIR+= py-algopy
SUBDIR+= py-amqpipe
SUBDIR+= py-amqplib
SUBDIR+= py-anfft
+SUBDIR+= py-angr
SUBDIR+= py-annarchy
SUBDIR+= py-antlr3
SUBDIR+= py-aopython
diff --git a/py-angr/DESCR b/py-angr/DESCR
new file mode 100644
index 0000000000..d28bc2260a
--- /dev/null
+++ b/py-angr/DESCR
@@ -0,0 +1,10 @@
+angr is a suite of python libraries that let you load a binary and do a lot of
+cool things to it:
+
+ * Disassembly and intermediate-representation lifting
+ * Program instrumentation
+ * Symbolic execution
+ * Control-flow analysis
+ * Data-dependency analysis
+ * Value-set analysis (VSA)
+
diff --git a/py-angr/Makefile b/py-angr/Makefile
new file mode 100644
index 0000000000..da4b73be6c
--- /dev/null
+++ b/py-angr/Makefile
@@ -0,0 +1,31 @@
+# $NetBSD: Makefile,v 1.3 2018/02/25 21:58:48 khorben Exp $
+
+DISTNAME= angr-${GITHUB_TAG}
+PKGNAME= ${PYPKGPREFIX}-${EGG_NAME}
+CATEGORIES= devel
+MASTER_SITES= ${MASTER_SITE_GITHUB:=angr/}
+GITHUB_PROJECT= angr
+GITHUB_TAG= 000718deab49cf506f6d26d69c63215cbcf1eb5b
+
+MAINTAINER= khorben%defora.org@localhost
+HOMEPAGE= https://github.com/angr/angr/
+COMMENT= Platform-agnostic binary analysis framework
+LICENSE= 2-clause-bsd
+
+USE_LANGUAGES+= c c++
+USE_TOOLS+= gmake
+
+DEPENDS+= ${PYPKGPREFIX}-cachetools-[0-9]*:../../devel/py-cachetools
+DEPENDS+= ${PYPKGPREFIX}-capstone-[0-9]*:../../devel/py-capstone
+DEPENDS+= ${PYPKGPREFIX}-cffi-[0-9]*:../../devel/py-cffi
+DEPENDS+= ${PYPKGPREFIX}-futures-[0-9]*:../../devel/py-futures
+DEPENDS+= ${PYPKGPREFIX}-unicorn-[0-9]*:../../emulators/py-unicorn
+DEPENDS+= ${PYPKGPREFIX}-claripy-[0-9]*:../../wip/py-claripy
+DEPENDS+= ${PYPKGPREFIX}-cle-[0-9]*:../../wip/py-cle
+DEPENDS+= ${PYPKGPREFIX}-pyvex-[0-9]*:../../wip/py-pyvex
+
+PYTHON_VERSIONS_ACCEPTED= 27
+
+.include "../../emulators/unicorn/buildlink3.mk"
+.include "../../lang/python/egg.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/py-angr/PLIST b/py-angr/PLIST
new file mode 100644
index 0000000000..e69de29bb2
diff --git a/py-angr/distinfo b/py-angr/distinfo
new file mode 100644
index 0000000000..0aebf04df3
--- /dev/null
+++ b/py-angr/distinfo
@@ -0,0 +1,8 @@
+$NetBSD$
+
+SHA1 (angr-000718deab49cf506f6d26d69c63215cbcf1eb5b-000718deab49cf506f6d26d69c63215cbcf1eb5b.tar.gz) = f310c452e29480a176365bfd86835ba3f7eaba65
+RMD160 (angr-000718deab49cf506f6d26d69c63215cbcf1eb5b-000718deab49cf506f6d26d69c63215cbcf1eb5b.tar.gz) = d21469a3b124f78bd6ecd9c2aae5092115eea6b9
+SHA512 (angr-000718deab49cf506f6d26d69c63215cbcf1eb5b-000718deab49cf506f6d26d69c63215cbcf1eb5b.tar.gz) = 844fd7571d342d219c8071db01b11ef88188c441460f5bf93ec344383c7151d8fc4d236844ff650dff8127fbc3083ace071c2eacf5343829b5886bc9972d4cc1
+Size (angr-000718deab49cf506f6d26d69c63215cbcf1eb5b-000718deab49cf506f6d26d69c63215cbcf1eb5b.tar.gz) = 685068 bytes
+SHA1 (patch-native_Makefile) = d0ba09332bdb8aa1a721cfb8d0a34951164e82d2
+SHA1 (patch-native_log.c) = deee60432d81962919b4060f13e7d5a1da6ad9d8
diff --git a/py-angr/patches/patch-native_Makefile b/py-angr/patches/patch-native_Makefile
new file mode 100644
index 0000000000..419f626a89
--- /dev/null
+++ b/py-angr/patches/patch-native_Makefile
@@ -0,0 +1,16 @@
+$NetBSD$
+
+Add support for NetBSD.
+
+--- native/Makefile.orig 2018-02-25 22:30:58.000000000 +0000
++++ native/Makefile
+@@ -5,6 +5,9 @@ endif
+ ifeq ($(UNAME), Linux)
+ LIB_ANGR_NATIVE=angr_native.so
+ endif
++ifeq ($(UNAME), NetBSD)
++ LIB_ANGR_NATIVE=angr_native.so
++endif
+
+ CC := gcc
+ C++C := g++
diff --git a/py-angr/patches/patch-native_log.c b/py-angr/patches/patch-native_log.c
new file mode 100644
index 0000000000..42d7309a10
--- /dev/null
+++ b/py-angr/patches/patch-native_log.c
@@ -0,0 +1,18 @@
+$NetBSD$
+
+Fix build on NetBSD.
+
+--- native/log.c.orig 2018-02-25 22:30:58.000000000 +0000
++++ native/log.c
+@@ -107,7 +107,11 @@ void logLog(enum llevel_t ll, const char
+ dprintf(log_fd, "%s", logLevels[ll].prefix);
+ }
+ if (logLevels[ll].print_funcline) {
++#ifdef __linux__
+ dprintf(log_fd, "[%s][%s][%d] %s():%d ", timestr, logLevels[ll].descr, (pid_t)syscall(__NR_gettid), fn, ln);
++#else
++ dprintf(log_fd, "[%s][%s][%d] %s():%d ", timestr, logLevels[ll].descr, getpid(), fn, ln);
++#endif
+ }
+
+ va_list args;
Home |
Main Index |
Thread Index |
Old Index