aboutsummaryrefslogtreecommitdiffstats
path: root/testing/docker/APKBUILD
diff options
context:
space:
mode:
authorEivind Uggedal <eivind@uggedal.com>2014-04-10 11:00:28 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-04-11 13:06:03 +0000
commit4248d1a88bcde1de235e2d803060935085a1525e (patch)
tree3a963822ba048676e7f5c588cfe26891fd285f25 /testing/docker/APKBUILD
parentabfdfd32d2c6818c467d6255f035bf0254bd8350 (diff)
downloadaports-4248d1a88bcde1de235e2d803060935085a1525e.tar.gz
aports-4248d1a88bcde1de235e2d803060935085a1525e.tar.bz2
aports-4248d1a88bcde1de235e2d803060935085a1525e.tar.xz
testing/docker: new aport
Diffstat (limited to 'testing/docker/APKBUILD')
-rw-r--r--testing/docker/APKBUILD80
1 files changed, 80 insertions, 0 deletions
diff --git a/testing/docker/APKBUILD b/testing/docker/APKBUILD
new file mode 100644
index 0000000000..0097286c09
--- /dev/null
+++ b/testing/docker/APKBUILD
@@ -0,0 +1,80 @@
+# Maintainer: Eivind Uggedal <eivind@uggedal.com>
+pkgname=docker
+pkgver=0.10.0
+pkgrel=0
+_gitcommit=dc9c28f
+pkgdesc="Pack, ship and run any application as a lightweight container"
+url="http://www.docker.io/"
+arch="x86_64"
+license="ASL 2.0"
+depends="iptables git xz"
+depends_dev=""
+makedepends="go sqlite-dev btrfs-progs-dev"
+options="!strip"
+install="$pkgname.pre-install"
+subpackages="
+ $pkgname-doc
+ $pkgname-bash-completion:completion
+ $pkgname-vim:vim
+ "
+source="$pkgname-$pkgver.tar.gz::https://github.com/dotcloud/docker/archive/v$pkgver.tar.gz"
+
+_builddir="$srcdir"/$pkgname-$pkgver
+_buildtags="exclude_graphdriver_aufs exclude_graphdriver_devicemapper"
+
+build() {
+ cd "$_builddir"
+
+ export AUTO_GOPATH=1
+ export DOCKER_GITCOMMIT=$_gitcommit
+ export DOCKER_BUILDTAGS=$_buildtags
+
+ ./hack/make.sh dynbinary
+}
+
+package() {
+ local ver
+
+ cd "$_builddir"
+
+ ver=$(cat VERSION)
+
+ install -Dm755 bundles/$ver/dynbinary/docker-$ver \
+ "$pkgdir"/usr/bin/docker
+ install -Dm755 bundles/$ver/dynbinary/dockerinit-$ver \
+ "$pkgdir"/usr/lib/docker/dockerinit
+
+ install -Dm755 contrib/init/openrc/docker.initd \
+ "$pkgdir"/etc/init.d/docker
+ install -Dm644 contrib/init/openrc/docker.confd \
+ "$pkgdir"/etc/conf.d/docker
+
+ install -dm755 "$pkgdir"/usr/share
+ cp -a "$_builddir"/contrib/man "$pkgdir"/usr/share
+}
+
+completion() {
+ depends=""
+ pkgdesc="Bash completion script for Docker"
+ arch="noarch"
+
+ install -Dm644 "$_builddir"/contrib/completion/bash/$pkgname \
+ "$subpkgdir"/usr/share/bash-completion/completions/$pkgname
+}
+
+vim() {
+ local f
+
+ depends=""
+ pkgdesc="Vim syntax for Docker"
+ arch="noarch"
+
+ for f in ftdetect/dockerfile.vim syntax/dockerfile.vim; do
+ install -Dm644 "$_builddir"/contrib/syntax/vim/$f \
+ "$subpkgdir"/usr/share/vim/vimfiles/$f
+ done
+}
+
+md5sums="1a9b569b1627a51b0ce6e85eaad459c4 docker-0.10.0.tar.gz"
+sha256sums="b8d49bc6f50016616146727b6b79d1864c3850ad42cf950d0372349842e8f591 docker-0.10.0.tar.gz"
+sha512sums="ce92b5b62b417260cc1c068fe3f3e64d19dc5b4199737b33272d6aef2a4376db42844e48706896ed8de0512a4b68ecef9c11594eed574649a5070c5f9183b2bf docker-0.10.0.tar.gz"