blob: f7a413edbd3e7c8035717ec75736f46b31049378 (
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
|
# Maintainer: Eivind Uggedal <eivind@uggedal.com>
pkgname=docker
pkgver=1.0.1
pkgrel=0
_gitcommit=990021a
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/dotcloud/docker/archive/v$pkgver.tar.gz
http://dev.alpinelinux.org/archive/$pkgname/$pkgname-man-$pkgver.tar.gz
"
# Generation of man page source archive:
# - cd contrib/man/md
# - docker build -t fedora/pandoc .
# - cd ..
# - docker run -v $(pwd):/pandoc:rw -w /pandoc -i fedora/pandoc /pandoc/md/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="61c6c5b7308817a53f1e0f0173f65fe0 docker-1.0.1.tar.gz
ad30ec03a2312dc6148902c6c7d0db8a docker-man-1.0.1.tar.gz"
sha256sums="efa80e4fff031a01cb5883e62ab80194ee95dda5deed83e1597fb61be29ae4c7 docker-1.0.1.tar.gz
ecdf6f666c9c92f018ae004dc49b8f960ba73a6e7952793ef57cdbaba25d0d59 docker-man-1.0.1.tar.gz"
sha512sums="38e78c63c65738784944c0ab12e4d3ce49d6ab68e0d24bf0332a1bb776820156d6351726e57f05eb714a9a217557710c3f9ad686acaca3bc77708024489a3049 docker-1.0.1.tar.gz
c271f782f82e4267170d49c67208cc040c4f8effa7d7b7b5b5e39c22bcef12d879f1fe392bfd5d2e0f34c380b1703b1685ec658f15a7a11becc63ac8a918d419 docker-man-1.0.1.tar.gz"
|