diff --git a/Cargo.toml b/Cargo.toml index 0fca060..247fbe9 100755 --- a/Cargo.toml +++ b/Cargo.toml @@ -49,6 +49,9 @@ widestring = "1.2.0" walkdir = "2.3.2" signal-hook-registry = "1.4.5" +[build-dependencies] +pkg-config = "0.3" + [profile.release] # We assume we're being delivered via e.g. RPM which supports split debuginfo debug = true diff --git a/build.rs b/build.rs new file mode 100644 index 0000000..942af91 --- /dev/null +++ b/build.rs @@ -0,0 +1,9 @@ +fn main() { + // Link against ZSTD library since OpenSSL was compiled with ZSTD support + if pkg_config::Config::new().probe("libzstd").is_ok() { + println!("cargo:rustc-link-lib=zstd"); + } + + // Re-run if build script changes + println!("cargo:rerun-if-changed=build.rs"); +} diff --git a/debian/install b/debian/install index 53b5e8f..1cfaf85 100644 --- a/debian/install +++ b/debian/install @@ -1,17 +1,5 @@ -# Binary files -target/release/bootupd usr/libexec/ - # Systemd service systemd/bootloader-update.service usr/lib/systemd/system/ -# Documentation -README.md usr/share/doc/deb-bootupd/ -deb-bootupd.md usr/share/doc/deb-bootupd/ -VERSION.md usr/share/doc/deb-bootupd/ - # Manual pages debian/man/bootupctl.1 usr/share/man/man1/ - -# Man pages (if available) -# debian/bootupd.1 usr/share/man/man1/ -# debian/bootupctl.1 usr/share/man/man1/