BloodHound: 2.2.0 bump

This commit is contained in:
blshkv 2019-07-07 09:16:45 +08:00
parent 1896eba64b
commit 90ac12714b
No known key found for this signature in database
GPG key ID: 273E3E90D1A6294F
5 changed files with 65 additions and 9 deletions

View file

@ -1,2 +1,4 @@
DIST electron-packager-13.0.1-npm-cache.tar.gz 3443398 BLAKE2B f7f960599cf275425ee60befe678c20ca00334149d4ec32513c6fcc200ccbc6bafdbf7bfd1e4c97099124f3fb26167f220e410a570ed66fd5558412fcc27c7cc SHA512 a1d8a0e4083944d3f41debe664df65e38b9dc99b7f5d1792dcf36b018751e261247051d96aaaad2c6f061e9f96dc6bab01923806001acada80bf1a19c24ae452
DIST electron-packager-13.0.1.tar.gz 168324 BLAKE2B 53ee57ac3a15b620441d9a911d2058a8388c7507f4e08f2b5cf37cf4818c6ea0c7af29906626375f03083484c15fe6ce8bc26fab6d248b27abb2cce74baa2c5b SHA512 f160daafb57c5008bed470f0a54bcbf9b7c344e906e455663a73069ce0b0114226e63a7c3f6d24ea285f50ab39a911a17c4506e26296abd105e3d19cd426b351
DIST electron-packager-14.0.1-node_modules.tar.gz 13202470 BLAKE2B 9ded47952b259bb9c4b65bd724d89ff88248f85d11f011a192bc963eff49cf2576c69bd4e6eb39da41cbdeb1faba7e9f8c33fa72b6d98cc1ff17fea9e0b71451 SHA512 d2214087530dcd39153d2f67ea92d147941aa66f793062e77f77b62c9830b964af84b36b164ef9b8d38b1dc54b55c058cb775fc3eb80bf474f6109e92d613b31
DIST electron-packager-14.0.1.tar.gz 171452 BLAKE2B d1621663cfe38c80277399145f13b0138f6830a637640334f96ff211e9c8d498ec41fb9ef0e25a88bca255d6f668313ee0122f922bb24ab42faa819b498f21a6 SHA512 f1b4aca4df63560492acb078e8255856d3a26c17915b27c2cc573c1b13586a645d8e4ca97f438794e0e26d37d818bcf790ccb1494f576a897e65f33734057f09

View file

@ -0,0 +1,56 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=6
DESCRIPTION="Six Degrees of Domain Admin"
HOMEPAGE="https://github.com/electron-userland/electron-packager"
SRC_URI="https://github.com/electron-userland/electron-packager/archive/v${PV}.tar.gz -> ${P}.tar.gz
https://dev.pentoo.ch/~blshkv/distfiles/electron-packager-14.0.1-node_modules.tar.gz"
LICENSE=""
SLOT="0"
KEYWORDS="~amd64"
IUSE="doc"
DEPEND="net-libs/nodejs[npm]"
RDEPEND="${DEPEND}"
src_prepare(){
mv ${WORKDIR}/node_modules ${S}
eapply_user
}
src_compile(){
# For use in npm scripts (recommended)
# npm install electron-packager --save-dev
# For use from the CLI
# npm install electron-packager -g --prefix "${EPREFIX}" \
# --cache="${WORKDIR}/${P}-npm-cache"
npm build
# -g --prefix "${EPREFIX}"
# sys-cluster/ceph
# --offline --no-save --verbose --parseable \
# --no-rollback --no-progress --fetch-retries=0 \
# --nodedir="/usr/include/node" \
# --cache="${WORKDIR}/${P}-npm-cache" \
# --registry="http://npmjs.invalid" \
# --sass-binary-site="http://sass.invalid"
}
src_install(){
#this may be a wrong directory, but npm is a mess
local npm_module_dir="/usr/$(get_libdir)/node_modules/${PN}"
insinto "${npm_module_dir}"
doins -r {bin,node_modules,src,package.json,usage.txt}
dodoc CONTRIBUTING.md readme.md
use doc && dodoc -r docs
fperms +x "${npm_module_dir}/bin/electron-packager.js"
dosym "${npm_module_dir}/bin/electron-packager.js" "/usr/bin/${PN}"
}

View file

@ -50,10 +50,7 @@ dev-util/gn amd64
dev-util/appmon
~dev-util/electron-packager-13.0.1
#1.81 fails to compile
~dev-util/cppcheck-1.85
~dev-util/electron-packager-14.0.1
=dev-util/lief-0.9*
=dev-util/lief-bin-0.9*

View file

@ -1,5 +1,5 @@
www-apps/arachni
www-apps/beef
www-apps/BloodHound
~www-apps/BloodHound-2.2.0
www-apps/seahub
www-apps/Tiredful-API

View file

@ -35,18 +35,19 @@ src_compile(){
#npm install \
if use amd64; then
npm run linuxbuild_64
npm run linuxbuild_64 || die "Failed to compile"
BLOODHOUND_BINDIR="BloodHound-linux-x64"
elif use x86; then
npm run linuxbuild_32
npm run linuxbuild_32 || die "Failed to compile"
BLOODHOUND_BINDIR="BloodHound-linux-ia32"
elif use arm; then
npm run linuxbuild_arm
npm run linuxbuild_arm || die "Failed to compile"
BLOODHOUND_BINDIR="BloodHound-linux-armv7l"
elif use arm64; then
npm run linuxbuild_arm64
npm run linuxbuild_arm64 || die "Failed to compile"
BLOODHOUND_BINDIR="BloodHound-linux-arm64"
fi
}
src_install() {