diff --git a/src/fsevent/debian/changelog b/src/fsevent/debian/changelog new file mode 100644 index 0000000..de2ccf4 --- /dev/null +++ b/src/fsevent/debian/changelog @@ -0,0 +1,5 @@ +rust-fsevent (2.0.1-1) UNRELEASED-FIXME-AUTOGENERATED-DEBCARGO; urgency=medium + + * Package fsevent 2.0.1 from crates.io using debcargo 2.4.2 + + -- Alexander Kjäll Sun, 31 May 2020 13:56:06 +0200 diff --git a/src/fsevent/debian/copyright b/src/fsevent/debian/copyright new file mode 100644 index 0000000..d952d0a --- /dev/null +++ b/src/fsevent/debian/copyright @@ -0,0 +1,38 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: fsevent +Upstream-Contact: Pierre Baillet +Source: https://github.com/octplane/fsevent-rust + +Files: * +Copyright: FIXME (overlay) UNKNOWN-YEARS Pierre Baillet +License: 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: debian/* +Copyright: + 2020 Debian Rust Maintainers + 2020 Alexander Kjäll +License: MIT + +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/fsevent/debian/copyright.debcargo.hint b/src/fsevent/debian/copyright.debcargo.hint new file mode 100644 index 0000000..5da175d --- /dev/null +++ b/src/fsevent/debian/copyright.debcargo.hint @@ -0,0 +1,45 @@ +Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ +Upstream-Name: fsevent +Upstream-Contact: Pierre Baillet +Source: https://github.com/octplane/fsevent-rust + +Files: * +Copyright: FIXME (overlay) UNKNOWN-YEARS Pierre Baillet +License: 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 +Copyright: 2015 Pierre Baillet +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 Alexander Kjäll +License: MIT + +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/fsevent/debian/debcargo.toml b/src/fsevent/debian/debcargo.toml new file mode 100644 index 0000000..c2d20b7 --- /dev/null +++ b/src/fsevent/debian/debcargo.toml @@ -0,0 +1,3 @@ +overlay = "." +uploaders = ["Alexander Kjäll "] +test_is_broken = true \ No newline at end of file diff --git a/src/fsevent/debian/patches/build-fsevent-on-non-macos.patch b/src/fsevent/debian/patches/build-fsevent-on-non-macos.patch new file mode 100644 index 0000000..6252677 --- /dev/null +++ b/src/fsevent/debian/patches/build-fsevent-on-non-macos.patch @@ -0,0 +1,48 @@ +diff --git a/examples/fsevent-async-demo.rs b/examples/fsevent-async-demo.rs +index 9d12bc4..1158ad4 100644 +--- a/examples/fsevent-async-demo.rs ++++ b/examples/fsevent-async-demo.rs +@@ -3,6 +3,10 @@ extern crate fsevent; + use std::sync::mpsc::channel; + use std::thread; + ++#[cfg(not(target_arch = "macOS"))] ++fn main() {} ++ ++#[cfg(target_arch = "macOS")] + fn main() { + let (sender, receiver) = channel(); + +diff --git a/examples/fsevent-demo.rs b/examples/fsevent-demo.rs +index 3900a73..ae54c96 100644 +--- a/examples/fsevent-demo.rs ++++ b/examples/fsevent-demo.rs +@@ -2,6 +2,10 @@ extern crate fsevent; + use std::sync::mpsc::channel; + use std::thread; + ++#[cfg(not(target_arch = "macOS"))] ++fn main() {} ++ ++#[cfg(target_arch = "macOS")] + fn main() { + let (sender, receiver) = channel(); + +diff --git a/src/lib.rs b/src/lib.rs +index 628e751..dd99b9b 100644 +--- a/src/lib.rs ++++ b/src/lib.rs +@@ -1,3 +1,4 @@ ++#![cfg(target_arch = "macOS")] + #![deny(trivial_numeric_casts, unstable_features, unused_import_braces, unused_qualifications)] + #![cfg_attr(feature = "cargo-clippy", allow(unreadable_literal))] + +diff --git a/tests/fsevent.rs b/tests/fsevent.rs +index 42eb537..374508d 100644 +--- a/tests/fsevent.rs ++++ b/tests/fsevent.rs +@@ -1,3 +1,4 @@ ++#![cfg(target_arch = "macOS")] + extern crate fsevent; + extern crate tempfile; + extern crate time; diff --git a/src/fsevent/debian/patches/series b/src/fsevent/debian/patches/series new file mode 100644 index 0000000..9365a8d --- /dev/null +++ b/src/fsevent/debian/patches/series @@ -0,0 +1 @@ +build-fsevent-on-non-macos.patch