Merge branch 'master' into revert_chirp

This commit is contained in:
Zero_Chaos 2024-06-10 20:03:31 -04:00 committed by GitHub
commit 3e2d41e2da
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
36 changed files with 285 additions and 755 deletions

View file

@ -1 +1,2 @@
DIST pcileech-4.17.tar.gz 393124 BLAKE2B fd6d044e1475ff364f49c1d0ed65bebb5bb412f97e29432d50ed548be2c6d16fd2ecb81629261b6b17b274d1797b4a1bc7c3ea94bbeb672f21a4faed0a5a1504 SHA512 1c4370f6b9dbe3d6aee42d60f682645517ea818d14f8e4e8d515fdfb70eead2668fe9640de0caf1403a665310528a319fd77e7db7754bc68f570dbf64e174f76
DIST pcileech-4.18.tar.gz 493745 BLAKE2B d69cfe8c89184ca5ba3704052f16cbcbfdb18da0b8b53a7b9dc748784504523d68429cb91a77dc5d58aa44f4884ac2fb7e77bc3bab1830515ed530cc045c6829 SHA512 444fdb5fb91188a762e5ac9e7f87c58d8e29c6c545341a32fd7c1d64a99f3c07a3afcc210576fde0b0ca252b5f5b941d9c18cfa99d2a00db8a2c1686f196e142

View file

@ -0,0 +1,31 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="Direct Memory Access (DMA) Attack Software"
HOMEPAGE="https://github.com/ufrisk/pcileech"
SRC_URI="https://github.com/ufrisk/pcileech/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="amd64 ~arm64 x86"
DEPEND="virtual/libusb:1
>=dev-libs/LeechCore-2.7
>=dev-libs/memprocfs-4.7"
RDEPEND="${DEPEND}"
src_prepare() {
sed '/mv leechcore.so/d' -i pcileech/Makefile || die
sed '/mv vmm.so/d' -i pcileech/Makefile || die
eapply_user
}
src_compile() {
emake -C pcileech
}
src_install(){
dobin files/pcileech
}

View file

@ -1,2 +1,2 @@
DIST LeechCore-2.14.tar.gz 155367 BLAKE2B 1c37d4eef60017761a962fc59c59de7a08e98974d8af9566a288909219426778a974d772a9ac626041fca0a8b24917423f492ce1bef6a916caa537a8153a9d21 SHA512 542e634a6182aca45aafdf0e03acbccc333494229d56a6e0936076b6cdcab039b0211272edcc05b8325fc7476c9464e49c56a0bb87a502f2ab60d27247f353b1
DIST LeechCore-2.16.tar.gz 217790 BLAKE2B 9c41af3d6c27ea5a536916e4780f2b5adbafbb9ead30bad6977864d71f64ae8a2db289f9004ce6a674732cb0db8e7072a37472eb082e6d152fcf7c474ff28f78 SHA512 63cc7e22c09f4f5dd9ab280f7db642f22e3745289739cb0b4445a4ac0e1557e13a65d0b78761dabc520ee8ec728c96247eea2479637cbd5e272fa72e83e69999
DIST LeechCore-2.18.tar.gz 226653 BLAKE2B 3bc804f155abc650d57dd27ebbad6c0b11f10b246561b8924cdf4e0b8deaaf7b5e66fb0e756eff9e29ee73d56b5baa3f0531b46226da7ad16627ed9795a4fc64 SHA512 feb2fc7c70ed0d9cc18cacc5764e9db39cf5dbe5dedb21ef34caaa00aaa87871d1a707a8d76204f89ac993fdde208aaa3fe17cc2d3079d130941d97358caa4bf

View file

@ -5,4 +5,7 @@
<email>unknown@pentoo.ch</email>
<name>Author Unknown</name>
</maintainer>
<upstream>
<remote-id type="github">ufrisk/LeechCore</remote-id>
</upstream>
</pkgmetadata>

View file

@ -1,20 +0,0 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{10..12} )
inherit distutils-r1
DESCRIPTION="Python interface to Bluetooth LE on Linux"
HOMEPAGE="https://github.com/IanHarvey/bluepy"
SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~arm ~x86"
RDEPEND="${PYTHON_DEPS}
dev-libs/glib:2"
DEPEND="${RDEPEND}"

View file

@ -0,0 +1,43 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..12} )
inherit distutils-r1 pypi fcaps
DESCRIPTION="Python interface to Bluetooth LE on Linux"
HOMEPAGE="https://github.com/IanHarvey/bluepy"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~arm ~x86"
RDEPEND="${PYTHON_DEPS}
dev-libs/glib:2"
DEPEND="${RDEPEND}"
src_prepare(){
sed -i 's|description-file|description_file|' setup.cfg || die "failed to sed setup.cfg"
sed -i 's|$(CFLAGS) $(CPPFLAGS)|$(CFLAGS) $(CPPFLAGS) $(LDFLAGS)|' bluepy/Makefile || die "failed to sed Makefile"
#compile bluepy-helper using python_compile() later. Or not
#sed -i '/pre_install()$/d' setup.py || die "failed to sed setup.py"
distutils-r1_src_prepare
# eapply_user
}
#python_compile() {
# pushd bluepy > /dev/null
#FIXME: broken Makefile, do not untar multiple times
# emake -j1
# popd > /dev/null
# distutils-r1_python_compile
#}
pkg_postinst() {
python_setup
fcaps cap_net_raw,cap_net_admin+eip $(python_get_sitedir)/bluepy/bluepy-helper
rm $(python_get_sitedir)/${PN}/{bluez-src.tgz,bluepy-helper.c,Makefile,version.h}
}

View file

@ -5,4 +5,8 @@
<email>unknown@pentoo.ch</email>
<name>Author Unknown</name>
</maintainer>
<upstream>
<remote-id type="github">IanHarvey/bluepy</remote-id>
<remote-id type="pypi">bluepy</remote-id>
</upstream>
</pkgmetadata>

View file

@ -1 +0,0 @@
DIST psycopg2cffi-2.8.1.tar.gz 63189 BLAKE2B 1c32f7e0eb0263a16e165753cad8dabbcd7f982157e89d86f1ed7d315f988d677b2437e041607f9a1a0a5b747758b1b0100e083a591783cc7f984d0c6ad7264b SHA512 d6e85822193621b5558acce148ed5ead8e5c19a5096e3c00a82a861af0fa0510de27af3b717e5effbc675d606c238b615f867558e89661e1437842ac8eead07d

View file

@ -1,21 +0,0 @@
# Copyright 2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{10..12} )
inherit distutils-r1
DESCRIPTION="Implementation of the psycopg2 module using cffi. Compatible with Psycopg 2.5."
HOMEPAGE="https://github.com/chtd/psycopg2cffi"
SRC_URI="mirror://pypi/${P:0:1}/${PN}/${P}.tar.gz"
LICENSE="LGPL-3+"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~x86"
RDEPEND=""
#pg_config is required to compile, https://github.com/pentoo/pentoo-overlay/issues/837
DEPEND="${RDEPEND}
dev-db/postgresql"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"

View file

@ -16,8 +16,8 @@ HOMEPAGE="
LICENSE="MIT"
SLOT="0"
#wait for dev-python/python-engineio
KEYWORDS="~amd64 ~x86"
#FIXME: no stable version for dev-python/python-engineio yet, but we don't care
KEYWORDS="amd64 ~arm64 ~x86"
IUSE="client asyncio-client"
RDEPEND="dev-python/bidict[${PYTHON_USEDEP}]

View file

@ -1,12 +1,21 @@
DIST AXMLPrinter2.jar 24552 BLAKE2B 3ff09da948c2962919927ad35f8d38a13391c763a83962f8fdce90ec4720430b00be891f68fc149f62180ddf5f5e818af4e6b6a153d1a55e871f181e930d2b7b SHA512 c1168ec913f1fbb0675915d4fd865ec9a8e8573f6c8aedcb6e68166f61f11aeaececc7548d54d78134843c0102c57d6350973f6d3027d0ffdae52a5c57a7f601
DIST Ghidra_11.0.3_build.tar.gz 68990077 BLAKE2B 3c8c6b9082eacb40d2b95aa10b66b5dc6c5138d6164ea7ac2d4a4f2f2749a8b7e659b773bfeba2eabbf7b9d5293b51372db663a3f4c491a02ed9ed246f3c348d SHA512 4805c0508c2781f3b05697aa7930b044241d749341b2ba5087d50ff0839d08052c8d526f9898215fa35666721cbdbd0f63400966587d32e2b0d1a91c5b97c213
DIST Ghidra_11.1_build.tar.gz 70068571 BLAKE2B 9e306569ae6ffb7fd4f28ffd3bb045bc4178020ba544989945d40c29522907db2168d5402979efd84fa2a83066e3790bb3bbfb50e8cf89b9678ca848381c2281 SHA512 a51eeb397aeaf4e117eed90101a0dee2451940e7e5045c15378543531c3f77b79fde871167810032735da559861ddc6db8cebb36b31f8aaf737d16aefc213ff6
DIST PyDev-6.3.1.zip 24756333 BLAKE2B e9a942e0ff90b9eafbd1fa0df5429f2ff227ed140b7352a1003be04ffbc043e17bf19bd622d7fe9b958286a75ff4897c03088c1627ee62ea7b6e832752cb427e SHA512 411ed78d1057f5e9780e44169935fb8a0da17e97ce26e9a7a9fa9a251d4d3c1118e9b47dd9f7af03bde1f47180bde0d456039b65687f600026a148055311ecfa
DIST Pybag-2.2.10-py3-none-any.whl 297877 BLAKE2B 6563cfd657b4bed2a57217fd2fbac9a9bf4449f7dd9b3881bda7942d38b14390b2aca611d71811e98a3f1c78266cb66bcaff5229c46920935bec6a6a9642b200 SHA512 9a2582a6e7ec922b28abf2a7b5250161ef2da4ba2570b29435e626da8c98d8be17298fde7a374783599605224781feec6dc16bfca5d7eb0455bea49a51dfbeb7
DIST capstone-5.0.1-py3-none-win_amd64.whl 1272594 BLAKE2B 37bdd905b5c2a684c129de309d424dc3b408ebc2eabf8b609728f9547e94a29f8da18bc18a5a67e7f54bdc41bbe32f07d4c449c5ac6314e25003d18eeeb85ad1 SHA512 500baa5fc0f5b0adf22480f28d430ead8c8a85b3fe374131d61bf03b1bf960ac9192ea4cc739f62b8550f59f6d506cad80d24aba34d5d19a1ec10ea17be43572
DIST cdt-8.6.0.zip 76639241 BLAKE2B 32c724b1f6ff43132f09c544bac8b35ed3f4f5866c844810abba3a52f82a3585ae7a57430fcf5603afecbeec1f46461a831339e442ca628b77f78c319bd9fc26 SHA512 2b8bb498146aa29995e807c5b4e9d5dab0f6afe89a5ce256978b7b2c478677a0cb5a0f15913a32bd99cb7b4bb31230521f70b9c26cdef1cb983dfcea599737c0
DIST comtypes-1.4.1-py3-none-any.whl 197917 BLAKE2B 227edcd95cc36318431d132a5ef5bf8055c030b1bc4be214a7b6a884801fa4df17b9d7df08505d2fab6e80a31f0c6fc41826f720545babecc22915e46869c2ce SHA512 2179ef65afa59fefcae5624008ff768af6ae8b73d4efd4172648ebaddd35bb65b8d78765eb80ff5abe20445117fe6a26579e127d024bfe16a27c2643224b8026
DIST dex2jar-2.1.zip 5641797 BLAKE2B 364374d37b453b8b7514e4770845ab1a13e95264901bb0e433037ea797fda09b5c5629bfc7ab0daed3c86e0d1cc77796bd850f209bf781f8db5a34eebe6a8305 SHA512 44b4a51043ef608158e16f70d9a448ae0a37896da19bd9837e1124e197b7b41a7c37f074386b0cc03edd4f385066bf5ef04c553f6dec0b0cc2a11ecbf299b16f
DIST ghidra-dependencies-20240407.tar.gz 93975745 BLAKE2B e4cb5c0bf3d9e16c0cf3d62680843fdf82b66ea4e664ea2ca3a5b1bef4e7873d63d1ee3fde80af2470276ad11a93b1a2f73098d656d05bb0dcd100f08e6543b0 SHA512 6931213c151998643f2f5f129def5a244ce226816bd6d2ac822f9dfbb761876e535507a6abdf41eea915655f6e10bf961d937340f3335c56cec4264fcf95281f
DIST ghidra-dependencies-20240509.tar.gz 94930313 BLAKE2B 4a747d55d1c0cdb59b9695925e388d07a5409a0bd811504efebf8f1e29216ddfffc579ff20b9814747f131e4f1983ef748d7bb3347abbc3bb329b57f88d9e351 SHA512 1913802e75fe93967039c3ea7531523c937f07b04c95c8a007d1cd1017667ea89c126399c18e6a2e88b9d3bcdb998e5c1df77cc0003101d7018fbbe5a44c200f
DIST hfsexplorer-0_21-bin.zip 1473278 BLAKE2B e9d2a3fae4da8046a17ce5e6828b4d1ff27da6384aac4be3864fe2c16f83bb95cb728eaeec9a42c3e1febaef98ba9357bfc3744b4950deb4b783d36e723d6cc0 SHA512 b85b4316115695acc78cc7c675c673058c05a238451562be0c6a48b2d11a28e5645a42cb62cdf063be015369df26201dfab6cf2e60f39e6468d1d53b23f94415
DIST java-sarif-2.1-modified.jar 227352 BLAKE2B d768865f09f2aa4ec6b965347df13d7e1bcda38e2401cdcdad7eaabd68dba901e29525c1632b8d4ea3529ed894193abe09a38293f21d3155bba4c55b7c90ed8e SHA512 04d1f895f87a8f0a653ee5c2b18ed0b6d158f1b7de4e16de2e50ed5a3087b1e83ca01f6c4c8c53d1788942e29d2f41528c910f224c41e27098cb5c2838a8ddf3
DIST postgresql-15.3.tar.gz 29946539 BLAKE2B 9a58bab8ddcda552ebd2f6915f37161724c1ccd5e47670f80bce0818a826b7a7a06901d7e5c006ec3f5236af973c670a5352958e7aa33ee5d36e17acecf1cd40 SHA512 d659b96320fe884a3885bbf50d49a7def2b037e735fe2ee07fd1ccd81dd1a277f380756cb15535aba058bbddb64e22896ed3350b9c5a2757b2bf3b23583273f8
DIST protobuf-3.20.3-py2.py3-none-any.whl 162128 BLAKE2B f08932588f2b1b20906eed04fc82d1065958cce864725f8ef2c1b7cdbab1de740a1fb67be09a46c2a3dda87591f3e88348b12487340a3a2b93a8c267579cd4eb SHA512 89606377b2b33dcb54c92df73d47aa5df762472baebbec94ea804d916fbd2999fac9752177d91f488bb3861ee8d10df2d39e5c002dc9e9132215a05273313a85
DIST psutil-5.9.8.tar.gz 503247 BLAKE2B 192812d9006b9eb1a856ff8d322e6cfb320462e5dc5ee7b88869ce7f4f2277050c4867b5e3f64468bb42de0b5bde85b715b84b37842bd3f605216acf89a62a4c SHA512 6ddeed937119a930bb7b9556ff329f054e9429b8457c9a15d99cb105271297117abba587a974d02760bb8b6b244734973a676bdff6b533a53ce587858e48f337
DIST pywin32-306-cp312-cp312-win_amd64.whl 9227429 BLAKE2B 4a0d93f718f4676ad662f4fa7b3faf39e2aa1f969cfbc5043f6306f0858c80752b4455644a6ae80ebd5ca1517f26e883270ae6ed11ab592a2cf27e3fe9ec36e9 SHA512 1297e8fcd2fe4892e983125ed85de4bb6ee8b77fb0fde129d2e4ee1698105240321e89dc5727ddf966f4465ecea82d607b999751ede68beeba19060ed5f9f197
DIST setuptools-68.0.0-py3-none-any.whl 804037 BLAKE2B 743ab93b17f2e53e612c518d2d2fee73259dc4eef3de5ccb6587c84a91056072106d72def7189d2173c8bb53457da5b0010badaaca6a28c01aaff124dcb3bd10 SHA512 352b87cba8c4c9e1e0f14fb85a9f7c5bb3f874f09a8107c84df8051bba9d38b8da420babc66458bf2f51ef11b7089d1ecbbec4077a5982d73e1e63316a99c79e
DIST vs2012_x64.fidb 7056034 BLAKE2B 36be5c0b185c21d22dbde7d10eb83e2480eeaca049f0f4850f4b5ac2fd70ff722e5d838e2e7127c4422629e4e12756bae03811c0b05b5694748f9c3355bd015a SHA512 44a7c9edabc93e4f64eb301b98554de0e62314cbec3c8f6ee4fb7c432dcc1288dccdd79a47fd35c846426d7cd3dbdbfcbacf8832d148340b80cfd7f03239a92a
DIST vs2012_x86.fidb 7720975 BLAKE2B cdb488e12658f3ad8d38f5223deee590d0e667afd4c6f188578b6b77182ef0b8a35dbb7f7eb94a4e2c18756e117cf378589d0c9dacae05329b0ee97c4a96bc4c SHA512 7d4e5bfbbc481db067acb44e1f41bfdb0d3cc566b80916d6d73e9c374d394a577a62df1cb86e97e1ea0612f363339534013069b57d614530ff60bf093b85d4e2
DIST vs2015_x64.fidb 7837258 BLAKE2B deffa9a148ddde4e189de859f8cd514c4058789902d51d5aa509419e593a040c9853f868e3eaa50ac961cdf96cafb51beb781b6647f07da9a2629a22d51e59dc SHA512 d4fa8e7d458c1a46ab57e8526f36a54222e2299533c10a20f489ec3916a4ea359118bbadd0a18163c54f402a3e3ea668648ab481b1bd842b30ef7501fd1bdf2c
@ -17,4 +26,5 @@ DIST vs2019_x64.fidb 5661013 BLAKE2B b0f741b704c9cda31a713b4e914cff26578d6c9c37f
DIST vs2019_x86.fidb 6207537 BLAKE2B f8c079c86b46aca19e62948f80463828117400798959bab33897dd4f4bd09ca35e8477d5390c35ec9859b03bc504cd7d884e011ca036d37fd3b71fb9049a8022 SHA512 8854d17447406e46405beef3594b7636f3bf4ac937f36eecedbe68d8b413299de44ef22ab5a5fb2d066c018d8c8d7e3a1f5bb2c2066a3173f21893ce54bc8c03
DIST vsOlder_x64.fidb 11155547 BLAKE2B 85854961194ea57bba7f8ed88206074c9d752dd0277377358e38cfa6d2973b73431d73f76564a379d740f74da4c7cca1aa5e48f58c428f97d253192a44dcad22 SHA512 f1f0e47fed785ada2384146b5738e25987c6131141b1b4b10815bf85575d839f116ecfe2866228d0cf8b12fd594ff24a75d802edc5649bc42bf4646960f45c39
DIST vsOlder_x86.fidb 17099444 BLAKE2B 2e2e65e2f3e32330453ddbb588ad19989c7212903b059194fc0bd4e4b62c5ec48b5e861c8057d82987a6e298b76ec63d5d266ecf5cef81c9c239b9ab0dfe4d68 SHA512 85f0d334b66a97252391aebf8f2497725a92b93b8c789a0b8cec1b41cd7f649703f8fa3a799c472607e5a0551c31594cfe2936ea6259c3e41eee1e64b8c32297
DIST wheel-0.37.1-py2.py3-none-any.whl 35301 BLAKE2B 41d905a91003dead88beb0231941ea0f4bc926107a1c8700934ca713fe47d91bb732d009adc44dfebcffd248a66dc513b9b372cd5bf826a058b4ebcde23075ec SHA512 dd5b7bce961e8bc3f25877c8e13433b522eb92fda533552424f2e4a03fbf8e374fab5792e645ba598f7b78a8e7458ee54bba379904772b22dfd7fad1ad4f7c5c
DIST yajsw-stable-13.09.zip 28128407 BLAKE2B 3be1e28c9399a40f7bb6644c3b6e6bb2653d0192c0c65529fdcb5d0feaca99e49485503a8c06e2e7196bd80445cb98359aefbb87d6af19dbde43c3e290360f96 SHA512 d8682b57ce7577374a17113e1ace77393397e405e6450e3f7637ed1f0f42bc7170b378f775a4ba3c458b202ef35f95b35317cce45659b8a3b25aaa59e8393aa4

View file

@ -0,0 +1,175 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit java-pkg-2 desktop
GRADLE_DEP_VER="20240509"
RELEASE_VERSION=${PV}
DESCRIPTION="A software reverse engineering framework"
HOMEPAGE="https://ghidra-sre.org/"
FIDB_FILES="vs2012_x64.fidb vs2015_x64.fidb vs2017_x64.fidb vs2019_x64.fidb vsOlder_x64.fidb \
vs2012_x86.fidb vs2015_x86.fidb vs2017_x86.fidb vs2019_x86.fidb vsOlder_x86.fidb"
# ./gradle/support/fetchDependencies.gradle
SRC_URI="https://github.com/NationalSecurityAgency/${PN}/archive/Ghidra_${PV}_build.tar.gz
https://dev.pentoo.ch/~blshkv/distfiles/${PN}-dependencies-${GRADLE_DEP_VER}.tar.gz
https://github.com/pxb1988/dex2jar/releases/download/v2.1/dex2jar-2.1.zip
https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/android4me/AXMLPrinter2.jar
https://sourceforge.net/projects/catacombae/files/HFSExplorer/0.21/hfsexplorer-0_21-bin.zip
https://downloads.sourceforge.net/yajsw/yajsw/yajsw-stable-13.09.zip
https://ftp.postgresql.org/pub/source/v15.3/postgresql-15.3.tar.gz
https://archive.eclipse.org/tools/cdt/releases/8.6/cdt-8.6.0.zip
https://downloads.sourceforge.net/pydev/pydev/PyDev%206.3.1/PyDev%206.3.1.zip -> PyDev-6.3.1.zip
https://github.com/NationalSecurityAgency/ghidra-data/raw/Ghidra_${RELEASE_VERSION}/lib/java-sarif-2.1-modified.jar
"
for FIDB in ${FIDB_FILES}; do
SRC_URI+=" https://github.com/NationalSecurityAgency/ghidra-data/raw/Ghidra_${RELEASE_VERSION}/FunctionID/${FIDB}"
done
SRC_URI+=" https://files.pythonhosted.org/packages/8d/14/619e24a4c70df2901e1f4dbc50a6291eb63a759172558df326347dce1f0d/protobuf-3.20.3-py2.py3-none-any.whl
https://files.pythonhosted.org/packages/90/c7/6dc0a455d111f68ee43f27793971cf03fe29b6ef972042549db29eec39a2/psutil-5.9.8.tar.gz
https://files.pythonhosted.org/packages/c7/42/be1c7bbdd83e1bfb160c94b9cafd8e25efc7400346cf7ccdbdb452c467fa/setuptools-68.0.0-py3-none-any.whl
https://files.pythonhosted.org/packages/27/d6/003e593296a85fd6ed616ed962795b2f87709c3eee2bca4f6d0fe55c6d00/wheel-0.37.1-py2.py3-none-any.whl
https://files.pythonhosted.org/packages/2d/e0/f877c91e036fcaed2a827f80d6cbdf1d26cffc3333c9ebda31c55c45f050/Pybag-2.2.10-py3-none-any.whl
https://files.pythonhosted.org/packages/d0/dd/b28df50316ca193dd1275a4c47115a720796d9e1501c1888c4bfa5dc2260/capstone-5.0.1-py3-none-win_amd64.whl
https://files.pythonhosted.org/packages/50/8f/518a37381e55a8857a638afa86143efa5508434613541402d20611a1b322/comtypes-1.4.1-py3-none-any.whl
https://files.pythonhosted.org/packages/83/1c/25b79fc3ec99b19b0a0730cc47356f7e2959863bf9f3cd314332bddb4f68/pywin32-306-cp312-cp312-win_amd64.whl"
# run: "pentoo/scripts/gradle_dependencies.py buildGhidra" from "${S}" directory to generate dependencies
# https://www.eclipse.org/downloads/download.php?r=1&protocol=https&file=/tools/cdt/releases/8.6/cdt-8.6.0.zip
# https://sourceforge.net/projects/yajsw/files/yajsw/yajsw-stable-13.05/yajsw-stable-13.05.zip/download
S="${WORKDIR}/ghidra-Ghidra_${PV}_build"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="amd64"
#FIXME:
# * QA Notice: Files built without respecting CFLAGS have been detected
# * QA Notice: Files built without respecting LDFLAGS have been detected
# * Please include the following list of files in your report:
# * /usr/share/ghidra/GPL/DemanglerGnu/os/linux_x86_64/demangler_gnu_v2_24
# * /usr/share/ghidra/GPL/DemanglerGnu/os/linux_x86_64/demangler_gnu_v2_33_1
# * /usr/share/ghidra/Ghidra/Features/Decompiler/os/linux_x86_64/decompile
# * /usr/share/ghidra/Ghidra/Features/Decompiler/os/linux_x86_64/sleigh
# * /usr/share/ghidra/Ghidra/Features/FileFormats/data/sevenzipnativelibs/Linux-amd64/lib7-Zip-JBinding.so
#java-pkg-2 sets java based on RDEPEND so the java slot in rdepend is used to build
RDEPEND="virtual/jre:17"
DEPEND="${RDEPEND}
virtual/jdk:17
sys-devel/bison
dev-java/jflex
app-arch/unzip
dev-python/pip"
BDEPEND=">=dev-java/gradle-bin-7.3:*"
check_gradle_binary() {
gradle_link_target=$(readlink -n /usr/bin/gradle)
currentver="${gradle_link_target/gradle-bin-/}"
requiredver="7.3"
einfo "Gradle version ${currentver} currently set."
if [ "$(printf '%s\n' "$requiredver" "$currentver" | sort -V | head -n1)" = "$requiredver" ]; then
einfo "Gradle version ${currentver} is >= ${requiredver}, proceeding with build..."
else
eerror "Gradle version ${requiredver} or higher must be eselected before building ${PN}."
die "Please run 'eselect gradle set gradle-bin-XX' when XX is a version of gradle higher than ${requiredver}"
fi
}
src_unpack() {
# https://github.com/NationalSecurityAgency/ghidra/blob/master/DevGuide.md
# alternative:
# gradle -I gradle/support/fetchDependencies.gradle init
# gradle -g dependencies/gradle prepdev
# build: gradle -g dependencies/gradle buildGhidra
unpack ${A}
mkdir -p "${S}/.gradle/flatRepo" || die "(1) mkdir failed"
cd "${S}/.gradle"
unpack dex2jar-2.1.zip
cp dex-tools-2.1/lib/dex-*.jar ./flatRepo || die "(2) cp failed"
cp "${DISTDIR}/AXMLPrinter2.jar" ./flatRepo || die "(3) cp failed"
cp "${DISTDIR}/java-sarif-2.1-modified.jar" ./flatRepo || die "(4) cp failed"
unpack hfsexplorer-0_21-bin.zip
cp lib/*.jar ./flatRepo || die "(5) cp failed"
mkdir -p "${WORKDIR}"/ghidra.bin/Ghidra/Features/GhidraServer/ || die "(6) mkdir failed"
cp "${DISTDIR}"/yajsw-stable-13.09.zip "${WORKDIR}"/ghidra.bin/Ghidra/Features/GhidraServer/ || die "(7) cp failed"
PLUGIN_DEP_PATH="ghidra.bin/GhidraBuild/EclipsePlugins/GhidraDev/buildDependencies"
mkdir -p "${WORKDIR}/${PLUGIN_DEP_PATH}/" || die "(8) mkdir failed"
cp "${DISTDIR}"/PyDev-6.3.1.zip "${WORKDIR}/${PLUGIN_DEP_PATH}/PyDev 6.3.1.zip" || die "(9) cp failed"
cp "${DISTDIR}"/cdt-8.6.0.zip "${WORKDIR}/${PLUGIN_DEP_PATH}/" || die "(10) cp failed"
cp "${DISTDIR}"/postgresql-15.3.tar.gz "${WORKDIR}/${PLUGIN_DEP_PATH}/" || die "(10) cp failed"
cd "${S}"
mv ../dependencies .
mkdir ./dependencies/fidb || die "failed to create fidb dir"
cp "${DISTDIR}/${FIDB_FILES}" ./dependencies/fidb/
#copy whl
mkdir -p ./dependencies/{Debugger-rmi-trace,Debugger-agent-dbgeng} || die "failed to create Debugger dir"
cp "${DISTDIR}"/protobuf-3.20.3-py2.py3-none-any.whl ./dependencies/Debugger-rmi-trace/
cp "${DISTDIR}"/psutil-5.9.8.tar.gz ./dependencies/Debugger-rmi-trace/
cp "${DISTDIR}"/setuptools-68.0.0-py3-none-any.whl ./dependencies/Debugger-rmi-trace/
cp "${DISTDIR}"/wheel-0.37.1-py2.py3-none-any.whl ./dependencies/Debugger-rmi-trace/
cp "${DISTDIR}"/Pybag-2.2.10-py3-none-any.whl ./dependencies/Debugger-agent-dbgeng/
cp "${DISTDIR}"/capstone-5.0.1-py3-none-win_amd64.whl ./dependencies/Debugger-agent-dbgeng/
cp "${DISTDIR}"/comtypes-1.4.1-py3-none-any.whl ./dependencies/Debugger-agent-dbgeng/
cp "${DISTDIR}"/pywin32-306-cp312-cp312-win_amd64.whl ./dependencies/Debugger-agent-dbgeng/
}
src_prepare() {
mkdir -p ".gradle/init.d" || die "(10) mkdir failed"
cp "${FILESDIR}"/repos.gradle .gradle/init.d || die "(11) cp failed"
sed -i "s|S_DIR|${S}|g" .gradle/init.d/repos.gradle || die "(12) sed failed"
#remove build date so we can unpack dist.zip later
sed -i "s|_\${rootProject.BUILD_DATE_SHORT}||g" gradle/root/distribution.gradle || die "(13) sed failed"
#10.0 workaround
ln -s ../.gradle/flatRepo ./dependencies/flatRepo
eapply_user
}
src_compile() {
check_gradle_binary
export _JAVA_OPTIONS="$_JAVA_OPTIONS -Duser.home=$HOME -Djava.io.tmpdir=${T}"
GRADLE="gradle --gradle-user-home .gradle --console rich --no-daemon"
GRADLE="${GRADLE} --offline --parallel --max-workers $(nproc)"
unset TERM
${GRADLE} prepDev -x check -x test || die
${GRADLE} assembleAll -x check -x test --parallel || die
#build without eclipse plugin
# ${GRADLE} yajswDevUnpack -x check -x test || die
# ${GRADLE} buildNatives_linux64 -x check -x test || die
# ${GRADLE} sleighCompile -x check -x test || die
}
src_install() {
# remove zip files which aren't needed at runtime
find build/dist/ghidra_${PV}_DEV/ -type f -name '*.zip' -exec rm -f {} +
#FIXME: add doc flag
rm -r build/dist/ghidra_${PV}_DEV/docs/ || die "rm failed"
insinto /usr/share/ghidra
doins -r build/dist/ghidra_${PV}_DEV/*
fperms +x /usr/share/ghidra/ghidraRun
fperms +x /usr/share/ghidra/support/launch.sh
dosym -r /usr/share/ghidra/ghidraRun /usr/bin/ghidra
# icon
doicon GhidraDocs/GhidraClass/Beginner/Images/GhidraLogo64.png
# desktop entry
make_desktop_entry ${PN} "Ghidra" /usr/share/pixmaps/GhidraLogo64.png "Utility"
}

View file

@ -4,31 +4,27 @@
EAPI=8
DISTUTILS_USE_PEP517=setuptools
PYTHON_COMPAT=( python3_{10..12} )
# broken with 3.12, see https://github.com/qeeqbox/honeypots/issues/68
PYTHON_COMPAT=( python3_{10..11} )
inherit distutils-r1
inherit distutils-r1 pypi
DESCRIPTION="16 different honeypots for monitoring network traffic"
HOMEPAGE="https://github.com/qeeqbox/honeypots"
if [ "${PV#9999}" != "${PV}" ] ; then
SCM="git-r3"
EGIT_REPO_URI=="https://github.com/qeeqbox/honeypots.git"
else
inherit pypi
KEYWORDS="~amd64 ~arm64 ~x86"
fi
LICENSE="AGPL-3"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~x86"
IUSE="socks5 +python_targets_python3_11"
RESTRICT="test"
RDEPEND="
dev-python/twisted[${PYTHON_USEDEP}]
dev-python/psutil[${PYTHON_USEDEP}]
( dev-python/psycopg[${PYTHON_USEDEP}] dev-python/psycopg2cffi[${PYTHON_USEDEP}] )
dev-python/psycopg:2[${PYTHON_USEDEP}]
dev-python/pycryptodome[${PYTHON_USEDEP}]
dev-python/requests[socks5,${PYTHON_USEDEP}]
dev-python/requests[${PYTHON_USEDEP}]
socks5? ( dev-python/requests[socks5] )
dev-python/impacket[${PYTHON_USEDEP}]
dev-python/paramiko[${PYTHON_USEDEP}]
net-analyzer/scapy[${PYTHON_USEDEP}]
@ -45,7 +41,3 @@ RDEPEND="
#"
DEPEND="${RDEPEND}"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
# dev-python/psycopg in gentoo / psycopg2cffi rappid c++ extensions either should run.
# dev-python/psycopg2cffi::tgbugs-overlay , implementation of the psycopg2 module using cffi.
# Compatible with Psycopg 2.5.

View file

@ -1 +0,0 @@
honeypots-9999.ebuild

View file

@ -1 +0,0 @@
DIST cifs-utils-7.0.tar.bz2 418638 BLAKE2B 514d35f243d0ef7b866068a9a53a4b1704d2856d491d56aa469e8e3919b4030cb920a7f60d08851b0a23d28a020d1ddf7daa8b9ac412f1567a0a60d2f6ee6774 SHA512 4c57741af0c4567a78f352c73caca998881666a5ed36536275cfa775efd66ff1a44ebe539a8ed96c409c5b08a1378266964ce667a27e9fc7f2d43999c63dd0eb

View file

@ -1,143 +0,0 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{9..12} )
inherit autotools bash-completion-r1 linux-info pam python-single-r1
DESCRIPTION="Tools for Managing Linux CIFS Client Filesystems"
HOMEPAGE="https://wiki.samba.org/index.php/LinuxCIFS_utils https://git.samba.org/cifs-utils.git/?p=cifs-utils.git"
SRC_URI="https://ftp.samba.org/pub/linux-cifs/${PN}/${P}.tar.bz2"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x86-linux"
IUSE="+acl +ads +caps creds pam +python systemd"
RDEPEND="
ads? (
sys-apps/keyutils:=
sys-libs/talloc
virtual/krb5
)
caps? ( sys-libs/libcap-ng )
creds? ( sys-apps/keyutils:= )
pam? (
sys-apps/keyutils:=
sys-libs/pam
)
python? ( ${PYTHON_DEPS} )
"
DEPEND="${RDEPEND}"
BDEPEND="dev-python/docutils"
PDEPEND="
acl? ( >=net-fs/samba-4.0.0_alpha1 )
"
REQUIRED_USE="
acl? ( ads )
python? ( ${PYTHON_REQUIRED_USE} )
"
DOCS="doc/linux-cifs-client-guide.odt"
PATCHES=(
"${FILESDIR}/${PN}-6.12-ln_in_destdir.patch" #766594
"${FILESDIR}/${PN}-6.15-musl.patch"
"${FILESDIR}/${PN}-7.0-no-clobber-fortify-source.patch"
)
pkg_setup() {
linux-info_pkg_setup
if ! linux_config_exists || ! linux_chkconfig_present CIFS; then
ewarn "You must enable CIFS support in your kernel config, "
ewarn "to be able to mount samba shares. You can find it at"
ewarn
ewarn " File systems"
ewarn " Network File Systems"
ewarn " CIFS support"
ewarn
ewarn "and recompile your kernel ..."
fi
use python && python-single-r1_pkg_setup
}
src_prepare() {
default
if has_version app-crypt/heimdal ; then
# https://bugs.gentoo.org/612584
eapply "${FILESDIR}/${PN}-6.7-heimdal.patch"
fi
eautoreconf
}
src_configure() {
local myeconfargs=(
--enable-man
--enable-smbinfo
$(use_enable acl cifsacl cifsidmap)
$(use_enable ads cifsupcall)
$(use_with caps libcap)
$(use_enable creds cifscreds)
$(use_enable pam)
$(use_with pam pamdir $(getpam_mod_dir))
$(use_enable python pythontools)
# mount.cifs can get passwords from systemd
$(use_enable systemd)
)
ROOTSBINDIR="${EPREFIX}"/sbin \
econf "${myeconfargs[@]}"
}
src_install() {
default
# remove empty directories
find "${ED}" -type d -empty -delete || die
if use acl ; then
dodir /etc/cifs-utils
dosym ../../usr/$(get_libdir)/cifs-utils/idmapwb.so \
/etc/cifs-utils/idmap-plugin
dodir /etc/request-key.d
echo 'create cifs.idmap * * /usr/sbin/cifs.idmap %k' \
> "${ED}/etc/request-key.d/cifs.idmap.conf"
fi
if use ads ; then
dodir /etc/request-key.d
echo 'create dns_resolver * * /usr/sbin/cifs.upcall %k' \
> "${ED}/etc/request-key.d/cifs.upcall.conf"
echo 'create cifs.spnego * * /usr/sbin/cifs.upcall %k' \
> "${ED}/etc/request-key.d/cifs.spnego.conf"
fi
dobashcomp bash-completion/smbinfo
use python && python_fix_shebang "${ED}"
}
pkg_postinst() {
# Inform about set-user-ID bit of mount.cifs
ewarn "setuid use flag was dropped due to multiple security implications"
ewarn "such as CVE-2009-2948, CVE-2011-3585 and CVE-2012-1586"
ewarn "You are free to set setuid flags by yourself"
# Inform about upcall usage
if use acl ; then
einfo "The cifs.idmap utility has been enabled by creating the"
einfo "configuration file /etc/request-key.d/cifs.idmap.conf"
einfo "This enables you to get and set CIFS acls."
fi
if use ads ; then
einfo "The cifs.upcall utility has been enabled by creating the"
einfo "configuration file /etc/request-key.d/cifs.upcall.conf"
einfo "This enables you to mount DFS shares."
fi
}

View file

@ -1,22 +0,0 @@
Fixed an inverted race condition when installing with MAKEOPTS="-j1"
jer found this:
install-root_sbinPROGRAMS is called from install-data-am but
install-exec-hook is called from install-exec-am
So moving the failing ln call into install-data-hook for now...
--- cifs-utils-6.12/Makefile.am
+++ cifs-utils-6.12/Makefile.am
@@ -117,10 +117,8 @@
SUBDIRS = contrib
-install-exec-hook: install-sbinPROGRAMS
+install-data-hook: install-sbinPROGRAMS
(cd $(DESTDIR)$(ROOTSBINDIR) && ln -sf mount.cifs mount.smb3)
-
-install-data-hook:
if CONFIG_MAN
( cd $(DESTDIR)$(man8dir) && ln -sf mount.cifs.8 mount.smb3.8)
endif

View file

@ -1,80 +0,0 @@
https://marc.info/?l=linux-cifs&m=165604639613381&w=2
From c267ecf6a1c2152e640897d30cc0e8f637a8ef76 Mon Sep 17 00:00:00 2001
From: Sam James <sam@gentoo.org>
Date: Fri, 24 Jun 2022 05:25:23 +0100
Subject: [PATCH 1/2] getcifsacl, setcifsacl: add missing <linux/limits.h>
include for XATTR_SIZE_MAX
Needed to build on musl. It only works on glibc because of transitive includes
(which could break in future).
Example failure:
```
getcifsacl.c: In function 'getcifsacl':
getcifsacl.c:429:24: error: 'XATTR_SIZE_MAX' undeclared (first use in this function)
429 | if (bufsize >= XATTR_SIZE_MAX) {
| ^~~~~~~~~~~~~~
```
Bug: https://bugs.gentoo.org/842195
Signed-off-by: Sam James <sam@gentoo.org>
--- a/getcifsacl.c
+++ b/getcifsacl.c
@@ -34,6 +34,7 @@
#include <errno.h>
#include <limits.h>
#include <ctype.h>
+#include <linux/limits.h>
#include <sys/xattr.h>
#include "cifsacl.h"
#include "idmap_plugin.h"
--- a/setcifsacl.c
+++ b/setcifsacl.c
@@ -48,6 +48,7 @@
#include <errno.h>
#include <limits.h>
#include <ctype.h>
+#include <linux/limits.h>
#include <sys/xattr.h>
#include "cifsacl.h"
From d1a36cc4caa541d1f0f9a3426a5202b680cf7ff8 Mon Sep 17 00:00:00 2001
From: Sam James <sam@gentoo.org>
Date: Fri, 24 Jun 2022 05:26:54 +0100
Subject: [PATCH 2/2] getcifsacl, setcifsacl: add missing <endian.h> include
for le32toh
Needed to fix build on musl libc. It only works by chance on glibc
because of transitive includes (which could break at any time).
Example failure:
```
getcifsacl.c: In function 'print_ace':
getcifsacl.c:284:16: warning: implicit declaration of function 'le16toh' [-Wimplicit-function-declaration]
284 | size = le16toh(pace->size);
| ^~~~~~~
```
Bug: https://bugs.gentoo.org/842195
Signed-off-by: Sam James <sam@gentoo.org>
--- a/getcifsacl.c
+++ b/getcifsacl.c
@@ -23,6 +23,7 @@
#include "config.h"
#endif /* HAVE_CONFIG_H */
+#include <endian.h>
#include <string.h>
#include <getopt.h>
#include <stdint.h>
--- a/setcifsacl.c
+++ b/setcifsacl.c
@@ -38,6 +38,7 @@
#include "config.h"
#endif /* HAVE_CONFIG_H */
+#include <endian.h>
#include <string.h>
#include <getopt.h>
#include <stdint.h>

View file

@ -1,27 +0,0 @@
https://bugs.gentoo.org/612584
--- cifs-utils-6.7/cifs.upcall.c
+++ cifs-utils-6.7/cifs.upcall.c
@@ -75,11 +75,13 @@
#define KRB5_KEY_LENGTH(k) ((k)->keyvalue.length)
#define KRB5_KEY_DATA(k) ((k)->keyvalue.data)
#define KRB5_KEY_DATA_CAST void
+#define KRB5_FREE_STRING(c,k) krb5_xfree(k)
#else /* MIT */
#define KRB5_KEY_TYPE(k) ((k)->enctype)
#define KRB5_KEY_LENGTH(k) ((k)->length)
#define KRB5_KEY_DATA(k) ((k)->contents)
#define KRB5_KEY_DATA_CAST krb5_octet
+#define KRB5_FREE_STRING(c,k) krb5_free_string(c,k)
#endif
#ifdef HAVE_LIBCAP_NG
@@ -358,7 +360,7 @@
syslog(LOG_DEBUG, "%s: krb5_cc_get_full_name failed: %d\n", __func__, ret);
} else {
syslog(LOG_DEBUG, "%s: default ccache is %s\n", __func__, cachename);
- krb5_free_string(context, cachename);
+ KRB5_FREE_STRING(context, cachename);
}
if (!get_tgt_time(cc)) {

View file

@ -1,11 +0,0 @@
Don't clobber toolchain defaults.
https://bugs.gentoo.org/890278
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,4 +1,4 @@
-AM_CFLAGS = -Wall -Wextra -D_FORTIFY_SOURCE=2 $(PIE_CFLAGS) $(RELRO_CFLAGS)
+AM_CFLAGS = -Wall -Wextra $(PIE_CFLAGS) $(RELRO_CFLAGS)
ACLOCAL_AMFLAGS = -I aclocal
root_sbindir = $(ROOTSBINDIR)

View file

@ -1,25 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>samba@gentoo.org</email>
<name>Samba Team</name>
</maintainer>
<longdescription>
The in-kernel CIFS filesystem relies on a set of user-space
tools. That package of tools is called cifs-utils. Although not
really part of Samba proper, these tools were originally part of
the Samba package. For several reasons, shipping these tools as
part of Samba was problematic and it was deemed better to split
them off into their own package
</longdescription>
<upstream>
<remote-id type="cpe">cpe:/a:samba:cifs-utils</remote-id>
</upstream>
<use>
<flag name="ads">Enable Active Directory support and create cifs.idmap binary - idmap support</flag>
<flag name="caps">Enable <pkg>sys-libs/libcap-ng</pkg> support</flag>
<flag name="creds">cifs credentials support</flag>
<flag name="python">Enable support for python and install python tools</flag>
</use>
</pkgmetadata>

View file

@ -44,17 +44,8 @@ dev-python/lsassy
dev-python/pywerview
############ Python 3.12 tmp =====================
~net-fs/samba-4.19.6
~sys-libs/ldb-2.8.0
~sys-libs/talloc-2.4.1
~sys-libs/tdb-1.4.9
~sys-libs/tevent-0.15.0
~net-fs/cifs-utils-7.0
~net-dns/avahi-0.9_rc1
~dev-db/mongodb-5.0.26
~media-libs/lv2-1.18.10-r1
~dev-cpp/abseil-cpp-20230125.3-r1
~net-libs/nodejs-20.12.2
############ Gentoo unstable ======================
~dev-python/ldap3-2.7

View file

@ -1 +1 @@
DIST rd-usb-1.22.1.gh.tar.gz 2137122 BLAKE2B e393b79fd96f45b1aec9c5b9e2e6a2e635eaf855aa01583a565c165c24f99d8888fc1ec3464a5cf632eb1cd5ba458333a9cdc4edfd45b4f129d54634109b43af SHA512 0bcc848007eae0927c88883789f7ddf75aad488e649da53cd69fef17d8fd0e1b1f645bbb7cb8e5fa80b085beeb7b819d3b9458cc9a652f8302066bd1f4425887
DIST rd-usb-1.22.4.gh.tar.gz 2137742 BLAKE2B fd24da94189dc174fb891364baa207863fd2cd601bb57b3e867ca8ce3e223b5e5cf5bc278ef4e5ffacf51eee2b5d21a374101175fc7ee78e286b0fe106cbf8e8 SHA512 0c465a46a3c376677a1a48eeaa7848c6a91c7c40e5d23f2bc7a659c24e1636b9609ab63ae5e04c66df8fd8d76d60b758ca87a42b3aeac19cbf3f9d29f0ba536a

View file

@ -9,6 +9,6 @@
<remote-id type="github">kolinger/rd-usb</remote-id>
</upstream>
<use>
<flag name="webui">Enable the Web UI</flag>
<flag name="gui">Enable the GUI</flag>
</use>
</pkgmetadata>

View file

@ -15,7 +15,7 @@ SLOT="0"
WEBAPP_MANUAL_SLOT="yes"
KEYWORDS="amd64 ~arm64 ~x86"
IUSE="+webui"
IUSE="gui"
RDEPEND="$(python_gen_cond_dep '
dev-python/flask[${PYTHON_USEDEP}]
@ -28,7 +28,7 @@ RDEPEND="$(python_gen_cond_dep '
dev-python/pybluez[${PYTHON_USEDEP}]
<dev-python/pendulum-3.0.0[${PYTHON_USEDEP}]
webui? ( dev-python/pywebview[${PYTHON_USEDEP}]
gui? ( dev-python/pywebview[${PYTHON_USEDEP}]
dev-python/pythonnet[${PYTHON_USEDEP}]
dev-python/screeninfo[${PYTHON_USEDEP}] )
')

View file

@ -1 +0,0 @@
DIST talloc-2.4.1.tar.gz 679160 BLAKE2B a7913b25930c77da53c17c2e0d71386402b1059f93c751084037c5068a035bd543c2d7e24a2d8dc989bb4eea13fa1a3c7a362e4d6c14af0b2030fbfb2f513801 SHA512 4de3b66d7cd1ff3f53e28e86bf9e89528635465c67868e1262aab6946106c228b2c184e988561361c3194fb260d83e016477254c9dbea7abff40c4dc0d31c76c

View file

@ -1,11 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>samba@gentoo.org</email>
<name>Samba</name>
</maintainer>
<use>
<flag name="compat">Enable extra compatibility stuff</flag>
</use>
</pkgmetadata>

View file

@ -1,130 +0,0 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{10..12} )
PYTHON_REQ_USE="threads(+)"
inherit waf-utils python-single-r1 multilib-minimal
DESCRIPTION="Samba talloc library"
HOMEPAGE="https://talloc.samba.org/"
SRC_URI="https://www.samba.org/ftp/${PN}/${P}.tar.gz"
LICENSE="GPL-3 LGPL-3+ LGPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x64-solaris"
IUSE="compat +python test valgrind"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RESTRICT="!test? ( test )"
RDEPEND="
!elibc_SunOS? (
!elibc_Darwin? (
dev-libs/libbsd[${MULTILIB_USEDEP}]
)
)
python? ( ${PYTHON_DEPS} )
"
# Valgrind is automagic here but it's a build-only dep so it's not so bad.
DEPEND="
${RDEPEND}
valgrind? ( dev-debug/valgrind )
"
BDEPEND="
${PYTHON_DEPS}
dev-libs/libxslt
sys-devel/gettext
"
WAF_BINARY="${S}/buildtools/bin/waf"
MULTILIB_WRAPPED_HEADERS=(
# python goes only for native
/usr/include/pytalloc.h
)
pkg_setup() {
# Try to turn off distcc and ccache for people that have a problem with it
export DISTCC_DISABLE=1
export CCACHE_DISABLE=1
python-single-r1_pkg_setup
}
src_prepare() {
default
if [[ ${CHOST} == *-darwin* ]] ; then
# Drop irritating ABI names (e.g. cpython-37m)
# We're only installing one implementation anyway
sed -i "s/+ conf.all_envs\['default'\]\['PYTHON_SO_ABI_FLAG'\]//" wscript || die
sed -i "s/name = bld.pyembed_libname('pytalloc-util')/name = 'pytalloc-util'/" wscript || die
fi
if use test ; then
# TODO: Fix python tests to run w/ USE=python.
truncate -s0 test_pytalloc.py || die
fi
# WAF
multilib_copy_sources
}
multilib_src_configure() {
local extra_opts=(
--libdir="${EPREFIX}/usr/$(get_libdir)"
--disable-dependency-tracking
--disable-warnings-as-errors
$(usev compat --enable-talloc-compat1)
$(multilib_native_usex python '' --disable-python)
$([[ ${CHOST} == *-solaris* ]] && echo '--disable-symbol-versions')
)
waf-utils_src_configure "${extra_opts[@]}"
}
multilib_src_compile() {
waf-utils_src_compile
}
multilib_src_install() {
waf-utils_src_install
# waf is stupid, and no, we can't fix the build-system, since it's provided
# as a brilliant binary blob thats decompressed on the fly
if [[ ${CHOST} == *-darwin* ]] ; then
install_name_tool \
-id "${EPREFIX}"/usr/$(get_libdir)/libtalloc.2.dylib \
"${ED}"/usr/$(get_libdir)/libtalloc.${PV}.dylib || die
if use python ; then
install_name_tool \
-id "${EPREFIX}"/usr/$(get_libdir)/libpytalloc-util.2.dylib \
"${ED}"/usr/$(get_libdir)/libpytalloc-util.${PV}.dylib || die
install_name_tool \
-change "${BUILD_DIR}/bin/default/libtalloc.dylib" \
"${EPREFIX}"/usr/$(get_libdir)/libtalloc.2.dylib \
"${ED}"/usr/$(get_libdir)/libpytalloc-util.${PV}.dylib || die
install_name_tool \
-id "${EPREFIX}"/usr/$(get_libdir)/libpytalloc-util.dylib \
"${ED}"/usr/$(get_libdir)/libpytalloc-util.dylib || die
install_name_tool \
-change "${BUILD_DIR}/bin/default/libtalloc.dylib" \
"${EPREFIX}"/usr/$(get_libdir)/libtalloc.2.dylib \
"${ED}"/usr/$(get_libdir)/libpytalloc-util.dylib || die
install_name_tool \
-change "${BUILD_DIR}/bin/default/libpytalloc-util.dylib" \
"${EPREFIX}"/usr/$(get_libdir)/libpytalloc-util.dylib \
"${D}"$(python_get_sitedir)/talloc*.bundle || die
install_name_tool \
-change "${BUILD_DIR}/bin/default/libtalloc.dylib" \
"${EPREFIX}"/usr/$(get_libdir)/libtalloc.2.dylib \
"${D}"$(python_get_sitedir)/talloc*.bundle || die
fi
fi
}

View file

@ -1 +0,0 @@
DIST tdb-1.4.9.tar.gz 746608 BLAKE2B 2cdcf636b9ef5445d48ca2aab79d4ffd137a8409b6d7b1fcdbcd28797d4bbe617f768a5ef92a14c4ae6dddfc37576f5d411cf4d67edeb4319f46a1a15ffd94ee SHA512 6b0109075826b8630f6b5a7e7ade2fcff95c5d05338340af78219422610947c520707b3e484ff13fbd40bbfffe13977976e8ddcb1be7b13e13ac78b4e3ec06c2

View file

@ -1,26 +0,0 @@
https://bugs.gentoo.org/870043
https://gitlab.com/samba-team/samba/-/merge_requests/2807
https://src.fedoraproject.org/rpms/libtdb/blob/rawhide/f/libtdb-waf18-c99.patch
Avoid calling lib_func without a prototype.
This commit mirrors the change in commit f4c0a750d4adebcf2342a44e85f04526c34
("WAF: Fix detection of linker features")
to buildtools/wafsamba/samba_conftests.py. It fixes the check for rpath
support with compilers in strict C99 mode.
Submitted upstream: <https://gitlab.com/samba-team/samba/-/merge_requests/2807>
--- a/buildtools/wafsamba/samba_waf18.py
+++ b/buildtools/wafsamba/samba_waf18.py
@@ -209,7 +209,8 @@ def CHECK_LIBRARY_SUPPORT(conf, rpath=False, version_script=False, msg=None):
lib_node.parent.mkdir()
lib_node.write('int lib_func(void) { return 42; }\n', 'w')
main_node = bld.srcnode.make_node('main.c')
- main_node.write('int main(void) {return !(lib_func() == 42);}', 'w')
+ main_node.write('int lib_func(void);\n'
+ 'int main(void) {return !(lib_func() == 42);}', 'w')
linkflags = []
if version_script:
script = bld.srcnode.make_node('ldscript')

View file

@ -1,8 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>samba@gentoo.org</email>
<name>Samba</name>
</maintainer>
</pkgmetadata>

View file

@ -1,79 +0,0 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{10..12} )
PYTHON_REQ_USE="threads(+)"
inherit waf-utils multilib-minimal python-single-r1
DESCRIPTION="Simple database API"
HOMEPAGE="https://tdb.samba.org/"
SRC_URI="https://samba.org/ftp/tdb/${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux"
IUSE="python test"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RESTRICT="!test? ( test )"
RDEPEND="
dev-libs/libbsd[${MULTILIB_USEDEP}]
python? ( ${PYTHON_DEPS} )
"
DEPEND="
${RDEPEND}
virtual/libcrypt
"
BDEPEND="
${PYTHON_DEPS}
app-text/docbook-xml-dtd:4.2
"
WAF_BINARY="${S}/buildtools/bin/waf"
src_prepare() {
default
python_fix_shebang .
if use test ; then
# TODO: Fix python tests to run w/ USE=python.
truncate -s0 python/tests/simple.py || die
fi
multilib_copy_sources
}
multilib_src_configure() {
#MAKEOPTS+=" -j1"
local extra_opts=(
--libdir="${EPREFIX}/usr/$(get_libdir)"
--disable-dependency-tracking
--disable-warnings-as-errors
)
if ! multilib_is_native_abi || ! use python ; then
extra_opts+=( --disable-python )
fi
waf-utils_src_configure "${extra_opts[@]}"
}
multilib_src_compile() {
waf-utils_src_compile
}
multilib_src_test() {
# the default src_test runs 'make test' and 'make check', letting
# the tests fail occasionally (reason: unknown)
emake check
}
multilib_src_install() {
waf-utils_src_install
use python && python_optimize
}

View file

@ -1 +0,0 @@
DIST tevent-0.15.0.tar.gz 884634 BLAKE2B 071906dc0cc199a9b550e74ca7fcd3555e54a1c48a9be2c107c498ccf2157521336c3ec63fd776e3551064e9baf1ebcf9c7ff5eb0f04375b7d714056331476aa SHA512 470cc4489255a4f122ba1d680669589ba375d4081ff46631dd56f5104202d175bfb13356820eb9108a6b768b3837b2f5d26cc7b0acc3071c4787fb070df3cbab

View file

@ -1,8 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>samba@gentoo.org</email>
<name>Samba</name>
</maintainer>
</pkgmetadata>

View file

@ -1,103 +0,0 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{10..12} )
PYTHON_REQ_USE="threads(+)"
inherit waf-utils multilib-minimal python-single-r1
DESCRIPTION="Samba tevent library"
HOMEPAGE="https://tevent.samba.org/"
SRC_URI="https://samba.org/ftp/tevent/${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x86-linux"
IUSE="python test"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RESTRICT="!test? ( test )"
TALLOC_VERSION="2.4.1"
RDEPEND="
dev-libs/libbsd[${MULTILIB_USEDEP}]
>=sys-libs/talloc-${TALLOC_VERSION}[${MULTILIB_USEDEP}]
python? (
${PYTHON_DEPS}
>=sys-libs/talloc-${TALLOC_VERSION}[python,${PYTHON_SINGLE_USEDEP}]
)
"
DEPEND="
${RDEPEND}
elibc_glibc? (
net-libs/libtirpc[${MULTILIB_USEDEP}]
net-libs/rpcsvc-proto
)
test? ( >=dev-util/cmocka-1.1.3 )
"
BDEPEND="
${PYTHON_DEPS}
virtual/pkgconfig
"
WAF_BINARY="${S}/buildtools/bin/waf"
check_samba_dep_versions() {
actual_talloc_version=$(sed -En '/^VERSION =/{s/[^0-9.]//gp}' lib/talloc/wscript || die)
if [[ ${actual_talloc_version} != ${TALLOC_VERSION} ]] ; then
eerror "Source talloc version: ${TALLOC_VERSION}"
eerror "Ebuild talloc version: ${actual_talloc_version}"
die "Ebuild needs to fix TALLOC_VERSION!"
fi
}
src_prepare() {
default
check_samba_dep_versions
if use test ; then
# TODO: Fix python tests to run w/ USE=python.
# (depsite the name. bindings.py is just for Python tests.)
truncate -s0 bindings.py || die
fi
multilib_copy_sources
}
multilib_src_configure() {
# When specifying libs for samba build you must append NONE to the end to
# stop it automatically including things
local bundled_libs="NONE"
# We "use" bundled cmocka when we're not running tests as we're
# not using it anyway. Means we avoid making users install it for
# no reason. bug #802531
if ! use test ; then
bundled_libs="cmocka,${bundled_libs}"
fi
waf-utils_src_configure \
--libdir="${EPREFIX}/usr/$(get_libdir)" \
--disable-dependency-tracking \
--disable-warnings-as-errors \
--bundled-libraries="${bundled_libs}" \
--builtin-libraries=NONE \
$(multilib_native_usex python '' '--disable-python')
}
multilib_src_compile() {
waf-utils_src_compile
}
multilib_src_install() {
waf-utils_src_install
multilib_is_native_abi && use python && python_domodule tevent.py
}
multilib_src_install_all() {
insinto /usr/include
doins tevent_internal.h
}