Debian: Enable containerd package customization
This provides the original Debian containerd package files: rules, containerd.install. These files are contained within the tarball: containerd-debian-1.4.12_ds1-1.tar.gz . Subsequent changes to these are package customizations. Test Plan: Debian PASS: Build Debian containerd package Partial-Bug: 1964111 Signed-off-by: Jim Gauld <james.gauld@windriver.com> Change-Id: Icf5356c94b64b2c786ee988ad34cdd0a6e25c915
This commit is contained in:
parent
739faa1c3d
commit
fcd8b87c03
@ -0,0 +1,4 @@
|
||||
usr/bin
|
||||
debian/config.toml /etc/containerd/
|
||||
debian/bash-completion/ctr /usr/share/bash-completion/completions/
|
||||
debian/zsh-completion/_ctr /usr/share/zsh/vendor-completions/
|
43
kubernetes/containerd/debian/deb_folder/rules
Executable file
43
kubernetes/containerd/debian/deb_folder/rules
Executable file
@ -0,0 +1,43 @@
|
||||
#!/usr/bin/make -f
|
||||
|
||||
include /usr/share/dpkg/default.mk
|
||||
|
||||
PKG := github.com/containerd/containerd
|
||||
TAGS := seccomp apparmor
|
||||
GO_LDFLAGS += -X $(PKG)/version.Version=$(DEB_VERSION_UPSTREAM)
|
||||
GO_LDFLAGS += -X $(PKG)/version.Revision=$(DEB_VERSION)
|
||||
EXCLUDES += cmd/protoc-gen-gogoctrd cmd/containerd-stress
|
||||
EXCLUDES += runtime/v2/example/cmd
|
||||
CRI_FILE += cmd/containerd/builtins_cri.go vendor/github.com/containerd/cri
|
||||
CRI_FILE += vendor/k8s.io vendor/github.com/docker/docker
|
||||
CRI_FILE += vendor/github.com/containerd/imgcrypt
|
||||
|
||||
export DH_GOLANG_EXCLUDES := $(EXCLUDES)
|
||||
|
||||
%:
|
||||
dh $@ --buildsystem=golang --with=golang --builddirectory=_build
|
||||
|
||||
override_dh_auto_build:
|
||||
dh_auto_build -- -tags '$(TAGS)' -ldflags '$(GO_LDFLAGS)'
|
||||
|
||||
execute_after_dh_auto_build:
|
||||
mkdir -p man
|
||||
make man/containerd-config.8
|
||||
make man/containerd-config.toml.5
|
||||
_build/bin/gen-manpages containerd.8 man
|
||||
_build/bin/gen-manpages ctr.8 man
|
||||
rm -vf _build/bin/gen-manpages
|
||||
|
||||
sed 's|/usr/local/bin|/usr/bin|' containerd.service > debian/containerd.service
|
||||
mkdir -vp debian/bash-completion
|
||||
install -m644 -T /usr/share/gocode/src/github.com/urfave/cli/autocomplete/bash_autocomplete \
|
||||
debian/bash-completion/ctr
|
||||
mkdir -vp debian/zsh-completion
|
||||
sed 's|$$PROG|ctr|g' /usr/share/gocode/src/github.com/urfave/cli/autocomplete/zsh_autocomplete > \
|
||||
debian/zsh-completion/_ctr
|
||||
|
||||
override_dh_auto_test:
|
||||
dh_auto_test -- -tags '$(TAGS)'
|
||||
|
||||
override_dh_auto_install:
|
||||
DH_GOLANG_EXCLUDES="$(EXCLUDES) $(CRI_FILE)" dh_auto_install
|
Loading…
Reference in New Issue
Block a user