2014-03-11 09:04:42 +00:00
|
|
|
# Template file for 'docker'
|
|
|
|
pkgname=docker
|
2015-02-11 06:26:53 +00:00
|
|
|
version=1.5.0
|
2014-10-17 06:38:26 +00:00
|
|
|
revision=1
|
2015-03-27 09:50:40 +00:00
|
|
|
hostmakedepends="git go"
|
2014-08-24 07:27:01 +00:00
|
|
|
makedepends="libbtrfs-devel sqlite-devel device-mapper-devel"
|
2014-03-11 09:04:42 +00:00
|
|
|
short_desc="Easily create lightweight, portable, self-sufficient containers from any application"
|
|
|
|
maintainer="Juan RP <xtraeme@gmail.com>"
|
|
|
|
license="Apache-2.0"
|
|
|
|
homepage="http://www.docker.io"
|
2014-07-11 13:17:06 +00:00
|
|
|
system_groups="docker"
|
2014-03-11 09:04:42 +00:00
|
|
|
|
|
|
|
# These are required at run-time.
|
|
|
|
depends="iptables xz git"
|
2014-08-24 07:27:01 +00:00
|
|
|
build_options="systemd"
|
2014-06-12 10:21:34 +00:00
|
|
|
nostrip=yes
|
2014-08-24 07:27:01 +00:00
|
|
|
nocross=yes
|
2014-03-11 09:04:42 +00:00
|
|
|
|
|
|
|
do_fetch() {
|
2014-11-01 19:14:00 +00:00
|
|
|
git clone -b v${version} git://github.com/docker/docker ${pkgname}-${version}
|
2014-03-11 09:04:42 +00:00
|
|
|
}
|
|
|
|
do_build() {
|
|
|
|
export AUTO_GOPATH=1
|
|
|
|
./hack/make.sh dynbinary
|
|
|
|
}
|
|
|
|
do_install() {
|
2014-10-17 06:38:26 +00:00
|
|
|
vbin bundles/${version}/dynbinary/docker-${version} docker
|
2014-03-11 09:04:42 +00:00
|
|
|
vinstall bundles/${version}/dynbinary/dockerinit-${version} 755 usr/lib/docker dockerinit
|
|
|
|
vinstall contrib/completion/bash/docker 644 usr/share/bash-completion/completions
|
|
|
|
vinstall contrib/completion/zsh/_docker 644 usr/share/zsh/site-functions
|
2014-08-24 07:27:01 +00:00
|
|
|
if [ "$build_option_systemd" ]; then
|
|
|
|
vinstall contrib/init/systemd/docker.service 644 usr/lib/systemd/system
|
|
|
|
fi
|
2014-10-13 11:49:31 +00:00
|
|
|
vsv docker
|
2014-03-11 09:04:42 +00:00
|
|
|
}
|