docker: add apparmor build_option and enable it for arches that have (#253)
libapparmor available.
This commit is contained in:
parent
6bfe73af81
commit
5755278919
1 changed files with 11 additions and 4 deletions
|
@ -1,13 +1,13 @@
|
|||
# Template file for 'docker'
|
||||
pkgname=docker
|
||||
version=18.05.0
|
||||
revision=2
|
||||
revision=3
|
||||
_subversion='-ce'
|
||||
_version="$version$_subversion"
|
||||
wrksrc="$pkgname$_subversion-$_version"
|
||||
build_wrksrc="components/engine"
|
||||
build_wrksrc=components/engine
|
||||
hostmakedepends="git go pkg-config curl cmake"
|
||||
makedepends="libbtrfs-devel sqlite-devel device-mapper-devel libseccomp-devel libapparmor-devel"
|
||||
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"
|
||||
|
@ -25,8 +25,15 @@ 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 apparmor' DOCKER_GITCOMMIT=v$_version \
|
||||
AUTO_GOPATH=1 DOCKER_BUILDTAGS='seccomp $(vopt_if apparmor apparmor)' DOCKER_GITCOMMIT=v$_version \
|
||||
hack/make.sh dynbinary
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue