mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2026-01-05 16:52:06 +01:00
76 lines
1.7 KiB
Plaintext
76 lines
1.7 KiB
Plaintext
# Contributor: Oleg Titov <oleg.titov@gmail.com>
|
|
# Maintainer: Oleg Titov <oleg.titov@gmail.com>
|
|
pkgname=apptainer
|
|
pkgver=1.2.4
|
|
pkgrel=1
|
|
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="suid !check"
|
|
depends="fakeroot squashfs-tools"
|
|
makedepends="
|
|
bash
|
|
cni-plugins
|
|
cryptsetup
|
|
go
|
|
libseccomp-dev
|
|
"
|
|
subpackages="
|
|
$pkgname-doc
|
|
$pkgname-suid:_suid
|
|
$pkgname-bash-completion
|
|
"
|
|
source="https://github.com/apptainer/apptainer/releases/download/v$pkgver/apptainer-$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="
|
|
bc2ad5f10f2c8e69b4bc5b997083e2dd5f62913d195eda6213d572c3dbfe03923845882e55e1a60d395ed3019100ce26919323f9523c59ccda51d7f1397bcba3 apptainer-1.2.4.tar.gz
|
|
"
|