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
|
2024-02-09 16:32:56 -06:00
|
|
|
version=25.0.3
|
2023-09-08 23:59:11 -05:00
|
|
|
release=1
|
2021-01-26 14:45:56 -06:00
|
|
|
source=(https://github.com/moby/moby/archive/v${version}/moby-${version}.tar.gz \
|
|
|
|
https://github.com/docker/cli/archive/v${version}/cli-${version}.tar.gz \
|
2023-10-30 10:43:19 -05:00
|
|
|
http://crux.nu/files/$name-man-pages-$version.tar.xz \
|
2023-01-23 15:25:18 -06:00
|
|
|
$name.rc $name.conf)
|
2014-02-12 01:24:08 +10:00
|
|
|
|
|
|
|
build() {
|
2021-03-13 13:07:13 -06:00
|
|
|
export GO111MODULE=auto
|
2017-10-09 11:15:42 -05:00
|
|
|
export GOPATH=$SRC
|
2024-02-03 15:45:00 -06:00
|
|
|
export DOCKER_GITCOMMIT=fce6e0c
|
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
|
2023-02-27 19:10:46 -06:00
|
|
|
export CGO_CFLAGS="${CFLAGS}"
|
|
|
|
export CGO_CPPFLAGS="${CPPFLAGS}"
|
|
|
|
export CGO_CXXFLAGS="${CXXFLAGS}"
|
|
|
|
export CGO_LDFLAGS="${LDFLAGS}"
|
|
|
|
export GOFLAGS="-buildmode=pie -trimpath -mod=readonly -modcacherw -ldflags=-linkmode=external"
|
2017-10-09 11:15:42 -05:00
|
|
|
|
|
|
|
mkdir -p src/github.com/docker
|
|
|
|
|
|
|
|
pushd src/github.com/docker
|
2021-01-26 14:45:56 -06:00
|
|
|
ln -s $SRC/cli-$version cli
|
2017-10-09 11:15:42 -05:00
|
|
|
pushd cli
|
2023-02-27 19:10:46 -06:00
|
|
|
make VERSION=$version GITCOMMIT=${DOCKER_GITCOMMIT} dynbinary
|
2017-10-09 11:15:42 -05:00
|
|
|
popd
|
|
|
|
popd
|
|
|
|
|
|
|
|
pushd src/github.com/docker
|
2021-01-26 14:45:56 -06:00
|
|
|
ln -s $SRC/moby-$version docker
|
|
|
|
pushd docker
|
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
|
|
|
|
2021-01-26 14:45:56 -06:00
|
|
|
install -D -m 0755 cli-$version/build/$name $PKG/usr/bin/$name
|
2023-02-02 18:30:59 -06:00
|
|
|
install -D -m 0755 moby-$version/bundles/dynbinary-daemon/dockerd \
|
2016-11-20 14:37:31 -06:00
|
|
|
$PKG/usr/bin/dockerd
|
2023-06-03 16:08:49 -05:00
|
|
|
install -D -m 0755 moby-$version/bundles/dynbinary-daemon/docker-proxy \
|
|
|
|
$PKG/usr/bin/docker-proxy
|
2017-01-29 23:00:23 -06:00
|
|
|
|
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
|
|
|
|
2021-01-26 14:45:56 -06:00
|
|
|
install -D -m 0755 moby-$version/contrib/check-config.sh \
|
2016-05-25 18:06:12 -05:00
|
|
|
$PKG/usr/share/$name/check-config.sh
|
2021-01-26 14:45:56 -06:00
|
|
|
install -D -m 0644 moby-$version/contrib/udev/80-$name.rules \
|
2016-05-25 18:06:12 -05:00
|
|
|
$PKG/etc/udev/rules.d/80-$name.rules
|
2021-01-26 14:45:56 -06:00
|
|
|
install -D -m 0644 cli-$version/contrib/completion/bash/docker \
|
2016-05-25 18:06:12 -05:00
|
|
|
$PKG/etc/bash_completion.d/docker
|
2023-08-21 13:46:05 -05:00
|
|
|
|
|
|
|
mkdir -p $PKG/usr/lib/docker/cli-plugins
|
2014-02-12 01:24:08 +10:00
|
|
|
}
|