diff options
| author | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2022-04-05 13:43:43 +0000 |
|---|---|---|
| committer | Liguros - Gitlab CI/CD [develop] <gitlab@liguros.net> | 2022-04-05 13:43:43 +0000 |
| commit | 79a07c40c6574f5548de684884bc4dfa8a18d46f (patch) | |
| tree | e5aac2e265a3b6d48e4b4cd3b4ad501c5e02005c /dev-python/leechcorepyc | |
| parent | c5057a2c3d7be3c010fd890289ac3a0860df7887 (diff) | |
| download | baldeagleos-repo-79a07c40c6574f5548de684884bc4dfa8a18d46f.tar.gz baldeagleos-repo-79a07c40c6574f5548de684884bc4dfa8a18d46f.tar.xz baldeagleos-repo-79a07c40c6574f5548de684884bc4dfa8a18d46f.zip | |
Adding metadata
Diffstat (limited to 'dev-python/leechcorepyc')
| -rw-r--r-- | dev-python/leechcorepyc/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/leechcorepyc/files/leechcorepyc-2.10.2-respect-CC.patch | 49 | ||||
| -rw-r--r-- | dev-python/leechcorepyc/leechcorepyc-2.10.2.ebuild | 35 | ||||
| -rw-r--r-- | dev-python/leechcorepyc/metadata.xml | 18 |
4 files changed, 103 insertions, 0 deletions
diff --git a/dev-python/leechcorepyc/Manifest b/dev-python/leechcorepyc/Manifest new file mode 100644 index 000000000000..996d1eee59a1 --- /dev/null +++ b/dev-python/leechcorepyc/Manifest @@ -0,0 +1 @@ +DIST leechcorepyc-2.10.2.tar.gz 119984 BLAKE2B e9bba5dd548ce5ce8c3a367d1ae21b66fca796e5614fe3cc86cdc16ddd1b589261534b551992a3964542f6d61fb6fb64bc9e2e03f8775486761107a4ffbeb958 SHA512 16048f3494452ff75fa946d65dfa36a7b0dd30c132db10c01fdc1dbe0de051c69856bf7b9830d68ee17ec1e4ce5fb29ba17a14f0facb928b81e4094ac5009716 diff --git a/dev-python/leechcorepyc/files/leechcorepyc-2.10.2-respect-CC.patch b/dev-python/leechcorepyc/files/leechcorepyc-2.10.2-respect-CC.patch new file mode 100644 index 000000000000..62c5669ae6c1 --- /dev/null +++ b/dev-python/leechcorepyc/files/leechcorepyc-2.10.2-respect-CC.patch @@ -0,0 +1,49 @@ +diff --git a/leechcore/Makefile b/leechcore/Makefile +index 4f4ff0f..bb04781 100755 +--- a/leechcore/Makefile ++++ b/leechcore/Makefile +@@ -1,7 +1,8 @@ +-CC=gcc
+-CFLAGS += -I. -D LINUX -D _GNU_SOURCE -shared -fPIC -fvisibility=hidden -pthread `pkg-config libusb-1.0 --libs --cflags`
++CC?=gcc
++PKG_CONFIG ?= pkg-config
++CFLAGS += -I. -D LINUX -D _GNU_SOURCE -shared -fPIC -fvisibility=hidden -pthread `$(PKG_CONFIG) libusb-1.0 --libs --cflags`
+ #CFLAGS += -g -O0
+-CFLAGS += -fPIE -fPIC -pie -fstack-protector -D_FORTIFY_SOURCE=2 -O1 -Wl,-z,noexecstack
++CFLAGS += -fPIE -fPIC -pie -D_FORTIFY_SOURCE=2 -Wl,-z,noexecstack
+ CFLAGS += -Wall -Wno-unused-result -Wno-unused-variable -Wno-unused-value -Wno-pointer-to-int-cast -Wno-int-to-pointer-cast
+ LDFLAGS += -g -ldl -shared
+ DEPS = leechcore.h
+diff --git a/leechcore_device_rawtcp/Makefile b/leechcore_device_rawtcp/Makefile +index 6ce9a8b..b3e7990 100755 +--- a/leechcore_device_rawtcp/Makefile ++++ b/leechcore_device_rawtcp/Makefile +@@ -1,4 +1,4 @@ +-CC=gcc ++CC?=gcc + CFLAGS += -I. -I../includes -D LINUX -shared -fPIC -fvisibility=hidden + LDFLAGS += -g -shared + DEPS = +diff --git a/leechcore_device_sp605tcp/Makefile b/leechcore_device_sp605tcp/Makefile +index b3e4db4..f727c04 100755 +--- a/leechcore_device_sp605tcp/Makefile ++++ b/leechcore_device_sp605tcp/Makefile +@@ -1,4 +1,4 @@ +-CC=gcc ++CC?=gcc + CFLAGS += -I. -I../includes -D LINUX -shared -fPIC -fvisibility=hidden + LDFLAGS += -g -shared + DEPS = +diff --git a/leechcore_ft601_driver_linux/Makefile b/leechcore_ft601_driver_linux/Makefile +index 7afbf33..6b62aa8 100755 +--- a/leechcore_ft601_driver_linux/Makefile ++++ b/leechcore_ft601_driver_linux/Makefile +@@ -1,5 +1,6 @@ +-CC=gcc +-CFLAGS += -I. -D LINUX -shared -fPIC -fvisibility=hidden `pkg-config libusb-1.0 --libs --cflags` ++CC?=gcc ++PKG_CONFIG ?= pkg-config ++CFLAGS += -I. -D LINUX -shared -fPIC -fvisibility=hidden `$(PKG_CONFIG) libusb-1.0 --libs --cflags` + LDFLAGS += -g -shared + DEPS = leechcore_ft601_driver_linux.h + OBJ = fpga_libusb.o leechcore_ft601_driver_linux.o diff --git a/dev-python/leechcorepyc/leechcorepyc-2.10.2.ebuild b/dev-python/leechcorepyc/leechcorepyc-2.10.2.ebuild new file mode 100644 index 000000000000..81388c67988f --- /dev/null +++ b/dev-python/leechcorepyc/leechcorepyc-2.10.2.ebuild @@ -0,0 +1,35 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{7,8,9,10} ) + +inherit distutils-r1 toolchain-funcs + +DESCRIPTION="Python binding for LeechCore Physical Memory Acquisition Library" +HOMEPAGE="https://github.com/ufrisk/LeechCore" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +KEYWORDS="~amd64 ~x86" +LICENSE="GPL-3" +SLOT="0" + +# leechcorepyc ships with a bundled version of the LeechCore library. So we +# dont't depend on the library here. But we must be aware this module doesn't +# use the system library. +DEPEND="virtual/libusb:=" +RDEPEND="${DEPEND} + ${PYTHON_DEPS}" +BDEPEND="virtual/pkgconfig" + +PATCHES=( + "${FILESDIR}"/${PN}-2.10.2-respect-CC.patch +) + +src_configure() { + tc-export CC + + distutils-r1_src_configure +} diff --git a/dev-python/leechcorepyc/metadata.xml b/dev-python/leechcorepyc/metadata.xml new file mode 100644 index 000000000000..88600964e3eb --- /dev/null +++ b/dev-python/leechcorepyc/metadata.xml @@ -0,0 +1,18 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://liguros.gitlab.io/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>mario.haustein@hrz.tu-chemnitz.de</email> + <name>Mario Haustein</name> + </maintainer> + <maintainer type="person"> + <email>sam@gentoo.org</email> + <name>Sam James</name> + </maintainer> + <longdescription> + The LeechCore Memory Acquisition Library focuses on Physical Memory + Acquisition using various hardware and software based methods. + </longdescription> + + <origin>gentoo-staging</origin> +</pkgmetadata>
\ No newline at end of file |
