From 99872e98c0aa37c07d8a68bb393c61050e73aede Mon Sep 17 00:00:00 2001 From: maxfx Date: Thu, 16 May 2024 19:47:07 +0200 Subject: [PATCH 1/3] powershell: new port --- powershell/Makefile | 197 ++++++++ powershell/distinfo | 193 ++++++++ powershell/files/patch-global.json | 10 + powershell/files/patch-nuget.config | 13 + .../files/patch-src_ResGen_ResGen.csproj | 11 + ...h-src_TypeCatalogGen_TypeCatalogGen.csproj | 11 + .../patch-src_libpsl-native_CMakeLists.txt | 14 + ...patch-src_libpsl-native_src_CMakeLists.txt | 11 + ...h-src_libpsl-native_src_getuserfrompid.cpp | 10 + ...src_powershell-unix_powershell-unix.csproj | 11 + .../files/patch-src_powershell_Program.cs | 94 ++++ powershell/nuget.mk | 34 ++ powershell/pkg-descr | 3 + powershell/pkg-plist | 456 ++++++++++++++++++ 14 files changed, 1068 insertions(+) create mode 100644 powershell/Makefile create mode 100644 powershell/distinfo create mode 100644 powershell/files/patch-global.json create mode 100644 powershell/files/patch-nuget.config create mode 100644 powershell/files/patch-src_ResGen_ResGen.csproj create mode 100644 powershell/files/patch-src_TypeCatalogGen_TypeCatalogGen.csproj create mode 100644 powershell/files/patch-src_libpsl-native_CMakeLists.txt create mode 100644 powershell/files/patch-src_libpsl-native_src_CMakeLists.txt create mode 100644 powershell/files/patch-src_libpsl-native_src_getuserfrompid.cpp create mode 100644 powershell/files/patch-src_powershell-unix_powershell-unix.csproj create mode 100644 powershell/files/patch-src_powershell_Program.cs create mode 100644 powershell/nuget.mk create mode 100644 powershell/pkg-descr create mode 100644 powershell/pkg-plist diff --git a/powershell/Makefile b/powershell/Makefile new file mode 100644 index 0000000..ce56945 --- /dev/null +++ b/powershell/Makefile @@ -0,0 +1,197 @@ +PORTNAME= powershell +DISTVERSION= 7.4.2 +CATEGORIES= shells + +MAINTAINER= zirias@FreeBSD.org +COMMENT= Microsoft's shell with support for .NET objects +WWW= https://microsoft.com/PowerShell + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +ONLY_FOR_ARCHS= aarch64 amd64 + +BUILD_DEPENDS= dotnet:lang/dotnet +LIB_DEPENDS= libinotify.so:devel/libinotify \ + libunwind.so:devel/libunwind + +USES= cmake ssl +USE_GITHUB= yes +GH_ACCOUNT= PowerShell +GH_PROJECT= PowerShell PowerShell-Native:native +GH_TAGNAME= v${DISTVERSION} v${PSNATIVEVERS}:native +CMAKE_SOURCE_PATH= ${WRKSRC}/src/libpsl-native + +OPTIONS_DEFINE= MODULES +OPTIONS_DEFAULT= GSSAPI_BASE MODULES +OPTIONS_SINGLE= GSSAPI +OPTIONS_SINGLE_GSSAPI= GSSAPI_BASE GSSAPI_HEIMDAL GSSAPI_MIT +OPTIONS_SUB= yes +MODULES_DESC= Bundle essential PowerShell modules +GSSAPI_BASE_USES= gssapi +GSSAPI_HEIMDAL_USES= gssapi:heimdal +GSSAPI_MIT_USES= gssapi:mit +MODULES_RUN_DEPENDS= terminfo-db>0:misc/terminfo-db +MODULES_VARS= NUGET_GROUPS+=PWSH + +DOTNET_ARCH= ${ARCH:S/amd64/x64/:S/aarch64/arm64/} +PSNATIVEVERS= 7.4.0 +NUGET_GROUPS= NUGET +NUPKG_NUGET= DotNetAnalyzers.DocumentationAnalyzers:1.0.0-beta.59 \ + DotNetAnalyzers.DocumentationAnalyzers.Unstable:1.0.0.59 \ + JetBrains.Annotations:2021.2.0 \ + Json.More.Net:1.9.3 \ + JsonPointer.Net:3.0.3 \ + JsonSchema.Net:5.2.7 \ + Markdig.Signed:0.33.0 \ + Microsoft.ApplicationInsights:2.21.0 \ + Microsoft.Bcl.AsyncInterfaces:8.0.0 \ + Microsoft.CodeAnalysis.Analyzers:3.3.4 \ + Microsoft.CodeAnalysis.Common:4.9.2 \ + Microsoft.CodeAnalysis.CSharp:4.9.2 \ + Microsoft.Extensions.ObjectPool:8.0.4 \ + Microsoft.Management.Infrastructure:3.0.0 \ + Microsoft.Management.Infrastructure.Runtime.Unix:3.0.0 \ + Microsoft.Management.Infrastructure.Runtime.Win:3.0.0 \ + Microsoft.NETCore.Platforms:1.1.2 \ + Microsoft.PowerShell.MarkdownRender:7.2.1 \ + Microsoft.PowerShell.Native:7.4.0 \ + Microsoft.Security.Extensions:1.2.0 \ + Microsoft.Win32.Registry:4.7.0 \ + Microsoft.Win32.Registry.AccessControl:8.0.0 \ + Microsoft.Win32.SystemEvents:8.0.0 \ + Microsoft.Windows.Compatibility:8.0.4 \ + NETStandard.Library:2.0.3 \ + Newtonsoft.Json:13.0.3 \ + runtime.linux-arm.runtime.native.System.IO.Ports:8.0.0 \ + runtime.linux-arm64.runtime.native.System.IO.Ports:8.0.0 \ + runtime.linux-x64.runtime.native.System.IO.Ports:8.0.0 \ + runtime.native.System.Data.SqlClient.sni:4.7.0 \ + runtime.native.System.IO.Ports:8.0.0 \ + runtime.osx-arm64.runtime.native.System.IO.Ports:8.0.0 \ + runtime.osx-x64.runtime.native.System.IO.Ports:8.0.0 \ + runtime.win-arm64.runtime.native.System.Data.SqlClient.sni:4.4.0 \ + runtime.win-x64.runtime.native.System.Data.SqlClient.sni:4.4.0 \ + runtime.win-x86.runtime.native.System.Data.SqlClient.sni:4.4.0 \ + StyleCop.Analyzers:1.2.0-beta.556 \ + StyleCop.Analyzers.Unstable:1.2.0.556 \ + System.Buffers:4.5.1 \ + System.CodeDom:8.0.0 \ + System.Collections.Immutable:8.0.0 \ + System.ComponentModel.Composition:8.0.0 \ + System.ComponentModel.Composition.Registration:8.0.0 \ + System.Configuration.ConfigurationManager:8.0.0 \ + System.Data.Odbc:8.0.0 \ + System.Data.OleDb:8.0.0 \ + System.Data.SqlClient:4.8.6 \ + System.Diagnostics.DiagnosticSource:8.0.1 \ + System.Diagnostics.EventLog:8.0.0 \ + System.Diagnostics.PerformanceCounter:8.0.0 \ + System.DirectoryServices:8.0.0 \ + System.DirectoryServices.AccountManagement:8.0.0 \ + System.DirectoryServices.Protocols:8.0.0 \ + System.Drawing.Common:8.0.4 \ + System.Formats.Asn1:6.0.0 \ + System.IO.Packaging:8.0.0 \ + System.IO.Ports:8.0.0 \ + System.Management:8.0.0 \ + System.Memory:4.5.5 \ + System.Net.Http.WinHttpHandler:8.0.0 \ + System.Numerics.Vectors:4.4.0 \ + System.Numerics.Vectors:4.5.0 \ + System.Private.ServiceModel:4.10.3 \ + System.Reflection.Context:8.0.0 \ + System.Reflection.DispatchProxy:4.7.1 \ + System.Reflection.Metadata:8.0.0 \ + System.Runtime.Caching:8.0.0 \ + System.Runtime.CompilerServices.Unsafe:6.0.0 \ + System.Security.AccessControl:6.0.1 \ + System.Security.Cryptography.Pkcs:6.0.1 \ + System.Security.Cryptography.ProtectedData:8.0.0 \ + System.Security.Cryptography.Xml:6.0.1 \ + System.Security.Permissions:8.0.0 \ + System.Security.Principal.Windows:4.7.0 \ + System.ServiceModel.Duplex:4.10.3 \ + System.ServiceModel.Http:4.10.3 \ + System.ServiceModel.NetTcp:4.10.3 \ + System.ServiceModel.Primitives:4.10.3 \ + System.ServiceModel.Security:4.10.3 \ + System.ServiceModel.Syndication:8.0.0 \ + System.ServiceProcess.ServiceController:8.0.0 \ + System.Speech:8.0.0 \ + System.Text.Encoding.CodePages:7.0.0 \ + System.Text.Encoding.CodePages:8.0.0 \ + System.Text.Encodings.Web:6.0.0 \ + System.Text.Encodings.Web:8.0.0 \ + System.Text.Json:6.0.9 \ + System.Threading.AccessControl:4.7.0 \ + System.Threading.Tasks.Extensions:4.5.4 \ + System.Web.Services.Description:4.10.3 \ + System.Windows.Extensions:8.0.0 +NUPKG_PWSH= Microsoft.PowerShell.PSResourceGet:1.0.3 \ + PSReadLine:2.3.4 \ + PowerShellGet:3.0.23-beta23 + +PWSH_MOD_EXTRACT_ARGS= -x "\[Content_Types\].xml" \ + -x "_*/*" \ + -x "package/*" \ + -x "*.txt" \ + -x "*.nuspec" + +post-extract: + ${RM} -r ${WRKSRC}/src/libpsl-native + ${MV} ${WRKSRC_native}/src/libpsl-native ${WRKSRC}/src/libpsl-native +# ${MKDIR} ${WRKSRC}/src/Microsoft.PowerShell.SDK/obj +# ${CP} ${FILESDIR}/Microsoft.PowerShell.SDK.csproj.TypeCatalog.targets \ +# ${WRKSRC}/src/Microsoft.PowerShell.SDK/obj + +post-patch: + ${REINPLACE_CMD} -e 's|%%DISTDIR%%|${DISTDIR}|' \ + -e 's|%%LOCALBASE%%|${LOCALBASE}|' ${WRKSRC}/nuget.config + ${REINPLACE_CMD} 's|%%DISTVERSION%%|${DISTVERSION}|' \ + ${WRKSRC}/PowerShell.Common.props + ${REINPLACE_CMD} 's|%%DOTNET_ARCH%%|${DOTNET_ARCH}|g' \ + ${WRKSRC}/src/ResGen/ResGen.csproj \ + ${WRKSRC}/src/TypeCatalogGen/TypeCatalogGen.csproj \ + ${WRKSRC}/src/powershell-unix/powershell-unix.csproj + +post-build: + cd ${WRKSRC}/src/ResGen && \ + dotnet restore --packages ${WRKDIR}/packages && \ + dotnet build --no-restore && \ + dotnet run --no-restore + cd ${WRKSRC}/src/powershell-unix && \ + dotnet restore --packages ${WRKDIR}/packages + cd ${WRKSRC}/src && dotnet msbuild \ + Microsoft.PowerShell.SDK/Microsoft.PowerShell.SDK.csproj \ + #/t:_GetDependencies /p:DesignTimeBuild=true \ + /p:DesignTimeBuild=true \ + /p:_DependencyFile=${WRKSRC}/src/TypeCatalogGen/powershell.inc \ + /nologo + cd ${WRKSRC}/src/TypeCatalogGen && \ + dotnet restore --packages ${WRKDIR}/packages && \ + dotnet build --no-restore && \ + dotnet run --no-restore \ + ../System.Management.Automation/CoreCLR/CorePsTypeCatalog.cs \ + powershell.inc + cd ${WRKSRC}/src/powershell-unix && \ + dotnet publish --packages ${WRKDIR}/packages -c Release \ + -r freebsd-${DOTNET_ARCH} -o bin/publish \ + --sc -p:PublishReadyToRun=true + ${INSTALL_LIB} ${WRKSRC}/src/powershell-unix/libpsl-native.so \ + ${WRKSRC}/src/powershell-unix/bin/publish + +do-install: + ${CP} -r ${WRKSRC}/src/powershell-unix/bin/publish \ + ${STAGEDIR}${PREFIX}/lib/powershell + ${LN} -s ../lib/powershell/pwsh ${STAGEDIR}${PREFIX}/bin + +post-install-MODULES-on: +.for m in ${NUPKG_PWSH} + ${UNZIP_NATIVE_CMD} ${PWSH_MOD_EXTRACT_ARGS} \ + -d ${STAGEDIR}${PREFIX}/lib/powershell/Modules/${m:C/:.*//} \ + ${DISTDIR}/nuget/${m:C/:.*//:tl}.${m:C/.*://:tl}.nupkg +.endfor + +.include "nuget.mk" +.include diff --git a/powershell/distinfo b/powershell/distinfo new file mode 100644 index 0000000..b220023 --- /dev/null +++ b/powershell/distinfo @@ -0,0 +1,193 @@ +TIMESTAMP = 1715873909 +SHA256 (nuget/dotnetanalyzers.documentationanalyzers.1.0.0-beta.59.nupkg) = 923a54cd5b0fdb74cc6cc49a01b9027785ef4fd142b9b0802a588ae242a6740e +SIZE (nuget/dotnetanalyzers.documentationanalyzers.1.0.0-beta.59.nupkg) = 14410 +SHA256 (nuget/dotnetanalyzers.documentationanalyzers.unstable.1.0.0.59.nupkg) = ae589831a3338b8b7efc889cbfc65f64724460ca63e4af97a8da03bff2c02191 +SIZE (nuget/dotnetanalyzers.documentationanalyzers.unstable.1.0.0.59.nupkg) = 148293 +SHA256 (nuget/jetbrains.annotations.2021.2.0.nupkg) = 36d4e2a30acc420a138904217a2a2c79bfde1862c7faa47f3570c502c5ab3b4f +SIZE (nuget/jetbrains.annotations.2021.2.0.nupkg) = 127455 +SHA256 (nuget/json.more.net.1.9.3.nupkg) = e4ef35a69e028ebad5eda65a5ca376fecc92bc06e8dfff41a9d2c39a4e4a3502 +SIZE (nuget/json.more.net.1.9.3.nupkg) = 49221 +SHA256 (nuget/jsonpointer.net.3.0.3.nupkg) = 7d64756820d6c9ce9f9412c568648999783dbe0daa325008379c278f6458a8b6 +SIZE (nuget/jsonpointer.net.3.0.3.nupkg) = 43717 +SHA256 (nuget/jsonschema.net.5.2.7.nupkg) = eb619b17b4ed360c6e05edec0c90768996c14ce734f93c8c9e9407f737a6afca +SIZE (nuget/jsonschema.net.5.2.7.nupkg) = 142696 +SHA256 (nuget/markdig.signed.0.33.0.nupkg) = d0046110ae6197392f174eed4cedf8ce7670718305423a1be43dab0d6ca52620 +SIZE (nuget/markdig.signed.0.33.0.nupkg) = 890574 +SHA256 (nuget/microsoft.applicationinsights.2.21.0.nupkg) = 9d30cbb53cfb1f01bcbab28ab786b3b67a7039b83282365ba368f589972403e0 +SIZE (nuget/microsoft.applicationinsights.2.21.0.nupkg) = 1703530 +SHA256 (nuget/microsoft.bcl.asyncinterfaces.8.0.0.nupkg) = f5a5a68b03092ab2abf68843d4a4aea25dfbcbe8dd0f13c625cb779b6fc1927c +SIZE (nuget/microsoft.bcl.asyncinterfaces.8.0.0.nupkg) = 99740 +SHA256 (nuget/microsoft.codeanalysis.analyzers.3.3.4.nupkg) = a83cd37d90520af014bbd833ab693e2cebe1ebf791bc9f7ef9508d724fd9a671 +SIZE (nuget/microsoft.codeanalysis.analyzers.3.3.4.nupkg) = 1461577 +SHA256 (nuget/microsoft.codeanalysis.common.4.9.2.nupkg) = 414fe7ca2256a5d3d018705d68e11573e02086718770a045057d28ca1459f424 +SIZE (nuget/microsoft.codeanalysis.common.4.9.2.nupkg) = 6961486 +SHA256 (nuget/microsoft.codeanalysis.csharp.4.9.2.nupkg) = 8f4e90e00f44eb9d3be5205775754231181e2f103add1bf5bf16abc9d9a65400 +SIZE (nuget/microsoft.codeanalysis.csharp.4.9.2.nupkg) = 16969467 +SHA256 (nuget/microsoft.extensions.objectpool.8.0.4.nupkg) = 417e678a9a5410ccdbc647fee2e92e091dc624c644d875fb52a071e67dfe84e7 +SIZE (nuget/microsoft.extensions.objectpool.8.0.4.nupkg) = 91742 +SHA256 (nuget/microsoft.management.infrastructure.3.0.0.nupkg) = bd5a6b8baf5985de61f01ef03fdb240ec817e55ed3b0a237f722d78d65eab272 +SIZE (nuget/microsoft.management.infrastructure.3.0.0.nupkg) = 108606 +SHA256 (nuget/microsoft.management.infrastructure.runtime.unix.3.0.0.nupkg) = b4f959bad08df9a6e680c33200f5cefe7c1b8222a26eb134d338de0b565425ab +SIZE (nuget/microsoft.management.infrastructure.runtime.unix.3.0.0.nupkg) = 122301 +SHA256 (nuget/microsoft.management.infrastructure.runtime.win.3.0.0.nupkg) = 7206e8f30c824066fb34a97795ba88e4733a6958e9e08fba746e035ef6075f34 +SIZE (nuget/microsoft.management.infrastructure.runtime.win.3.0.0.nupkg) = 787562 +SHA256 (nuget/microsoft.netcore.platforms.1.1.2.nupkg) = adaf848ef23c5f302a56f8b4cde237b77ac88e0c6e721026bcf7a86e8a3af8b1 +SIZE (nuget/microsoft.netcore.platforms.1.1.2.nupkg) = 27498 +SHA256 (nuget/microsoft.powershell.markdownrender.7.2.1.nupkg) = 4a28a353be54c2dcf225f421832c4e1b8634a4021f8ad3d8219dc442bb5d657a +SIZE (nuget/microsoft.powershell.markdownrender.7.2.1.nupkg) = 49815 +SHA256 (nuget/microsoft.powershell.native.7.4.0.nupkg) = 5ce903457b6ac0a8565e13916d9bbcffd49d31fc02dd19fbb868f17e5e62e249 +SIZE (nuget/microsoft.powershell.native.7.4.0.nupkg) = 590282 +SHA256 (nuget/microsoft.powershell.psresourceget.1.0.3.nupkg) = fa7db1bee9a8dcbaed478472c3b47b9b9e69ff8386a9b9b36460f2055cdb1403 +SIZE (nuget/microsoft.powershell.psresourceget.1.0.3.nupkg) = 2075520 +SHA256 (nuget/microsoft.security.extensions.1.2.0.nupkg) = 29eda91feacdde4be774a01e06b2d66812021e09b963936a597c9fe0d0480bc7 +SIZE (nuget/microsoft.security.extensions.1.2.0.nupkg) = 158448 +SHA256 (nuget/microsoft.win32.registry.4.7.0.nupkg) = fa3582c11a94fc9fe32dd40a0c59bddd67c80eb0cc5cc27df3851ebda40ca22f +SIZE (nuget/microsoft.win32.registry.4.7.0.nupkg) = 378359 +SHA256 (nuget/microsoft.win32.registry.accesscontrol.8.0.0.nupkg) = 176fd556c739737469b2b697031eb73fc39d640eb51e1d476e2ad8237535153e +SIZE (nuget/microsoft.win32.registry.accesscontrol.8.0.0.nupkg) = 152626 +SHA256 (nuget/microsoft.win32.systemevents.8.0.0.nupkg) = 51cc6eac46a6603f81b9ad0f6cf34c60065a46e94cae8bfc09f6c91888136914 +SIZE (nuget/microsoft.win32.systemevents.8.0.0.nupkg) = 233719 +SHA256 (nuget/microsoft.windows.compatibility.8.0.4.nupkg) = fcd8d63230335f9df8c3c27deabdb2832085373a71d68539eb6d84fb8536d935 +SIZE (nuget/microsoft.windows.compatibility.8.0.4.nupkg) = 35673 +SHA256 (nuget/netstandard.library.2.0.3.nupkg) = 3eb87644f79bcffb3c0331dbdac3c7837265f2cdf58a7bfd93e431776f77c9ba +SIZE (nuget/netstandard.library.2.0.3.nupkg) = 3146139 +SHA256 (nuget/newtonsoft.json.13.0.3.nupkg) = 872fc189e638ab1056555b03aaa38f68bcb54286e221aa646eb1129babf63c77 +SIZE (nuget/newtonsoft.json.13.0.3.nupkg) = 2441966 +SHA256 (nuget/powershellget.3.0.23-beta23.nupkg) = b25688d2758aabbff04b4cd39a93aaa253be272080e7f92329273920e95c2707 +SIZE (nuget/powershellget.3.0.23-beta23.nupkg) = 28433 +SHA256 (nuget/psreadline.2.3.4.nupkg) = 906569c65c52775c41df985c53fca07f1d19d8460fc667f0ab0a37b53d5b495b +SIZE (nuget/psreadline.2.3.4.nupkg) = 257204 +SHA256 (nuget/runtime.linux-arm.runtime.native.system.io.ports.8.0.0.nupkg) = 9b9fa877b661973226c1213d13b42ad671f70379ae5f00a7b2fad552827bf961 +SIZE (nuget/runtime.linux-arm.runtime.native.system.io.ports.8.0.0.nupkg) = 50157 +SHA256 (nuget/runtime.linux-arm64.runtime.native.system.io.ports.8.0.0.nupkg) = 2206c6dc74f7034548b569796ac13b1e4d336908d09de2904bd7fae5c4008cb2 +SIZE (nuget/runtime.linux-arm64.runtime.native.system.io.ports.8.0.0.nupkg) = 51321 +SHA256 (nuget/runtime.linux-x64.runtime.native.system.io.ports.8.0.0.nupkg) = e38a2e8d21e1734365d960af2d891272b032a8d0256c67ce9e5ccfc02a1fc250 +SIZE (nuget/runtime.linux-x64.runtime.native.system.io.ports.8.0.0.nupkg) = 51343 +SHA256 (nuget/runtime.native.system.data.sqlclient.sni.4.7.0.nupkg) = 723d3e0699a889bc0e5a3db0357c0e3497931a8b26170843df8f733e335a04ad +SIZE (nuget/runtime.native.system.data.sqlclient.sni.4.7.0.nupkg) = 26713 +SHA256 (nuget/runtime.native.system.io.ports.8.0.0.nupkg) = 06a131554ff31e3ee8fbe9b33a963dcbe8bdc996556dc1a63bf0f8991ce2818f +SIZE (nuget/runtime.native.system.io.ports.8.0.0.nupkg) = 45552 +SHA256 (nuget/runtime.osx-arm64.runtime.native.system.io.ports.8.0.0.nupkg) = a05305eb4cb24f2ddf5f02e55c990d52dcdd473e04cb17af01421c7dc5444821 +SIZE (nuget/runtime.osx-arm64.runtime.native.system.io.ports.8.0.0.nupkg) = 50922 +SHA256 (nuget/runtime.osx-x64.runtime.native.system.io.ports.8.0.0.nupkg) = 6f627d0dcba732d0a1a6ec8d0b45cddfd674d56afbdfc1c8fecc895b59fd6df1 +SIZE (nuget/runtime.osx-x64.runtime.native.system.io.ports.8.0.0.nupkg) = 50739 +SHA256 (nuget/runtime.win-arm64.runtime.native.system.data.sqlclient.sni.4.4.0.nupkg) = f311a2aa4e60e2433bf7ffd28aba33983b43a6ac155c7dc29af22cec63707e1d +SIZE (nuget/runtime.win-arm64.runtime.native.system.data.sqlclient.sni.4.4.0.nupkg) = 97899 +SHA256 (nuget/runtime.win-x64.runtime.native.system.data.sqlclient.sni.4.4.0.nupkg) = 1e85ca18192e7b44494f5499c409625664f9adb7d4df10fc987f217c2bd1c704 +SIZE (nuget/runtime.win-x64.runtime.native.system.data.sqlclient.sni.4.4.0.nupkg) = 100353 +SHA256 (nuget/runtime.win-x86.runtime.native.system.data.sqlclient.sni.4.4.0.nupkg) = 8cf9d6cc371bb9f3b9d462c68f29d61f2d1bfb93c1a8dc4cf952a64ab39b794c +SIZE (nuget/runtime.win-x86.runtime.native.system.data.sqlclient.sni.4.4.0.nupkg) = 90533 +SHA256 (nuget/stylecop.analyzers.1.2.0-beta.556.nupkg) = f7b61841caf9bd9c53be2dfaeb4f1e524035c1beb1965650ed47176e3ad821f5 +SIZE (nuget/stylecop.analyzers.1.2.0-beta.556.nupkg) = 15876 +SHA256 (nuget/stylecop.analyzers.unstable.1.2.0.556.nupkg) = 695a29edaf6bf97d91b191138278019b7a903c42223c15a01f389c1924c4ca67 +SIZE (nuget/stylecop.analyzers.unstable.1.2.0.556.nupkg) = 474559 +SHA256 (nuget/system.buffers.4.5.1.nupkg) = c30b3dd2c7e2f4cee4b823d692fd42118309b42ab1f5007f923d329a5b0d6b12 +SIZE (nuget/system.buffers.4.5.1.nupkg) = 93737 +SHA256 (nuget/system.codedom.8.0.0.nupkg) = bb05618b7c5cbd7ede88e1908bb751113937431d447c7b147dc859b04b68df7f +SIZE (nuget/system.codedom.8.0.0.nupkg) = 510041 +SHA256 (nuget/system.collections.immutable.8.0.0.nupkg) = 17b3958ca370a6a6d487c95389d6ea256622e3bea7b2af67fba934f90551a37c +SIZE (nuget/system.collections.immutable.8.0.0.nupkg) = 787241 +SHA256 (nuget/system.componentmodel.composition.8.0.0.nupkg) = 32729d8c4fea22f02611e45cde03a7e6e2614f44c8dd49d424f8e3dd32c7150a +SIZE (nuget/system.componentmodel.composition.8.0.0.nupkg) = 534116 +SHA256 (nuget/system.componentmodel.composition.registration.8.0.0.nupkg) = 9b40e6000d55dffb1bbf2d1816b41e3830171863cc9811311d8940c99944ea3f +SIZE (nuget/system.componentmodel.composition.registration.8.0.0.nupkg) = 153743 +SHA256 (nuget/system.configuration.configurationmanager.8.0.0.nupkg) = c61963a9290d424f0332410e0526279fd9730921030eae323bdd748ada6daa21 +SIZE (nuget/system.configuration.configurationmanager.8.0.0.nupkg) = 977652 +SHA256 (nuget/system.data.odbc.8.0.0.nupkg) = b908c3c2c0589bb0531937a69e76ba8d8243aa576494be5f0a6ac267d57aabce +SIZE (nuget/system.data.odbc.8.0.0.nupkg) = 2716587 +SHA256 (nuget/system.data.oledb.8.0.0.nupkg) = 1542d0811e5d9452b56d5eed2aeef6bcf876e0e6be4c0b9ae6a2b995949cc6ef +SIZE (nuget/system.data.oledb.8.0.0.nupkg) = 792319 +SHA256 (nuget/system.data.sqlclient.4.8.6.nupkg) = 41cff2728dded3eea33fc522300d044657d210a74836fd019878b187d67c7c94 +SIZE (nuget/system.data.sqlclient.4.8.6.nupkg) = 4928218 +SHA256 (nuget/system.diagnostics.diagnosticsource.8.0.1.nupkg) = ce6c078dc26029c6e49307a91f4dfc421727b16309707cacf8f11b1460b4260a +SIZE (nuget/system.diagnostics.diagnosticsource.8.0.1.nupkg) = 517990 +SHA256 (nuget/system.diagnostics.eventlog.8.0.0.nupkg) = aedf3173791d769418e0711d82194178e2b881dc39c888f899c661015b64dbf6 +SIZE (nuget/system.diagnostics.eventlog.8.0.0.nupkg) = 535543 +SHA256 (nuget/system.diagnostics.performancecounter.8.0.0.nupkg) = 09b4cbfa8adce5870425f29b06dafff69ff4acd5553903f3fdf384680e8fbb99 +SIZE (nuget/system.diagnostics.performancecounter.8.0.0.nupkg) = 428758 +SHA256 (nuget/system.directoryservices.8.0.0.nupkg) = 6ba1021afb03a873d9b9a1bddb4ccc8dc08e043d8abe0f235a949a7202f86bb0 +SIZE (nuget/system.directoryservices.8.0.0.nupkg) = 1006445 +SHA256 (nuget/system.directoryservices.accountmanagement.8.0.0.nupkg) = 10a318bb9668ac4174791561a0e4a3c9895f8e95a730d5f4553b97454f2d31f7 +SIZE (nuget/system.directoryservices.accountmanagement.8.0.0.nupkg) = 598049 +SHA256 (nuget/system.directoryservices.protocols.8.0.0.nupkg) = 1eadff636429665254639d96e96629894490b22316971bdebcb045fa27291b3a +SIZE (nuget/system.directoryservices.protocols.8.0.0.nupkg) = 954895 +SHA256 (nuget/system.drawing.common.8.0.4.nupkg) = d1194525d4b4c2e69c11bcee7a295018dce06cb2b52af9d0082cedb29706259e +SIZE (nuget/system.drawing.common.8.0.4.nupkg) = 1568544 +SHA256 (nuget/system.formats.asn1.6.0.0.nupkg) = 29a30780844117b35fdd5c0ea3e8094b50dc0fee357090cf58587e4c343c79ef +SIZE (nuget/system.formats.asn1.6.0.0.nupkg) = 182980 +SHA256 (nuget/system.io.packaging.8.0.0.nupkg) = 90139a1b5637b5eef4f25f359888a0ed82a5eb03db108010f49f26cc751d3bf0 +SIZE (nuget/system.io.packaging.8.0.0.nupkg) = 344967 +SHA256 (nuget/system.io.ports.8.0.0.nupkg) = 1bc8fd7347ab07365f2405655b4f17a04e7c80f862356244efcb056815767b84 +SIZE (nuget/system.io.ports.8.0.0.nupkg) = 427021 +SHA256 (nuget/system.management.8.0.0.nupkg) = 1f0a5f0dbfbeabbfefc51eaae7b986160979534bf1cbea1127aa2b14a3917cfd +SIZE (nuget/system.management.8.0.0.nupkg) = 791455 +SHA256 (nuget/system.memory.4.5.5.nupkg) = 10f43da352a29fb2b3188e4edd4dcf5100194c8b526e4f61fe2e2b5623775a22 +SIZE (nuget/system.memory.4.5.5.nupkg) = 208978 +SHA256 (nuget/system.net.http.winhttphandler.8.0.0.nupkg) = c122b92ad5af943a7c58b35d74298033aeae1b28fdfca7c9c8287c86dd4f0f53 +SIZE (nuget/system.net.http.winhttphandler.8.0.0.nupkg) = 416095 +SHA256 (nuget/system.numerics.vectors.4.4.0.nupkg) = 6ae5d02b67e52ff2699c1feb11c01c526e2f60c09830432258e0809486aabb65 +SIZE (nuget/system.numerics.vectors.4.4.0.nupkg) = 337043 +SHA256 (nuget/system.numerics.vectors.4.5.0.nupkg) = a9d49320581fda1b4f4be6212c68c01a22cdf228026099c20a8eabefcf90f9cf +SIZE (nuget/system.numerics.vectors.4.5.0.nupkg) = 382792 +SHA256 (nuget/system.private.servicemodel.4.10.3.nupkg) = 1786507c1ee2ecae6361e5766465b38b71ad9d3406fbbb9c213a1fd3a4c8437c +SIZE (nuget/system.private.servicemodel.4.10.3.nupkg) = 2204805 +SHA256 (nuget/system.reflection.context.8.0.0.nupkg) = e00adf82e4d8e0599b35c71ec67ab03299939031e5039b02733439462e6403de +SIZE (nuget/system.reflection.context.8.0.0.nupkg) = 219153 +SHA256 (nuget/system.reflection.dispatchproxy.4.7.1.nupkg) = 3a2fa5df6a7bdd9c70701e86ad24b69b6e4171c7e9bb06d8e1ec8513051ed083 +SIZE (nuget/system.reflection.dispatchproxy.4.7.1.nupkg) = 197900 +SHA256 (nuget/system.reflection.metadata.8.0.0.nupkg) = 750182df425ab880d63565ccad234e2677156b5ba6475b228dacd8c140dd4881 +SIZE (nuget/system.reflection.metadata.8.0.0.nupkg) = 1307788 +SHA256 (nuget/system.runtime.caching.8.0.0.nupkg) = c086c1065c02dcdfcc9f4e55d187d370bb239a8e8d50277a835b9bb4d67a1c34 +SIZE (nuget/system.runtime.caching.8.0.0.nupkg) = 393136 +SHA256 (nuget/system.runtime.compilerservices.unsafe.6.0.0.nupkg) = 6c41b53e70e9eee298cff3a02ce5acdd15b04125589be0273f0566026720a762 +SIZE (nuget/system.runtime.compilerservices.unsafe.6.0.0.nupkg) = 84343 +SHA256 (nuget/system.security.accesscontrol.6.0.1.nupkg) = 462e26f796417e8a4350655a85bbd4233b94cbd0f7150c1c5e9acfd88e885141 +SIZE (nuget/system.security.accesscontrol.6.0.1.nupkg) = 235270 +SHA256 (nuget/system.security.cryptography.pkcs.6.0.1.nupkg) = 389e0d27c13ff25f3a691f87b30fa4ffb208eb763fccf4be3200be51f7825c73 +SIZE (nuget/system.security.cryptography.pkcs.6.0.1.nupkg) = 944296 +SHA256 (nuget/system.security.cryptography.protecteddata.8.0.0.nupkg) = 7dbd296bdb10c4dfa6af4be75e0d4881bc78f4268ea92f860e44df58d6e852fb +SIZE (nuget/system.security.cryptography.protecteddata.8.0.0.nupkg) = 148572 +SHA256 (nuget/system.security.cryptography.xml.6.0.1.nupkg) = b295d5f1c599bb45779627a4d7ddfa444b5da6f4b87d0c1cf7c26f69c3b5a095 +SIZE (nuget/system.security.cryptography.xml.6.0.1.nupkg) = 231247 +SHA256 (nuget/system.security.permissions.8.0.0.nupkg) = f9850f63edc79d399f3cb673afee6a124d11a9a9426c564180b5de7b5c821f53 +SIZE (nuget/system.security.permissions.8.0.0.nupkg) = 538298 +SHA256 (nuget/system.security.principal.windows.4.7.0.nupkg) = ad604cd94f0aab7ac475a6b530f65260e3a46ed306816c81f223eba48aa6a6a8 +SIZE (nuget/system.security.principal.windows.4.7.0.nupkg) = 511086 +SHA256 (nuget/system.servicemodel.duplex.4.10.3.nupkg) = 6888497fd53965e39b4d3db2094c325712669377ff864ac784d306ef32fd8672 +SIZE (nuget/system.servicemodel.duplex.4.10.3.nupkg) = 166643 +SHA256 (nuget/system.servicemodel.http.4.10.3.nupkg) = 7484a3c14b5246efd32e24fa58c560177a6680c8a4204370df14e7f082659fc5 +SIZE (nuget/system.servicemodel.http.4.10.3.nupkg) = 237427 +SHA256 (nuget/system.servicemodel.nettcp.4.10.3.nupkg) = 0c83bc2e4207ba480215e488803c4f6affc842ef4874cb72c1e031548f5a8053 +SIZE (nuget/system.servicemodel.nettcp.4.10.3.nupkg) = 211587 +SHA256 (nuget/system.servicemodel.primitives.4.10.3.nupkg) = 3620a006732eab633e4cf692d2bc72b9a6495e8ed8b646bc1de619df1abad6b2 +SIZE (nuget/system.servicemodel.primitives.4.10.3.nupkg) = 419873 +SHA256 (nuget/system.servicemodel.security.4.10.3.nupkg) = 2f515a9dccd0ebcd006077b79d89e88a4c1cff74b470b661bdc044454f1a7d79 +SIZE (nuget/system.servicemodel.security.4.10.3.nupkg) = 189764 +SHA256 (nuget/system.servicemodel.syndication.8.0.0.nupkg) = bca8220c640171a110896a5f53a90646d949b250505ed146a85f84564feeee42 +SIZE (nuget/system.servicemodel.syndication.8.0.0.nupkg) = 349566 +SHA256 (nuget/system.serviceprocess.servicecontroller.8.0.0.nupkg) = 9aafd09bc25e314be2b477f7dbf17cbafc356091b1e29ac69c423f57375a1402 +SIZE (nuget/system.serviceprocess.servicecontroller.8.0.0.nupkg) = 295541 +SHA256 (nuget/system.speech.8.0.0.nupkg) = a20b6744151c4ebb966743558af294ba99153c020d8a0381b89d06bff4f5c109 +SIZE (nuget/system.speech.8.0.0.nupkg) = 1131725 +SHA256 (nuget/system.text.encoding.codepages.7.0.0.nupkg) = 782293570ba60f4e7564472825c0d54469c8180b04bcaa5f1f7c9d2a5b87c66a +SIZE (nuget/system.text.encoding.codepages.7.0.0.nupkg) = 3198933 +SHA256 (nuget/system.text.encoding.codepages.8.0.0.nupkg) = 7e308b41cd4f456d08c7921995d8345cabfe2750ea3d27eef698ccc8d069edd1 +SIZE (nuget/system.text.encoding.codepages.8.0.0.nupkg) = 4260927 +SHA256 (nuget/system.text.encodings.web.6.0.0.nupkg) = 51e9831c61684081bb39b430465ba155fe8082d42291f1c4a0f2c2ea06c5c91a +SIZE (nuget/system.text.encodings.web.6.0.0.nupkg) = 235525 +SHA256 (nuget/system.text.encodings.web.8.0.0.nupkg) = 21442442457da68d4b0b442caab8a5ab03733ef9dcfb8795beafa10afabc7ef1 +SIZE (nuget/system.text.encodings.web.8.0.0.nupkg) = 374440 +SHA256 (nuget/system.text.json.6.0.9.nupkg) = e638efc55f2e6c662393274384bb0665707a9a5dceffb0866ae41cbb58a478bb +SIZE (nuget/system.text.json.6.0.9.nupkg) = 1396928 +SHA256 (nuget/system.threading.accesscontrol.4.7.0.nupkg) = 997d70f3030624c20f6c4c8ec5453155c20a69cac053f044c144f0c580a9ccb5 +SIZE (nuget/system.threading.accesscontrol.4.7.0.nupkg) = 244324 +SHA256 (nuget/system.threading.tasks.extensions.4.5.4.nupkg) = a304a963cc0796c5179f9c6b7d8022bbce3b2fa7c029eb6196f631f7b462d678 +SIZE (nuget/system.threading.tasks.extensions.4.5.4.nupkg) = 89582 +SHA256 (nuget/system.web.services.description.4.10.3.nupkg) = 8aa93f43a8d9fc36581ebb2e13c5f736a6620b2bee4ccc61dbcef40342e499e3 +SIZE (nuget/system.web.services.description.4.10.3.nupkg) = 285511 +SHA256 (nuget/system.windows.extensions.8.0.0.nupkg) = 687933ecbb665030d14bbb3040cd22e9d0d5532b5108c61e03609f69e540d98d +SIZE (nuget/system.windows.extensions.8.0.0.nupkg) = 201765 +SHA256 (PowerShell-PowerShell-7.4.2-v7.4.2_GH0.tar.gz) = 151259502a3ad688a3125637e8c87d40483af79e0c5afb224bd7929af2ad3567 +SIZE (PowerShell-PowerShell-7.4.2-v7.4.2_GH0.tar.gz) = 10858155 +SHA256 (PowerShell-PowerShell-Native-v7.4.0_GH0.tar.gz) = 5220f99755442720486e20682269fecdabbbabff9e082c1a51250b66465f40cf +SIZE (PowerShell-PowerShell-Native-v7.4.0_GH0.tar.gz) = 288919 diff --git a/powershell/files/patch-global.json b/powershell/files/patch-global.json new file mode 100644 index 0000000..de0a93e --- /dev/null +++ b/powershell/files/patch-global.json @@ -0,0 +1,10 @@ +--- global.json.orig 2024-04-11 18:38:22 UTC ++++ global.json +@@ -1,5 +1,6 @@ + { + "sdk": { +- "version": "8.0.204" ++ "version": "8.0.100", ++ "rollForward": "latestMinor" + } + } diff --git a/powershell/files/patch-nuget.config b/powershell/files/patch-nuget.config new file mode 100644 index 0000000..a5c34a0 --- /dev/null +++ b/powershell/files/patch-nuget.config @@ -0,0 +1,13 @@ +--- nuget.config.orig 2024-01-11 22:25:54 UTC ++++ nuget.config +@@ -2,8 +2,8 @@ + + + +- +- ++ ++ + + + diff --git a/powershell/files/patch-src_ResGen_ResGen.csproj b/powershell/files/patch-src_ResGen_ResGen.csproj new file mode 100644 index 0000000..2de98e7 --- /dev/null +++ b/powershell/files/patch-src_ResGen_ResGen.csproj @@ -0,0 +1,11 @@ +--- src/ResGen/ResGen.csproj.orig 2024-01-11 22:25:54 UTC ++++ src/ResGen/ResGen.csproj +@@ -7,7 +7,7 @@ + Exe + true + true +- win-x86;win-x64;osx-x64;linux-x64 ++ freebsd-x64 + + + diff --git a/powershell/files/patch-src_TypeCatalogGen_TypeCatalogGen.csproj b/powershell/files/patch-src_TypeCatalogGen_TypeCatalogGen.csproj new file mode 100644 index 0000000..f624bb2 --- /dev/null +++ b/powershell/files/patch-src_TypeCatalogGen_TypeCatalogGen.csproj @@ -0,0 +1,11 @@ +--- src/TypeCatalogGen/TypeCatalogGen.csproj.orig 2024-01-11 22:25:54 UTC ++++ src/TypeCatalogGen/TypeCatalogGen.csproj +@@ -8,7 +8,7 @@ + Exe + true + true +- win-x86;win-x64;osx-x64;linux-x64 ++ freebsd-x64 + + + diff --git a/powershell/files/patch-src_libpsl-native_CMakeLists.txt b/powershell/files/patch-src_libpsl-native_CMakeLists.txt new file mode 100644 index 0000000..ebf8edb --- /dev/null +++ b/powershell/files/patch-src_libpsl-native_CMakeLists.txt @@ -0,0 +1,14 @@ +--- src/libpsl-native/CMakeLists.txt.orig 2024-03-30 21:52:02 UTC ++++ src/libpsl-native/CMakeLists.txt +@@ -18,8 +18,8 @@ if (CMAKE_SYSTEM_PROCESSOR MATCHES "arm*") + add_subdirectory(src) + else () + # test in BUILD_DIR +- message(STATUS "Tests enabled") +- enable_testing() ++ #message(STATUS "Tests enabled") ++ #enable_testing() + add_subdirectory(src) +- add_subdirectory(test) ++ #add_subdirectory(test) + endif () diff --git a/powershell/files/patch-src_libpsl-native_src_CMakeLists.txt b/powershell/files/patch-src_libpsl-native_src_CMakeLists.txt new file mode 100644 index 0000000..999711c --- /dev/null +++ b/powershell/files/patch-src_libpsl-native_src_CMakeLists.txt @@ -0,0 +1,11 @@ +--- src/libpsl-native/src/CMakeLists.txt.orig 2024-03-30 21:53:03 UTC ++++ src/libpsl-native/src/CMakeLists.txt +@@ -34,7 +34,7 @@ add_library(psl-native SHARED + check_function_exists(sysconf HAVE_SYSCONF) + + check_include_files( +- "sys/sysctl.h" ++ "stddef.h;sys/sysctl.h" + HAVE_SYS_SYSCTL_H) + + configure_file( diff --git a/powershell/files/patch-src_libpsl-native_src_getuserfrompid.cpp b/powershell/files/patch-src_libpsl-native_src_getuserfrompid.cpp new file mode 100644 index 0000000..7ee29c5 --- /dev/null +++ b/powershell/files/patch-src_libpsl-native_src_getuserfrompid.cpp @@ -0,0 +1,10 @@ +--- src/libpsl-native/src/getuserfrompid.cpp.orig 2024-03-30 21:53:44 UTC ++++ src/libpsl-native/src/getuserfrompid.cpp +@@ -21,6 +21,7 @@ + + #if __FreeBSD__ + #include ++#include + #endif + + char* GetUserFromPid(pid_t pid) diff --git a/powershell/files/patch-src_powershell-unix_powershell-unix.csproj b/powershell/files/patch-src_powershell-unix_powershell-unix.csproj new file mode 100644 index 0000000..0e404af --- /dev/null +++ b/powershell/files/patch-src_powershell-unix_powershell-unix.csproj @@ -0,0 +1,11 @@ +--- src/powershell-unix/powershell-unix.csproj.orig 2024-01-11 22:25:54 UTC ++++ src/powershell-unix/powershell-unix.csproj +@@ -9,7 +9,7 @@ + true + true + true +- linux-x64;osx-x64; ++ freebsd-x64 + + + diff --git a/powershell/files/patch-src_powershell_Program.cs b/powershell/files/patch-src_powershell_Program.cs new file mode 100644 index 0000000..ec1585b --- /dev/null +++ b/powershell/files/patch-src_powershell_Program.cs @@ -0,0 +1,94 @@ +--- src/powershell/Program.cs.orig 2024-03-30 20:39:17 UTC ++++ src/powershell/Program.cs +@@ -56,6 +56,13 @@ namespace Microsoft.PowerShell + private const int MACOS_KERN_ARGMAX = 8; + private const int MACOS_KERN_PROCARGS2 = 49; + private const int MACOS_PROC_PIDPATHINFO_MAXSIZE = 4096; ++ ++ // FreeBSD p/Invoke constants ++ private const int FREEBSD_CTL_KERN = 1; ++ private const int FREEBSD_KERN_PROC = 14; ++ private const int FREEBSD_KERN_PROC_ARGS = 7; ++ private const int FREEBSD_KERN_PROC_PATHNAME = 12; ++ private const int FREEBSD_ENOMEM = 12; + #endif + + /// +@@ -125,7 +132,62 @@ namespace Microsoft.PowerShell + ThrowOnFailure("exec", ExecPwshLogin(args, pwshPath, isMacOS: false)); + return; + } ++ else if (OperatingSystem.IsFreeBSD()) ++ { ++ Span fmib = stackalloc int[4]; ++ int fmibLength = 4; ++ fmib[0] = FREEBSD_CTL_KERN; ++ fmib[1] = FREEBSD_KERN_PROC; ++ fmib[2] = FREEBSD_KERN_PROC_ARGS; ++ fmib[3] = -1; + ++ int sz = 1; ++ unsafe ++ { ++ fixed (int *mibptr = fmib) ++ { ++ ThrowOnFailure(nameof(procNameFirstByte), SysCtl(mibptr, fmibLength, &procNameFirstByte, &sz, IntPtr.Zero, 0), FREEBSD_ENOMEM); ++ } ++ } ++ ++ if (!IsLogin(procNameFirstByte, args)) ++ { ++ return; ++ } ++ ++ fmib[2] = FREEBSD_KERN_PROC_PATHNAME; ++ int pathsz = 0; ++ ++ unsafe ++ { ++ fixed (int *mibptr = fmib) ++ { ++ ThrowOnFailure(nameof(pathsz), SysCtl(mibptr, fmibLength, (void *)null, &pathsz, IntPtr.Zero, 0)); ++ } ++ } ++ ++ IntPtr execPathPtr = Marshal.AllocHGlobal(pathsz); ++ try ++ { ++ unsafe ++ { ++ fixed (int *mibptr = fmib) ++ { ++ ThrowOnFailure(nameof(execPathPtr), SysCtl(mibptr, fmibLength, execPathPtr.ToPointer(), &pathsz, IntPtr.Zero, 0)); ++ } ++ } ++ string? execPath = Marshal.PtrToStringAnsi(execPathPtr); ++ ArgumentNullException.ThrowIfNull(execPath); ++ ThrowOnFailure("exec", ExecPwshLogin(args, execPath, isMacOS: false)); ++ } ++ finally ++ { ++ Marshal.FreeHGlobal(execPathPtr); ++ } ++ ++ return; ++ } ++ + // At this point, we are on macOS + + // Set up the mib array and the query for process maximum args size +@@ -417,11 +479,13 @@ namespace Microsoft.PowerShell + /// + /// The native call that was attempted. + /// The exit code it returned. +- private static void ThrowOnFailure(string call, int code) ++ /// Ignore this error, consider it success. ++ private static void ThrowOnFailure(string call, int code, int ignore = 0) + { + if (code < 0) + { + code = Marshal.GetLastWin32Error(); ++ if (code == ignore) return; + Console.Error.WriteLine($"Call to '{call}' failed with errno {code}"); + throw new StartupException(call, code); + } diff --git a/powershell/nuget.mk b/powershell/nuget.mk new file mode 100644 index 0000000..0660dab --- /dev/null +++ b/powershell/nuget.mk @@ -0,0 +1,34 @@ +NUGET_DISTSUBDIR?= nuget +EXTRACT_ONLY?= ${_DISTFILES:N${_NUPKG_PREFIX}*.nupkg} +NUGET_GROUPS?= NUGET + +NUGET_GROUP_NUGET= NUGET +NUGET_GROUP_PWSH= PWSH + +NUGET_NUGET_BASEURL= https://api.nuget.org/v3-flatcontainer/ +NUGET_NUGET_PKGPATH= %%LCNAME%%/%%LCVERSION%%/%%NUPKG%% + +NUGET_PWSH_BASEURL= https://www.powershellgallery.com/api/v2/package/ +NUGET_PWSH_PKGPATH= %%NAME%%/%%VERSION%% + +_NUPKG_PREFIX= ${NUGET_DISTSUBDIR:C/.+/&\//} +_NUGET_MKDIR= ${NUGET_DISTSUBDIR:C/.+/${MKDIR} ${DISTDIR}\/& \&\&/} +_NUGET_FULL= ${NUGET_GROUPS:@g@${NUGET_GROUP_${g}:@r@\ + ${NUPKG_${g}:@p@${r}:${p}@}@}@} + +_NUGET_FETCH= ${_NUGET_MKDIR}cd ${DISTDIR}/${NUGET_DISTSUBDIR} && \ + ${_NUGET_FULL:@s@${v::=${s:S/:/ /g}}\ + ${n::=${v:[2]:tl}.${v:[3]:tl}.nupkg}\ + ${p::=${NUGET_${v:[1]}_BASEURL}${NUGET_${v:[1]}_PKGPATH}}\ + ${p::=${p:S/%%LCNAME%%/${v:[2]:tl}/g}}\ + ${p::=${p:S/%%LCVERSION%%/${v:[3]:tl}/g}}\ + ${p::=${p:S/%%NAME%%/${v:[2]}/g}}\ + ${p::=${p:S/%%VERSION%%/${v:[3]}/g}}\ + ${p::=${p:S/%%NUPKG%%/${n}/g}}\ + test -f ${n} || ${FETCH_CMD} -o ${n} "${p}";@} + +DISTFILES+= ${NUGET_GROUPS:@g@${NUPKG_${g}:tl:@p@\ + ${_NUPKG_PREFIX}${p:S/:/./}.nupkg@}@:O:u} + +pre-fetch: + @-${_NUGET_FETCH} diff --git a/powershell/pkg-descr b/powershell/pkg-descr new file mode 100644 index 0000000..526e137 --- /dev/null +++ b/powershell/pkg-descr @@ -0,0 +1,3 @@ +PowerShell is a modern command shell that includes the best features of other +popular shells. Unlike most shells that only accept and return text, +PowerShell accepts and returns .NET objects. diff --git a/powershell/pkg-plist b/powershell/pkg-plist new file mode 100644 index 0000000..42ec34c --- /dev/null +++ b/powershell/pkg-plist @@ -0,0 +1,456 @@ +@shell bin/pwsh +lib/powershell/JetBrains.Annotations.dll +lib/powershell/JetBrains.Annotations.ni.r2rmap +lib/powershell/Json.More.dll +lib/powershell/Json.More.ni.r2rmap +lib/powershell/JsonPointer.Net.dll +lib/powershell/JsonPointer.Net.ni.r2rmap +lib/powershell/JsonSchema.Net.dll +lib/powershell/JsonSchema.Net.ni.r2rmap +lib/powershell/LICENSE.txt +lib/powershell/Markdig.Signed.dll +lib/powershell/Markdig.Signed.ni.r2rmap +lib/powershell/Microsoft.ApplicationInsights.dll +lib/powershell/Microsoft.ApplicationInsights.ni.r2rmap +lib/powershell/Microsoft.Bcl.AsyncInterfaces.dll +lib/powershell/Microsoft.CSharp.dll +lib/powershell/Microsoft.CodeAnalysis.CSharp.dll +lib/powershell/Microsoft.CodeAnalysis.CSharp.ni.r2rmap +lib/powershell/Microsoft.CodeAnalysis.dll +lib/powershell/Microsoft.CodeAnalysis.ni.r2rmap +lib/powershell/Microsoft.Extensions.ObjectPool.dll +lib/powershell/Microsoft.Extensions.ObjectPool.ni.r2rmap +lib/powershell/Microsoft.Management.Infrastructure.dll +lib/powershell/Microsoft.Management.Infrastructure.ni.r2rmap +lib/powershell/Microsoft.PowerShell.Commands.Management.dll +lib/powershell/Microsoft.PowerShell.Commands.Management.ni.r2rmap +lib/powershell/Microsoft.PowerShell.Commands.Management.pdb +lib/powershell/Microsoft.PowerShell.Commands.Management.xml +lib/powershell/Microsoft.PowerShell.Commands.Utility.dll +lib/powershell/Microsoft.PowerShell.Commands.Utility.ni.r2rmap +lib/powershell/Microsoft.PowerShell.Commands.Utility.pdb +lib/powershell/Microsoft.PowerShell.Commands.Utility.xml +lib/powershell/Microsoft.PowerShell.ConsoleHost.dll +lib/powershell/Microsoft.PowerShell.ConsoleHost.ni.r2rmap +lib/powershell/Microsoft.PowerShell.ConsoleHost.pdb +lib/powershell/Microsoft.PowerShell.ConsoleHost.xml +lib/powershell/Microsoft.PowerShell.MarkdownRender.dll +lib/powershell/Microsoft.PowerShell.MarkdownRender.ni.r2rmap +lib/powershell/Microsoft.PowerShell.SDK.dll +lib/powershell/Microsoft.PowerShell.SDK.pdb +lib/powershell/Microsoft.PowerShell.SDK.xml +lib/powershell/Microsoft.PowerShell.Security.dll +lib/powershell/Microsoft.PowerShell.Security.ni.r2rmap +lib/powershell/Microsoft.PowerShell.Security.pdb +lib/powershell/Microsoft.PowerShell.Security.xml +lib/powershell/Microsoft.VisualBasic.Core.dll +lib/powershell/Microsoft.VisualBasic.dll +lib/powershell/Microsoft.Win32.Primitives.dll +lib/powershell/Microsoft.Win32.Registry.AccessControl.dll +lib/powershell/Microsoft.Win32.Registry.AccessControl.ni.r2rmap +lib/powershell/Microsoft.Win32.Registry.dll +lib/powershell/Microsoft.Win32.SystemEvents.dll +lib/powershell/Microsoft.Win32.SystemEvents.ni.r2rmap +lib/powershell/Modules/Microsoft.PowerShell.Host/Microsoft.PowerShell.Host.psd1 +lib/powershell/Modules/Microsoft.PowerShell.Management/Microsoft.PowerShell.Management.psd1 +%%MODULES%%lib/powershell/Modules/Microsoft.PowerShell.PSResourceGet/LICENSE +%%MODULES%%lib/powershell/Modules/Microsoft.PowerShell.PSResourceGet/Microsoft.PowerShell.PSResourceGet.dll +%%MODULES%%lib/powershell/Modules/Microsoft.PowerShell.PSResourceGet/Microsoft.PowerShell.PSResourceGet.psd1 +%%MODULES%%lib/powershell/Modules/Microsoft.PowerShell.PSResourceGet/Microsoft.PowerShell.PSResourceGet.psm1 +%%MODULES%%lib/powershell/Modules/Microsoft.PowerShell.PSResourceGet/PSGet.Format.ps1xml +%%MODULES%%lib/powershell/Modules/Microsoft.PowerShell.PSResourceGet/dependencies/Microsoft.Bcl.AsyncInterfaces.dll +%%MODULES%%lib/powershell/Modules/Microsoft.PowerShell.PSResourceGet/dependencies/Newtonsoft.Json.dll +%%MODULES%%lib/powershell/Modules/Microsoft.PowerShell.PSResourceGet/dependencies/NuGet.Commands.dll +%%MODULES%%lib/powershell/Modules/Microsoft.PowerShell.PSResourceGet/dependencies/NuGet.Common.dll +%%MODULES%%lib/powershell/Modules/Microsoft.PowerShell.PSResourceGet/dependencies/NuGet.Configuration.dll +%%MODULES%%lib/powershell/Modules/Microsoft.PowerShell.PSResourceGet/dependencies/NuGet.Credentials.dll +%%MODULES%%lib/powershell/Modules/Microsoft.PowerShell.PSResourceGet/dependencies/NuGet.DependencyResolver.Core.dll +%%MODULES%%lib/powershell/Modules/Microsoft.PowerShell.PSResourceGet/dependencies/NuGet.Frameworks.dll +%%MODULES%%lib/powershell/Modules/Microsoft.PowerShell.PSResourceGet/dependencies/NuGet.LibraryModel.dll +%%MODULES%%lib/powershell/Modules/Microsoft.PowerShell.PSResourceGet/dependencies/NuGet.Packaging.dll +%%MODULES%%lib/powershell/Modules/Microsoft.PowerShell.PSResourceGet/dependencies/NuGet.ProjectModel.dll +%%MODULES%%lib/powershell/Modules/Microsoft.PowerShell.PSResourceGet/dependencies/NuGet.Protocol.dll +%%MODULES%%lib/powershell/Modules/Microsoft.PowerShell.PSResourceGet/dependencies/NuGet.Versioning.dll +%%MODULES%%lib/powershell/Modules/Microsoft.PowerShell.PSResourceGet/dependencies/System.Buffers.dll +%%MODULES%%lib/powershell/Modules/Microsoft.PowerShell.PSResourceGet/dependencies/System.Memory.dll +%%MODULES%%lib/powershell/Modules/Microsoft.PowerShell.PSResourceGet/dependencies/System.Numerics.Vectors.dll +%%MODULES%%lib/powershell/Modules/Microsoft.PowerShell.PSResourceGet/dependencies/System.Runtime.CompilerServices.Unsafe.dll +%%MODULES%%lib/powershell/Modules/Microsoft.PowerShell.PSResourceGet/dependencies/System.Text.Encodings.Web.dll +%%MODULES%%lib/powershell/Modules/Microsoft.PowerShell.PSResourceGet/dependencies/System.Text.Json.dll +%%MODULES%%lib/powershell/Modules/Microsoft.PowerShell.PSResourceGet/dependencies/System.Threading.Tasks.Extensions.dll +%%MODULES%%lib/powershell/Modules/Microsoft.PowerShell.PSResourceGet/dependencies/System.ValueTuple.dll +lib/powershell/Modules/Microsoft.PowerShell.Security/Microsoft.PowerShell.Security.psd1 +lib/powershell/Modules/Microsoft.PowerShell.Utility/Microsoft.PowerShell.Utility.psd1 +%%MODULES%%lib/powershell/Modules/PSReadLine/Microsoft.PowerShell.PSReadLine2.dll +%%MODULES%%lib/powershell/Modules/PSReadLine/Microsoft.PowerShell.Pager.dll +%%MODULES%%lib/powershell/Modules/PSReadLine/PSReadLine.format.ps1xml +%%MODULES%%lib/powershell/Modules/PSReadLine/PSReadLine.psd1 +%%MODULES%%lib/powershell/Modules/PSReadLine/PSReadLine.psm1 +%%MODULES%%lib/powershell/Modules/PSReadLine/SamplePSReadLineProfile.ps1 +%%MODULES%%lib/powershell/Modules/PSReadLine/System.Runtime.InteropServices.RuntimeInformation.dll +%%MODULES%%lib/powershell/Modules/PSReadLine/net462/Microsoft.PowerShell.PSReadLine.Polyfiller.dll +%%MODULES%%lib/powershell/Modules/PSReadLine/net6plus/Microsoft.PowerShell.PSReadLine.Polyfiller.dll +%%MODULES%%lib/powershell/Modules/PowerShellGet/PowerShellGet.psd1 +%%MODULES%%lib/powershell/Modules/PowerShellGet/PowerShellGet.psm1 +lib/powershell/Newtonsoft.Json.dll +lib/powershell/Newtonsoft.Json.ni.r2rmap +lib/powershell/Schemas/PSMaml/ITPro.xsd +lib/powershell/Schemas/PSMaml/Maml.rld +lib/powershell/Schemas/PSMaml/Maml.tbr +lib/powershell/Schemas/PSMaml/Maml.xsd +lib/powershell/Schemas/PSMaml/Maml.xsx +lib/powershell/Schemas/PSMaml/Maml_HTML.xsl +lib/powershell/Schemas/PSMaml/Maml_HTML_Style.xsl +lib/powershell/Schemas/PSMaml/ManagedDeveloper.xsd +lib/powershell/Schemas/PSMaml/ManagedDeveloperStructure.xsd +lib/powershell/Schemas/PSMaml/ProviderHelp.xsd +lib/powershell/Schemas/PSMaml/base.xsd +lib/powershell/Schemas/PSMaml/baseConditional.xsd +lib/powershell/Schemas/PSMaml/block.xsd +lib/powershell/Schemas/PSMaml/blockCommon.xsd +lib/powershell/Schemas/PSMaml/blockSoftware.xsd +lib/powershell/Schemas/PSMaml/command.xsd +lib/powershell/Schemas/PSMaml/conditionSet.xsd +lib/powershell/Schemas/PSMaml/developer.xsd +lib/powershell/Schemas/PSMaml/developerCommand.rld +lib/powershell/Schemas/PSMaml/developerCommand.xsd +lib/powershell/Schemas/PSMaml/developerDscResource.xsd +lib/powershell/Schemas/PSMaml/developerManaged.xsd +lib/powershell/Schemas/PSMaml/developerManagedClass.xsd +lib/powershell/Schemas/PSMaml/developerManagedConstructor.xsd +lib/powershell/Schemas/PSMaml/developerManagedDelegate.xsd +lib/powershell/Schemas/PSMaml/developerManagedEnumeration.xsd +lib/powershell/Schemas/PSMaml/developerManagedEvent.xsd +lib/powershell/Schemas/PSMaml/developerManagedField.xsd +lib/powershell/Schemas/PSMaml/developerManagedInterface.xsd +lib/powershell/Schemas/PSMaml/developerManagedMethod.xsd +lib/powershell/Schemas/PSMaml/developerManagedNamespace.xsd +lib/powershell/Schemas/PSMaml/developerManagedOperator.xsd +lib/powershell/Schemas/PSMaml/developerManagedOverload.xsd +lib/powershell/Schemas/PSMaml/developerManagedProperty.xsd +lib/powershell/Schemas/PSMaml/developerManagedStructure.xsd +lib/powershell/Schemas/PSMaml/developerReference.xsd +lib/powershell/Schemas/PSMaml/developerStructure.xsd +lib/powershell/Schemas/PSMaml/developerXaml.xsd +lib/powershell/Schemas/PSMaml/endUser.xsd +lib/powershell/Schemas/PSMaml/hierarchy.xsd +lib/powershell/Schemas/PSMaml/inline.xsd +lib/powershell/Schemas/PSMaml/inlineCommon.xsd +lib/powershell/Schemas/PSMaml/inlineSoftware.xsd +lib/powershell/Schemas/PSMaml/inlineUi.xsd +lib/powershell/Schemas/PSMaml/shellExecute.xsd +lib/powershell/Schemas/PSMaml/structure.xsd +lib/powershell/Schemas/PSMaml/structureGlossary.xsd +lib/powershell/Schemas/PSMaml/structureList.xsd +lib/powershell/Schemas/PSMaml/structureProcedure.xsd +lib/powershell/Schemas/PSMaml/structureTable.xsd +lib/powershell/Schemas/PSMaml/structureTaskExecution.xsd +lib/powershell/Schemas/PSMaml/task.xsd +lib/powershell/Schemas/PSMaml/troubleshooting.xsd +lib/powershell/System.AppContext.dll +lib/powershell/System.Buffers.dll +lib/powershell/System.CodeDom.dll +lib/powershell/System.CodeDom.ni.r2rmap +lib/powershell/System.Collections.Concurrent.dll +lib/powershell/System.Collections.Immutable.dll +lib/powershell/System.Collections.NonGeneric.dll +lib/powershell/System.Collections.Specialized.dll +lib/powershell/System.Collections.dll +lib/powershell/System.ComponentModel.Annotations.dll +lib/powershell/System.ComponentModel.Composition.Registration.dll +lib/powershell/System.ComponentModel.Composition.Registration.ni.r2rmap +lib/powershell/System.ComponentModel.Composition.dll +lib/powershell/System.ComponentModel.Composition.ni.r2rmap +lib/powershell/System.ComponentModel.DataAnnotations.dll +lib/powershell/System.ComponentModel.EventBasedAsync.dll +lib/powershell/System.ComponentModel.Primitives.dll +lib/powershell/System.ComponentModel.TypeConverter.dll +lib/powershell/System.ComponentModel.dll +lib/powershell/System.Configuration.ConfigurationManager.dll +lib/powershell/System.Configuration.ConfigurationManager.ni.r2rmap +lib/powershell/System.Configuration.dll +lib/powershell/System.Console.dll +lib/powershell/System.Core.dll +lib/powershell/System.Data.Common.dll +lib/powershell/System.Data.DataSetExtensions.dll +lib/powershell/System.Data.Odbc.dll +lib/powershell/System.Data.Odbc.ni.r2rmap +lib/powershell/System.Data.OleDb.dll +lib/powershell/System.Data.OleDb.ni.r2rmap +lib/powershell/System.Data.SqlClient.dll +lib/powershell/System.Data.SqlClient.ni.r2rmap +lib/powershell/System.Data.dll +lib/powershell/System.Diagnostics.Contracts.dll +lib/powershell/System.Diagnostics.Debug.dll +lib/powershell/System.Diagnostics.DiagnosticSource.dll +lib/powershell/System.Diagnostics.EventLog.dll +lib/powershell/System.Diagnostics.EventLog.ni.r2rmap +lib/powershell/System.Diagnostics.FileVersionInfo.dll +lib/powershell/System.Diagnostics.PerformanceCounter.dll +lib/powershell/System.Diagnostics.PerformanceCounter.ni.r2rmap +lib/powershell/System.Diagnostics.Process.dll +lib/powershell/System.Diagnostics.StackTrace.dll +lib/powershell/System.Diagnostics.TextWriterTraceListener.dll +lib/powershell/System.Diagnostics.Tools.dll +lib/powershell/System.Diagnostics.TraceSource.dll +lib/powershell/System.Diagnostics.Tracing.dll +lib/powershell/System.DirectoryServices.AccountManagement.dll +lib/powershell/System.DirectoryServices.AccountManagement.ni.r2rmap +lib/powershell/System.DirectoryServices.Protocols.dll +lib/powershell/System.DirectoryServices.Protocols.ni.r2rmap +lib/powershell/System.DirectoryServices.dll +lib/powershell/System.DirectoryServices.ni.r2rmap +lib/powershell/System.Drawing.Common.dll +lib/powershell/System.Drawing.Common.ni.r2rmap +lib/powershell/System.Drawing.Primitives.dll +lib/powershell/System.Drawing.dll +lib/powershell/System.Dynamic.Runtime.dll +lib/powershell/System.Formats.Asn1.dll +lib/powershell/System.Formats.Tar.dll +lib/powershell/System.Globalization.Calendars.dll +lib/powershell/System.Globalization.Extensions.dll +lib/powershell/System.Globalization.dll +lib/powershell/System.IO.Compression.Brotli.dll +lib/powershell/System.IO.Compression.FileSystem.dll +lib/powershell/System.IO.Compression.ZipFile.dll +lib/powershell/System.IO.Compression.dll +lib/powershell/System.IO.FileSystem.AccessControl.dll +lib/powershell/System.IO.FileSystem.DriveInfo.dll +lib/powershell/System.IO.FileSystem.Primitives.dll +lib/powershell/System.IO.FileSystem.Watcher.dll +lib/powershell/System.IO.FileSystem.dll +lib/powershell/System.IO.IsolatedStorage.dll +lib/powershell/System.IO.MemoryMappedFiles.dll +lib/powershell/System.IO.Packaging.dll +lib/powershell/System.IO.Packaging.ni.r2rmap +lib/powershell/System.IO.Pipes.AccessControl.dll +lib/powershell/System.IO.Pipes.dll +lib/powershell/System.IO.Ports.dll +lib/powershell/System.IO.Ports.ni.r2rmap +lib/powershell/System.IO.UnmanagedMemoryStream.dll +lib/powershell/System.IO.dll +lib/powershell/System.Linq.Expressions.dll +lib/powershell/System.Linq.Parallel.dll +lib/powershell/System.Linq.Queryable.dll +lib/powershell/System.Linq.dll +lib/powershell/System.Management.Automation.dll +lib/powershell/System.Management.Automation.ni.r2rmap +lib/powershell/System.Management.Automation.pdb +lib/powershell/System.Management.Automation.xml +lib/powershell/System.Management.dll +lib/powershell/System.Management.ni.r2rmap +lib/powershell/System.Memory.dll +lib/powershell/System.Net.Http.Json.dll +lib/powershell/System.Net.Http.WinHttpHandler.dll +lib/powershell/System.Net.Http.WinHttpHandler.ni.r2rmap +lib/powershell/System.Net.Http.dll +lib/powershell/System.Net.HttpListener.dll +lib/powershell/System.Net.Mail.dll +lib/powershell/System.Net.NameResolution.dll +lib/powershell/System.Net.NetworkInformation.dll +lib/powershell/System.Net.Ping.dll +lib/powershell/System.Net.Primitives.dll +lib/powershell/System.Net.Quic.dll +lib/powershell/System.Net.Requests.dll +lib/powershell/System.Net.Security.dll +lib/powershell/System.Net.ServicePoint.dll +lib/powershell/System.Net.Sockets.dll +lib/powershell/System.Net.WebClient.dll +lib/powershell/System.Net.WebHeaderCollection.dll +lib/powershell/System.Net.WebProxy.dll +lib/powershell/System.Net.WebSockets.Client.dll +lib/powershell/System.Net.WebSockets.dll +lib/powershell/System.Net.dll +lib/powershell/System.Numerics.Vectors.dll +lib/powershell/System.Numerics.dll +lib/powershell/System.ObjectModel.dll +lib/powershell/System.Private.CoreLib.dll +lib/powershell/System.Private.DataContractSerialization.dll +lib/powershell/System.Private.ServiceModel.dll +lib/powershell/System.Private.ServiceModel.ni.r2rmap +lib/powershell/System.Private.Uri.dll +lib/powershell/System.Private.Xml.Linq.dll +lib/powershell/System.Private.Xml.dll +lib/powershell/System.Reflection.Context.dll +lib/powershell/System.Reflection.Context.ni.r2rmap +lib/powershell/System.Reflection.DispatchProxy.dll +lib/powershell/System.Reflection.Emit.ILGeneration.dll +lib/powershell/System.Reflection.Emit.Lightweight.dll +lib/powershell/System.Reflection.Emit.dll +lib/powershell/System.Reflection.Extensions.dll +lib/powershell/System.Reflection.Metadata.dll +lib/powershell/System.Reflection.Primitives.dll +lib/powershell/System.Reflection.TypeExtensions.dll +lib/powershell/System.Reflection.dll +lib/powershell/System.Resources.Reader.dll +lib/powershell/System.Resources.ResourceManager.dll +lib/powershell/System.Resources.Writer.dll +lib/powershell/System.Runtime.Caching.dll +lib/powershell/System.Runtime.Caching.ni.r2rmap +lib/powershell/System.Runtime.CompilerServices.Unsafe.dll +lib/powershell/System.Runtime.CompilerServices.VisualC.dll +lib/powershell/System.Runtime.Extensions.dll +lib/powershell/System.Runtime.Handles.dll +lib/powershell/System.Runtime.InteropServices.JavaScript.dll +lib/powershell/System.Runtime.InteropServices.RuntimeInformation.dll +lib/powershell/System.Runtime.InteropServices.dll +lib/powershell/System.Runtime.Intrinsics.dll +lib/powershell/System.Runtime.Loader.dll +lib/powershell/System.Runtime.Numerics.dll +lib/powershell/System.Runtime.Serialization.Formatters.dll +lib/powershell/System.Runtime.Serialization.Json.dll +lib/powershell/System.Runtime.Serialization.Primitives.dll +lib/powershell/System.Runtime.Serialization.Xml.dll +lib/powershell/System.Runtime.Serialization.dll +lib/powershell/System.Runtime.dll +lib/powershell/System.Security.AccessControl.dll +lib/powershell/System.Security.Claims.dll +lib/powershell/System.Security.Cryptography.Algorithms.dll +lib/powershell/System.Security.Cryptography.Cng.dll +lib/powershell/System.Security.Cryptography.Csp.dll +lib/powershell/System.Security.Cryptography.Encoding.dll +lib/powershell/System.Security.Cryptography.OpenSsl.dll +lib/powershell/System.Security.Cryptography.Pkcs.dll +lib/powershell/System.Security.Cryptography.Pkcs.ni.r2rmap +lib/powershell/System.Security.Cryptography.Primitives.dll +lib/powershell/System.Security.Cryptography.ProtectedData.dll +lib/powershell/System.Security.Cryptography.ProtectedData.ni.r2rmap +lib/powershell/System.Security.Cryptography.X509Certificates.dll +lib/powershell/System.Security.Cryptography.Xml.dll +lib/powershell/System.Security.Cryptography.Xml.ni.r2rmap +lib/powershell/System.Security.Cryptography.dll +lib/powershell/System.Security.Permissions.dll +lib/powershell/System.Security.Permissions.ni.r2rmap +lib/powershell/System.Security.Principal.Windows.dll +lib/powershell/System.Security.Principal.dll +lib/powershell/System.Security.SecureString.dll +lib/powershell/System.Security.dll +lib/powershell/System.ServiceModel.Duplex.dll +lib/powershell/System.ServiceModel.Http.dll +lib/powershell/System.ServiceModel.NetTcp.dll +lib/powershell/System.ServiceModel.Primitives.dll +lib/powershell/System.ServiceModel.Security.dll +lib/powershell/System.ServiceModel.Syndication.dll +lib/powershell/System.ServiceModel.Syndication.ni.r2rmap +lib/powershell/System.ServiceModel.Web.dll +lib/powershell/System.ServiceModel.dll +lib/powershell/System.ServiceProcess.ServiceController.dll +lib/powershell/System.ServiceProcess.ServiceController.ni.r2rmap +lib/powershell/System.ServiceProcess.dll +lib/powershell/System.Speech.dll +lib/powershell/System.Speech.ni.r2rmap +lib/powershell/System.Text.Encoding.CodePages.dll +lib/powershell/System.Text.Encoding.Extensions.dll +lib/powershell/System.Text.Encoding.dll +lib/powershell/System.Text.Encodings.Web.dll +lib/powershell/System.Text.Json.dll +lib/powershell/System.Text.RegularExpressions.dll +lib/powershell/System.Threading.AccessControl.dll +lib/powershell/System.Threading.AccessControl.ni.r2rmap +lib/powershell/System.Threading.Channels.dll +lib/powershell/System.Threading.Overlapped.dll +lib/powershell/System.Threading.Tasks.Dataflow.dll +lib/powershell/System.Threading.Tasks.Extensions.dll +lib/powershell/System.Threading.Tasks.Parallel.dll +lib/powershell/System.Threading.Tasks.dll +lib/powershell/System.Threading.Thread.dll +lib/powershell/System.Threading.ThreadPool.dll +lib/powershell/System.Threading.Timer.dll +lib/powershell/System.Threading.dll +lib/powershell/System.Transactions.Local.dll +lib/powershell/System.Transactions.dll +lib/powershell/System.ValueTuple.dll +lib/powershell/System.Web.HttpUtility.dll +lib/powershell/System.Web.Services.Description.dll +lib/powershell/System.Web.Services.Description.ni.r2rmap +lib/powershell/System.Web.dll +lib/powershell/System.Windows.Extensions.dll +lib/powershell/System.Windows.Extensions.ni.r2rmap +lib/powershell/System.Windows.dll +lib/powershell/System.Xml.Linq.dll +lib/powershell/System.Xml.ReaderWriter.dll +lib/powershell/System.Xml.Serialization.dll +lib/powershell/System.Xml.XDocument.dll +lib/powershell/System.Xml.XPath.XDocument.dll +lib/powershell/System.Xml.XPath.dll +lib/powershell/System.Xml.XmlDocument.dll +lib/powershell/System.Xml.XmlSerializer.dll +lib/powershell/System.Xml.dll +lib/powershell/System.dll +lib/powershell/ThirdPartyNotices.txt +lib/powershell/WindowsBase.dll +lib/powershell/cs/Microsoft.CodeAnalysis.CSharp.resources.dll +lib/powershell/cs/Microsoft.CodeAnalysis.resources.dll +lib/powershell/cs/System.Private.ServiceModel.resources.dll +lib/powershell/cs/System.Web.Services.Description.resources.dll +lib/powershell/de/Microsoft.CodeAnalysis.CSharp.resources.dll +lib/powershell/de/Microsoft.CodeAnalysis.resources.dll +lib/powershell/de/System.Private.ServiceModel.resources.dll +lib/powershell/de/System.Web.Services.Description.resources.dll +lib/powershell/en-US/default.help.txt +lib/powershell/es/Microsoft.CodeAnalysis.CSharp.resources.dll +lib/powershell/es/Microsoft.CodeAnalysis.resources.dll +lib/powershell/es/System.Private.ServiceModel.resources.dll +lib/powershell/es/System.Web.Services.Description.resources.dll +lib/powershell/fr/Microsoft.CodeAnalysis.CSharp.resources.dll +lib/powershell/fr/Microsoft.CodeAnalysis.resources.dll +lib/powershell/fr/System.Private.ServiceModel.resources.dll +lib/powershell/fr/System.Web.Services.Description.resources.dll +lib/powershell/it/Microsoft.CodeAnalysis.CSharp.resources.dll +lib/powershell/it/Microsoft.CodeAnalysis.resources.dll +lib/powershell/it/System.Private.ServiceModel.resources.dll +lib/powershell/it/System.Web.Services.Description.resources.dll +lib/powershell/ja/Microsoft.CodeAnalysis.CSharp.resources.dll +lib/powershell/ja/Microsoft.CodeAnalysis.resources.dll +lib/powershell/ja/System.Private.ServiceModel.resources.dll +lib/powershell/ja/System.Web.Services.Description.resources.dll +lib/powershell/ko/Microsoft.CodeAnalysis.CSharp.resources.dll +lib/powershell/ko/Microsoft.CodeAnalysis.resources.dll +lib/powershell/ko/System.Private.ServiceModel.resources.dll +lib/powershell/ko/System.Web.Services.Description.resources.dll +lib/powershell/libSystem.Globalization.Native.so +lib/powershell/libSystem.IO.Compression.Native.so +lib/powershell/libSystem.Native.so +lib/powershell/libSystem.Net.Security.Native.so +lib/powershell/libSystem.Security.Cryptography.Native.OpenSsl.so +lib/powershell/libclrgc.so +lib/powershell/libclrjit.so +lib/powershell/libcoreclr.so +lib/powershell/libhostfxr.so +lib/powershell/libhostpolicy.so +lib/powershell/libmscordaccore.so +lib/powershell/libmscordbi.so +lib/powershell/libpsl-native.so +lib/powershell/mscorlib.dll +lib/powershell/netstandard.dll +lib/powershell/pl/Microsoft.CodeAnalysis.CSharp.resources.dll +lib/powershell/pl/Microsoft.CodeAnalysis.resources.dll +lib/powershell/pl/System.Private.ServiceModel.resources.dll +lib/powershell/pl/System.Web.Services.Description.resources.dll +lib/powershell/pt-BR/Microsoft.CodeAnalysis.CSharp.resources.dll +lib/powershell/pt-BR/Microsoft.CodeAnalysis.resources.dll +lib/powershell/pt-BR/System.Private.ServiceModel.resources.dll +lib/powershell/pt-BR/System.Web.Services.Description.resources.dll +lib/powershell/pwsh +lib/powershell/pwsh.deps.json +lib/powershell/pwsh.dll +lib/powershell/pwsh.ni.r2rmap +lib/powershell/pwsh.pdb +lib/powershell/pwsh.runtimeconfig.json +lib/powershell/pwsh.xml +lib/powershell/ru/Microsoft.CodeAnalysis.CSharp.resources.dll +lib/powershell/ru/Microsoft.CodeAnalysis.resources.dll +lib/powershell/ru/System.Private.ServiceModel.resources.dll +lib/powershell/ru/System.Web.Services.Description.resources.dll +lib/powershell/tr/Microsoft.CodeAnalysis.CSharp.resources.dll +lib/powershell/tr/Microsoft.CodeAnalysis.resources.dll +lib/powershell/tr/System.Private.ServiceModel.resources.dll +lib/powershell/tr/System.Web.Services.Description.resources.dll +lib/powershell/zh-Hans/Microsoft.CodeAnalysis.CSharp.resources.dll +lib/powershell/zh-Hans/Microsoft.CodeAnalysis.resources.dll +lib/powershell/zh-Hans/System.Private.ServiceModel.resources.dll +lib/powershell/zh-Hans/System.Web.Services.Description.resources.dll +lib/powershell/zh-Hant/Microsoft.CodeAnalysis.CSharp.resources.dll +lib/powershell/zh-Hant/Microsoft.CodeAnalysis.resources.dll +lib/powershell/zh-Hant/System.Private.ServiceModel.resources.dll +lib/powershell/zh-Hant/System.Web.Services.Description.resources.dll From 5698187b8b054b26f51745d3634c1fb063297faf Mon Sep 17 00:00:00 2001 From: maxfx Date: Sat, 21 Sep 2024 13:27:52 +0200 Subject: [PATCH 2/3] powershell: new port --- powershell/Makefile | 10 +++---- powershell/distinfo | 2 +- ....PowerShell.SDK.csproj.TypeCatalog.targets | 9 ++++++ .../files/patch-PowerShell.Common.props | 28 +++++++++++++++++++ powershell/files/patch-global.json | 5 ++-- ...src_powershell-unix_powershell-unix.csproj | 11 ++++++-- 6 files changed, 54 insertions(+), 11 deletions(-) create mode 100644 powershell/files/Microsoft.PowerShell.SDK.csproj.TypeCatalog.targets create mode 100644 powershell/files/patch-PowerShell.Common.props diff --git a/powershell/Makefile b/powershell/Makefile index ce56945..713431c 100644 --- a/powershell/Makefile +++ b/powershell/Makefile @@ -11,7 +11,7 @@ LICENSE_FILE= ${WRKSRC}/LICENSE.txt ONLY_FOR_ARCHS= aarch64 amd64 -BUILD_DEPENDS= dotnet:lang/dotnet +BUILD_DEPENDS= dotnet:lang<=8.0.0/dotnet LIB_DEPENDS= libinotify.so:devel/libinotify \ libunwind.so:devel/libunwind @@ -141,9 +141,9 @@ PWSH_MOD_EXTRACT_ARGS= -x "\[Content_Types\].xml" \ post-extract: ${RM} -r ${WRKSRC}/src/libpsl-native ${MV} ${WRKSRC_native}/src/libpsl-native ${WRKSRC}/src/libpsl-native -# ${MKDIR} ${WRKSRC}/src/Microsoft.PowerShell.SDK/obj -# ${CP} ${FILESDIR}/Microsoft.PowerShell.SDK.csproj.TypeCatalog.targets \ -# ${WRKSRC}/src/Microsoft.PowerShell.SDK/obj + ${MKDIR} ${WRKSRC}/src/Microsoft.PowerShell.SDK/obj + ${CP} ${FILESDIR}/Microsoft.PowerShell.SDK.csproj.TypeCatalog.targets \ + ${WRKSRC}/src/Microsoft.PowerShell.SDK/obj post-patch: ${REINPLACE_CMD} -e 's|%%DISTDIR%%|${DISTDIR}|' \ @@ -164,7 +164,7 @@ post-build: dotnet restore --packages ${WRKDIR}/packages cd ${WRKSRC}/src && dotnet msbuild \ Microsoft.PowerShell.SDK/Microsoft.PowerShell.SDK.csproj \ - #/t:_GetDependencies /p:DesignTimeBuild=true \ + /t:_GetDependencies \ /p:DesignTimeBuild=true \ /p:_DependencyFile=${WRKSRC}/src/TypeCatalogGen/powershell.inc \ /nologo diff --git a/powershell/distinfo b/powershell/distinfo index b220023..8ff88b3 100644 --- a/powershell/distinfo +++ b/powershell/distinfo @@ -1,4 +1,4 @@ -TIMESTAMP = 1715873909 +TIMESTAMP = 1726917140 SHA256 (nuget/dotnetanalyzers.documentationanalyzers.1.0.0-beta.59.nupkg) = 923a54cd5b0fdb74cc6cc49a01b9027785ef4fd142b9b0802a588ae242a6740e SIZE (nuget/dotnetanalyzers.documentationanalyzers.1.0.0-beta.59.nupkg) = 14410 SHA256 (nuget/dotnetanalyzers.documentationanalyzers.unstable.1.0.0.59.nupkg) = ae589831a3338b8b7efc889cbfc65f64724460ca63e4af97a8da03bff2c02191 diff --git a/powershell/files/Microsoft.PowerShell.SDK.csproj.TypeCatalog.targets b/powershell/files/Microsoft.PowerShell.SDK.csproj.TypeCatalog.targets new file mode 100644 index 0000000..3d7f305 --- /dev/null +++ b/powershell/files/Microsoft.PowerShell.SDK.csproj.TypeCatalog.targets @@ -0,0 +1,9 @@ + + + + <_RefAssemblyPath Include="%(_ReferencesFromRAR.HintPath)%3B" Condition=" '%(_ReferencesFromRAR.NuGetPackageId)' != 'Microsoft.Management.Infrastructure' "/> + + + + \ No newline at end of file diff --git a/powershell/files/patch-PowerShell.Common.props b/powershell/files/patch-PowerShell.Common.props new file mode 100644 index 0000000..8175337 --- /dev/null +++ b/powershell/files/patch-PowerShell.Common.props @@ -0,0 +1,28 @@ +--- PowerShell.Common.props.orig 2024-09-21 11:08:08 UTC ++++ PowerShell.Common.props +@@ -15,12 +15,10 @@ + BeforeTargets="_GenerateRestoreProjectSpec;GenerateNuspec;BeforeBuild" + > + +- +- +- ++ ++ %%DISTVERSION%% ++ %%DISTVERSION%% ++ + + +