mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-06-06 01:44:36 +02:00
75 lines
1.7 KiB
Text
75 lines
1.7 KiB
Text
# Contributor: Oleg Titov <oleg.titov@gmail.com>
|
|
# Maintainer: Oleg Titov <oleg.titov@gmail.com>
|
|
pkgname=apptainer
|
|
pkgver=1.4.1
|
|
pkgrel=0
|
|
pkgdesc="Application containers for Linux"
|
|
url="https://apptainer.org/"
|
|
arch="all"
|
|
license="BSD-3-Clause AND BSD-3-Clause-LBNL"
|
|
# Lots of tests fail due to:
|
|
# - no root privilege
|
|
# - no apptainer configuration at /etc/apptainer/apptainer.conf
|
|
options="net suid !check"
|
|
depends="fakeroot squashfs-tools"
|
|
makedepends="
|
|
bash
|
|
cni-plugins
|
|
cryptsetup
|
|
go
|
|
libseccomp-dev
|
|
"
|
|
subpackages="
|
|
$pkgname-doc
|
|
$pkgname-suid:_suid
|
|
$pkgname-bash-completion
|
|
"
|
|
source="apptainer-$pkgver.tar.gz::https://github.com/apptainer/apptainer/archive/refs/tags/v$pkgver.tar.gz"
|
|
|
|
# secfixes:
|
|
# 1.1.8-r0:
|
|
# - CVE-2023-30549
|
|
# 1.1.6-r0:
|
|
# - CVE-2022-23538
|
|
# 1.1.2-r0:
|
|
# - CVE-2022-39237
|
|
|
|
export GOPATH="$srcdir"
|
|
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
|
|
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
|
|
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
|
|
|
|
prepare() {
|
|
default_prepare
|
|
echo "$pkgver" > "$builddir"/VERSION
|
|
}
|
|
|
|
build() {
|
|
# override git dir so it picks up our version above
|
|
GIT_DIR=. ./mconfig \
|
|
--prefix=/usr \
|
|
--sysconfdir=/etc \
|
|
--mandir=/usr/share/man \
|
|
--localstatedir=/var \
|
|
--without-network \
|
|
--with-suid
|
|
|
|
make -e -C builddir
|
|
}
|
|
|
|
package() {
|
|
make -C builddir DESTDIR="$pkgdir" GOFLAGS="$GOFLAGS" install
|
|
|
|
install -Dm644 -t "$pkgdir"/usr/share/doc/$pkgname README.md
|
|
}
|
|
|
|
_suid() {
|
|
pkgdesc="$pkgdesc (SUID helper binary)"
|
|
depends="$pkgname=$pkgver-r$pkgrel"
|
|
|
|
amove usr/libexec/apptainer/bin/starter-suid
|
|
}
|
|
|
|
sha512sums="
|
|
da4b02033fc701ad0c6587e2724482cf1b9b772e816197b3f2797dba5bc86457c77a895289f67b0ac9a7494995bff6e6521bf89ff4d0f8360bc98da6d1af9f0e apptainer-1.4.1.tar.gz
|
|
"
|