cargo-deb support

This commit is contained in:
c0repwn3r 2023-06-25 23:07:47 -04:00
parent 3bdf4bc1e1
commit c06113d439
Signed by: core
GPG Key ID: FDBF740DADDCEECF
2 changed files with 19 additions and 0 deletions

View File

@ -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 <core@e3t.cc>"
copyright = "e3team <admin@e3t.cc>"
license-file = "LICENSE.txt"
maintainer-scripts = "debian/"
systemd-units = { enable = false, unit-name = "tfclient@" }

12
tfclient/debian/service Normal file
View File

@ -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