Merge pull request #267 from brthor/move_package_tool
Move Debian Package Tools to packaging folder
This commit is contained in:
commit
20f5ba4a5e
30 changed files with 49 additions and 10 deletions
|
@ -1,8 +0,0 @@
|
|||
#!/bin/bash
|
||||
#
|
||||
# Copyright (c) .NET Foundation and contributors. All rights reserved.
|
||||
# Licensed under the MIT license. See LICENSE file in the project root for full license information.
|
||||
#
|
||||
|
||||
# Example of something you shouldn't do, but is good for a testing scenario
|
||||
exec bash /usr/share/packagetooltest/test_called.sh
|
46
packaging/debian/debian_config.json
Normal file
46
packaging/debian/debian_config.json
Normal file
|
@ -0,0 +1,46 @@
|
|||
{
|
||||
"maintainer_name":"Microsoft",
|
||||
"maintainer_email": "dotnetcore@microsoft.com",
|
||||
|
||||
"package_name": "dotnet",
|
||||
|
||||
"short_description": "NOT FINAL debian package for dotnet cli",
|
||||
"long_description": "NOT FINAL This package restores, compiles, and publishes.",
|
||||
"homepage": "https://dotnet.github.io/core",
|
||||
|
||||
"release":{
|
||||
"package_version":"0.201",
|
||||
"package_revision":"1",
|
||||
"urgency" : "low",
|
||||
"changelog_message" : "Bootstrap loop package"
|
||||
},
|
||||
|
||||
"control": {
|
||||
"priority":"standard",
|
||||
"section":"devel",
|
||||
"architecture":"any"
|
||||
},
|
||||
|
||||
"copyright": "2015 Microsoft",
|
||||
"license": {
|
||||
"type": "MIT",
|
||||
"full_text": "Copyright (c) 2015 Microsoft\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE."
|
||||
},
|
||||
|
||||
"debian_dependencies":{
|
||||
"libssl-dev" : {}
|
||||
},
|
||||
|
||||
"symlinks": {
|
||||
"bin/dotnet" : "usr/bin/dotnet",
|
||||
"bin/dotnet-compile" : "usr/bin/dotnet-compile",
|
||||
"bin/dotnet-compile-csc" : "usr/bin/dotnet-compile-csc",
|
||||
"bin/dotnet-publish" : "usr/bin/dotnet-publish",
|
||||
"bin/dotnet-repl" : "usr/bin/dotnet-repl",
|
||||
"bin/dotnet-repl-csi" : "usr/bin/dotnet-repl-csi",
|
||||
"bin/dotnet-restore" : "usr/bin/dotnet-restore",
|
||||
"bin/dotnet-compile-native" : "/usr/bin/dotnet-compile-native",
|
||||
"bin/resgen" : "usr/bin/resgen",
|
||||
"bin/dotnet-init":"usr/bin/dotnet-init"
|
||||
}
|
||||
}
|
0
package_tool/scripts/config_template_generator.py → packaging/debian/package_tool/scripts/config_template_generator.py
Normal file → Executable file
0
package_tool/scripts/config_template_generator.py → packaging/debian/package_tool/scripts/config_template_generator.py
Normal file → Executable file
0
package_tool/scripts/debian_build_lib.sh → packaging/debian/package_tool/scripts/debian_build_lib.sh
Normal file → Executable file
0
package_tool/scripts/debian_build_lib.sh → packaging/debian/package_tool/scripts/debian_build_lib.sh
Normal file → Executable file
0
package_tool/scripts/extract_json_value.py → packaging/debian/package_tool/scripts/extract_json_value.py
Normal file → Executable file
0
package_tool/scripts/extract_json_value.py → packaging/debian/package_tool/scripts/extract_json_value.py
Normal file → Executable file
0
package_tool/scripts/manpage_generator.py → packaging/debian/package_tool/scripts/manpage_generator.py
Normal file → Executable file
0
package_tool/scripts/manpage_generator.py → packaging/debian/package_tool/scripts/manpage_generator.py
Normal file → Executable file
0
package_tool/test/integration_tests/test_package.bats → packaging/debian/package_tool/test/integration_tests/test_package.bats
Normal file → Executable file
0
package_tool/test/integration_tests/test_package.bats → packaging/debian/package_tool/test/integration_tests/test_package.bats
Normal file → Executable file
0
package_tool/test/unit_tests/test_scripts.bats → packaging/debian/package_tool/test/unit_tests/test_scripts.bats
Normal file → Executable file
0
package_tool/test/unit_tests/test_scripts.bats → packaging/debian/package_tool/test/unit_tests/test_scripts.bats
Normal file → Executable file
|
@ -22,6 +22,7 @@ if [ "$UNAME" != "Linux" ]; then
|
|||
fi
|
||||
|
||||
REPO_ROOT=$(readlink -f $DIR/../..)
|
||||
PACKAGING_ROOT=$REPO_ROOT/packaging/debian
|
||||
|
||||
OUTPUT_DIR="$REPO_ROOT/artifacts"
|
||||
PACKAGE_LAYOUT_DIR="$OUTPUT_DIR/deb_intermediate"
|
||||
|
@ -54,7 +55,7 @@ copy_files_to_debian_layout(){
|
|||
cp -a "$REPO_BINARIES_DIR/." "$PACKAGE_LAYOUT_DIR/package_root"
|
||||
|
||||
# Copy config file
|
||||
cp "$REPO_ROOT/debian_config.json" "$PACKAGE_LAYOUT_DIR"
|
||||
cp "$PACKAGING_ROOT/debian_config.json" "$PACKAGE_LAYOUT_DIR"
|
||||
}
|
||||
|
||||
create_debian_package(){
|
||||
|
@ -62,7 +63,7 @@ create_debian_package(){
|
|||
|
||||
mkdir -p $PACKAGE_OUTPUT_DIR
|
||||
|
||||
$REPO_ROOT/package_tool/package_tool $PACKAGE_LAYOUT_DIR $PACKAGE_OUTPUT_DIR $DOTNET_BUILD_VERSION
|
||||
$PACKAGING_ROOT/package_tool/package_tool $PACKAGE_LAYOUT_DIR $PACKAGE_OUTPUT_DIR $DOTNET_BUILD_VERSION
|
||||
}
|
||||
|
||||
test_debian_package(){
|
||||
|
|
Loading…
Reference in a new issue