diff --git a/src/rustls-native-certs/debian/changelog b/src/rustls-native-certs/debian/changelog new file mode 100644 index 0000000..d0228f5 --- /dev/null +++ b/src/rustls-native-certs/debian/changelog @@ -0,0 +1,5 @@ +rust-rustls-native-certs (0.5.0-1) UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO; urgency=medium + + * Package rustls-native-certs 0.5.0 from crates.io using debcargo 2.4.4 + + -- Jan Niehusmann Thu, 13 May 2021 10:50:01 +0200 diff --git a/src/rustls-native-certs/debian/copyright b/src/rustls-native-certs/debian/copyright new file mode 100644 index 0000000..915dc92 --- /dev/null +++ b/src/rustls-native-certs/debian/copyright @@ -0,0 +1,50 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: rustls-native-certs +Upstream-Contact: Joseph Birr-Pixton +Source: https://github.com/ctz/rustls-native-certs + +Files: * +Copyright: 2019-2020 Joseph Birr-Pixton +License: Apache-2.0 or ISC or MIT + +Files: debian/* +Copyright: + 2021 Debian Rust Maintainers + 2021 Jan Niehusmann +License: Apache-2.0 or ISC or MIT + +License: Apache-2.0 + Debian systems provide the Apache 2.0 license in + /usr/share/common-licenses/Apache-2.0 + +License: ISC + Permission to use, copy, modify, and/or distribute this software for any + purpose with or without fee is hereby granted, provided that the above + copyright notice and this permission notice appear in all copies. + . + THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +License: MIT + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + . + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + . + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. diff --git a/src/rustls-native-certs/debian/copyright.debcargo.hint b/src/rustls-native-certs/debian/copyright.debcargo.hint new file mode 100644 index 0000000..c2b3b07 --- /dev/null +++ b/src/rustls-native-certs/debian/copyright.debcargo.hint @@ -0,0 +1,69 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: rustls-native-certs +Upstream-Contact: Joseph Birr-Pixton +Source: https://github.com/ctz/rustls-native-certs + +Files: * +Copyright: FIXME (overlay) UNKNOWN-YEARS Joseph Birr-Pixton +License: Apache-2.0 or ISC or MIT +Comment: + FIXME (overlay): Since upstream copyright years are not available in + Cargo.toml, they were extracted from the upstream Git repository. This may not + be correct information so you should review and fix this before uploading to + the archive. + +Files: ./LICENSE-ISC +Copyright: 2016, Joseph Birr-Pixton +License: UNKNOWN-LICENSE; FIXME (overlay) +Comment: + FIXME (overlay): These notices are extracted from files. Please review them + before uploading to the archive. + +Files: ./LICENSE-MIT +Copyright: 2016 Joseph Birr-Pixton +License: UNKNOWN-LICENSE; FIXME (overlay) +Comment: + FIXME (overlay): These notices are extracted from files. Please review them + before uploading to the archive. + +Files: debian/* +Copyright: + 2021 Debian Rust Maintainers + 2021 Jan Niehusmann +License: Apache-2.0 or ISC or MIT + +License: Apache-2.0 + Debian systems provide the Apache 2.0 license in + /usr/share/common-licenses/Apache-2.0 + +License: ISC + Permission to use, copy, modify, and/or distribute this software for any + purpose with or without fee is hereby granted, provided that the above + copyright notice and this permission notice appear in all copies. + . + THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +License: MIT + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + . + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + . + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE. diff --git a/src/rustls-native-certs/debian/debcargo.toml b/src/rustls-native-certs/debian/debcargo.toml new file mode 100644 index 0000000..2b2465f --- /dev/null +++ b/src/rustls-native-certs/debian/debcargo.toml @@ -0,0 +1,9 @@ +overlay = "." +uploaders = ["Jan Niehusmann "] + +[packages.lib] +test_depends = ["ca-certificates"] +test_is_broken = true + +[packages."lib+rustls"] +test_is_broken = false diff --git a/src/rustls-native-certs/debian/patches/disable-webpki-tests b/src/rustls-native-certs/debian/patches/disable-webpki-tests new file mode 100644 index 0000000..dda6bcd --- /dev/null +++ b/src/rustls-native-certs/debian/patches/disable-webpki-tests @@ -0,0 +1,38 @@ +Description: Disable webpki-roots based tests +Author: Jan Niehusmann + +--- +The information above should follow the Patch Tagging Guidelines, please +checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here +are templates for supplementary fields that you might want to add: + +Last-Update: 2021-05-12 + +--- rust-rustls-native-certs-0.5.0.orig/tests/compare_mozilla.rs ++++ rust-rustls-native-certs-0.5.0/tests/compare_mozilla.rs +@@ -66,6 +66,7 @@ fn to_map<'a>(anchors: &'a [webpki::Trus + r + } + ++/* + #[test] + fn test_does_not_have_many_roots_unknown_by_mozilla() { + let native = rustls_native_certs::load_native_certs() +@@ -95,7 +96,9 @@ fn test_does_not_have_many_roots_unknown + println!("{:?} anchors present in native set but not mozilla ({}%)", missing_in_moz_roots, diff * 100.); + assert!(diff < threshold, "too many unknown roots"); + } ++*/ + ++/* + #[test] + fn test_contains_most_roots_known_by_mozilla() { + let native = rustls_native_certs::load_native_certs() +@@ -127,6 +130,7 @@ fn test_contains_most_roots_known_by_moz + missing_in_native_roots, diff * 100.); + assert!(diff < threshold, "too many missing roots"); + } ++*/ + + #[test] + fn util_list_certs() { diff --git a/src/rustls-native-certs/debian/patches/relax-rustls-dependency b/src/rustls-native-certs/debian/patches/relax-rustls-dependency new file mode 100644 index 0000000..9ff815d --- /dev/null +++ b/src/rustls-native-certs/debian/patches/relax-rustls-dependency @@ -0,0 +1,23 @@ +Description: relax rustls dependency + As debian only has rustls-0.18 packaged, depend on that version + instead of 0.19.0 +Author: Jan Niehusmann + +--- +The information above should follow the Patch Tagging Guidelines, please +checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here +are templates for supplementary fields that you might want to add: + +Last-Update: 2021-05-12 + +--- rust-rustls-native-certs-0.5.0.orig/Cargo.toml ++++ rust-rustls-native-certs-0.5.0/Cargo.toml +@@ -22,7 +22,7 @@ categories = ["network-programming", "cr + license = "Apache-2.0/ISC/MIT" + repository = "https://github.com/ctz/rustls-native-certs" + [dependencies.rustls] +-version = "0.19.0" ++version = "0.18.0" + optional = true + [dev-dependencies.ring] + version = "0.16.5" diff --git a/src/rustls-native-certs/debian/patches/remove-dev-dependencies b/src/rustls-native-certs/debian/patches/remove-dev-dependencies new file mode 100644 index 0000000..8b49a53 --- /dev/null +++ b/src/rustls-native-certs/debian/patches/remove-dev-dependencies @@ -0,0 +1,25 @@ +Description: remove unnecessary dev dependencies + The dependency on webpki-roots is only used to compare system certificates + with the ones from webpki-roots, which doesn't make much sense in an + automated test during packaging. +Author: Jan Niehusmann + +--- +The information above should follow the Patch Tagging Guidelines, please +checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here +are templates for supplementary fields that you might want to add: + +Last-Update: 2021-05-12 + +--- rust-rustls-native-certs-0.5.0.orig/Cargo.toml ++++ rust-rustls-native-certs-0.5.0/Cargo.toml +@@ -33,9 +33,6 @@ version = "0.7.0" + [dev-dependencies.webpki] + version = "0.21" + +-[dev-dependencies.webpki-roots] +-version = "0" +- + [features] + default = ["rustls"] + [target."cfg(all(unix, not(target_os = \"macos\")))".dependencies.openssl-probe] diff --git a/src/rustls-native-certs/debian/patches/remove-security-framework-dependency b/src/rustls-native-certs/debian/patches/remove-security-framework-dependency new file mode 100644 index 0000000..5c84b26 --- /dev/null +++ b/src/rustls-native-certs/debian/patches/remove-security-framework-dependency @@ -0,0 +1,21 @@ +Description: remove dependency on security-framework + The dependency on security-framework is only necessary for macos. +Author: Jan Niehusmann + +--- +The information above should follow the Patch Tagging Guidelines, please +checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here +are templates for supplementary fields that you might want to add: + +Last-Update: 2021-05-12 + +--- rust-rustls-native-certs-0.5.0.orig/Cargo.toml ++++ rust-rustls-native-certs-0.5.0/Cargo.toml +@@ -37,7 +37,5 @@ version = "0.21" + default = ["rustls"] + [target."cfg(all(unix, not(target_os = \"macos\")))".dependencies.openssl-probe] + version = "0.1.2" +-[target."cfg(target_os = \"macos\")".dependencies.security-framework] +-version = "2.0.0" + [target."cfg(windows)".dependencies.schannel] + version = "0.1.15" diff --git a/src/rustls-native-certs/debian/patches/series b/src/rustls-native-certs/debian/patches/series new file mode 100644 index 0000000..96b8146 --- /dev/null +++ b/src/rustls-native-certs/debian/patches/series @@ -0,0 +1,4 @@ +remove-dev-dependencies +relax-rustls-dependency +remove-security-framework-dependency +disable-webpki-tests