Set default config and certificates path with linker flags

This commit is contained in:
jordi fita mas 2023-06-15 15:22:09 +02:00
parent 13c5968333
commit 4e54041818
2 changed files with 12 additions and 0 deletions

6
debian/changelog vendored
View File

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

6
debian/rules vendored
View File

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