From 025ba7e8d1871ecba9ae5b10eace3ed03b05cd0a Mon Sep 17 00:00:00 2001 From: Evan Pratten Date: Thu, 3 Aug 2023 20:30:13 -0400 Subject: [PATCH] Fix deb build issues --- .cargo/config.toml | 2 ++ Cargo.toml | 13 +++++++++---- debian/service | 2 +- 3 files changed, 12 insertions(+), 5 deletions(-) create mode 100644 .cargo/config.toml diff --git a/.cargo/config.toml b/.cargo/config.toml new file mode 100644 index 0000000..b23105b --- /dev/null +++ b/.cargo/config.toml @@ -0,0 +1,2 @@ +[registries.crates-io] +protocol = "sparse" \ No newline at end of file diff --git a/Cargo.toml b/Cargo.toml index cbb247d..d14347b 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -90,9 +90,14 @@ assets = [ "755", ], [ - "./protomask.toml", - "/etc/protomask.toml", - "644", + "target/release/protomask-clat", + "/usr/local/bin/protomask-clat", + "755", + ], + [ + "target/release/protomask-6over4", + "/usr/local/bin/protomask-6over4", + "755", ], [ "README.md", @@ -100,7 +105,7 @@ assets = [ "644", ], ] -conf-files = ["/etc/protomask.toml"] +conf-files = [] depends = [] maintainer-scripts = "./debian/" systemd-units = { enable = false } diff --git a/debian/service b/debian/service index 877a10a..2b5db60 100644 --- a/debian/service +++ b/debian/service @@ -3,7 +3,7 @@ Description = Protomask After = network.target [Service] -ExecStart = /usr/local/bin/protomask /etc/protomask.toml +ExecStart = /usr/local/bin/protomask --pool-file /etc/protomask/pool.txt [Install] WantedBy=multi-user.target \ No newline at end of file