2016-05-25 18:06:12 -05:00
|
|
|
# Description: An open platform for distributed applications for developers and sysadmins
|
2017-10-09 11:15:42 -05:00
|
|
|
# URL: https://www.docker.com/community-edition
|
2016-05-25 18:06:12 -05:00
|
|
|
# Maintainer: Matt Housh, jaeger at crux dot ninja
|
|
|
|
# Depends on: containerd runc btrfs-progs cgroupfs-mount
|
2014-02-12 01:24:08 +10:00
|
|
|
|
|
|
|
name=docker
|
2019-06-02 17:44:33 -05:00
|
|
|
version=18.09.6
|
2016-06-11 00:06:05 -05:00
|
|
|
release=1
|
2017-10-09 11:15:42 -05:00
|
|
|
source=(https://github.com/docker/docker-ce/archive/v$version/$name-ce-v$version.tar.gz \
|
2016-05-25 18:06:12 -05:00
|
|
|
http://jaeger.morpheus.net/linux/crux/files/$name-man-pages-$version.tar.xz \
|
2018-08-28 11:44:06 -05:00
|
|
|
http://jaeger.morpheus.net/linux/crux/files/libnetwork-3ac297b.tar.xz \
|
2016-05-30 23:13:03 -05:00
|
|
|
$name.rc $name.conf)
|
2014-02-12 01:24:08 +10:00
|
|
|
|
|
|
|
build() {
|
2017-10-09 11:15:42 -05:00
|
|
|
export GOPATH=$SRC
|
2018-08-28 11:44:06 -05:00
|
|
|
export DOCKER_GITCOMMIT=e68fc7a
|
2017-05-11 11:38:53 -05:00
|
|
|
export DOCKER_BUILDTAGS='seccomp'
|
2017-10-09 11:15:42 -05:00
|
|
|
export DISABLE_WARN_OUTSIDE_CONTAINER=1
|
|
|
|
|
|
|
|
mkdir -p src/github.com/docker
|
|
|
|
|
|
|
|
pushd src/github.com/docker
|
|
|
|
ln -s $SRC/$name-ce-$version/components/cli
|
|
|
|
pushd cli
|
2018-08-28 11:44:06 -05:00
|
|
|
make VERSION=$version dynbinary
|
2017-10-09 11:15:42 -05:00
|
|
|
popd
|
|
|
|
popd
|
|
|
|
|
|
|
|
pushd src/github.com/docker
|
|
|
|
ln -s $SRC/$name-ce-$version/components/engine $name
|
|
|
|
pushd $name
|
2018-08-28 11:44:06 -05:00
|
|
|
VERSION=$version hack/make.sh dynbinary
|
2017-10-09 11:15:42 -05:00
|
|
|
popd
|
|
|
|
popd
|
2014-02-12 01:24:08 +10:00
|
|
|
|
2017-10-09 11:15:42 -05:00
|
|
|
cd $name-ce-$version
|
|
|
|
install -D -m 0755 components/cli/build/$name $PKG/usr/bin/$name
|
2018-08-28 11:44:06 -05:00
|
|
|
install -D -m 0755 components/engine/bundles/latest/dynbinary-daemon/dockerd-$version \
|
2016-11-20 14:37:31 -06:00
|
|
|
$PKG/usr/bin/dockerd
|
2017-01-29 23:00:23 -06:00
|
|
|
|
|
|
|
(cd ..; \
|
|
|
|
GOROOT=/usr/lib/go GOPATH=${PKGMK_WORK_DIR} go build -o $PKG/usr/bin/$name-proxy \
|
2018-08-28 11:44:06 -05:00
|
|
|
libnetwork-3ac297b/cmd/proxy)
|
2016-05-25 18:06:12 -05:00
|
|
|
|
|
|
|
for M in 1 5 8; do
|
|
|
|
install -d -m 0755 $PKG/usr/share/man/man${M}
|
|
|
|
install -m 0644 $SRC/man${M}/* $PKG/usr/share/man/man${M}/
|
|
|
|
done
|
2014-02-12 01:24:08 +10:00
|
|
|
|
2016-05-25 18:06:12 -05:00
|
|
|
install -D -m 0755 $SRC/$name.rc \
|
|
|
|
$PKG/etc/rc.d/$name
|
2016-05-30 23:13:03 -05:00
|
|
|
install -D -m 0644 $SRC/$name.conf \
|
|
|
|
$PKG/etc/$name.conf
|
2014-05-23 19:28:51 +10:00
|
|
|
|
2016-05-25 18:06:12 -05:00
|
|
|
ln -s containerd $PKG/usr/bin/docker-containerd
|
|
|
|
ln -s containerd-shim $PKG/usr/bin/docker-containerd-shim
|
|
|
|
ln -s ctr $PKG/usr/bin/docker-containerd-ctr
|
|
|
|
ln -s runc $PKG/usr/bin/docker-runc
|
2014-04-22 12:29:18 +10:00
|
|
|
|
2017-10-09 11:15:42 -05:00
|
|
|
install -D -m 0755 components/engine/contrib/check-config.sh \
|
2016-05-25 18:06:12 -05:00
|
|
|
$PKG/usr/share/$name/check-config.sh
|
2017-10-09 11:15:42 -05:00
|
|
|
install -D -m 0644 components/engine/contrib/udev/80-$name.rules \
|
2016-05-25 18:06:12 -05:00
|
|
|
$PKG/etc/udev/rules.d/80-$name.rules
|
2017-10-09 11:15:42 -05:00
|
|
|
install -D -m 0644 components/cli/contrib/completion/bash/docker \
|
2016-05-25 18:06:12 -05:00
|
|
|
$PKG/etc/bash_completion.d/docker
|
2014-02-12 01:24:08 +10:00
|
|
|
}
|