Compare commits

...

1 Commits

Author SHA1 Message Date
Oystein Kristoffer Tveit 4bccbdbb2d
WIP: create dpkg package 2024-08-19 19:00:47 +02:00
3 changed files with 31 additions and 1 deletions

View File

@ -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.86"
@ -52,3 +63,21 @@ anyhow = "1.0.82"
[dev-dependencies]
regex = "1.10.6"
# TODO: package shell completions
[package.metadata.deb]
maintainer = "Programvareverkstedet <projects@pvv.ntnu.no>"
section = "admin"
assets = [
[
"target/release/mysqladm",
"usr/bin/",
"4755",
],
[
"example-config.toml",
"etc/mysqladm/config.toml",
"644",
],
]
conf-files = ["etc/mysqladm/config.toml"]

View File

@ -19,4 +19,4 @@ port = 3306
username = "root"
password = "secret"
timeout = 2 # seconds
timeout = 2 # seconds

View File

@ -45,6 +45,7 @@
toolchain
mysql-client
cargo-nextest
cargo-deb
];
RUST_SRC_PATH = "${toolchain}/lib/rustlib/src/rust/library";