contrib/docker/Pkgfile
James Mills 98ecfde20a docker: 0.9.1 -> 0.10.0
--HG--
extra : rebase_source : 5937873ff254fa3584b783fb90c892f62793714d
2014-04-22 12:29:18 +10:00

40 lines
1.1 KiB
Plaintext

# Description: Pack, ship and run any application as a lightweight container
# URL: http://www.docker.io/
# Maintainer: James Mills, prologic at shortcircuit dot net dot au
#
# Depends on: go bridge-utils sqlite3 cgroupfs-mount
name=docker
version=0.10.0
revision=dc9c28f51d
release=1
source=(
https://github.com/dotcloud/$name/archive/v$version.tar.gz
$name.rc
$name.conf
)
build() {
cd $name-$version
# Build
export AUTO_GOPATH=1
export DOCKER_GITCOMMIT=$revision
unset CC # The build fails with a customer C compiler (e.g: ccache)
unset CXX # The build fails with a customer C++ compiler (e.g: ccache)
./hack/make.sh dynbinary
# Package
install -D -m 755 "bundles/$version/dynbinary/docker-$version" \
"$PKG/usr/bin/docker"
install -D -m 755 "bundles/$version/dynbinary/dockerinit-$version" \
"$PKG/usr/lib/docker/dockerinit"
install -D -m 644 "contrib/udev/80-docker.rules" \
"$PKG/etc/udev/rules.d/80-docker.rules"
install -D -m 755 $SRC/$name.rc $PKG/etc/rc.d/$name
install -D -m 644 $SRC/$name.conf $PKG/etc/$name.conf
chown -R root:root $PKG
}