Fix builds.

This commit is contained in:
Quintus Leung
2026-07-26 15:14:50 +01:00
parent 454c2e2c6e
commit 82171e7fba
3 changed files with 2 additions and 35 deletions
Generated
+1 -1
View File
@@ -1579,7 +1579,7 @@ dependencies = [
[[package]]
name = "rust-socksd"
version = "0.3.0"
version = "0.3.2"
dependencies = [
"anyhow",
"argon2",
+1 -1
View File
@@ -2,7 +2,7 @@ Source: rust-socksd
Section: net
Priority: optional
Maintainer: Quintus Leung <quintusl@gmail.com>
Build-Depends: debhelper-compat (= 13), cargo, pkg-config, libssl-dev, libpam0g-dev
Build-Depends: debhelper-compat (= 13), cargo, rustc, pkg-config, libssl-dev, libpam0g-dev
Standards-Version: 4.6.0
Homepage: https://github.com/quintusl/rust-socksd
Vcs-Git: https://github.com/quintusl/rust-socksd.git
-33
View File
@@ -1,46 +1,13 @@
#!/usr/bin/make -f
include /usr/share/dpkg/architecture.mk
ifndef CARGO_BUILD_TARGET
ifeq ($(DEB_HOST_ARCH),amd64)
CARGO_BUILD_TARGET = x86_64-unknown-linux-gnu
else ifeq ($(DEB_HOST_ARCH),arm64)
CARGO_BUILD_TARGET = aarch64-unknown-linux-gnu
else ifeq ($(DEB_HOST_ARCH),armhf)
CARGO_BUILD_TARGET = armv7-unknown-linux-gnueabihf
endif
endif
%:
dh $@
override_dh_auto_configure:
. "$$HOME/.cargo/env" || true
rustup update stable
rustup target add $(CARGO_BUILD_TARGET) || true
override_dh_auto_build:
ifdef USE_CROSS
ifdef CARGO_BUILD_TARGET
cross build --release --target $(CARGO_BUILD_TARGET)
else
cross build --release
endif
else
ifdef CARGO_BUILD_TARGET
cargo build --release --target $(CARGO_BUILD_TARGET) --no-default-features
else
cargo build --release
endif
endif
override_dh_auto_install:
ifdef CARGO_BUILD_TARGET
install -D -m755 target/$(CARGO_BUILD_TARGET)/release/rust-socksd debian/rust-socksd/usr/bin/rust-socksd
else
install -D -m755 target/release/rust-socksd debian/rust-socksd/usr/bin/rust-socksd
endif
install -D -m644 config/rust-socksd.service debian/rust-socksd/lib/systemd/system/rust-socksd.service
install -D -m644 config/rust-socksd.sysusers.conf debian/rust-socksd/usr/lib/sysusers.d/rust-socksd.conf
install -D -m640 config/config.yml.journald.example debian/rust-socksd/etc/rust-socksd/config.yml