[crux-commits] ports/contrib (refs/remotes/origin/3.6): capstone: initial commit, v4.0.2

crux at crux.nu crux at crux.nu
Sat Apr 10 19:06:05 UTC 2021


commit bc3c26e53872436bb7232738a8bb2044eb0c756d
Author: Alexandr Savca <alexandr.savca89 at gmail.com>
Date:   Tue Jan 5 17:24:23 2021 +0200

    capstone: initial commit, v4.0.2

diff --git a/capstone/.footprint b/capstone/.footprint
new file mode 100644
index 000000000..e02d9523c
--- /dev/null
+++ b/capstone/.footprint
@@ -0,0 +1,123 @@
+drwxr-xr-x	root/root	usr/
+drwxr-xr-x	root/root	usr/bin/
+-rwxr-xr-x	root/root	usr/bin/cstool
+drwxr-xr-x	root/root	usr/include/
+drwxr-xr-x	root/root	usr/include/capstone/
+-rw-r--r--	root/root	usr/include/capstone/arm.h
+-rw-r--r--	root/root	usr/include/capstone/arm64.h
+-rw-r--r--	root/root	usr/include/capstone/capstone.h
+-rw-r--r--	root/root	usr/include/capstone/evm.h
+-rw-r--r--	root/root	usr/include/capstone/m680x.h
+-rw-r--r--	root/root	usr/include/capstone/m68k.h
+-rw-r--r--	root/root	usr/include/capstone/mips.h
+-rw-r--r--	root/root	usr/include/capstone/platform.h
+-rw-r--r--	root/root	usr/include/capstone/ppc.h
+-rw-r--r--	root/root	usr/include/capstone/sparc.h
+-rw-r--r--	root/root	usr/include/capstone/systemz.h
+-rw-r--r--	root/root	usr/include/capstone/tms320c64x.h
+-rw-r--r--	root/root	usr/include/capstone/x86.h
+-rw-r--r--	root/root	usr/include/capstone/xcore.h
+drwxr-xr-x	root/root	usr/lib/
+-rw-r--r--	root/root	usr/lib/libcapstone.a
+lrwxrwxrwx	root/root	usr/lib/libcapstone.so -> libcapstone.so.4
+-rwxr-xr-x	root/root	usr/lib/libcapstone.so.4
+drwxr-xr-x	root/root	usr/lib/pkgconfig/
+-rw-r--r--	root/root	usr/lib/pkgconfig/capstone.pc
+drwxr-xr-x	root/root	usr/lib/python3.9/
+drwxr-xr-x	root/root	usr/lib/python3.9/site-packages/
+drwxr-xr-x	root/root	usr/lib/python3.9/site-packages/capstone/
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/capstone/__init__.py
+drwxr-xr-x	root/root	usr/lib/python3.9/site-packages/capstone/__pycache__/
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/capstone/__pycache__/__init__.cpython-39.opt-1.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/capstone/__pycache__/__init__.cpython-39.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/capstone/__pycache__/arm.cpython-39.opt-1.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/capstone/__pycache__/arm.cpython-39.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/capstone/__pycache__/arm64.cpython-39.opt-1.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/capstone/__pycache__/arm64.cpython-39.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/capstone/__pycache__/arm64_const.cpython-39.opt-1.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/capstone/__pycache__/arm64_const.cpython-39.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/capstone/__pycache__/arm_const.cpython-39.opt-1.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/capstone/__pycache__/arm_const.cpython-39.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/capstone/__pycache__/evm.cpython-39.opt-1.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/capstone/__pycache__/evm.cpython-39.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/capstone/__pycache__/evm_const.cpython-39.opt-1.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/capstone/__pycache__/evm_const.cpython-39.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/capstone/__pycache__/m680x.cpython-39.opt-1.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/capstone/__pycache__/m680x.cpython-39.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/capstone/__pycache__/m680x_const.cpython-39.opt-1.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/capstone/__pycache__/m680x_const.cpython-39.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/capstone/__pycache__/m68k.cpython-39.opt-1.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/capstone/__pycache__/m68k.cpython-39.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/capstone/__pycache__/m68k_const.cpython-39.opt-1.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/capstone/__pycache__/m68k_const.cpython-39.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/capstone/__pycache__/mips.cpython-39.opt-1.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/capstone/__pycache__/mips.cpython-39.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/capstone/__pycache__/mips_const.cpython-39.opt-1.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/capstone/__pycache__/mips_const.cpython-39.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/capstone/__pycache__/ppc.cpython-39.opt-1.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/capstone/__pycache__/ppc.cpython-39.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/capstone/__pycache__/ppc_const.cpython-39.opt-1.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/capstone/__pycache__/ppc_const.cpython-39.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/capstone/__pycache__/sparc.cpython-39.opt-1.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/capstone/__pycache__/sparc.cpython-39.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/capstone/__pycache__/sparc_const.cpython-39.opt-1.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/capstone/__pycache__/sparc_const.cpython-39.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/capstone/__pycache__/systemz.cpython-39.opt-1.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/capstone/__pycache__/systemz.cpython-39.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/capstone/__pycache__/sysz_const.cpython-39.opt-1.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/capstone/__pycache__/sysz_const.cpython-39.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/capstone/__pycache__/tms320c64x.cpython-39.opt-1.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/capstone/__pycache__/tms320c64x.cpython-39.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/capstone/__pycache__/tms320c64x_const.cpython-39.opt-1.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/capstone/__pycache__/tms320c64x_const.cpython-39.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/capstone/__pycache__/x86.cpython-39.opt-1.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/capstone/__pycache__/x86.cpython-39.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/capstone/__pycache__/x86_const.cpython-39.opt-1.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/capstone/__pycache__/x86_const.cpython-39.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/capstone/__pycache__/xcore.cpython-39.opt-1.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/capstone/__pycache__/xcore.cpython-39.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/capstone/__pycache__/xcore_const.cpython-39.opt-1.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/capstone/__pycache__/xcore_const.cpython-39.pyc
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/capstone/arm.py
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/capstone/arm64.py
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/capstone/arm64_const.py
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/capstone/arm_const.py
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/capstone/evm.py
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/capstone/evm_const.py
+drwxr-xr-x	root/root	usr/lib/python3.9/site-packages/capstone/include/
+drwxr-xr-x	root/root	usr/lib/python3.9/site-packages/capstone/include/capstone/
+-rw-rw-r--	root/root	usr/lib/python3.9/site-packages/capstone/include/capstone/arm.h
+-rw-rw-r--	root/root	usr/lib/python3.9/site-packages/capstone/include/capstone/arm64.h
+-rw-rw-r--	root/root	usr/lib/python3.9/site-packages/capstone/include/capstone/capstone.h
+-rw-rw-r--	root/root	usr/lib/python3.9/site-packages/capstone/include/capstone/evm.h
+-rw-rw-r--	root/root	usr/lib/python3.9/site-packages/capstone/include/capstone/m680x.h
+-rw-rw-r--	root/root	usr/lib/python3.9/site-packages/capstone/include/capstone/m68k.h
+-rw-rw-r--	root/root	usr/lib/python3.9/site-packages/capstone/include/capstone/mips.h
+-rw-rw-r--	root/root	usr/lib/python3.9/site-packages/capstone/include/capstone/platform.h
+-rw-rw-r--	root/root	usr/lib/python3.9/site-packages/capstone/include/capstone/ppc.h
+-rw-rw-r--	root/root	usr/lib/python3.9/site-packages/capstone/include/capstone/sparc.h
+-rw-rw-r--	root/root	usr/lib/python3.9/site-packages/capstone/include/capstone/systemz.h
+-rw-rw-r--	root/root	usr/lib/python3.9/site-packages/capstone/include/capstone/tms320c64x.h
+-rw-rw-r--	root/root	usr/lib/python3.9/site-packages/capstone/include/capstone/x86.h
+-rw-rw-r--	root/root	usr/lib/python3.9/site-packages/capstone/include/capstone/xcore.h
+drwxr-xr-x	root/root	usr/lib/python3.9/site-packages/capstone/lib/
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/capstone/lib/libcapstone.a
+-rwxr-xr-x	root/root	usr/lib/python3.9/site-packages/capstone/lib/libcapstone.so
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/capstone/m680x.py
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/capstone/m680x_const.py
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/capstone/m68k.py
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/capstone/m68k_const.py
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/capstone/mips.py
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/capstone/mips_const.py
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/capstone/ppc.py
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/capstone/ppc_const.py
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/capstone/sparc.py
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/capstone/sparc_const.py
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/capstone/systemz.py
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/capstone/sysz_const.py
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/capstone/tms320c64x.py
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/capstone/tms320c64x_const.py
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/capstone/x86.py
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/capstone/x86_const.py
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/capstone/xcore.py
+-rw-r--r--	root/root	usr/lib/python3.9/site-packages/capstone/xcore_const.py
diff --git a/capstone/.signature b/capstone/.signature
new file mode 100644
index 000000000..f5cd8b2fd
--- /dev/null
+++ b/capstone/.signature
@@ -0,0 +1,5 @@
+untrusted comment: verify with /etc/ports/contrib.pub
+RWSagIOpLGJF3/OvhhDPVWAPpPPZfwFZvsJn7kWMZx+kSmDyXIrpLme/fAN39vPX2hdtpU1xX4e5nCKfkQeFqR+n1MmSbHhn0ws=
+SHA256 (Pkgfile) = 3448f4659125567776e5968fe40f890e744cc3a0abc5d8fd07335c35bf308e1b
+SHA256 (.footprint) = b03f6a8a36270844658da50454ffdb51f686eab3f054ece4c56db96e71b90033
+SHA256 (capstone-4.0.2.tar.gz) = 7c81d798022f81e7507f1a60d6817f63aa76e489aa4e7055255f21a22f5e526a
diff --git a/capstone/Pkgfile b/capstone/Pkgfile
new file mode 100644
index 000000000..c4b840e27
--- /dev/null
+++ b/capstone/Pkgfile
@@ -0,0 +1,22 @@
+# Description: Lightweight multi-platform, multi-architecture disassembly framework
+# URL:         https://www.capstone-engine.org/index.html
+# Maintainer:  Alexandr Savca, alexandrsavca89 at gmail dot com
+# Depends on:  python3-setuptools
+
+name=capstone
+version=4.0.2
+release=1
+source=(https://github.com/aquynh/$name/archive/$version/$name-$version.tar.gz)
+
+build() {
+	cd $name-$version
+
+	make V=1
+	make DESTDIR=$PKG install
+
+	cd bindings/python
+	python3 setup.py install --prefix=/usr --root=$PKG --optimize=1
+
+	# remove sdist metadata, as wheel metadata will be used with python3-pip
+	rm -r $PKG/usr/lib/python*/site-packages/$name-$version-py*.egg-info
+}


More information about the crux-commits mailing list