diff --git a/Cargo.toml b/Cargo.toml index f3cbecf..a933bbc 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,25 @@ [package] +authors = ["Neshura"] name = "kavita-web-manager-api" version = "0.1.0" edition = "2021" +description = "API Backend For Easier Uploading To Kavita" +license = "GPL-3.0-or-later" + + +[package.metadata.deb] +extended-description = "API Backend For Easier Uploading To Kavita" +maintainer-scripts = "debian/" +revision = "1" +depends = ["libc6", "libssl3", "systemd"] +assets = [ + [ + "target/release/kavita-web-manager-api", + "/usr/local/bin/kavita-web-manager-api", + "755", + ] +] +systemd-units = { enable = false } [dependencies] axum = "0.7" diff --git a/debian/kavita-web-manager-api.service b/debian/kavita-web-manager-api.service new file mode 100644 index 0000000..d1114bb --- /dev/null +++ b/debian/kavita-web-manager-api.service @@ -0,0 +1,13 @@ +[Unit] +Description="Application for automatically updating Cloudflare DNS records" +After=syslog.target +After=network-online.target + +[Service] +Type=simple +ExecStart=/usr/local/bin/kavita-web-manager-api +Restart=always +RestartSec=3 + +[Install] +WantedBy=multi-user.target \ No newline at end of file