pkgsrc-WIP-changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
wip/frida-capstone: import capstone-3.0.5rc2
Module Name: pkgsrc-wip
Committed By: Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By: kamil
Date: Thu Mar 15 03:09:33 2018 +0100
Changeset: 05bade7968e2d7467effccee59d6cf7c4ea1eff1
Added Files:
frida-capstone/DESCR
frida-capstone/Makefile
frida-capstone/Makefile.common
frida-capstone/PLIST
frida-capstone/buildlink3.mk
frida-capstone/distinfo
frida-capstone/patches/patch-cstool_Makefile
Log Message:
wip/frida-capstone: import capstone-3.0.5rc2
Capstone is a disassembly framework with the target of becoming
the ultimate disasm engine for binary analysis and reversing in
the security community.
Capstone supports multiple hardware architectures, including ARM,
ARM64 (ARMv8), Mips, PPC, Sparc, SystemZ, XCore and X86 (including
X86_64).
To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=05bade7968e2d7467effccee59d6cf7c4ea1eff1
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
diffstat:
frida-capstone/DESCR | 7 +++++++
frida-capstone/Makefile | 18 ++++++++++++++++++
frida-capstone/Makefile.common | 12 ++++++++++++
frida-capstone/PLIST | 16 ++++++++++++++++
frida-capstone/buildlink3.mk | 12 ++++++++++++
frida-capstone/distinfo | 7 +++++++
frida-capstone/patches/patch-cstool_Makefile | 19 +++++++++++++++++++
7 files changed, 91 insertions(+)
diffs:
diff --git a/frida-capstone/DESCR b/frida-capstone/DESCR
new file mode 100644
index 0000000000..38b2223fd6
--- /dev/null
+++ b/frida-capstone/DESCR
@@ -0,0 +1,7 @@
+Capstone is a disassembly framework with the target of becoming
+the ultimate disasm engine for binary analysis and reversing in
+the security community.
+
+Capstone supports multiple hardware architectures, including ARM,
+ARM64 (ARMv8), Mips, PPC, Sparc, SystemZ, XCore and X86 (including
+X86_64).
diff --git a/frida-capstone/Makefile b/frida-capstone/Makefile
new file mode 100644
index 0000000000..3114888c38
--- /dev/null
+++ b/frida-capstone/Makefile
@@ -0,0 +1,18 @@
+# $NetBSD: Makefile,v 1.10 2018/02/23 02:42:06 khorben Exp $
+
+.include "Makefile.common"
+
+MAINTAINER= pkgsrc-users%NetBSD.org@localhost
+COMMENT= Lightweight multi-platform, multi-architecture disassembly framework
+LICENSE= modified-bsd
+
+PKGCONFIG_OVERRIDE+= capstone.pc
+PKGCONFIG_OVERRIDE_STAGE= post-build
+USE_TOOLS+= gmake
+# succeeds after 'make install'
+TEST_TARGET= check
+
+# Don't use FreeBSD/DragonFly specific paths
+ALL_ENV+= USE_GENERIC_LIBDATADIR=yes
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/frida-capstone/Makefile.common b/frida-capstone/Makefile.common
new file mode 100644
index 0000000000..3fc3eeab9b
--- /dev/null
+++ b/frida-capstone/Makefile.common
@@ -0,0 +1,12 @@
+# $NetBSD: Makefile.common,v 1.2 2018/02/23 02:42:06 khorben Exp $
+#
+# used by devel/py-capstone/Makefile
+
+DISTNAME= capstone-3.0.5rc2
+CATEGORIES= devel
+MASTER_SITES= ${MASTER_SITE_GITHUB:=aquynh/}
+GITHUB_TAG= 3.0.5-rc2
+
+HOMEPAGE= http://www.capstone-engine.org/
+
+DISTINFO_FILE= ${.CURDIR}/../../devel/capstone/distinfo
diff --git a/frida-capstone/PLIST b/frida-capstone/PLIST
new file mode 100644
index 0000000000..e249a1364e
--- /dev/null
+++ b/frida-capstone/PLIST
@@ -0,0 +1,16 @@
+@comment $NetBSD: PLIST,v 1.2 2018/02/23 02:42:06 khorben Exp $
+bin/cstool
+include/capstone/arm.h
+include/capstone/arm64.h
+include/capstone/capstone.h
+include/capstone/mips.h
+include/capstone/platform.h
+include/capstone/ppc.h
+include/capstone/sparc.h
+include/capstone/systemz.h
+include/capstone/x86.h
+include/capstone/xcore.h
+lib/libcapstone.a
+lib/libcapstone.so
+lib/libcapstone.so.3
+lib/pkgconfig/capstone.pc
diff --git a/frida-capstone/buildlink3.mk b/frida-capstone/buildlink3.mk
new file mode 100644
index 0000000000..c6c65e6159
--- /dev/null
+++ b/frida-capstone/buildlink3.mk
@@ -0,0 +1,12 @@
+# $NetBSD: buildlink3.mk,v 1.2 2016/06/13 01:51:04 kamil Exp $
+
+BUILDLINK_TREE+= capstone
+
+.if !defined(CAPSTONE_BUILDLINK3_MK)
+CAPSTONE_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.capstone+= capstone>=3.0
+BUILDLINK_PKGSRCDIR.capstone?= ../../devel/capstone
+.endif # CAPSTONE_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -capstone
diff --git a/frida-capstone/distinfo b/frida-capstone/distinfo
new file mode 100644
index 0000000000..7b44c72d73
--- /dev/null
+++ b/frida-capstone/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.10 2018/02/23 02:42:06 khorben Exp $
+
+SHA1 (capstone-3.0.5rc2.tar.gz) = 52052e754c4f92128d16d5b028b85f646547f091
+RMD160 (capstone-3.0.5rc2.tar.gz) = 960473fc8f4b7113adc291b768e668e27a7c8b56
+SHA512 (capstone-3.0.5rc2.tar.gz) = 31bafdb0b3183d0c054a4244cc135db9a3c3dc5cb2e2af706bfede0d53cca8cba81d74b74ef9a4adbfd6c79cc408864dd80b8203791e17bd6c98bb69ea4f6894
+Size (capstone-3.0.5rc2.tar.gz) = 2829338 bytes
+SHA1 (patch-cstool_Makefile) = 94c029a1f667ceffad787f056c332c11001344df
diff --git a/frida-capstone/patches/patch-cstool_Makefile b/frida-capstone/patches/patch-cstool_Makefile
new file mode 100644
index 0000000000..79e2f8684d
--- /dev/null
+++ b/frida-capstone/patches/patch-cstool_Makefile
@@ -0,0 +1,19 @@
+$NetBSD: patch-cstool_Makefile,v 1.1 2018/02/23 02:42:06 khorben Exp $
+
+Fix path to the libraries installed.
+
+--- cstool/Makefile.orig 2017-03-02 14:21:24.000000000 +0000
++++ cstool/Makefile
+@@ -6,8 +6,10 @@ include ../functions.mk
+
+ LIBNAME = capstone
+
+-CFLAGS = -I../include
+-LDFLAGS = -O3 -Wall -L.. -l$(LIBNAME)
++PREFIX ?= /usr
++LIBDIRARCH ?= lib
++CFLAGS = -I../include -O3 -Wall
++LDFLAGS = -Wl,-rpath,$(PREFIX)/$(LIBDIRARCH) -L.. -l$(LIBNAME)
+
+ TARGET = cstool
+ SOURCES := $(wildcard *.c)
Home |
Main Index |
Thread Index |
Old Index