blob: 3304551232076e923f0d957da9ef07d09d328218 (
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
101
102
103
104
105
106
107
108
|
# Maintainer: Eivind Uggedal <eivind@uggedal.com>
pkgname=docker
pkgver=1.2.0
pkgrel=0
_gitcommit=fa7b24f
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-bash-completion:completion
$pkgname-doc
$pkgname-vim:vim
"
source="
$pkgname-$pkgver.tar.gz::https://github.com/docker/docker/archive/v$pkgver.tar.gz
http://dev.alpinelinux.org/archive/$pkgname/$pkgname-man-$pkgver.tar.gz
docker.init-ulimit-fix.patch
"
# Generation of man page source archive:
# - cd docs/man
# - docker build -t fedora/pandoc .
# - docker run -v $(pwd):/pandoc:rw -w /pandoc -i fedora/pandoc /pandoc/md2man-all.sh
# - mkdir docker-man-$pkgver
# - cp -r man[0-9] docker-man-$pkgver
# - tar czf docker-man-$pkgver.tar.gz docker-man-$pkgver
_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="cea0b533c0fae5d2aaef6b3abd92af5d docker-1.2.0.tar.gz
95f4b172bea6879e09c966c979cf70d9 docker-man-1.2.0.tar.gz
265bb875f508b7aeaa369cd1692b2caa docker.init-ulimit-fix.patch"
sha256sums="d7ab9ab0984044efdeba6b292e2e8b07f1f14fef51a444f8a3749d30d32567da docker-1.2.0.tar.gz
c4be472c289e124dfc769a50b679707ebc7698ebf44c174afab591146d08a4d3 docker-man-1.2.0.tar.gz
e7c4d5be9ea9090abb531feed91d5d47464283bec66474e263075db211556c72 docker.init-ulimit-fix.patch"
sha512sums="0856c055c4135b578a2bd8811482ada76e94c9cd3f23626dc30858d59cbc52fcdf1f9965a9e519b29daf85a18b236f0d5964e0c0f774966d9574a9b9b4cff288 docker-1.2.0.tar.gz
7ecf4d5381606bb95d55b1a2e7d005e43a168b3f420e3ec2a9ba3a2bd0efa5c5ca5c7cc577b1722ab4293460a282ca1c0cfdd6184393a200deabc7e333ab0df1 docker-man-1.2.0.tar.gz
d677d0540d3106b42d7745f61ece8e017301771d808ce81c28378543e13dbf5655092d9c1745e84227159882cd9af8c7211a146c716cb5ed10e6b15438611973 docker.init-ulimit-fix.patch"
|