Removes the systemd drop-in unit file for socket activation and instead prefers socket activation by default for both RHEL based and DEBIAN based distributions. Socket activation for RHEL based distributions was tested on CentOS 7 and Fedora 28. Signed-off-by: Eli Uriegas <eli.uriegas@docker.com> (cherry picked from commit 91c85cd38197b9d92d5b3e8a1b577d3178d73fcc) Signed-off-by: Eli Uriegas <eli.uriegas@docker.com> Upstream-commit: 6a7e302c260a2ff7e4d8b7a6d01249a09c140618 Component: packaging
40 lines
1.8 KiB
Makefile
40 lines
1.8 KiB
Makefile
#!/usr/bin/make -f
|
|
|
|
VERSION ?= $(shell cat engine/VERSION)
|
|
|
|
override_dh_gencontrol:
|
|
# if we're on Ubuntu, we need to Recommends: apparmor
|
|
echo 'apparmor:Recommends=$(shell dpkg-vendor --is Ubuntu && echo apparmor)' >> debian/docker-ce.substvars
|
|
dh_gencontrol
|
|
|
|
override_dh_auto_build:
|
|
cd /go/src/github.com/docker/cli && \
|
|
LDFLAGS='' DISABLE_WARN_OUTSIDE_CONTAINER=1 make VERSION=$(VERSION) GITCOMMIT=$(DOCKER_GITCOMMIT) dynbinary manpages
|
|
|
|
override_dh_strip:
|
|
# Go has lots of problems with stripping, so just don't
|
|
|
|
override_dh_auto_install:
|
|
# docker-ce-cli install
|
|
install -D -m 0644 /go/src/github.com/docker/cli/contrib/completion/fish/docker.fish debian/docker-ce-cli/usr/share/fish/vendor_completions.d/docker.fish
|
|
install -D -m 0644 /go/src/github.com/docker/cli/contrib/completion/zsh/_docker debian/docker-ce-cli/usr/share/zsh/vendor-completions/_docker
|
|
install -D -m 0755 /go/src/github.com/docker/cli/build/docker debian/docker-ce-cli/usr/bin/docker
|
|
# docker-ce install
|
|
install -D -m 0644 /sources/docker.service debian/docker-ce/lib/systemd/system/docker.service
|
|
install -D -m 0644 /sources/docker.socket debian/docker-ce/lib/systemd/system/docker.socket
|
|
install -D -m 0755 /source/dockerd debian/docker-ce/usr/bin/dockerd-ce
|
|
install -D -m 0755 /source/docker-proxy debian/docker-ce/usr/bin/docker-proxy
|
|
install -D -m 0755 /source/docker-init debian/docker-ce/usr/bin/docker-init
|
|
install -D -m 0644 /sources/distribution_based_engine.json debian/docker-ce/var/lib/docker-engine/distribution_based_engine-ce.json
|
|
|
|
override_dh_shlibdeps:
|
|
dh_shlibdeps --dpkg-shlibdeps-params=--ignore-missing-info
|
|
|
|
override_dh_install:
|
|
dh_install
|
|
# TODO Can we do this from within our container?
|
|
dh_apparmor --profile-name=docker-ce -pdocker-ce
|
|
|
|
%:
|
|
dh $@ --with=bash-completion $(shell command -v dh_systemd_enable > /dev/null 2>&1 && echo --with=systemd)
|