File: rules

package info (click to toggle)
golang-github-containernetworking-plugins 1.1.1%2Bds1-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 1,672 kB
  • sloc: sh: 132; makefile: 11
file content (20 lines) | stat: -rwxr-xr-x 753 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/make -f

export DH_GOLANG_EXCLUDES := integration plugins/sample plugins/main/windows pkg/testutils/echo

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

override_dh_auto_test:
	# tests need netns, which will be run in autopkgtest.

execute_after_dh_auto_install:
	## Exclude main packages from /usr/share/gocode.
	## These can not be imported by other packages.
	find debian/tmp/usr/share/gocode/src/github.com/containernetworking/plugins/ \
		-type f -exec grep -Eq '^package (main|main_test)$$' '{}' \; -delete -print
	find debian/tmp/usr/share/gocode/src/github.com/containernetworking/plugins/ \
		-type d -empty -delete -print

override_dh_installsystemd:
	dh_installsystemd --name=cni-dhcp --no-enable --no-start