#Packager: George Vlahavas pkgname=docker pkgver=24.0.1 _majorver=`echo $pkgver | cut -d'.' -f 1,2` pkgrel=1gv arch=x86_64 source=("https://download.docker.com/linux/static/stable/${arch}/docker-${pkgver}.tgz" "https://raw.githubusercontent.com/moby/moby/v${pkgver}/contrib/udev/80-docker.rules" "https://raw.githubusercontent.com/docker/cli/v${pkgver}/man/Dockerfile.5.md" "https://raw.githubusercontent.com/docker/cli/v${pkgver}/man/docker-build.1.md" "https://raw.githubusercontent.com/docker/cli/v${pkgver}/man/docker-config-json.5.md" "https://raw.githubusercontent.com/docker/cli/v${pkgver}/man/docker-run.1.md" "https://raw.githubusercontent.com/docker/cli/v${pkgver}/man/docker.1.md" "https://raw.githubusercontent.com/docker/cli/v${pkgver}/man/dockerd.8.md" "docker.default" "docker.logrotate" "rc.docker" "README") docs=("readme" "install" "copying" "changelog" "authors" "news" "todo") url=https://www.docker.com dotnew=('/etc/default/docker' '/etc/logrotate.d/docker') options=('noautodotnew') doinst() { # create docker group if it does not exist grep -q "^docker:" /etc/group || groupadd -r -g 281 docker } slackdesc=\ ( #|-----handy-ruler------------------------------------------------------| "docker (manager for applications in Linux containers)" "Docker is an open-source project to easily create lightweight," "portable, self-sufficient containers from any application. The same" "container that a developer builds and tests on a laptop can run at" "scale, in production, on VMs, bare metal, OpenStack clusters, public" "clouds and more." "To use docker as a limited user, add your user to the 'docker' group:" " # usermod -a -G docker " "This package includes everything that is needed to run docker," "including containerd and runc." ) build() { cd $startdir/src mkdir -p $startdir/pkg/usr/bin cp docker/* $startdir/pkg/usr/bin/ install -D -m 0644 docker.default $startdir/pkg/etc/default/docker install -D -m 0644 docker.logrotate $startdir/pkg/etc/logrotate.d/docker install -D -m 0755 rc.docker $startdir/pkg/etc/rc.d/rc.docker install -D -m 0644 80-docker.rules $startdir/pkg/lib/udev/rules.d/80-docker.rules mkdir -p $startdir/pkg/usr/man/man{1,5,8} pandoc -f markdown -t man Dockerfile.5.md -o $startdir/pkg/usr/man/man5/Dockerfile.5 pandoc -f markdown -t man docker-build.1.md -o $startdir/pkg/usr/man/man1/docker-build.1 pandoc -f markdown -t man docker-config-json.5.md -o $startdir/pkg/usr/man/man5/docker-config-json.5 pandoc -f markdown -t man docker-run.1.md -o $startdir/pkg/usr/man/man1/docker-run.1 pandoc -f markdown -t man docker.1.md -o $startdir/pkg/usr/man/man1/docker.1 pandoc -f markdown -t man dockerd.8.md -o $startdir/pkg/usr/man/man8/docker.8 }