2015-04-03 03:38:46 -04:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
|
|
|
|
VERSION = $(shell cat VERSION)
|
|
|
|
|
|
|
|
override_dh_gencontrol:
|
|
|
|
# if we're on Ubuntu, we need to Recommends: apparmor
|
2015-05-05 12:11:59 -04:00
|
|
|
echo 'apparmor:Recommends=$(shell dpkg-vendor --is Ubuntu && echo apparmor)' >> debian/docker-engine.substvars
|
2015-04-03 03:38:46 -04:00
|
|
|
dh_gencontrol
|
|
|
|
|
|
|
|
override_dh_auto_build:
|
|
|
|
./hack/make.sh dynbinary
|
|
|
|
# ./docs/man/md2man-all.sh runs outside the build container (if at all), since we don't have go-md2man here
|
|
|
|
|
|
|
|
override_dh_auto_test:
|
|
|
|
./bundles/$(VERSION)/dynbinary/docker -v
|
|
|
|
|
|
|
|
override_dh_strip:
|
|
|
|
# the SHA1 of dockerinit is important: don't strip it
|
|
|
|
# also, Go has lots of problems with stripping, so just don't
|
|
|
|
|
|
|
|
override_dh_auto_install:
|
2015-05-05 12:11:59 -04:00
|
|
|
mkdir -p debian/docker-engine/usr/bin
|
|
|
|
cp -aT "$$(readlink -f bundles/$(VERSION)/dynbinary/docker)" debian/docker-engine/usr/bin/docker
|
2015-05-06 19:39:10 -04:00
|
|
|
mkdir -p debian/docker-engine/usr/lib/docker
|
|
|
|
cp -aT "$$(readlink -f bundles/$(VERSION)/dynbinary/dockerinit)" debian/docker-engine/usr/lib/docker/dockerinit
|
2015-04-03 03:38:46 -04:00
|
|
|
|
|
|
|
override_dh_installinit:
|
2015-05-05 12:11:59 -04:00
|
|
|
# use "docker" as our service name, not "docker-engine"
|
2015-04-03 03:38:46 -04:00
|
|
|
dh_installinit --name=docker
|
|
|
|
|
|
|
|
override_dh_installudev:
|
|
|
|
# match our existing priority
|
|
|
|
dh_installudev --priority=z80
|
|
|
|
|
|
|
|
%:
|
|
|
|
dh $@ --with=systemd,bash-completion
|