X-Original-To: alpine-devel@lists.alpinelinux.org Delivered-To: alpine-devel@mail.alpinelinux.org Received: from mail-wi0-f174.google.com (mail-wi0-f174.google.com [209.85.212.174]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mail.alpinelinux.org (Postfix) with ESMTPS id 25BF7DC0189 for ; Thu, 10 Apr 2014 11:00:41 +0000 (UTC) Received: by mail-wi0-f174.google.com with SMTP id d1so10462628wiv.1 for ; Thu, 10 Apr 2014 04:00:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id; bh=qbbWpvbUCLkSkDjAK/jS6OF88XJgNJi5B+ET80j1Xz8=; b=e9W1aXOt8gQi4wSAGd5q1EOCS3n3FEARiF1iwlcMOcr5SS0k5hqTy0uYwOw8Be8AId 0qz2P1lvKWkAmLEXhdeitiTuldULLc0QUs6NozqUQPeNsidfRE6/+e0wv3cLMeEMNDS5 zs0WwQNaUVm7tIS0Ryo0VgshzBsgdvkjfvHnG4FANZzdVMhsWVx7t1w4O2MpJ6fpjoqZ vVOurDof0nVr1FynbGwFZXmPUg1Hofm3vS43icEcjaKV692mAVP8Az2isUKXGCx1W8JR jDaOq7PHFxLUaL2oj0JqV7VXfTUcA1QuD+//KwsCICmxxlzGGlv8AgGqixNDisuTJgAk LrqA== X-Gm-Message-State: ALoCoQmAxr5kzFuT4yJmIKHlOJfeRluabW/8kQfKTvEfvrcjQ2oX91rDZizVDlMa6Ft9IPj0Tjrr X-Received: by 10.194.86.7 with SMTP id l7mr14332663wjz.37.1397127639772; Thu, 10 Apr 2014 04:00:39 -0700 (PDT) Received: from scandium.members.linode.com (li703-102.members.linode.com. [88.80.191.102]) by mx.google.com with ESMTPSA id fi2sm16008940wic.15.2014.04.10.04.00.38 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 10 Apr 2014 04:00:39 -0700 (PDT) From: Eivind Uggedal To: alpine-devel@lists.alpinelinux.org Subject: [alpine-devel] [PATCH] testing/docker: new aport Date: Thu, 10 Apr 2014 11:00:28 +0000 Message-Id: <1397127628-24216-1-git-send-email-eivind@uggedal.com> X-Mailer: git-send-email 1.9.1 X-Mailinglist: alpine-devel Precedence: list List-Id: Alpine Development List-Unsubscribe: List-Post: List-Help: List-Subscribe: --- testing/docker/APKBUILD | 80 +++++++++++++++++++++++++++++++++++++++ testing/docker/docker.pre-install | 6 +++ 2 files changed, 86 insertions(+) create mode 100644 testing/docker/APKBUILD create mode 100644 testing/docker/docker.pre-install diff --git a/testing/docker/APKBUILD b/testing/docker/APKBUILD new file mode 100644 index 000000000000..0097286c095c --- /dev/null +++ b/testing/docker/APKBUILD @@ -0,0 +1,80 @@ +# Maintainer: Eivind Uggedal +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" diff --git a/testing/docker/docker.pre-install b/testing/docker/docker.pre-install new file mode 100644 index 000000000000..8a1dec6f2a47 --- /dev/null +++ b/testing/docker/docker.pre-install @@ -0,0 +1,6 @@ +#!/bin/sh + +if ! getent group docker >/dev/null; then + addgroup -S docker +fi +exit 0 -- 1.9.1 --- Unsubscribe: alpine-devel+unsubscribe@lists.alpinelinux.org Help: alpine-devel+help@lists.alpinelinux.org ---