contrib/docker/Pkgfile
2014-10-17 23:09:05 +10:00

43 lines
1.3 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 sqlite3 cgroupfs-mount
name=docker
version=1.3.0
revision=c78088fe3d
release=1
source=(
https://raw.githubusercontent.com/dotcloud/docker/v${version}/contrib/check-config.sh
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 $SRC/check-config.sh $PKG/usr/share/docker/check-config.sh
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
}