From c06113d439c600a9e35f887056d02a144fe0080b Mon Sep 17 00:00:00 2001 From: c0repwn3r Date: Sun, 25 Jun 2023 23:07:47 -0400 Subject: [PATCH] cargo-deb support --- tfclient/Cargo.toml | 7 +++++++ tfclient/debian/service | 12 ++++++++++++ 2 files changed, 19 insertions(+) create mode 100644 tfclient/debian/service diff --git a/tfclient/Cargo.toml b/tfclient/Cargo.toml index aeb67c6..41c66ad 100644 --- a/tfclient/Cargo.toml +++ b/tfclient/Cargo.toml @@ -41,3 +41,10 @@ tar = "0.4.38" hex = "0.4.3" tempfile = "3.4.0" sha2 = "0.10.6" + +[package.metadata.deb] +maintainer = "c0repwn3r " +copyright = "e3team " +license-file = "LICENSE.txt" +maintainer-scripts = "debian/" +systemd-units = { enable = false, unit-name = "tfclient@" } \ No newline at end of file diff --git a/tfclient/debian/service b/tfclient/debian/service new file mode 100644 index 0000000..0a8d933 --- /dev/null +++ b/tfclient/debian/service @@ -0,0 +1,12 @@ +[Unit] +Description=A client for Defined Networking compatible overlay networks (instance %i) +Wants=basic.target network-online.target +After=basic.target network.target network-online.target + +[Service] +SyslogIdentifier=tfclient-%i +ExecStart=/usr/bin/tfclient run --server https://api.defined.net --name %i +Restart=always + +[Install] +WantedBy=multi-user.target \ No newline at end of file