Debian Codegraph @

debian/rules

raw symbols SCIP
1 #!/usr/bin/make -f
2
3 export DH_GOLANG_EXCLUDES := integration plugins/sample plugins/main/windows pkg/testutils/echo
4
5 %:
6 dh $@ --buildsystem=golang --builddirectory=_build
7
8 override_dh_auto_test:
9 # tests need netns, which will be run in autopkgtest.
10
11 execute_after_dh_auto_install:
12 ## Exclude main packages from /usr/share/gocode.
13 ## These can not be imported by other packages.
14 find debian/tmp/usr/share/gocode/src/github.com/containernetworking/plugins/ \
15 -type f -exec grep -Eq '^package (main|main_test)$$' '{}' \; -delete -print
16 find debian/tmp/usr/share/gocode/src/github.com/containernetworking/plugins/ \
17 -type d -empty -delete -print
18
19 override_dh_installsystemd:
20 dh_installsystemd --name=cni-dhcp --no-enable --no-start