2014-02-11 16:24:08 +01:00
|
|
|
# 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
|
|
|
|
#
|
2014-05-23 11:28:51 +02:00
|
|
|
# Depends on: go sqlite3 cgroupfs-mount
|
2014-02-11 16:24:08 +01:00
|
|
|
|
|
|
|
name=docker
|
2014-11-03 03:16:24 +01:00
|
|
|
version=1.3.1
|
|
|
|
revision=4e9bbfa900
|
2014-06-14 03:29:27 +02:00
|
|
|
release=1
|
2014-02-11 16:24:08 +01:00
|
|
|
source=(
|
2014-06-14 03:29:27 +02:00
|
|
|
https://raw.githubusercontent.com/dotcloud/docker/v${version}/contrib/check-config.sh
|
2014-02-11 16:24:08 +01:00
|
|
|
https://github.com/dotcloud/$name/archive/v$version.tar.gz
|
|
|
|
$name.rc
|
|
|
|
$name.conf
|
|
|
|
)
|
|
|
|
|
|
|
|
build() {
|
|
|
|
cd $name-$version
|
|
|
|
|
|
|
|
# Build
|
2014-02-27 15:27:10 +01:00
|
|
|
export AUTO_GOPATH=1
|
2014-02-11 16:24:08 +01:00
|
|
|
export DOCKER_GITCOMMIT=$revision
|
2014-03-30 15:26:17 +02:00
|
|
|
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)
|
2014-02-11 16:24:08 +01:00
|
|
|
./hack/make.sh dynbinary
|
|
|
|
|
|
|
|
# Package
|
2014-05-23 11:28:51 +02:00
|
|
|
install -D -m 755 $SRC/check-config.sh $PKG/usr/share/docker/check-config.sh
|
|
|
|
|
2014-04-22 04:29:18 +02:00
|
|
|
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"
|
|
|
|
|
2014-02-11 16:24:08 +01:00
|
|
|
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
|
|
|
|
}
|