Set default config and certificates path with linker flags
This commit is contained in:
parent
13c5968333
commit
4e54041818
|
@ -1,3 +1,9 @@
|
||||||
|
tlstunnel (0.2.0-2) bookworm; urgency=medium
|
||||||
|
|
||||||
|
* Set default config and certificates path with linker flags
|
||||||
|
|
||||||
|
-- jordi fita mas <jordi@tandem.blog> Thu, 15 Jun 2023 13:19:45 +0000
|
||||||
|
|
||||||
tlstunnel (0.2.0-1) bullseye; urgency=medium
|
tlstunnel (0.2.0-1) bullseye; urgency=medium
|
||||||
|
|
||||||
* Add Debian packaging
|
* Add Debian packaging
|
||||||
|
|
|
@ -1,7 +1,13 @@
|
||||||
#!/usr/bin/make -f
|
#!/usr/bin/make -f
|
||||||
|
|
||||||
|
GO_LDFLAGS += -X 'main.configPath=/etc/tlstunnel'
|
||||||
|
GO_LDFLAGS += -X 'main.certDataPath=/var/lib/tlstunnel'
|
||||||
|
|
||||||
%:
|
%:
|
||||||
dh $@ --builddirectory=_build --buildsystem=golang --with=golang
|
dh $@ --builddirectory=_build --buildsystem=golang --with=golang
|
||||||
|
|
||||||
execute_before_dh_auto_build:
|
execute_before_dh_auto_build:
|
||||||
make tlstunnel.1
|
make tlstunnel.1
|
||||||
|
|
||||||
|
override_dh_auto_build:
|
||||||
|
dh_auto_build -- -ldflags "$(GO_LDFLAGS)"
|
||||||
|
|
Loading…
Reference in New Issue