From 22397c68158ba52bd5c4f44301e7da33e200dc27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BB=D0=B5=D0=BA=D1=81=D0=B5=D0=B9=20=D0=91=D0=B0?= =?UTF-8?q?=D0=B4=D1=8F=D0=B5=D0=B2?= Date: Wed, 6 Nov 2024 07:38:55 +0700 Subject: [PATCH] =?UTF-8?q?=D0=92=20deb=20=D0=BF=D0=B0=D0=BA=D0=B5=D1=82?= =?UTF-8?q?=20=D0=B4=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5=D0=BD=20=D1=84?= =?UTF-8?q?=D0=B0=D0=B9=D0=BB=20=D0=BA=D0=BE=D0=BD=D1=84=D0=B8=D0=B3=D1=83?= =?UTF-8?q?=D1=80=D0=B0=D1=86=D0=B8=D0=B8.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- configs/transocks.example.toml | 10 ++++++++++ makefile | 4 +++- 2 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 configs/transocks.example.toml diff --git a/configs/transocks.example.toml b/configs/transocks.example.toml new file mode 100644 index 0000000..d9f08b5 --- /dev/null +++ b/configs/transocks.example.toml @@ -0,0 +1,10 @@ +# listening address of transocks. +listen = "localhost:1081" # default is "localhost:1081" + +#proxy_url = "socks5://10.20.30.40:1080" # for SOCKS5 server +#proxy_url = "http://10.20.30.40:3128" # for HTTP proxy server + +[log] +#filename = "/path/to/file" # default to stderr +level = "info" # critical", error, warning, info, debug +#format = "json" # plain, logfmt, json diff --git a/makefile b/makefile index 10648d7..6972318 100644 --- a/makefile +++ b/makefile @@ -94,8 +94,10 @@ DEB_NAME := $(PROJECT_ID)_$(VERSION_NUMBER)-1_$(PKG_ARCH) pkg-deb: ## Build debian package @rm -rf $(TMPDIR) - @mkdir -p $(TMPDIR)/$(DEB_NAME)/usr/bin @mkdir -p $(TMPDIR)/$(DEB_NAME)/DEBIAN + @mkdir -p $(TMPDIR)/$(DEB_NAME)/etc + @mkdir -p $(TMPDIR)/$(DEB_NAME)/usr/bin + @cp $(CURDIR)/configs/transocks.example.toml $(TMPDIR)/$(DEB_NAME)/etc/transocks.toml @cp -a $(BINDIR)/* $(TMPDIR)/$(DEB_NAME)/usr/bin/ @sed -e "s/VERSION/$(VERSION_NUMBER)/g" \ $(CURDIR)/build/package/debian/changelog.tpl \