From c8b91f504ba7d7bb5b8eaaaaf3bcca9cc9d762b4 Mon Sep 17 00:00:00 2001 From: endigma Date: Mon, 8 Mar 2021 14:29:26 -0400 Subject: [PATCH 1/6] New package: docker-cli-20.10.5 --- srcpkgs/docker-cli/template | 48 +++++++++++++++++++++++++++++++++++++ srcpkgs/docker-cli/update | 1 + 2 files changed, 49 insertions(+) create mode 100644 srcpkgs/docker-cli/template create mode 100644 srcpkgs/docker-cli/update diff --git a/srcpkgs/docker-cli/template b/srcpkgs/docker-cli/template new file mode 100644 index 00000000000..99a42a47fb9 --- /dev/null +++ b/srcpkgs/docker-cli/template @@ -0,0 +1,48 @@ +# Template file for 'docker-cli' +pkgname=docker-cli +version=20.10.5 +revision=1 + +archs="aarch64* armv[67]l* x86_64* ppc64le*" + +create_wrksrc=yes +build_style=go +go_import_path="github.com/docker/cli" + +hostmakedepends="pkg-config tar" +depends="containerd runc iptables xz git" + +short_desc="Pack, ship and run any application as a lightweight container - cli" +maintainer="PWA COLLECTIVE " + +license="Apache-2.0" +homepage="http://www.docker.io" + +system_groups="docker" + +distfiles="https://github.com/docker/cli/archive/v${version}.tar.gz>cli-$version.tar.gz" + +checksum=4ba845f8c7e2e0a2ca1ec6589847159ca8d0d37b609f0e6f78def7a893b9b342 + +_cli_commit=55c4c88966a912ddb365e2d73a4969e700fc458f +_cli_builddir="cli-$version" + +export GO111MODULE=off # go1.16 defaults to on + +do_build() { + export AUTO_GOPATH=1 + export GITCOMMIT=$_cli_commit + export DISABLE_WARN_OUTSIDE_CONTAINER=1 + unset CC + + mkdir -p "$wrksrc/_cli_builddir" + + cd "$wrksrc/$_cli_builddir" + mkdir -p src/github.com/docker/ + ln -sf "$wrksrc/$_cli_builddir" src/github.com/docker/cli + GOPATH="$PWD" LDFLAGS="" VERSION="$version" make dynbinary +} + +do_install() { + vbin $_cli_builddir/build/docker +} diff --git a/srcpkgs/docker-cli/update b/srcpkgs/docker-cli/update new file mode 100644 index 00000000000..47936e12584 --- /dev/null +++ b/srcpkgs/docker-cli/update @@ -0,0 +1 @@ +pattern='href="/docker/cli/releases/tag/v\K[\d\.]+(?=")' From 6789974036bc3df34d1aa32fe314b11f58d4b726 Mon Sep 17 00:00:00 2001 From: endigma Date: Mon, 8 Mar 2021 14:29:29 -0400 Subject: [PATCH 2/6] docker: update to 20.10.5. --- srcpkgs/docker/files/docker/log/run | 1 - srcpkgs/docker/files/docker/run | 8 -- srcpkgs/docker/template | 138 ++-------------------------- srcpkgs/docker/update | 1 - 4 files changed, 7 insertions(+), 141 deletions(-) delete mode 120000 srcpkgs/docker/files/docker/log/run delete mode 100755 srcpkgs/docker/files/docker/run delete mode 100644 srcpkgs/docker/update diff --git a/srcpkgs/docker/files/docker/log/run b/srcpkgs/docker/files/docker/log/run deleted file mode 120000 index 3a5b4a58605..00000000000 --- a/srcpkgs/docker/files/docker/log/run +++ /dev/null @@ -1 +0,0 @@ -/usr/bin/vlogger \ No newline at end of file diff --git a/srcpkgs/docker/files/docker/run b/srcpkgs/docker/files/docker/run deleted file mode 100755 index ed42f5fa72f..00000000000 --- a/srcpkgs/docker/files/docker/run +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh -[ -r conf ] && . ./conf -modprobe -q loop || exit 1 -mountpoint -q /sys/fs/cgroup/systemd || { - mkdir -p /sys/fs/cgroup/systemd; - mount -t cgroup -o none,name=systemd cgroup /sys/fs/cgroup/systemd; -} -exec chpst -o 1048576 -p 1048576 dockerd $OPTS 2>&1 diff --git a/srcpkgs/docker/template b/srcpkgs/docker/template index e0830515a33..642bc1ecd71 100644 --- a/srcpkgs/docker/template +++ b/srcpkgs/docker/template @@ -1,138 +1,14 @@ # Template file for 'docker' pkgname=docker -version=19.03.15 +version=20.10.5 revision=1 -create_wrksrc=yes -build_style=go -hostmakedepends="pkg-config cmake tar" -makedepends="libbtrfs-devel sqlite-devel device-mapper-devel libseccomp-devel - libapparmor-devel libltdl-devel" -depends="containerd runc" -short_desc="Pack, ship and run any application as a lightweight container" -maintainer="Andrea Brancaleoni " -license="Apache-2.0, MIT" -homepage="http://www.docker.io" -_tini_version=0.18.0 -_libnetwork="bump_${version%.${version#*.*.}}" +build_style=meta -distfiles=" - https://github.com/docker/docker-ce/archive/v${version}.tar.gz>docker-ce-$version.tar.gz - https://github.com/krallin/tini/archive/v$_tini_version.tar.gz>tini-$_tini_version.tar.gz - https://github.com/moby/libnetwork/archive/$_libnetwork.tar.gz>libnetwork-$_libnetwork.tar.gz" -checksum="f2f31dd4137eaa735a26e590c9718fb06867afff4d8415cc80feb6cdc9e4a8cd - 1097675352d6317b547e73f9dc7c6839fd0bb0d96dafc2e5c95506bb324049a2 - 753615b94b6a8e37a612f766870d9e2af7e17cae7820bc6104ba67b4c6c1109a" +depends="docker-engine docker-cli" +short_desc="Docker meta-package including the engine and cli tool" +maintainer="PWA COLLECTIVE " -# These are required at run-time. -depends+=" iptables xz git" -nopie=yes -nostrip=yes -archs="aarch64* armv[67]l* x86_64* ppc64le*" -system_groups="docker" - -do_configure() { - msg_normal "Configuring docker-init\n" - mkdir -p $wrksrc/tini-$_tini_version/build - cd $wrksrc/tini-$_tini_version/build - local cmake_args="-DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=None" - - if [ "$CROSS_BUILD" ]; then - case "$XBPS_TARGET_MACHINE" in - x86_64*) _CMAKE_SYSTEM_PROCESSOR=x86_64 ;; - aarch64*) _CMAKE_SYSTEM_PROCESSOR=aarch64 ;; - arm*) _CMAKE_SYSTEM_PROCESSOR=arm ;; - ppc64le*) _CMAKE_SYSTEM_PROCESSOR=ppc64le ;; - *) msg_error "BUG: $pkgver: unknown target machine\n" ;; - esac - cat >cross_${XBPS_CROSS_TRIPLET}.cmake <<-_EOF - SET(CMAKE_SYSTEM_NAME Linux) - SET(CMAKE_SYSTEM_VERSION 1) - - SET(CMAKE_C_COMPILER ${CC}) - SET(CMAKE_CXX_COMPILER ${CXX}) - SET(CMAKE_CROSSCOMPILING TRUE) - - SET(CMAKE_SYSTEM_PROCESSOR ${_CMAKE_SYSTEM_PROCESSOR}) - - SET(CMAKE_FIND_ROOT_PATH ${XBPS_CROSS_BASE}) - - SET(CMAKE_FIND_ROOT_PATH_MODE_PROGRAM NEVER) - SET(CMAKE_FIND_ROOT_PATH_MODE_LIBRARY ONLY) - SET(CMAKE_FIND_ROOT_PATH_MODE_INCLUDE ONLY) - _EOF - cmake_args+=" -DCMAKE_TOOLCHAIN_FILE=cross_${XBPS_CROSS_TRIPLET}.cmake" - fi - CFLAGS="${CFLAGS/ -pipe / }" CXXFLAGS="${CXXFLAGS/ -pipe / }" \ - cmake ${cmake_args} .. - - mkdir -p $wrksrc/gopath/src/github.com/docker - - msg_normal "Preparing docker-proxy import path\n" - cd $wrksrc/libnetwork-$_libnetwork - rm -f $wrksrc/gopath/src/github.com/docker/libnetwork - ln -s "$PWD" $wrksrc/gopath/src/github.com/docker/libnetwork - - msg_normal "Preparing docker-cli import path\n" - cd $wrksrc/docker-ce-$version - rm -f $wrksrc/gopath/src/github.com/docker/cli - ln -s "$PWD/components/cli" $wrksrc/gopath/src/github.com/docker/cli - rm -f $wrksrc/gopath/src/github.com/docker/docker - ln -s "$PWD/components/engine" $wrksrc/gopath/src/github.com/docker/docker - - BUILDTIME=$(date --utc --rfc-3339 ns) - BUILDTIME=${BUILDTIME/ /T} - vsed -i -e " - /GitCommit/s/\".*\"/\"v$version\"/; - /Version/s/\".*\"/\"$version\"/; - /BuildTime/s/\".*\"/\"$BUILDTIME\"/; - " \ - components/engine/dockerversion/version_lib.go \ - components/cli/cli/version/version.go -} - -do_build() { - export GOPATH="$wrksrc/gopath" - mkdir -p $wrksrc/gopath/bin - - msg_normal "Building docker-init\n" - cd $wrksrc/tini-$_tini_version/build - make tini-static - - msg_normal "Building docker-proxy\n" - go build -buildmode=pie \ - -ldflags="$go_ldflags -linkmode=external" \ - -o $wrksrc/gopath/bin/docker-proxy \ - github.com/docker/libnetwork/cmd/proxy - - msg_normal "Building docker cli\n" - go build -buildmode=pie \ - -ldflags="$go_ldflags" -o $wrksrc/gopath/bin/docker \ - github.com/docker/cli/cmd/docker - - msg_normal "Building docker daemon\n" - go build -buildmode=pie \ - -tags 'libdm_dlsym_deferred_remove seccomp apparmor' \ - -ldflags="$go_ldflags" \ - -o $wrksrc/gopath/bin/dockerd \ - github.com/docker/docker/cmd/dockerd -} - -do_install() { - vbin tini-$_tini_version/build/tini-static docker-init - vlicense tini-$_tini_version/LICENSE docker-init.MIT - vbin gopath/bin/docker-proxy - vbin gopath/bin/docker - vbin gopath/bin/dockerd - cd docker-ce-$version - vcompletion components/cli/contrib/completion/bash/docker bash - vcompletion components/cli/contrib/completion/zsh/_docker zsh - vcompletion components/cli/contrib/completion/fish/docker.fish fish - vinstall components/engine/contrib/syntax/vim/syntax/dockerfile.vim 644 \ - usr/share/vim/vimfiles/syntax/dockerfile.vim - vinstall components/engine/contrib/syntax/vim/ftdetect/dockerfile.vim 644 \ - usr/share/vim/vimfiles/ftdetect/dockerfile.vim - vlicense components/engine/contrib/syntax/vim/LICENSE dockerfile.vim.BSD-2-Clause - vsv docker -} +license="Apache-2.0" +homepage="http://docker.io/" diff --git a/srcpkgs/docker/update b/srcpkgs/docker/update deleted file mode 100644 index 164bab51736..00000000000 --- a/srcpkgs/docker/update +++ /dev/null @@ -1 +0,0 @@ -pattern='href="/docker/docker-ce/releases/tag/v\K[\d\.]+(?=")' From 8ea44c82c8cb7e34563f32909f734599f23f9728 Mon Sep 17 00:00:00 2001 From: endigma Date: Mon, 8 Mar 2021 14:29:33 -0400 Subject: [PATCH 3/6] New package: docker-engine-20.10.5 --- srcpkgs/docker-engine/files/docker/log/run | Bin 0 -> 116 bytes srcpkgs/docker-engine/files/docker/run | 8 +++ srcpkgs/docker-engine/template | 67 +++++++++++++++++++++ srcpkgs/docker-engine/update | 1 + 4 files changed, 76 insertions(+) create mode 100644 srcpkgs/docker-engine/files/docker/log/run create mode 100644 srcpkgs/docker-engine/files/docker/run create mode 100644 srcpkgs/docker-engine/template create mode 100644 srcpkgs/docker-engine/update diff --git a/srcpkgs/docker-engine/files/docker/log/run b/srcpkgs/docker-engine/files/docker/log/run new file mode 100644 index 0000000000000000000000000000000000000000..5c41e85f3a3518c3b3d24513d7e0d0a00d78c93a GIT binary patch literal 116 zcmeZ`c)x!y12Y2y0}BuX*&r^62J%3_0ZfucKy>rT18F{xQJg@m2*iv&AVx?A05{Vb AssI20 literal 0 HcmV?d00001 diff --git a/srcpkgs/docker-engine/files/docker/run b/srcpkgs/docker-engine/files/docker/run new file mode 100644 index 00000000000..ed42f5fa72f --- /dev/null +++ b/srcpkgs/docker-engine/files/docker/run @@ -0,0 +1,8 @@ +#!/bin/sh +[ -r conf ] && . ./conf +modprobe -q loop || exit 1 +mountpoint -q /sys/fs/cgroup/systemd || { + mkdir -p /sys/fs/cgroup/systemd; + mount -t cgroup -o none,name=systemd cgroup /sys/fs/cgroup/systemd; +} +exec chpst -o 1048576 -p 1048576 dockerd $OPTS 2>&1 diff --git a/srcpkgs/docker-engine/template b/srcpkgs/docker-engine/template new file mode 100644 index 00000000000..59d25887222 --- /dev/null +++ b/srcpkgs/docker-engine/template @@ -0,0 +1,67 @@ +# Template file for 'docker-engine' +pkgname=docker-engine +version=20.10.5 +revision=1 + +archs="aarch64* armv[67]l* x86_64* ppc64le*" + +create_wrksrc=yes +build_style=go +go_import_path="github.com/docker/docker" + +hostmakedepends="pkg-config tar" +makedepends="libbtrfs-devel device-mapper-devel libseccomp-devel" +depends="containerd runc iptables xz git" + +short_desc="Pack, ship and run any application as a lightweight container - engine" +maintainer="PWA COLLECTIVE " + +license="Apache-2.0" +homepage="http://www.docker.io" + +system_groups="docker" + +_moby_commit=363e9a88a11be517d9e8c65c998ff56f774eb4dc # https://github.com/moby/moby/commits/v$version +_libnetwork_commit=fa125a3512ee0f6187721c88582bf8c4378bd4d7 + +distfiles=" + https://github.com/moby/moby/archive/v${version}.tar.gz>moby-$version.tar.gz + https://github.com/docker/libnetwork/archive/$_libnetwork_commit.tar.gz>libnetwork-$_libnetwork_commit.tar.gz" + +checksum="bcf651d75e5c80421e8cd3b0d47f3425e01047cf67aef0eda83b68776905a583 + 9ce0fa64b00d9ef86971bdeb01cb24b02e6751c0d159ccb057521a41762750f4" + +_moby_builddir="moby-$version" +_libnetwork_builddir="libnetwork-$_libnetwork_commit" +_buildtags="seccomp" + +export GO111MODULE=off # go1.16 defaults to on + +do_build() { + export AUTO_GOPATH=1 + export DOCKER_GITCOMMIT=$_moby_commit # for moby + export DOCKER_BUILDTAGS=$_buildtags # + export DISABLE_WARN_OUTSIDE_CONTAINER=1 + unset CC + + mkdir -p "$wrksrc/$_moby_builddir" + mkdir -p "$wrksrc/$_libnetwork_builddir" + + msg_normal "Building docker-proxy (libnetwork)\n" + cd "$wrksrc/$_libnetwork_builddir" + mkdir -p src/github.com/docker/ + ln -sf "$wrksrc/$_libnetwork_builddir" src/github.com/docker/libnetwork + GOPATH="$PWD" go build -v -ldflags="-linkmode=external" -o docker-proxy github.com/docker/libnetwork/cmd/proxy + + msg_normal "Building docker-engine (moby)\n" + cd "$wrksrc/$_moby_builddir" + mkdir -p src/github.com/docker/ + ln -sf "$wrksrc/$_moby_builddir" src/github.com/docker/docker + GOPATH="$PWD" VERSION="$version" hack/make.sh dynbinary +} + +do_install() { + vbin $_libnetwork_builddir/docker-proxy + vbin $_moby_builddir/bundles/dynbinary-daemon/dockerd + vsv docker +} diff --git a/srcpkgs/docker-engine/update b/srcpkgs/docker-engine/update new file mode 100644 index 00000000000..6e08485891e --- /dev/null +++ b/srcpkgs/docker-engine/update @@ -0,0 +1 @@ +pattern='href="/docker/engine/releases/tag/v\K[\d\.]+(?=")' From a92b6a60e46d97b10a469e23693a4a2ba70d090c Mon Sep 17 00:00:00 2001 From: endigma Date: Mon, 8 Mar 2021 15:07:59 -0400 Subject: [PATCH 4/6] Removed 'unset CC' --- srcpkgs/docker-cli/template | 1 - srcpkgs/docker-engine/template | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/srcpkgs/docker-cli/template b/srcpkgs/docker-cli/template index 99a42a47fb9..b66e6a4c966 100644 --- a/srcpkgs/docker-cli/template +++ b/srcpkgs/docker-cli/template @@ -33,7 +33,6 @@ do_build() { export AUTO_GOPATH=1 export GITCOMMIT=$_cli_commit export DISABLE_WARN_OUTSIDE_CONTAINER=1 - unset CC mkdir -p "$wrksrc/_cli_builddir" diff --git a/srcpkgs/docker-engine/template b/srcpkgs/docker-engine/template index 59d25887222..b4d1d4c4274 100644 --- a/srcpkgs/docker-engine/template +++ b/srcpkgs/docker-engine/template @@ -42,8 +42,7 @@ do_build() { export DOCKER_GITCOMMIT=$_moby_commit # for moby export DOCKER_BUILDTAGS=$_buildtags # export DISABLE_WARN_OUTSIDE_CONTAINER=1 - unset CC - + mkdir -p "$wrksrc/$_moby_builddir" mkdir -p "$wrksrc/$_libnetwork_builddir" From a8230058a15f75c17efbaa76aa8bdcb4d695a64f Mon Sep 17 00:00:00 2001 From: endigma Date: Mon, 8 Mar 2021 15:10:30 -0400 Subject: [PATCH 5/6] "Trailing Whitespace" --- srcpkgs/docker-engine/template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srcpkgs/docker-engine/template b/srcpkgs/docker-engine/template index b4d1d4c4274..4698027dbdc 100644 --- a/srcpkgs/docker-engine/template +++ b/srcpkgs/docker-engine/template @@ -42,7 +42,7 @@ do_build() { export DOCKER_GITCOMMIT=$_moby_commit # for moby export DOCKER_BUILDTAGS=$_buildtags # export DISABLE_WARN_OUTSIDE_CONTAINER=1 - + mkdir -p "$wrksrc/$_moby_builddir" mkdir -p "$wrksrc/$_libnetwork_builddir" From 71ce229d080bdca3202aa20a5a8e3a9c107680a2 Mon Sep 17 00:00:00 2001 From: endigma Date: Mon, 8 Mar 2021 15:12:04 -0400 Subject: [PATCH 6/6] Remove unneeded newlines --- srcpkgs/docker-cli/template | 6 ------ srcpkgs/docker-engine/template | 6 ------ srcpkgs/docker/template | 4 ---- 3 files changed, 16 deletions(-) diff --git a/srcpkgs/docker-cli/template b/srcpkgs/docker-cli/template index b66e6a4c966..444c51925bd 100644 --- a/srcpkgs/docker-cli/template +++ b/srcpkgs/docker-cli/template @@ -2,22 +2,16 @@ pkgname=docker-cli version=20.10.5 revision=1 - archs="aarch64* armv[67]l* x86_64* ppc64le*" - create_wrksrc=yes build_style=go go_import_path="github.com/docker/cli" - hostmakedepends="pkg-config tar" depends="containerd runc iptables xz git" - short_desc="Pack, ship and run any application as a lightweight container - cli" maintainer="PWA COLLECTIVE " - license="Apache-2.0" homepage="http://www.docker.io" - system_groups="docker" distfiles="https://github.com/docker/cli/archive/v${version}.tar.gz>cli-$version.tar.gz" diff --git a/srcpkgs/docker-engine/template b/srcpkgs/docker-engine/template index 4698027dbdc..0a72a884f5e 100644 --- a/srcpkgs/docker-engine/template +++ b/srcpkgs/docker-engine/template @@ -2,23 +2,17 @@ pkgname=docker-engine version=20.10.5 revision=1 - archs="aarch64* armv[67]l* x86_64* ppc64le*" - create_wrksrc=yes build_style=go go_import_path="github.com/docker/docker" - hostmakedepends="pkg-config tar" makedepends="libbtrfs-devel device-mapper-devel libseccomp-devel" depends="containerd runc iptables xz git" - short_desc="Pack, ship and run any application as a lightweight container - engine" maintainer="PWA COLLECTIVE " - license="Apache-2.0" homepage="http://www.docker.io" - system_groups="docker" _moby_commit=363e9a88a11be517d9e8c65c998ff56f774eb4dc # https://github.com/moby/moby/commits/v$version diff --git a/srcpkgs/docker/template b/srcpkgs/docker/template index 642bc1ecd71..67aa113493f 100644 --- a/srcpkgs/docker/template +++ b/srcpkgs/docker/template @@ -2,13 +2,9 @@ pkgname=docker version=20.10.5 revision=1 - build_style=meta - depends="docker-engine docker-cli" - short_desc="Docker meta-package including the engine and cli tool" maintainer="PWA COLLECTIVE " - license="Apache-2.0" homepage="http://docker.io/"