blob: cecd6e5c5cec81c66fe76bf479d610dc2ab63749 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
# Maintainer: Eivind Uggedal <eivind@uggedal.com>
pkgname=docker
pkgver=0.11.1
pkgrel=1
_gitcommit=fb99f99
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 bash"
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
http://dev.alpinelinux.org/archive/$pkgname/$pkgname-man-$pkgver.tar.gz
kcore-error.patch
"
_builddir="$srcdir"/$pkgname-$pkgver
_buildtags="exclude_graphdriver_aufs exclude_graphdriver_devicemapper"
prepare() {
local i
cd "$_builddir"
for i in $source; do
case $i in
*.patch) msg $i; patch -p1 -i "$srcdir"/$i || return 1;;
esac
done
}
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/man
cp -a "$srcdir"/$pkgname-man-$pkgver/man1 "$pkgdir"/usr/share/man
}
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="6496901bfc30aa8094411a0dd6c10ab5 docker-0.11.1.tar.gz
ceb985bf1f68fe7e0bd500dca66eacf7 docker-man-0.11.1.tar.gz
e909f4cccd0e066be06538d0669fa4df kcore-error.patch"
sha256sums="91a65759fb5d870f215f25a1e2866204b252be8ed79778ca3f009a8ed6838c62 docker-0.11.1.tar.gz
f68612e4149d958acc18e9d607f11ed4a6189de628641a18eaf981c406c18e78 docker-man-0.11.1.tar.gz
a045e46feef94cace5c2909238351751c6b3d5bbb3fd28c6d80acd04d757a363 kcore-error.patch"
sha512sums="d035cdf2a72cd0b953d7a1a51187cd69634a2a582cd516c75b78654e883396ffb227acaeb30c9ba709c8c90404e397ae21911435ead85a30e258344c3acc803b docker-0.11.1.tar.gz
da23c045ea5abdb55884fa217c92c8016ced07d39b70c69182864503041aef7429a891dc463ffd225ff8076e50269a9a9657d785f17502aff98bd19d8bdfd547 docker-man-0.11.1.tar.gz
48d216694a9fd15dbdb3674b1506aff6ce9d3d7d5676d1a1774736ba2c9d466f5b6c0528a5a9ffe6d202cddc2598617fcd9cf8893eca5d9581cf1e29d06d2afc kcore-error.patch"
|