actions.py 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Licensed under the GNU General Public License, version 3.
  5. # See the file http://www.gnu.org/licenses/gpl.txt
  6. from pisi.actionsapi import pisitools
  7. from pisi.actionsapi import autotools
  8. from pisi.actionsapi import shelltools
  9. from pisi.actionsapi import get
  10. shelltools.export("AUTO_GOPATH", "1")
  11. shelltools.export("DOCKER_GITCOMMIT", "b9f10c9")
  12. shelltools.export("GOROOT","/usr/lib/go")
  13. shelltools.export("GOPATH", "%s" % get.workDIR())
  14. shelltools.export("CGO_CFLAGS", "-I/usr/include")
  15. shelltools.export("CGO_LDFLAGS", "-L/usr/lib")
  16. shelltools.export("DOCKER_BUILDTAGS","seccomp")
  17. #shelltools.export("DOCKER_INITPATH", "/usr/lib/docker/dockerinit")
  18. NoStrip=["/"]
  19. def build():
  20. #shelltools.cd("docker")
  21. shelltools.system("hack/make.sh dynbinary")
  22. def install():
  23. pisitools.dobin("bundles/1.11.2/dynbinary/docker")
  24. pisitools.dobin("bundles/1.11.2/dynbinary/docker-1.11.2")
  25. # insert udev rules
  26. pisitools.insinto("/lib/udev/rules.d", "contrib/udev/*.rules")
  27. #insert contrib in docs
  28. pisitools.insinto("/usr/share/doc/docker", "contrib")
  29. pisitools.dodoc("VERSION", "LICENSE", "README.md", "AUTHORS", "CONTRIBUTING.md", "CHANGELOG.md", "NOTICE")