Package Details: nomad-bin 0.12.5-1

Git Clone URL: https://aur.archlinux.org/nomad-bin.git (read-only, click to copy)
Package Base: nomad-bin
Description: A distributed, highly available, datacenter-aware scheduler
Upstream URL: https://nomadproject.io
Keywords: cluster docker hashicorp nomad scheduler
Licenses: MPL2
Conflicts: nomad
Provides: nomad
Submitter: afronski
Maintainer: ragouel
Last Packager: ragouel
Votes: 5
Popularity: 0.028567
First Submitted: 2015-11-07 13:41
Last Updated: 2020-10-20 23:43

Dependencies (5)

Required by (0)

Sources (8)

Latest Comments

gavinbeatty commented on 2020-09-16 18:52

aarch64 has the armv7h sha256sum and vice-versa.

I'd recommend against setting the zip file to be the same for each source architecture, so that you can use updpkgsums from pacman-contrib (and then spot check those against official sha256sums).

This patch does that (but .SRCINFO needs regen). The reordering of some variables is an artifact of updpkgsums but it should not reorder again in the future.

diff --git a/PKGBUILD b/PKGBUILD
index d37f764..60d8f89 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -17,22 +17,22 @@ provides=('nomad')
 conflicts=('nomad')
 depends=('glibc')
 backup=(etc/nomad/{server,client}.conf)
-source_x86_64=("${pkgname}-${pkgver}.zip::https://releases.hashicorp.com/nomad/${pkgver}/nomad_${pkgver}_linux_amd64.zip")
-source_i686=("${pkgname}-${pkgver}.zip::https://releases.hashicorp.com/nomad/${pkgver}/nomad_${pkgver}_linux_386.zip")
-source_armv7h=("${pkgname}-${pkgver}.zip::https://releases.hashicorp.com/nomad/${pkgver}/nomad_${pkgver}_linux_arm.zip")
-source_aarch64=("${pkgname}-${pkgver}.zip::https://releases.hashicorp.com/nomad/${pkgver}/nomad_${pkgver}_linux_arm64.zip")
+source_x86_64=("https://releases.hashicorp.com/nomad/${pkgver}/nomad_${pkgver}_linux_amd64.zip")
+source_i686=("https://releases.hashicorp.com/nomad/${pkgver}/nomad_${pkgver}_linux_386.zip")
+source_armv7h=("https://releases.hashicorp.com/nomad/${pkgver}/nomad_${pkgver}_linux_arm.zip")
+source_aarch64=("https://releases.hashicorp.com/nomad/${pkgver}/nomad_${pkgver}_linux_arm64.zip")
 source=('nomad-server.service'
   |  ¦  'nomad-client.hcl'
   |  ¦  'nomad-client.service'
   |  ¦  'nomad-server.hcl')
-sha256sums_x86_64=('926e19b6d9ff54729f9b156eb1839cd7bcba56956617d6b00600b8ce90a4d970')
-sha256sums_i686=('f3019b6a6f84c3cdfe2c93f2d84cf8926f556701ed98e476ea44a6166215399d')
-sha256sums_armv7h=('0bad6b0b1569a732ff05045aa3d582f664396abd29565a7467fc6360d0fd0e0e')
-sha256sums_aarch64=('68ebb37e6c5a8c41e33d7bb16e9d83bf21d01c9ea2d4c9e07279154e8ee2741f')
 sha256sums=('85b6938ba13b450f8b7b9ca281178eea57a9409948b9e70b69d6a66a4dbdaa7b'
   |  ¦  ┆  ┊'c3650a0f88cb6c511731e26f25dddfe531de3cb833fa1780ec68273faef97c97'
   |  ¦  ┆  ┊'1ddf845cfbb2beff7162bd7299705338cf1611fc9f7dfe6a093e4c9cce43e0d2'
   |  ¦  ┆  ┊'428c929e205e6ed4da1668534f413fb7e9484ab88c26f8f866d49f8f6ae207e8')
+sha256sums_x86_64=('926e19b6d9ff54729f9b156eb1839cd7bcba56956617d6b00600b8ce90a4d970')
+sha256sums_i686=('f3019b6a6f84c3cdfe2c93f2d84cf8926f556701ed98e476ea44a6166215399d')
+sha256sums_armv7h=('68ebb37e6c5a8c41e33d7bb16e9d83bf21d01c9ea2d4c9e07279154e8ee2741f')
+sha256sums_aarch64=('0bad6b0b1569a732ff05045aa3d582f664396abd29565a7467fc6360d0fd0e0e')

 package() {
   install -Dm0755 nomad "${pkgdir}/usr/bin/nomad"

ragouel commented on 2020-06-12 16:02

gavinbeatty, done.

gavinbeatty commented on 2020-06-11 03:05

Add support for other architectures (I'm using armv7h and aarch64). SHA256 values taken from https://releases.hashicorp.com/nomad/0.11.3/nomad_0.11.3_SHA256SUMS

diff --git a/PKGBUILD b/PKGBUILD
index 72beb29..2fd4629 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -6,7 +6,7 @@ pkgname=nomad-bin
 pkgver=0.11.3
 pkgrel=1
 pkgdesc='A distributed, highly available, datacenter-aware scheduler'
-arch=('x86_64')
+arch=('x86_64' 'i686' 'armv7h' 'aarch64')
 url="https://nomadproject.io"
 license=('MPL2')
 optdepends=('docker: Enables docker driver'
@@ -17,13 +17,19 @@ provides=('nomad')
 conflicts=('nomad')
 depends=('glibc')
 backup=(etc/nomad/{server,client}.conf)
-source=("${pkgname}-${pkgver}.zip::https://releases.hashicorp.com/nomad/${pkgver}/nomad_${pkgver}_linux_amd64.zip"
-        'nomad-server.service'
+source_x86_64=("${pkgname}-${pkgver}.zip::https://releases.hashicorp.com/nomad/${pkgver}/nomad_${pkgver}_linux_amd64.zip")
+source_i686=("${pkgname}-${pkgver}.zip::https://releases.hashicorp.com/nomad/${pkgver}/nomad_${pkgver}_linux_386.zip")
+source_armv7h=("${pkgname}-${pkgver}.zip::https://releases.hashicorp.com/nomad/${pkgver}/nomad_${pkgver}_linux_arm.zip")
+source_aarch64=("${pkgname}-${pkgver}.zip::https://releases.hashicorp.com/nomad/${pkgver}/nomad_${pkgver}_linux_arm64.zip")
+source=('nomad-server.service'
         'nomad-client.hcl'
         'nomad-client.service'
         'nomad-server.hcl')
-sha256sums=('f6a38099e27e8ff1dd7e1fe7215c954ebe4986d05ed6320739186ff3502bb78a'
-          '85b6938ba13b450f8b7b9ca281178eea57a9409948b9e70b69d6a66a4dbdaa7b'
+sha256sums_x64_64=('f6a38099e27e8ff1dd7e1fe7215c954ebe4986d05ed6320739186ff3502bb78a')
+sha256sums_i686=('01f336d97aaec463fda0a25af6dd73292f590a85a672725cf9f582697c370815')
+sha256sums_armv7h=('a1d89b4b3d756080d8e2980bd5722ba72d19100c330cfcf7a5378dcddf0863ba')
+sha256sums_aarch64=('2bbb92183188683fd8b3deaa9048d533094c8e4d2cd5a15e244a32de2b661b52')
+sha256sums=('85b6938ba13b450f8b7b9ca281178eea57a9409948b9e70b69d6a66a4dbdaa7b'
             'c3650a0f88cb6c511731e26f25dddfe531de3cb833fa1780ec68273faef97c97'
             '1ddf845cfbb2beff7162bd7299705338cf1611fc9f7dfe6a093e4c9cce43e0d2'
             '428c929e205e6ed4da1668534f413fb7e9484ab88c26f8f866d49f8f6ae207e8')

jktr commented on 2018-07-13 13:02

@Svenstaro: fixed

Svenstaro commented on 2018-07-12 17:20

This should conflict with nomad.