diff --git a/Cargo.toml b/Cargo.toml index 9242ae5..008c6a9 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -2,6 +2,17 @@ name = "mysqladm-rs" version = "0.1.0" edition = "2021" +# TODO: change licensing? +license = "GPL-2.0-only" +authors = ["oysteikt@pvv.ntnu.no"] +repository = "https://git.pvv.ntnu.no/Projects/mysqladm-rs" +# TODO: write a proper description +description = """\ +asdf +""" +categories = ["command-line-interface", "command-line-utilities"] +keywords = ["mysql", "cli", "administration"] +readme = "README.md" [dependencies] anyhow = "1.0.82" @@ -37,3 +48,21 @@ codegen-units = 1 [build-dependencies] anyhow = "1.0.82" + +# TODO: package shell completions +[package.metadata.deb] +maintainer = "Programvareverkstedet " +section = "admin" +assets = [ + [ + "target/release/mysqladm", + "usr/bin/", + "4755", + ], + [ + "example-config.toml", + "etc/mysqladm/config.toml", + "644", + ], +] +conf-files = ["etc/mysqladm/config.toml"] diff --git a/example-config.toml b/example-config.toml index 2d3200e..157c52c 100644 --- a/example-config.toml +++ b/example-config.toml @@ -1,8 +1,6 @@ -# This should go to `/etc/mysqladm/config.toml` - [mysql] host = "localhost" port = 3306 username = "root" password = "secret" -timeout = 2 # seconds \ No newline at end of file +timeout = 2 # seconds diff --git a/flake.nix b/flake.nix index f48f3c5..542a824 100644 --- a/flake.nix +++ b/flake.nix @@ -32,6 +32,7 @@ toolchain mysql-client cargo-nextest + cargo-deb ]; RUST_SRC_PATH = "${toolchain}/lib/rustlib/src/rust/library";