Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F150107868
D44561.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
3 KB
Referenced Files
None
Subscribers
None
D44561.diff
View Options
Index: lang/dotnet/Makefile
===================================================================
--- lang/dotnet/Makefile
+++ lang/dotnet/Makefile
@@ -60,6 +60,13 @@
SDKVERSION=${SDKVERSION} SDKVERSIONSUFFIX=${SDKVERSIONSUFFIX} \
DOTNET_NETVERSION=net${DOTNETVERSION}
+OPTIONS_DEFINE= NUPKG
+OPTIONS_DEFAULT= NUPKG
+OPTIONS_SUB= yes
+NUPKG_DESC= Install FreeBSD runtime NuGet packages
+NUPKG_SUB_FILES= post-install-register-nuget
+NUPKG_VARS= PKGPOSTINSTALL+=${WRKDIR}/post-install-register-nuget
+
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 1400000
@@ -109,6 +116,10 @@
${RLN} ${STAGEDIR}${PREFIX}/dotnet/dotnet ${STAGEDIR}${PREFIX}/bin/dotnet
+post-install-NUPKG-on:
+ ${MKDIR} ${STAGEDIR}${PREFIX}/dotnet/packages
+ ${INSTALL_DATA} ${WRKSRC}/artifacts/obj/${DOTNET_ARCH}/Release/blob-feed/packages/*freebsd-${DOTNET_ARCH}*.nupkg ${STAGEDIR}${PREFIX}/dotnet/packages
+
bootstrap-makesum:
@cd ${WRKSRC}/artifacts/${DOTNET_ARCH}/Release && sha256 ${SOURCEBUILT_ARTIFACTS_DISTNAME}${EXTRACT_SUFX}
@${ECHO_CMD} -n "SIZE (${SOURCEBUILT_ARTIFACTS_DISTNAME}${EXTRACT_SUFX}) = "
Index: lang/dotnet/files/post-install-register-nuget.in
===================================================================
--- /dev/null
+++ lang/dotnet/files/post-install-register-nuget.in
@@ -0,0 +1,14 @@
+ETCFILE=/etc/opt/NuGet/Config/NuGetDefaults.Config
+if [ -f ${ETCFILE} ]; then
+ echo ${ETCFILE} exists, skipping.
+else
+ echo Registering local NuGet repo in ${ETCFILE}
+ mkdir -p $(dirname ${ETCFILE}) || exit 1;
+ echo >${ETCFILE} "\
+<?xml version=\"1.0\" encoding=\"utf-8\"?>
+<configuration>
+ <packageSources>
+ <add key=\"FreeBSD runtime\" value=\"%%PREFIX%%/dotnet/packages\" />
+ </packageSources>
+</configuration>"
+fi
Index: lang/dotnet/pkg-plist
===================================================================
--- lang/dotnet/pkg-plist
+++ lang/dotnet/pkg-plist
@@ -4,6 +4,18 @@
dotnet/dotnet
dotnet/host/fxr/%%FULL_DOTNETVERSION%%/libhostfxr.so
dotnet/metadata/workloads/%%SDKVERSION%%/userlocal
+%%NUPKG%%dotnet/packages/Microsoft.AspNetCore.App.Runtime.freebsd-x64.8.0.0.nupkg
+%%NUPKG%%dotnet/packages/Microsoft.NETCore.App.Crossgen2.freebsd-x64.8.0.0.nupkg
+%%NUPKG%%dotnet/packages/Microsoft.NETCore.App.Host.freebsd-x64.8.0.0.nupkg
+%%NUPKG%%dotnet/packages/Microsoft.NETCore.App.Runtime.freebsd-x64.8.0.0.nupkg
+%%NUPKG%%dotnet/packages/runtime.freebsd-x64.Microsoft.DotNet.ILCompiler.8.0.0.nupkg
+%%NUPKG%%dotnet/packages/runtime.freebsd-x64.Microsoft.NETCore.DotNetAppHost.8.0.0.nupkg
+%%NUPKG%%dotnet/packages/runtime.freebsd-x64.Microsoft.NETCore.DotNetHost.8.0.0.nupkg
+%%NUPKG%%dotnet/packages/runtime.freebsd-x64.Microsoft.NETCore.DotNetHostPolicy.8.0.0.nupkg
+%%NUPKG%%dotnet/packages/runtime.freebsd-x64.Microsoft.NETCore.DotNetHostResolver.8.0.0.nupkg
+%%NUPKG%%dotnet/packages/runtime.freebsd-x64.Microsoft.NETCore.ILAsm.8.0.0.nupkg
+%%NUPKG%%dotnet/packages/runtime.freebsd-x64.Microsoft.NETCore.ILDAsm.8.0.0.nupkg
+%%NUPKG%%dotnet/packages/runtime.freebsd-x64.Microsoft.NETCore.TestHost.8.0.0-rtm.23531.3.nupkg
dotnet/packs/Microsoft.AspNetCore.App.Ref/%%FULL_DOTNETVERSION%%/analyzers/dotnet/cs/Microsoft.AspNetCore.App.Analyzers.dll
dotnet/packs/Microsoft.AspNetCore.App.Ref/%%FULL_DOTNETVERSION%%/analyzers/dotnet/cs/Microsoft.AspNetCore.App.CodeFixes.dll
dotnet/packs/Microsoft.AspNetCore.App.Ref/%%FULL_DOTNETVERSION%%/analyzers/dotnet/cs/Microsoft.AspNetCore.Components.Analyzers.dll
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Mar 30, 10:48 AM (14 h, 40 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30570708
Default Alt Text
D44561.diff (3 KB)
Attached To
Mode
D44561: lang/dotnet: Bundle FreeBSD runtime NuGet packages
Attached
Detach File
Event Timeline
Log In to Comment