mirror of
https://gitlab.alpinelinux.org/alpine/aports.git
synced 2025-08-05 13:27:09 +02:00
112 lines
3.2 KiB
Plaintext
112 lines
3.2 KiB
Plaintext
# Contributor: Matthias Neugebauer <mtneug@mailbox.org>
|
|
# Contributor: omni <omni+alpine@hack.org>
|
|
# Contributor: Dermot Bradley <dermot_bradley@yahoo.com>
|
|
# Maintainer: Dermot Bradley <dermot_bradley@yahoo.com>
|
|
pkgname=nomad
|
|
#
|
|
# Please do NOT do "drive by" upgrades of this package. If only a few
|
|
# days have passed since an upstream release has occurred then it is
|
|
# highly likely that I am *already* preparing an Alpine package upgrade.
|
|
#
|
|
pkgver=1.5.5
|
|
# remember to update _gitcommit to revision of the release
|
|
_gitcommit=3d63bc6
|
|
pkgrel=0
|
|
pkgdesc="easy-to-use, flexible, and performant workload orchestrator"
|
|
url="https://www.nomadproject.io/"
|
|
arch="all !riscv64" # riscv64: boltdb fails to build
|
|
license="MPL-2.0"
|
|
depends="
|
|
cni-plugins
|
|
"
|
|
makedepends="
|
|
bash
|
|
go
|
|
go-bindata-assetfs
|
|
linux-headers
|
|
make
|
|
"
|
|
subpackages="
|
|
$pkgname-openrc
|
|
"
|
|
options="net !check" # cannot produce environment for testing in CI
|
|
source="$pkgname-$pkgver.tar.gz::https://github.com/hashicorp/nomad/archive/v$pkgver.tar.gz
|
|
nomad.initd
|
|
nomad.confd
|
|
server.hcl
|
|
"
|
|
|
|
# secfixes:
|
|
# 1.5.3-r0:
|
|
# - CVE-2023-24534
|
|
# - CVE-2023-1782
|
|
# 1.5.1-r0:
|
|
# - CVE-2023-1296
|
|
# - CVE-2023-1299
|
|
# 1.3.1-r0:
|
|
# - CVE-2022-30324
|
|
# 1.2.6-r0:
|
|
# - CVE-2022-24683
|
|
# - CVE-2022-24684
|
|
# - CVE-2022-24685
|
|
# - CVE-2022-24686
|
|
# - CVE-2021-44716
|
|
# - CVE-2021-44717
|
|
# - CVE-2021-43415
|
|
# - CVE-2021-37218
|
|
# 1.1.1-r0:
|
|
# - CVE-2021-32575
|
|
# 1.0.4-r0:
|
|
# - CVE-2021-3283
|
|
# 0.12.7-r0:
|
|
# - CVE-2020-28348
|
|
# - CVE-2020-27195
|
|
# 0.11.1-r0:
|
|
# - CVE-2020-10944
|
|
# 0.10.3-r0:
|
|
# - CVE-2020-7218
|
|
# 0.9.6-r0:
|
|
# - CVE-2019-12741
|
|
# - CVE-2019-15928
|
|
# - CVE-2019-16742
|
|
# 0.9.5-r0:
|
|
# - CVE-2019-14802
|
|
# - CVE-2019-14803
|
|
# 0.9.2-r0:
|
|
# - CVE-2019-12618
|
|
|
|
export GOFLAGS="$GOFLAGS -trimpath -mod=readonly -modcacherw"
|
|
export GIT_COMMIT="$_gitcommit"
|
|
export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
|
|
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
|
|
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
|
|
|
|
build() {
|
|
go build -v -o bin/"$pkgname" \
|
|
-ldflags "-X github.com/hashicorp/nomad/version.GitCommit='$pkgver'" \
|
|
-tags "ui release"
|
|
}
|
|
|
|
check() {
|
|
go test -timeout=15m "./..."
|
|
}
|
|
|
|
package() {
|
|
install -m755 -D "$srcdir"/"$pkgname".initd "$pkgdir"/etc/init.d/"$pkgname"
|
|
install -m644 -D "$srcdir"/"$pkgname".confd "$pkgdir"/etc/conf.d/"$pkgname"
|
|
|
|
install -m755 -d "$pkgdir"/etc/cni
|
|
install -m755 -d "$pkgdir"/usr/lib/"$pkgname"/plugins
|
|
|
|
install -m755 -o root -g root -D bin/"$pkgname" "$pkgdir"/usr/sbin/"$pkgname"
|
|
install -m640 -o root -g root -D "$srcdir"/server.hcl "$pkgdir"/etc/nomad.d/server.hcl
|
|
install -m750 -o root -g root -d "$pkgdir"/var/lib/"$pkgname"
|
|
}
|
|
|
|
sha512sums="
|
|
884aa1f86a671be1b9a0c662f60da7167bf94ef9a910ee8b6c89fbf925559c3285b7c01cf549e71a8a62833a1df2ae2080c0bf6093d99cbb5ea441eb975a8975 nomad-1.5.5.tar.gz
|
|
3431260365350ffce7b8ad81de9bb6bc3cfd1a8053bcacc780ca48c6878bf7018b7537b4c7fd6b4ead83e8ad1ac08b90e249f007fe88e167936417d495e88482 nomad.confd
|
|
f26a7eb284530e568898820dea7b369319fa54d390330f939ad1d3bde16aaac84b31368d0d552acaa556db9e0d472ed1bde241478322f4afc688046fb58656e2 nomad.initd
|
|
99021ce7250a7f114450a62bae9f37d51f8ccfe935b229a73bed915b6fa87ed55daa0bc63c6b6156ab2842129ffe3c8b686a5dd519a900f9d603bc11230137fa server.hcl
|
|
"
|