summaryrefslogtreecommitdiff
path: root/docker/Pkgfile
blob: d381c9c40f05224267455ef38882b7d8302b9750 (plain)
    1 # Description: An open platform for distributed applications for developers and sysadmins
    2 # URL: https://www.docker.com/
    3 # Maintainer: Matt Housh, jaeger at crux dot ninja
    4 # Depends on: containerd runc btrfs-progs cgroupfs-mount
    5 
    6 name=docker
    7 version=17.05.0-ce
    8 release=1
    9 source=(http://jaeger.morpheus.net/linux/crux/files/$name-$version.tar.gz \
   10     http://jaeger.morpheus.net/linux/crux/files/$name-man-pages-$version.tar.xz \
   11     http://jaeger.morpheus.net/linux/crux/files/libnetwork-7b2b1fe.tar.xz \
   12     $name.rc $name.conf)
   13 
   14 build() {
   15     export AUTO_GOPATH=1
   16     export DOCKER_GITCOMMIT=89658be
   17     export DOCKER_BUILDTAGS='seccomp'
   18     cd moby-$version
   19     hack/make.sh dynbinary
   20 
   21     install -D -m 0755 bundles/$version/dynbinary-client/$name-$version \
   22         $PKG/usr/bin/$name
   23     install -D -m 0755 bundles/$version/dynbinary-daemon/dockerd-$version \
   24         $PKG/usr/bin/dockerd
   25 
   26     (cd ..; \
   27         GOROOT=/usr/lib/go GOPATH=${PKGMK_WORK_DIR} go build -o $PKG/usr/bin/$name-proxy \
   28             libnetwork-7b2b1fe/cmd/proxy)
   29 
   30     for M in 1 5 8; do
   31         install -d -m 0755 $PKG/usr/share/man/man${M}
   32         install -m 0644 $SRC/man${M}/* $PKG/usr/share/man/man${M}/
   33     done
   34 
   35     install -D -m 0755 $SRC/$name.rc \
   36         $PKG/etc/rc.d/$name
   37     install -D -m 0644 $SRC/$name.conf \
   38         $PKG/etc/$name.conf
   39 
   40     ln -s containerd $PKG/usr/bin/docker-containerd
   41     ln -s containerd-shim $PKG/usr/bin/docker-containerd-shim
   42     ln -s ctr $PKG/usr/bin/docker-containerd-ctr
   43     ln -s runc $PKG/usr/bin/docker-runc
   44 
   45     install -D -m 0755 contrib/check-config.sh \
   46         $PKG/usr/share/$name/check-config.sh
   47     install -D -m 0644 contrib/udev/80-$name.rules \
   48         $PKG/etc/udev/rules.d/80-$name.rules
   49     install -D -m 0644 contrib/completion/bash/docker \
   50         $PKG/etc/bash_completion.d/docker
   51 }

Generated by cgit