From a4e87d1dd8b7dad321103ce4795f0c0a92fd9f0d Mon Sep 17 00:00:00 2001 From: = Date: Fri, 13 Oct 2017 01:19:41 -0700 Subject: [PATCH] Build runtime store installers - hosting tar.gz archives - rpm installers for generic and red hat - deb installers for debian.8, ubuntu 14.04, ubuntu 16.04, ubuntu 16.10 Create hosting targz archives --- build/RuntimeStoreInstaller.targets | 417 ++++++++++++++++++ build/repo.targets | 1 + build/tasks/AddArchiveReferences.cs | 8 +- build/tasks/GetTimestampFreeVersion.cs | 26 ++ build/tasks/ReplaceInFile.cs | 33 ++ build/tasks/RepoTasks.tasks | 2 + build/tasks/Utilities/VersionUtilities.cs | 10 +- build/tools/docker/debian.8/Dockerfile | 51 +++ build/tools/docker/rhel.7/Dockerfile | 27 ++ build/tools/docker/ubuntu.14.04/Dockerfile | 52 +++ build/tools/docker/ubuntu.16.04/Dockerfile | 48 ++ build/tools/docker/ubuntu.16.10/Dockerfile | 52 +++ .../dotnet-deb-tool-consumer.csproj | 12 + build/tools/packaging/changelog | 2 + .../packaging/hosting_debian_config.json | 35 ++ .../tools/packaging/store_debian_config.json | 34 ++ 16 files changed, 803 insertions(+), 7 deletions(-) create mode 100644 build/RuntimeStoreInstaller.targets create mode 100644 build/tasks/GetTimestampFreeVersion.cs create mode 100644 build/tasks/ReplaceInFile.cs create mode 100644 build/tools/docker/debian.8/Dockerfile create mode 100644 build/tools/docker/rhel.7/Dockerfile create mode 100644 build/tools/docker/ubuntu.14.04/Dockerfile create mode 100644 build/tools/docker/ubuntu.16.04/Dockerfile create mode 100644 build/tools/docker/ubuntu.16.10/Dockerfile create mode 100644 build/tools/dotnet-deb-tool-consumer/dotnet-deb-tool-consumer.csproj create mode 100644 build/tools/packaging/changelog create mode 100644 build/tools/packaging/hosting_debian_config.json create mode 100644 build/tools/packaging/store_debian_config.json diff --git a/build/RuntimeStoreInstaller.targets b/build/RuntimeStoreInstaller.targets new file mode 100644 index 0000000000..625c4cf8e1 --- /dev/null +++ b/build/RuntimeStoreInstaller.targets @@ -0,0 +1,417 @@ + + + <_TemplatesDirectory>$(MSBuildThisFileDirectory)tools\templates\ + <_DockerDir>$(MSBuildThisFileDirectory)tools\docker\ + <_PackagingDir>$(MSBuildThisFileDirectory)tools\packaging\ + <_DebToolDir>$(MSBuildThisFileDirectory)tools\dotnet-deb-tool-consumer\ + <_TimestampRSSource>$(RepositoryRoot).deps\Signed\Store\ + <_TimestampFreeRSSource>$(RepositoryRoot).deps\Signed\Store-TimestampFree\ + <_CoreInstallerSource>$(RepositoryRoot).deps\CoreInstallers\ + <_WorkRoot>$(RepositoryRoot).w\ + <_WorkLayoutDir>$(_WorkRoot).l\ + <_WorkOutputDir>$(_WorkRoot).o\ + <_DockerRootDirectory>/opt/code/ + + aspnetcore-store + dotnet-hosting + $(_PackagingDir)store_debian_config.json + $(_PackagingDir)hosting_debian_config.json + + + + + + + + + + + + + + + + + + + + 2.0.3-servicing-25808-01 + http://dotnetcli.azureedge.net + $(CoreFeedPrefix)/dotnet/Runtime/$(SharedFrameworkVersion)/dotnet-runtime-$(SharedFrameworkVersion)-linux-x64.tar.gz + + + + + @(_TimestampFreeVersion) + + + + <_TimestampRSArchive Include="$(_TimestampRSSource)aspnetcore-store-$(Version)-linux-x64.tar.gz"/> + <_TimestampFreeRSArchive Include="$(_TimestampFreeRSSource)aspnetcore-store-$(TimestampFreeVersion)-linux-x64.tar.gz"/> + + + + + + + + @(_TimestampRSArchive) + @(_TimestampFreeRSArchive) + + + + + + + + + + + + + + + + + + + + + + + <_RuntimeArchive Include="$(_CoreInstallerSource)dotnet-runtime-$(SharedFrameworkVersion)-linux-x64.tar.gz" /> + + + + @(_RuntimeArchive) + $(HostingInstallerName)-$(Version)-linux-x64.tar.gz + $(HostingInstallerName)-$(TimestampFreeVersion)-linux-x64.tar.gz + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + $(MaintainerName) <$(MaintainerEmail)> + + + + + + + + + rhel.7 + .NET Foundation + /opt/rh/rh-dotnet20/root/usr/lib64/dotnet/ + /usr/share/dotnet/ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + $(Version) + + + $(SharedFrameworkVersion) + + + $(TimestampFreeVersion) + + + $(SharedFrameworkVersion) + + + + + @(HostingBundleDependencies->' -d "%(Identity) >= %(Version)"', ' ') + @(TimestampFreeHostingDependencies->' -d "%(Identity) >= %(Version)"', ' ') + @(RHStoreDirectories->' --directories "%(FullPath)"', ' ') + @(GenericStoreDirectories->' --directories "%(FullPath)"', ' ') + + Image=$(Image);RPMVendor=$(RPMVendor) + RPMFileSuffix=rhel.7-x64.rpm;RPMInstallRoot=$(GenericInstallerInstallRoot) + RPMFileSuffix=rhel.rh.7-x64.rpm;RPMInstallRoot=$(RHInstallerInstallRoot) + + MaintainerName=@(_RSMaintainerName);MaintainerEmail=@(_RSMaintainerEmail) + $(CommonRSArguments);RPMInstallerPrefix=$(RSInstallerName);RPMRevision=@(_RSPackageRevision) + $(CommonRSArguments);RPMSummary=@(_RSInstallerSummary);RPMDescription=@(_RSDescription) + $(CommonRSArguments);RPMLicense=@(_RSLicense);RPMHomepage=@(_RSHomepage) + + $(CommonArguments);MaintainerName=@(_HostingMaintainerName);MaintainerEmail=@(_HostingMaintainerEmail) + $(CommonHostingArguments);RPMInstallerPrefix=$(HostingInstallerName);RPMRevision=@(_HostingRevision) + $(CommonHostingArguments);RPMSummary=@(_HostingSummary);RPMDescription=@(_HostingDescription) + $(CommonHostingArguments);RPMLicense=@(_HostingLicense);RPMHomepage=@(_HostingHomepage) + + $(CommonArguments);$(CommonGenericArguments);$(CommonRSArguments) + $(TimestampRSArguments);RSArchive=$(TimestampRSArchive);RPMVersion=$(Version);RPMArguments=$(GenericRSArguments) + + $(CommonArguments);$(CommonGenericArguments);$(CommonRSArguments) + $(TimestampFreeRSArguments);RSArchive=$(TimestampFreeRSArchive);RPMVersion=$(TimestampFreeVersion);RPMArguments=$(GenericRSArguments) + + $(CommonArguments);$(CommonGenericArguments);$(CommonHostingArguments) + $(TimestampHostingArguments);RPMVersion=$(Version);RPMArguments=$(HostingArguments) + + $(CommonArguments);$(CommonGenericArguments);$(CommonHostingArguments) + $(TimestampFreeHostingArguments);RPMVersion=$(TimestampFreeVersion);RPMArguments=$(TimestampFreeHostingArguments) + + $(CommonArguments);$(CommonRHArguments);$(CommonRSArguments) + $(RHTimestampRSArguments);RSArchive=$(TimestampRSArchive);RPMVersion=$(Version);RPMArguments=$(RHRSArguments) + + $(CommonArguments);$(CommonRHArguments);$(CommonRSArguments) + $(RHTimestampFreeRSArguments);RSArchive=$(TimestampFreeRSArchive);RPMVersion=$(TimestampFreeVersion);RPMArguments=$(RHRSArguments) + + $(CommonArguments);$(CommonRHArguments);$(CommonHostingArguments) + $(RHTimestampHostingArguments);RPMVersion=$(Version);RPMArguments=$(HostingArguments) + + $(CommonArguments);$(CommonRHArguments);$(CommonHostingArguments) + $(RHTimestampFreeHostingArguments);RPMVersion=$(TimestampFreeVersion);RPMArguments=$(TimestampFreeHostingArguments) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Image=$(Image);DebConfig=$(RSDebConfigFile);DebPrefix=$(RSInstallerName) + Image=$(Image);DebConfig=$(HostingDebConfigFile);DotnetVersion=$(SharedFrameworkVersion);DebPrefix=$(HostingInstallerName) + + + + + + + + + + + + + + + + + Version=$(Version);TimestampFreeVersion=$(TimestampFreeVersion) + + + + + + + + + + + + + + + + diff --git a/build/repo.targets b/build/repo.targets index 4465cf7065..c4042084bc 100644 --- a/build/repo.targets +++ b/build/repo.targets @@ -1,6 +1,7 @@ + diff --git a/build/tasks/AddArchiveReferences.cs b/build/tasks/AddArchiveReferences.cs index 8bc770b694..5da49ee059 100644 --- a/build/tasks/AddArchiveReferences.cs +++ b/build/tasks/AddArchiveReferences.cs @@ -63,9 +63,7 @@ namespace RepoTasks if (RemoveTimestamp) { - var version = new NuGetVersion(packageVersion); - var updatedVersion = new NuGetVersion(version.Version, VersionUtilities.GetNoTimestampReleaseLabel(version.Release)); - packageVersion = updatedVersion.ToNormalizedString(); + packageVersion = VersionUtilities.GetTimestampFreeVersion(packageVersion); } Log.LogMessage(MessageImportance.High, $" - Package: {packageName} Version: {packageVersion}"); @@ -99,9 +97,7 @@ namespace RepoTasks if (RemoveTimestamp) { - var version = new NuGetVersion(packageVersion); - var updatedVersion = new NuGetVersion(version.Version, VersionUtilities.GetNoTimestampReleaseLabel(version.Release)); - packageVersion = updatedVersion.ToNormalizedString(); + packageVersion = VersionUtilities.GetTimestampFreeVersion(packageVersion); } Log.LogMessage(MessageImportance.High, $" - Tool: {packageName} Version: {packageVersion}"); diff --git a/build/tasks/GetTimestampFreeVersion.cs b/build/tasks/GetTimestampFreeVersion.cs new file mode 100644 index 0000000000..f1df5bc439 --- /dev/null +++ b/build/tasks/GetTimestampFreeVersion.cs @@ -0,0 +1,26 @@ +// Copyright (c) .NET Foundation. All rights reserved. +// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. + +using System.Linq; +using Microsoft.Build.Framework; +using Microsoft.Build.Utilities; +using RepoTasks.Utilities; + +namespace RepoTasks +{ + public class GetTimestampFreeVersion : Task + { + [Required] + public string TimestampVersion { get; set; } + + [Output] + public string TimestampFreeVersion { get; set; } + + public override bool Execute() + { + TimestampFreeVersion = VersionUtilities.GetTimestampFreeVersion(TimestampVersion); + + return true; + } + } +} diff --git a/build/tasks/ReplaceInFile.cs b/build/tasks/ReplaceInFile.cs new file mode 100644 index 0000000000..6833277787 --- /dev/null +++ b/build/tasks/ReplaceInFile.cs @@ -0,0 +1,33 @@ +// Copyright (c) .NET Foundation. All rights reserved. +// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. + +using System.IO; +using System.Linq; +using Microsoft.Build.Framework; +using Microsoft.Build.Utilities; + +namespace RepoTasks +{ + public class ReplaceInFile : Task + { + [Required] + public string Filename { get; set; } + + [Required] + public ITaskItem[] Items { get; set; } + + public override bool Execute() + { + var fileText = File.ReadAllText(Filename); + + foreach (var item in Items) + { + fileText = fileText.Replace(item.ItemSpec, item.GetMetadata("Replacement")); + } + + File.WriteAllText(Filename, fileText); + + return true; + } + } +} diff --git a/build/tasks/RepoTasks.tasks b/build/tasks/RepoTasks.tasks index b390901779..e03bdc266a 100644 --- a/build/tasks/RepoTasks.tasks +++ b/build/tasks/RepoTasks.tasks @@ -17,4 +17,6 @@ + + diff --git a/build/tasks/Utilities/VersionUtilities.cs b/build/tasks/Utilities/VersionUtilities.cs index 9bcd94956c..042ecae378 100644 --- a/build/tasks/Utilities/VersionUtilities.cs +++ b/build/tasks/Utilities/VersionUtilities.cs @@ -2,12 +2,20 @@ // Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. using System; +using NuGet.Versioning; namespace RepoTasks.Utilities { public class VersionUtilities { - public static string GetNoTimestampReleaseLabel(string releaseLabel) + public static string GetTimestampFreeVersion(string packageVersion) + { + var version = new NuGetVersion(packageVersion); + var updatedVersion = new NuGetVersion(version.Version, GetTimestampFreeReleaseLabel(version.Release)); + return updatedVersion.ToNormalizedString(); + } + + public static string GetTimestampFreeReleaseLabel(string releaseLabel) { if (releaseLabel.StartsWith("rtm-", StringComparison.OrdinalIgnoreCase)) { diff --git a/build/tools/docker/debian.8/Dockerfile b/build/tools/docker/debian.8/Dockerfile new file mode 100644 index 0000000000..0c032b9d7f --- /dev/null +++ b/build/tools/docker/debian.8/Dockerfile @@ -0,0 +1,51 @@ +# +# Copyright (c) .NET Foundation. All rights reserved. +# Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. +# + +# Dockerfile that creates a container suitable to build dotnet-cli +FROM debian:jessie + +# Misc Dependencies for build +RUN apt-get update && \ + apt-get -qqy install \ + curl \ + unzip \ + gettext \ + sudo \ + libunwind8 \ + libkrb5-3 \ + libicu52 \ + liblttng-ust0 \ + libssl1.0.0 \ + zlib1g \ + libuuid1 \ + debhelper \ + build-essential \ + devscripts \ + git \ + cmake \ + clang-3.5 \ + wget && \ + apt-get clean && \ + rm -rf /var/lib/apt/lists/* + +# Use clang as c++ compiler +RUN update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++-3.5 100 +RUN update-alternatives --set c++ /usr/bin/clang++-3.5 + +# Setup User to match Host User, and give superuser permissions +ARG USER_ID=0 +RUN useradd -m code_executor -u ${USER_ID} -g sudo +RUN echo 'code_executor ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers + +# With the User Change, we need to change permissions on these directories +RUN chmod -R a+rwx /usr/local +RUN chmod -R a+rwx /home +RUN chmod -R 755 /usr/lib/sudo + +# Set user to the one we just created +USER ${USER_ID} + +# Set working directory +WORKDIR /opt/code diff --git a/build/tools/docker/rhel.7/Dockerfile b/build/tools/docker/rhel.7/Dockerfile new file mode 100644 index 0000000000..73247d2809 --- /dev/null +++ b/build/tools/docker/rhel.7/Dockerfile @@ -0,0 +1,27 @@ +# +# Copyright (c) .NET Foundation. All rights reserved. +# Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. +# + +# Dockerfile that creates a container suitable to build dotnet-cli +FROM microsoft/dotnet-buildtools-prereqs:rhel-7-rpmpkg-c982313-20174116044113 + +# Install from sudo main package TODO This package needs to be mirrored +RUN yum install -y https://www.sudo.ws/sudo/dist/packages/RHEL/7/sudo-1.8.20-3.el7.x86_64.rpm \ + && yum clean all + +# Setup User to match Host User, and give superuser permissions +ARG USER_ID=0 +RUN useradd -m code_executor -u ${USER_ID} -g root +RUN echo 'code_executor ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers + +# With the User Change, we need to change permssions on these directories +RUN chmod -R a+rwx /usr/local +RUN chmod -R a+rwx /home +RUN chown root:root /usr/bin/sudo && chmod 4755 /usr/bin/sudo + +# Set user to the one we just created +USER ${USER_ID} + +# Set working directory +WORKDIR /opt/code diff --git a/build/tools/docker/ubuntu.14.04/Dockerfile b/build/tools/docker/ubuntu.14.04/Dockerfile new file mode 100644 index 0000000000..f039506971 --- /dev/null +++ b/build/tools/docker/ubuntu.14.04/Dockerfile @@ -0,0 +1,52 @@ +# +# Copyright (c) .NET Foundation. All rights reserved. +# Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. +# + +# Dockerfile that creates a container suitable to build dotnet-cli +FROM ubuntu:14.04 + +# Misc Dependencies for build +RUN apt-get update && \ + apt-get -qqy install \ + curl \ + unzip \ + gettext \ + sudo \ + libunwind8 \ + libkrb5-3 \ + libicu52 \ + liblttng-ust0 \ + libssl1.0.0 \ + zlib1g \ + libuuid1 \ + debhelper \ + build-essential \ + devscripts \ + git \ + cmake \ + clang-3.5 \ + lldb-3.6 \ + wget && \ + apt-get clean && \ + rm -rf /var/lib/apt/lists/* + +# Use clang as c++ compiler +RUN update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++-3.5 100 +RUN update-alternatives --set c++ /usr/bin/clang++-3.5 + +# Setup User to match Host User, and give superuser permissions +ARG USER_ID=0 +RUN useradd -m code_executor -u ${USER_ID} -g sudo +RUN echo 'code_executor ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers + +# With the User Change, we need to change permissions on these directories +RUN chmod -R a+rwx /usr/local +RUN chmod -R a+rwx /home +RUN chmod -R 755 /usr/lib/sudo + +# Set user to the one we just created +USER ${USER_ID} + +# Set working directory +WORKDIR /opt/code diff --git a/build/tools/docker/ubuntu.16.04/Dockerfile b/build/tools/docker/ubuntu.16.04/Dockerfile new file mode 100644 index 0000000000..79e76f0703 --- /dev/null +++ b/build/tools/docker/ubuntu.16.04/Dockerfile @@ -0,0 +1,48 @@ +# +# Copyright (c) .NET Foundation. All rights reserved. +# Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. +# + +FROM ubuntu:16.04 + +# Install the base toolchain we need to build anything (clang, cmake, make and the like) +# this does not include libraries that we need to compile different projects, we'd like +# them in a different layer. +RUN apt-get update && \ + apt-get install -y cmake \ + make \ + llvm-3.5 \ + clang-3.5 \ + git \ + curl \ + tar \ + sudo \ + debhelper \ + build-essential \ + devscripts \ + libunwind8 \ + libkrb5-3 \ + libicu55 \ + liblttng-ust0 \ + libssl1.0.0 \ + zlib1g \ + libuuid1 \ + liblldb-3.6 \ + wget && \ + apt-get clean + +# Setup User to match Host User, and give superuser permissions +ARG USER_ID=0 +RUN useradd -m code_executor -u ${USER_ID} -g sudo +RUN echo 'code_executor ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers + +# With the User Change, we need to change permissions on these directories +RUN chmod -R a+rwx /usr/local +RUN chmod -R a+rwx /home +RUN chmod -R 755 /usr/lib/sudo + +# Set user to the one we just created +USER ${USER_ID} + +# Set working directory +WORKDIR /opt/code \ No newline at end of file diff --git a/build/tools/docker/ubuntu.16.10/Dockerfile b/build/tools/docker/ubuntu.16.10/Dockerfile new file mode 100644 index 0000000000..c57bd4c3ff --- /dev/null +++ b/build/tools/docker/ubuntu.16.10/Dockerfile @@ -0,0 +1,52 @@ +# +# Copyright (c) .NET Foundation. All rights reserved. +# Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. +# + +# Dockerfile that creates a container suitable to build dotnet-cli +FROM ubuntu:16.10 + +# Misc Dependencies for build +RUN apt-get update && \ + apt-get -qqy install \ + curl \ + unzip \ + gettext \ + sudo \ + libunwind8 \ + libkrb5-3 \ + libicu57 \ + liblttng-ust0 \ + libssl1.0.0 \ + zlib1g \ + libuuid1 \ + liblldb-3.5 \ + debhelper \ + build-essential \ + devscripts \ + git \ + cmake \ + clang-3.5 \ + wget && \ + apt-get clean && \ + rm -rf /var/lib/apt/lists/* + +# Use clang as c++ compiler +RUN update-alternatives --install /usr/bin/c++ c++ /usr/bin/clang++-3.5 100 +RUN update-alternatives --set c++ /usr/bin/clang++-3.5 + +# Setup User to match Host User, and give superuser permissions +ARG USER_ID=0 +RUN useradd -m code_executor -u ${USER_ID} -g sudo +RUN echo 'code_executor ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers + +# With the User Change, we need to change permissions on these directories +RUN chmod -R a+rwx /usr/local +RUN chmod -R a+rwx /home +RUN chmod -R 755 /usr/lib/sudo + +# Set user to the one we just created +USER ${USER_ID} + +# Set working directory +WORKDIR /opt/code \ No newline at end of file diff --git a/build/tools/dotnet-deb-tool-consumer/dotnet-deb-tool-consumer.csproj b/build/tools/dotnet-deb-tool-consumer/dotnet-deb-tool-consumer.csproj new file mode 100644 index 0000000000..659448ee0e --- /dev/null +++ b/build/tools/dotnet-deb-tool-consumer/dotnet-deb-tool-consumer.csproj @@ -0,0 +1,12 @@ + + + + netcoreapp1.0 + $(RestoreSources);https://dotnet.myget.org/F/cli-deps/api/v3/index.json + + + + + + + diff --git a/build/tools/packaging/changelog b/build/tools/packaging/changelog new file mode 100644 index 0000000000..f28d88ed10 --- /dev/null +++ b/build/tools/packaging/changelog @@ -0,0 +1,2 @@ +* DATE MAINTAINER_NAME - PACKAGE_VERSION-PACKAGE_REVISION +- \ No newline at end of file diff --git a/build/tools/packaging/hosting_debian_config.json b/build/tools/packaging/hosting_debian_config.json new file mode 100644 index 0000000000..cfdd83e74a --- /dev/null +++ b/build/tools/packaging/hosting_debian_config.json @@ -0,0 +1,35 @@ +{ + "maintainer_name": "Microsoft", + "maintainer_email": "nugetaspnet@microsoft.com", + + "package_name": "dotnet-hosting", + "install_root": "/usr/share/dotnet", + + "short_description": "Microsoft .NET Core DEB_VERSION Linux Server Hosting", + "long_description": "Microsoft .NET Core DEB_VERSION Linux Server Hosting enables hosting of ASP.NET Core applications and contains the ASP.NET Core Runtime Package Store and .NET Core Runtime. It is open source, cross-platform and is supported by Microsoft. We hope you enjoy using it! If you do, please consider joining the active community of developers that are contributing to the project on GitHub (https://github.com/aspnet/home). We happily accept issues and PRs.", + "homepage": "https://www.asp.net/", + + "release":{ + "package_version":"0.0.0.0", + "package_revision":"1", + "urgency" : "low", + "changelog_message" : "" + }, + + "control": { + "priority":"standard", + "section":"devel", + "architecture":"any" + }, + + "copyright": "Microsoft", + "license": { + "type": "Apache-2.0", + "full_text": "Copyright (c) .NET Foundation. All rights reserved.\n\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\nthese files except in compliance with the License. You may obtain a copy of the\nLicense at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed\nunder the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR\nCONDITIONS OF ANY KIND, either express or implied. See the License for the\nspecific language governing permissions and limitations under the License." + }, + + "debian_dependencies": { + "dotnet-runtime-DOTNET_VERSION": {}, + "aspnetcore-store-DEB_VERSION": {} + } +} \ No newline at end of file diff --git a/build/tools/packaging/store_debian_config.json b/build/tools/packaging/store_debian_config.json new file mode 100644 index 0000000000..70dffe42a9 --- /dev/null +++ b/build/tools/packaging/store_debian_config.json @@ -0,0 +1,34 @@ +{ + "maintainer_name": "Microsoft", + "maintainer_email": "nugetaspnet@microsoft.com", + + "package_name": "aspnetcore-store", + "install_root": "/usr/share/dotnet", + + "short_description": "Microsoft ASP.NET Core DEB_VERSION Runtime Package Store", + "long_description": "Runtime package store for Microsoft ASP.NET Core. It is open source, cross-platform and is supported by Microsoft. We hope you enjoy using it! If you do, please consider joining the active community of developers that are contributing to the project on GitHub (https://github.com/aspnet/home). We happily accept issues and PRs.", + "homepage": "https://www.asp.net/", + + "release":{ + "package_version":"0.0.0.0", + "package_revision":"1", + "urgency" : "low", + "changelog_message" : "" + }, + + "control": { + "priority":"standard", + "section":"devel", + "architecture":"any" + }, + + "copyright": "Microsoft", + "license": { + "type": "Apache-2.0", + "full_text": "Copyright (c) .NET Foundation. All rights reserved.\n\nLicensed under the Apache License, Version 2.0 (the \"License\"); you may not use\nthese files except in compliance with the License. You may obtain a copy of the\nLicense at\n\nhttp://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed\nunder the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR\nCONDITIONS OF ANY KIND, either express or implied. See the License for the\nspecific language governing permissions and limitations under the License." + }, + + "debian_dependencies": { + "aspnetcore-store-2.0.0": {} + } +} \ No newline at end of file