5755278919
libapparmor available.
54 lines
1.8 KiB
Bash
54 lines
1.8 KiB
Bash
# Template file for 'docker'
|
|
pkgname=docker
|
|
version=18.05.0
|
|
revision=3
|
|
_subversion='-ce'
|
|
_version="$version$_subversion"
|
|
wrksrc="$pkgname$_subversion-$_version"
|
|
build_wrksrc=components/engine
|
|
hostmakedepends="git go pkg-config curl cmake"
|
|
makedepends="libbtrfs-devel sqlite-devel device-mapper-devel libseccomp-devel $(vopt_if apparmor libapparmor-devel)"
|
|
short_desc="Pack, ship and run any application as a lightweight container"
|
|
maintainer="Andrea Brancaleoni <abc@pompel.me>"
|
|
license="Apache-2.0"
|
|
homepage="http://www.docker.io"
|
|
distfiles="https://github.com/docker/docker-ce/archive/v$_version.tar.gz"
|
|
checksum=cc29408b382774b9f5967ee33851e97bcb7463aa7358d60004f28b836a70ba75
|
|
|
|
# These are required at run-time.
|
|
depends="iptables xz git"
|
|
nopie=yes
|
|
nostrip=yes
|
|
nocross=yes
|
|
only_for_archs="x86_64 x86_64-musl"
|
|
system_groups="docker"
|
|
|
|
_docker_components="runc containerd tini proxy dockercli"
|
|
|
|
build_options="apparmor"
|
|
desc_option_apparmor="apparmor linux kernel security module support"
|
|
case "$XBPS_TARGET_MACHINE" in
|
|
*-musl) ;;
|
|
*) build_options_default="apparmor"
|
|
esac
|
|
|
|
do_build() {
|
|
AUTO_GOPATH=1 DOCKER_BUILDTAGS='seccomp $(vopt_if apparmor apparmor)' DOCKER_GITCOMMIT=v$_version \
|
|
hack/make.sh dynbinary
|
|
}
|
|
|
|
pre_build() {
|
|
vmkdir usr/bin
|
|
sed -i "s|/usr/local|$DESTDIR/usr|g" hack/dockerfile/install/install.sh
|
|
for COMPONENT in $_docker_components; do
|
|
AUTO_GOPATH=1 LDFLAGS='' DOCKER_BUILDTAGS='seccomp apparmor' DOCKER_GITCOMMIT=v$_version \
|
|
hack/dockerfile/install/install.sh $COMPONENT
|
|
done
|
|
}
|
|
|
|
do_install() {
|
|
vbin ${wrksrc}/components/engine/bundles/dynbinary-daemon/dockerd dockerd
|
|
vinstall ${wrksrc}/components/cli/contrib/completion/bash/docker 644 usr/share/bash-completion/completions
|
|
vinstall ${wrksrc}/components/cli/contrib/completion/zsh/_docker 644 usr/share/zsh/site-functions
|
|
vsv docker
|
|
}
|