powershel-bin: move to pwsh-bin stolen from dotnet overlay

This commit is contained in:
blshkv 2020-07-05 10:23:59 +08:00
parent d309e74536
commit 8556fea9d4
No known key found for this signature in database
GPG key ID: 32BDCED870788F04
14 changed files with 57 additions and 97 deletions

View file

@ -45,7 +45,7 @@ RDEPEND="${PYTHON_DEPS}
dev-python/pycryptodome[${PYTHON_MULTI_USEDEP}]
')
powershell? (
amd64? ( dev-lang/powershell-bin ) )
amd64? ( app-shells/pwsh-bin ) )
java? (
|| ( virtual/jre:* virtual/jdk:* ) )"

View file

@ -45,7 +45,7 @@ RDEPEND="${PYTHON_DEPS}
dev-python/pycryptodome[${PYTHON_MULTI_USEDEP}]
')
powershell? (
amd64? ( dev-lang/powershell-bin ) )
amd64? ( app-shells/pwsh-bin ) )
java? (
|| ( virtual/jre:* virtual/jdk:* ) )"

View file

@ -0,0 +1,3 @@
DIST powershell-7.0.2-linux-arm32.tar.gz 48087562 BLAKE2B b39747bebce179786fd5f8d17af8dab87f0d8527ec5ea197f2738c84c15b1e428e2a5cfa61536c7c668bd50b98670893ebf0dca45e4e1e345accc3d9e5ef2fad SHA512 c97edcd8349df969d0df75cf601e0a62ebc1afbbec8be9b20108342d4800d57eb31ac4a6a91ebf3ecef4ca20fc0663578929a67e8f7566052ebaea3d05d5f096
DIST powershell-7.0.2-linux-arm64.tar.gz 46524385 BLAKE2B bbe38bc91ce98f7f3d74814b5b3bfff7faa285fcb0729a7b1821e7763b57fa6f0a107c5f36e7c31e3fafb9eccfc656447780304c407780bca936f5556d8b05b2 SHA512 14f18674c7bd0540845fbd7c6d5449de667e61d9b5cb9d061ed3c6905bfa10d456f997825d3830d10859631761a887d998c86fe2b12babfcef689c5fded33647
DIST powershell-7.0.2-linux-x64.tar.gz 61119948 BLAKE2B 9d20977b680c972391c1f10043b09564e6ca500cb8f1e17e0f0855e6ecf1d5864677bacb45afab18b27a26ac04ce51c4cf1a32dcd797d65310147a3fa74b9f52 SHA512 d55f2e1bc673456f0916fa0f1380c79b5588167c74e96e07a3ffb5e63b9d1b377669835505b55177b2b1c697eb326483e00b6bbcb4f1092f7b43f25ff3b6aac3

View file

@ -0,0 +1,47 @@
# Copyright 1999-2019 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="7"
DESCRIPTION="PowerShell - binary precompiled for glibc"
HOMEPAGE="https://powershell.org/"
LICENSE="MIT"
SRC_URI="
amd64? ( https://github.com/PowerShell/PowerShell/releases/download/v${PV}/powershell-${PV}-linux-x64.tar.gz )
arm? ( https://github.com/PowerShell/PowerShell/releases/download/v${PV}/powershell-${PV}-linux-arm32.tar.gz )
arm64? ( https://github.com/PowerShell/PowerShell/releases/download/v${PV}/powershell-${PV}-linux-arm64.tar.gz )
"
SLOT="0"
KEYWORDS="~amd64 ~arm ~arm64"
QA_PREBUILT="*"
DEPEND=""
RDEPEND="${DEPEND}
>=sys-apps/lsb-release-1.4
>=sys-libs/libunwind-1.1-r1
>=dev-libs/icu-57.1
>=dev-util/lttng-ust-2.8.1
|| ( dev-libs/openssl-compat:1.0.0 =dev-libs/openssl-1.0*:0 )
>=net-misc/curl-7.49.0
>=app-crypt/mit-krb5-1.14.2
>=sys-libs/zlib-1.2.8-r1"
BDEPEND=""
S=${WORKDIR}
src_prepare() {
default
rm libcrypto.so.1.0.0 libssl.so.1.0.0 || die
}
src_install() {
local dest="opt/pwsh"
dodir "${dest}"
local ddest="${D}/${dest}"
cp -a "${S}"/* "${ddest}/" || die
fperms 0755 "/${dest}/pwsh"
dosym "/${dest}/pwsh" "/usr/bin/pwsh"
}

View file

@ -1,2 +0,0 @@
DIST powershell-6.2.5-1.rhel.7.x86_64.rpm 57020985 BLAKE2B 8dcff39eecd8a592c1b8b597a1a31cb8e7d9d0d6818f7d9964dc3add996f1372319ccece1334a116410cf04fc9cd6c29bf2303b34a6c9d38b92525a4aa622b88 SHA512 bc87627f67e8046a7d5982432610151f7e3879e9a05a1e0b371697ca264650df22b09b7da5c02042b6fb0b61f2400110887d2ce1bb65b367359be19a9651c21a
DIST powershell-7.0.2-1.rhel.7.x86_64.rpm 57888295 BLAKE2B fd5cef0d1dce45783a7d2eea37657497e87ce3bb1a5101a91526003f4f697cf65f33fd8bdda504b543c9b9fe11ddccb104db8d19df0772675c4b24f86431993a SHA512 bb7ee83ee1c3497ec21d327bfe066fc6bddb1091c8adf796af763715022e14d3989acf1991aceb0d17ac6aa66a9c802c5e659a353971858af70a0bf12d38c6eb

View file

@ -1,8 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>unknown@pentoo.ch</email>
<name>Author Unknown</name>
</maintainer>
</pkgmetadata>

View file

@ -1,40 +0,0 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit rpm
DESCRIPTION="A cross-platform automation and configuration tool/framework"
HOMEPAGE="https://github.com/Powershell/Powershell"
SRC_URI="
amd64? ( https://github.com/PowerShell/PowerShell/releases/download/v${PV}/powershell-${PV}-1.rhel.7.x86_64.rpm )
"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""
DEPEND=""
RDEPEND="${DEPEND}
dev-libs/icu
sys-libs/libcxx
dev-libs/openssl-compat:1.0.0"
QA_PREBUILT="/opt/microsoft/*"
S="${WORKDIR}"
src_prepare() {
#fix symlinks
rm opt/microsoft/powershell/6/{libcrypto.so.1.0.0,libssl.so.1.0.0}
default
}
src_install() {
# Using doins -r would strip executable bits from all binaries
cp -pPR "${S}"/{opt,usr/bin} "${D}"/ || die "Failed to copy files"
dosym "${EPREFIX}/usr/$(get_libdir)/libcrypto.so.1.0.0" /opt/microsoft/powershell/6/libcrypto.so.1.0.0
dosym "${EPREFIX}/usr/$(get_libdir)/libssl.so.1.0.0" /opt/microsoft/powershell/6/libssl.so.1.0.0
}

View file

@ -1,41 +0,0 @@
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit rpm
DESCRIPTION="A cross-platform automation and configuration tool/framework"
HOMEPAGE="https://github.com/Powershell/Powershell"
SRC_URI="
amd64? ( https://github.com/PowerShell/PowerShell/releases/download/v${PV}/powershell-${PV}-1.rhel.7.x86_64.rpm )
"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""
DEPEND=""
RDEPEND="${DEPEND}
dev-libs/icu
sys-libs/libcxx
dev-util/lttng-ust
dev-libs/openssl-compat:1.0.0"
QA_PREBUILT="/opt/microsoft/*"
S="${WORKDIR}"
src_prepare() {
#fix symlinks
rm opt/microsoft/powershell/7/{libcrypto.so.1.0.0,libssl.so.1.0.0}
default
}
src_install() {
# Using doins -r would strip executable bits from all binaries
cp -pPR "${S}"/{opt,usr/bin} "${D}"/ || die "Failed to copy files"
dosym "${EPREFIX}/usr/$(get_libdir)/libcrypto.so.1.0.0" /opt/microsoft/powershell/7/libcrypto.so.1.0.0
dosym "${EPREFIX}/usr/$(get_libdir)/libssl.so.1.0.0" /opt/microsoft/powershell/7/libssl.so.1.0.0
}

View file

@ -23,7 +23,7 @@ PDEPEND="
app-exploits/routersploit
app-exploits/weevely
app-forensics/make-pdf
amd64? ( dev-lang/powershell-bin )
!x86? ( app-shells/pwsh-bin )
net-analyzer/davtest
net-analyzer/yersinia
)

View file

@ -0,0 +1 @@
app-shells/pwsh-bin

View file

@ -4,5 +4,3 @@
#required by amass
#=dev-lang/go-1.13*
dev-lang/powershell-bin

View file

@ -73,7 +73,7 @@ dev-libs/libdwarf
~dev-libs/rapidjson-1.1.0
~dev-libs/elfio-1.0.3
#required by powershell-bin
#required by pwsh-bin
dev-libs/openssl-compat:1.0.0
# required by nokogiri-1.10.3

View file

@ -0,0 +1 @@
../../base/package.accept_keywords/app-shells

1
profiles/updates/2Q-2020 Normal file
View file

@ -0,0 +1 @@
move dev-lang/powershell-bin app-shells/pwsh-bin