File: rules

package info (click to toggle)
opkssh 0.10.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,440 kB
  • sloc: sh: 2,062; makefile: 11
file content (18 lines) | stat: -rwxr-xr-x 505 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk

export DH_GOLANG_INSTALL_EXTRA := \
	commands/config/default-client-config.yml

%:
	dh $@ --builddirectory=_build --buildsystem=golang

override_dh_auto_build:
	dh_auto_build $(DH_BUILD_OPTS) -- \
		-ldflags "-X main.Version="$(DEB_VERSION_UPSTREAM)

# https://github.com/openpubkey/opkssh/issues/434
override_dh_auto_test:
	dh_auto_test $(DH_BUILD_OPTS) -- -skip=TestDetermineProvider
	-dh_auto_test $(DH_BUILD_OPTS) -- -run=TestDetermineProvider