1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- #!/usr/bin/python
- # -*- coding: utf-8 -*-
- #
- # Copyright 2016 TUBITAK/UEKAE
- # Licensed under the GNU General Public License, version 2.
- # See the file http://www.gnu.org/copyleft/gpl.txt.
- from pisi.actionsapi import autotools
- from pisi.actionsapi import pisitools
- from pisi.actionsapi import shelltools
- from pisi.actionsapi import get
- #shelltools.export("GOPATH", "%s" % get.curDIR())
- shelltools.export("DOCKER_BUILDTAGS","seccomp")
- shelltools.export("COMMIT"," 860f061")
- shelltools.export("BINDIR","/usr/bin")
- def setup():
- shelltools.cd("%s" % get.workDIR())
- # shelltools.move("runc-*", "runc")
-
- # shelltools.cd("runc")
- #shelltools.move("vendor", "src")
- shelltools.export("GOPATH", "%s" % get.workDIR())
-
- shelltools.makedirs("%s/src/github.com/opencontainers/runc" % get.workDIR())
- # shelltools.cd("src/github.com/opencontainers")
-
- # shelltools.system("ln -rsf %s/runc ./runc" % get.workDIR())
-
- shelltools.copy("%s/runc-%s/*" % (get.workDIR(), get.srcVERSION()), "%s/src/github.com/opencontainers/runc/" % get.workDIR())
- def build():
- # shelltools.cd("%s" % get.workDIR())
- shelltools.cd("%s/src/github.com/opencontainers/runc" % get.workDIR())
- build_runc = "make GOPATH=/runc COMMIT=860f061"
- shelltools.system(build_runc)
- def install():
- shelltools.cd("%s/src/github.com/opencontainers/runc" % get.workDIR())
- pisitools.dobin("runc")
-
- # symlink containerd/run (nice integration with docker)
- pisitools.dosym("/usr/bin/runc", "/usr/bin/docker-runc")
-
- #insert completions in doc
- #pisitools.insinto("/usr/share/doc/runc", "contrib")
-
- pisitools.dodoc("MAINTAINERS", "README*")
|