github.com/hustcat/docker@v1.3.3-0.20160314103604-901c67a8eeab/hack/make/.build-deb/rules (about) 1 #!/usr/bin/make -f 2 3 VERSION = $(shell cat VERSION) 4 5 override_dh_gencontrol: 6 # if we're on Ubuntu, we need to Recommends: apparmor 7 echo 'apparmor:Recommends=$(shell dpkg-vendor --is Ubuntu && echo apparmor)' >> debian/docker-engine.substvars 8 # if we are building experimental we recommend yubico-piv-tool 9 echo 'yubico:Recommends=$(shell [ "$DOCKER_EXPERIMENTAL" ] && echo "yubico-piv-tool (>= 1.1.0~)")' >> debian/docker-engine.substvars 10 dh_gencontrol 11 12 override_dh_auto_build: 13 ./hack/make.sh dynbinary 14 # ./man/md2man-all.sh runs outside the build container (if at all), since we don't have go-md2man here 15 16 override_dh_auto_test: 17 ./bundles/$(VERSION)/dynbinary/docker -v 18 19 override_dh_strip: 20 # Go has lots of problems with stripping, so just don't 21 22 override_dh_auto_install: 23 mkdir -p debian/docker-engine/usr/bin 24 cp -aT "$$(readlink -f bundles/$(VERSION)/dynbinary/docker)" debian/docker-engine/usr/bin/docker 25 mkdir -p debian/docker-engine/usr/lib/docker 26 27 override_dh_installinit: 28 # use "docker" as our service name, not "docker-engine" 29 dh_installinit --name=docker 30 31 override_dh_installudev: 32 # match our existing priority 33 dh_installudev --priority=z80 34 35 override_dh_install: 36 dh_install 37 dh_apparmor --profile-name=docker-engine -pdocker-engine 38 39 %: 40 dh $@ --with=bash-completion $(shell command -v dh_systemd_enable > /dev/null 2>&1 && echo --with=systemd)