diff --git a/src/ftp/debian/RFS b/src/ftp/debian/RFS new file mode 100644 index 0000000..e69de29 diff --git a/src/ftp/debian/changelog b/src/ftp/debian/changelog new file mode 100644 index 0000000..c2be9df --- /dev/null +++ b/src/ftp/debian/changelog @@ -0,0 +1,5 @@ +rust-ftp (3.0.1-1) UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO; urgency=medium + + * Package ftp 3.0.1 from crates.io using debcargo 2.4.2 + + -- Alois Micard Tue, 28 Jul 2020 18:31:07 +0000 diff --git a/src/ftp/debian/copyright b/src/ftp/debian/copyright new file mode 100644 index 0000000..284377d --- /dev/null +++ b/src/ftp/debian/copyright @@ -0,0 +1,37 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: ftp +Upstream-Contact: Matt McCoy +Source: https://github.com/mattnenterprise/rust-ftp + +Files: * +Copyright: 2014-2020 Matt McCoy +License: Apache-2.0 or MIT + +Files: debian/* +Copyright: + 2020 Debian Rust Maintainers + 2020 Alois Micard +License: Apache-2.0 or MIT + +License: Apache-2.0 + Debian systems provide the Apache 2.0 license in + /usr/share/common-licenses/Apache-2.0 + +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/ftp/debian/copyright.debcargo.hint b/src/ftp/debian/copyright.debcargo.hint new file mode 100644 index 0000000..3289cad --- /dev/null +++ b/src/ftp/debian/copyright.debcargo.hint @@ -0,0 +1,49 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: ftp +Upstream-Contact: Matt McCoy +Source: https://github.com/mattnenterprise/rust-ftp + +Files: * +Copyright: FIXME (overlay) UNKNOWN-YEARS Matt McCoy +License: Apache-2.0 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-MIT +Copyright: 2015 The rust-ftp Developers +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: + 2020 Debian Rust Maintainers + 2020 Alois Micard +License: Apache-2.0 or MIT + +License: Apache-2.0 + Debian systems provide the Apache 2.0 license in + /usr/share/common-licenses/Apache-2.0 + +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/ftp/debian/debcargo.toml b/src/ftp/debian/debcargo.toml new file mode 100644 index 0000000..c7b48f0 --- /dev/null +++ b/src/ftp/debian/debcargo.toml @@ -0,0 +1,2 @@ +overlay = "." +uploaders = ["Alois Micard "] diff --git a/src/ftp/debian/patches/relax-deps.patch b/src/ftp/debian/patches/relax-deps.patch new file mode 100644 index 0000000..7959a1e --- /dev/null +++ b/src/ftp/debian/patches/relax-deps.patch @@ -0,0 +1,19 @@ +--- a/Cargo.toml ++++ b/Cargo.toml +@@ -29,14 +29,14 @@ + version = "0.2" + + [dependencies.lazy_static] +-version = "0.1" ++version = "1.4.0" + + [dependencies.openssl] + version = "0.9" + optional = true + + [dependencies.regex] +-version = "0.1" ++version = "1.3.7" + + [features] + debug_print = [] diff --git a/src/ftp/debian/patches/series b/src/ftp/debian/patches/series new file mode 100644 index 0000000..10971b0 --- /dev/null +++ b/src/ftp/debian/patches/series @@ -0,0 +1,2 @@ +relax-deps.patch +update-dep-chrono.patch diff --git a/src/ftp/debian/patches/update-dep-chrono.patch b/src/ftp/debian/patches/update-dep-chrono.patch new file mode 100644 index 0000000..a027365 --- /dev/null +++ b/src/ftp/debian/patches/update-dep-chrono.patch @@ -0,0 +1,40 @@ +--- a/Cargo.toml ++++ b/Cargo.toml +@@ -26,7 +26,7 @@ + name = "ftp" + path = "src/lib.rs" + [dependencies.chrono] +-version = "0.2" ++version = "0.4.11" + + [dependencies.lazy_static] + version = "1.4.0" +--- a/src/ftp.rs ++++ b/src/ftp.rs +@@ -9,7 +9,7 @@ + use std::str::FromStr; + use std::net::ToSocketAddrs; + use regex::Regex; +-use chrono::{DateTime, UTC}; ++use chrono::{DateTime, Utc}; + use chrono::offset::TimeZone; + #[cfg(feature = "secure")] + use openssl::ssl::{ SslContext, Ssl }; +@@ -422,7 +422,7 @@ + + /// Retrieves the modification time of the file at `pathname` if it exists. + /// In case the file does not exist `None` is returned. +- pub fn mdtm(&mut self, pathname: &str) -> Result>> { ++ pub fn mdtm(&mut self, pathname: &str) -> Result>> { + try!(self.write_str(format!("MDTM {}\r\n", pathname))); + let Line(_, content) = try!(self.read_response(status::FILE)); + +@@ -438,7 +438,7 @@ + caps[5].parse::().unwrap(), + caps[6].parse::().unwrap() + ); +- Ok(Some(UTC.ymd(year, month, day).and_hms(hour, minute, second))) ++ Ok(Some(Utc.ymd(year, month, day).and_hms(hour, minute, second))) + }, + None => Ok(None) + }