40 lines
1.3 KiB
Python
40 lines
1.3 KiB
Python
#!/usr/bin/python
|
|
# -*- coding: utf-8 -*-
|
|
#
|
|
# Licensed under the GNU General Public License, version 3.
|
|
# See the file http://www.gnu.org/licenses/gpl.txt
|
|
|
|
from pisi.actionsapi import pisitools
|
|
from pisi.actionsapi import autotools
|
|
from pisi.actionsapi import shelltools
|
|
from pisi.actionsapi import get
|
|
|
|
shelltools.export("AUTO_GOPATH", "1")
|
|
shelltools.export("DOCKER_GITCOMMIT", "0d03096")
|
|
shelltools.export("GOPATH", "%s" % get.workDIR())
|
|
|
|
shelltools.export("CGO_CFLAGS", "-I/usr/include")
|
|
shelltools.export("CGO_LDFLAGS", "-L/usr/lib")
|
|
shelltools.export("DOCKER_BUILDTAGS","exclude_graphdriver_aufs")
|
|
shelltools.export("DOCKER_INITPATH", "/usr/lib/docker/dockerinit")
|
|
|
|
NoStrip=["/"]
|
|
|
|
def build():
|
|
shelltools.system("./hack/make.sh dynbinary")
|
|
|
|
def install():
|
|
pisitools.dobin("bundles/1.8.0/dynbinary/docker")
|
|
pisitools.dobin("bundles/1.8.0/dynbinary/docker-1.8.0")
|
|
pisitools.doexe("bundles/1.8.0/dynbinary/dockerinit", "/usr/lib/docker")
|
|
pisitools.doexe("bundles/1.8.0/dynbinary/dockerinit-1.8.0", "/usr/lib/docker")
|
|
|
|
# insert udev rules
|
|
pisitools.insinto("/etc/udev/rules.d", "contrib/udev/*.rules")
|
|
|
|
#insert contrib in docs
|
|
pisitools.insinto("/usr/share/doc/docker", "contrib")
|
|
|
|
pisitools.dodoc("VERSION", "LICENSE", "README.md", "AUTHORS", "CONTRIBUTING.md", "CHANGELOG.md", "NOTICE")
|
|
|