2013-12-20 14:00:48 +00:00
|
|
|
# $Id$
|
2014-04-08 22:33:13 +00:00
|
|
|
# Maintainer: Sebastien "Seblu" Luttringer
|
2013-12-20 14:00:48 +00:00
|
|
|
|
2014-04-08 22:33:13 +00:00
|
|
|
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
|
|
|
# - ARM patches, adjustments
|
2013-12-20 14:00:48 +00:00
|
|
|
|
|
|
|
pkgname=docker
|
2014-05-07 20:56:44 +00:00
|
|
|
pkgver=0.11.0
|
2014-05-08 22:44:23 +00:00
|
|
|
pkgrel=1.1
|
2013-12-20 14:00:48 +00:00
|
|
|
epoch=1
|
|
|
|
pkgdesc='Pack, ship and run any application as a lightweight container'
|
2014-02-22 23:01:39 +00:00
|
|
|
arch=('x86_64')
|
2013-12-20 14:00:48 +00:00
|
|
|
url='http://www.docker.io/'
|
|
|
|
license=('Apache')
|
2014-03-10 18:07:12 +00:00
|
|
|
depends=('bridge-utils' 'iproute2' 'device-mapper' 'sqlite' 'systemd')
|
2014-02-07 20:18:32 +00:00
|
|
|
makedepends=('git' 'go' 'btrfs-progs')
|
2014-03-10 18:07:12 +00:00
|
|
|
optdepends=('btrfs-progs: btrfs backend support'
|
2014-04-08 22:33:13 +00:00
|
|
|
'lxc: lxc backend support')
|
2013-12-20 14:00:48 +00:00
|
|
|
# don't strip binaries! A sha1 is used to check binary consistency.
|
|
|
|
options=('!strip')
|
|
|
|
install=$pkgname.install
|
2014-04-08 22:33:13 +00:00
|
|
|
source=("git+https://github.com/dotcloud/docker.git#tag=v$pkgver"
|
2014-05-07 22:01:07 +00:00
|
|
|
'0001-ARM-as-allowed-architecture.patch'
|
|
|
|
'0002-Fix-btrfs-detection-on-ARM.patch'
|
2014-05-08 22:35:57 +00:00
|
|
|
'0003-setBridgeMacAddress-ARM-support.patch'
|
|
|
|
'0004-Allow-missing-kcore.patch')
|
2014-01-04 00:20:06 +00:00
|
|
|
md5sums=('SKIP'
|
2014-05-07 22:01:07 +00:00
|
|
|
'c003084f4cf0f754c868662a8bae95e8'
|
|
|
|
'f3ed840798065ca2a40e40b07d5e4069'
|
2014-05-08 22:35:57 +00:00
|
|
|
'f42c2001c85556830598a8ec07430d53'
|
|
|
|
'e909f4cccd0e066be06538d0669fa4df')
|
2014-02-22 22:33:06 +00:00
|
|
|
|
2013-12-20 14:00:48 +00:00
|
|
|
prepare() {
|
2014-04-08 22:33:13 +00:00
|
|
|
cd "docker"
|
2014-05-07 22:01:07 +00:00
|
|
|
patch -p1 -i ../0001-ARM-as-allowed-architecture.patch
|
|
|
|
patch -p1 -i ../0002-Fix-btrfs-detection-on-ARM.patch
|
2014-02-23 09:17:27 +00:00
|
|
|
find . -name '*.go' | xargs sed --in-place= -e 's/\/\/ +build amd64/\/\/ +build arm/'
|
|
|
|
find . -name '*.go' | xargs sed --in-place= -e 's/\/\/ +build !linux !amd64/\/\/ +build !linux !arm/'
|
|
|
|
find . -name '*.go' | xargs sed --in-place= -e 's/\/\/ +build linux,amd64/\/\/ +build linux,arm/'
|
2014-04-22 15:29:48 +00:00
|
|
|
# This patch is applicable after the seds.
|
2014-05-07 22:01:07 +00:00
|
|
|
patch -p1 -i ../0003-setBridgeMacAddress-ARM-support.patch
|
2014-05-08 22:35:57 +00:00
|
|
|
patch -p1 -i ../0004-Allow-missing-kcore.patch
|
2013-12-20 14:00:48 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
build() {
|
2014-04-08 22:33:13 +00:00
|
|
|
cd docker
|
|
|
|
export AUTO_GOPATH=1
|
2013-12-20 14:00:48 +00:00
|
|
|
./hack/make.sh dynbinary
|
|
|
|
}
|
|
|
|
|
2014-04-08 22:33:13 +00:00
|
|
|
#check() {
|
|
|
|
# cd "$_magic/docker"
|
|
|
|
# # Will be added upstream soon
|
|
|
|
# ./hack/make.sh dyntest
|
|
|
|
#}
|
2013-12-20 14:00:48 +00:00
|
|
|
|
|
|
|
package() {
|
2014-04-08 22:33:13 +00:00
|
|
|
cd docker
|
|
|
|
install -Dm755 "bundles/$pkgver/dynbinary/docker-$pkgver" "$pkgdir/usr/bin/docker"
|
|
|
|
install -Dm755 "bundles/$pkgver/dynbinary/dockerinit-$pkgver" "$pkgdir/usr/lib/docker/dockerinit"
|
2013-12-20 14:00:48 +00:00
|
|
|
# completion
|
|
|
|
install -Dm644 "contrib/completion/bash/docker" "$pkgdir/usr/share/bash-completion/completions/docker"
|
|
|
|
install -Dm644 "contrib/completion/zsh/_docker" "$pkgdir/usr/share/zsh/site-functions/_docker"
|
|
|
|
# systemd
|
|
|
|
install -Dm644 "contrib/init/systemd/docker.service" "$pkgdir/usr/lib/systemd/system/docker.service"
|
|
|
|
}
|