BloodHound: 3.0.4 bump

This commit is contained in:
blshkv 2020-04-14 20:33:51 +08:00
parent 4be872996c
commit f79b3dea85
No known key found for this signature in database
GPG key ID: 273E3E90D1A6294F
2 changed files with 70 additions and 0 deletions

View file

@ -0,0 +1,69 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit eutils
ELECTRON_PV="6.0.11"
DESCRIPTION="Six Degrees of Domain Admin"
HOMEPAGE="https://github.com/BloodHoundAD/BloodHound"
SRC_URI="https://github.com/BloodHoundAD/BloodHound/archive/${PV}.tar.gz -> ${P}.tar.gz
https://github.com/electron/electron/releases/download/v${ELECTRON_PV}/electron-v${ELECTRON_PV}-linux-x64.zip
https://dev.pentoo.ch/~blshkv/distfiles/${PN}-3.0.3-node_modules.tar.gz"
#create modules using "npm install"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64 ~x86"
IUSE=""
DEPEND=">=net-libs/nodejs-12.10.0[npm]"
# dev-util/electron-packager"
RDEPEND="${DEPEND}"
# gnome-base/gconf"
BLOODHOUND_BINDIR="FAIL_TO_DETECT_ARCH"
QA_FLAGS_IGNORED="usr/lib.*/BloodHound/.*\.so"
src_prepare() {
epatch "${FILESDIR}/3.0.3-singlearch.patch"
#https://github.com/electron/electron-packager/issues/187
epatch "${FILESDIR}/3.0.3-packager_14_2_1.patch"
mv "${WORKDIR}/node_modules" "${S}"
eapply_user
}
src_compile() {
#npm shrinkwrap
#we provide node_modules, there is no need to install
#npm install \
npm run-script webbuild || die "Webbuild failed to compile"
if use amd64; then
npm run-script linuxbuild_64 || die "Failed to compile"
BLOODHOUND_BINDIR="BloodHound-linux-x64"
elif use x86; then
npm run-script linuxbuild_32 || die "Failed to compile"
BLOODHOUND_BINDIR="BloodHound-linux-ia32"
elif use arm; then
npm run-script linuxbuild_arm || die "Failed to compile"
BLOODHOUND_BINDIR="BloodHound-linux-armv7l"
elif use arm64; then
npm run-script linuxbuild_arm64 || die "Failed to compile"
BLOODHOUND_BINDIR="BloodHound-linux-arm64"
fi
}
src_install() {
dodir /usr/$(get_libdir)/${PN}
cp -R ${BLOODHOUND_BINDIR}/* "${ED}"/usr/$(get_libdir)/${PN} || die "Copy files failed"
newbin - ${PN} <<-EOF
#!/bin/sh
cd /usr/$(get_libdir)/${PN}
LD_LIBRARY_PATH=. exec ./${PN} "\${@}"
EOF
}

View file

@ -1,3 +1,4 @@
DIST BloodHound-3.0.3-node_modules.tar.gz 97799744 BLAKE2B c9541b8f57104369a8deb4ca62ad80858b64babe19729255c4119b159e5ae204404ab7f5fa4d99db6c9c5adde6a091efbba1660e20939fb1b44a016db716d82a SHA512 553793e1fcb44601aaf506e89a9563aaa98d95d43f1a4050af53e0a0ccde26d3eff4f4302287ffe26758b5b654bb48b99448cf596fe3273a941e5e027adb9a87
DIST BloodHound-3.0.3.tar.gz 10370917 BLAKE2B ad7e9d86504530deb612a80852ceefe161237e4c0845890f517f0a5c96a55f15f59f2b2dfe8884bce32c46a347f4ebbdf9ed1d13607eba0ffa6c14bfb36c5279 SHA512 dcfb360b8eddf401c36cadd2528153180eae8d0dfceed02175075e8c8f3add947f4d21b465c39a0778bec5ffc304ad886e25b7445c7bdb0be610c483641c49b0
DIST BloodHound-3.0.4.tar.gz 4919834 BLAKE2B da1a8b17adec5a666d81bb0075f1ce51f20af4784cee7469e51933442021c73a80a566f91d3b18956166dd5f4e9b0583583a289eb099a059b0385d9549982e92 SHA512 e4a80bcc848d22cab17bede355e5c785c95d53c821f4bebbfc2f0c7bfebd558af03c0eec05060965cabb5f1843ec7fbc6b1846b985930d1e47a4504d59d61531
DIST electron-v6.0.11-linux-x64.zip 62382118 BLAKE2B fa384e268fcc2d6d97415852cbc6de9eecba43c3a4dc17fe801686535f555f16cdf0468e1b36bdd596defe24bc2a5c7e46252c1413026f4253f4ff99a69b30f1 SHA512 311ae0c8213931b69925ccc844fea0482860be549d124a1af2128e5044fa8dc4632e742ac57075f55d6f5dd24c1059dea3ed1d2c534d70341e3fae295ff1b4d4