From 1f159fae406bf411e21ec9da6675a67ae518c992 Mon Sep 17 00:00:00 2001 From: "David J. Allen" Date: Wed, 28 Aug 2024 17:45:45 -0600 Subject: [PATCH 1/5] Added PKGBUILD to install magellan as binary --- PKGBUILD | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 PKGBUILD diff --git a/PKGBUILD b/PKGBUILD new file mode 100644 index 0000000..0af4fce --- /dev/null +++ b/PKGBUILD @@ -0,0 +1,29 @@ +# Maintainer: David J. Allen +pkgname=magellan +pkgver=v0.1.5 +pkgrel=1 +pkgdesc="Redfish-based BMC discovery tool written in Go" +arch=("x86_64") +url="https://github.com/OpenCHAMI/magellan" +license=('MIT') +groups=("openchami") +provides=('magellan') +conflicts=('magellan') +source_x86_64=("${url}/releases/download/v${pkgver}/${pkgname}_Linux_x86_64.tar.gz") +sha256sums_x86_64=('1bb028d592d5389b519362e6aa7021f27443f0b36471e09ee7f47ab5cb6d4d7f') + +# Please refer to the 'USING VCS SOURCES' section of the PKGBUILD man page for +# a description of each element in the source array. + +pkgver() { + cd "$srcdir" || exit + printf "%s" "$(git describe --tags --abbrev=0)" +} + +package() { + cd "$srcdir/" || exit + + # install the binary to /usr/bin + mkdir -p "${pkgdir}/usr/bin" + install -m755 magellan "${pkgdir}/usr/bin/magellan" +} From f8da8ae1c385e12699fab9024aee80df3a7ffcca Mon Sep 17 00:00:00 2001 From: "David J. Allen" Date: Wed, 28 Aug 2024 17:46:02 -0600 Subject: [PATCH 2/5] Update .gitignore --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index fa5476a..a34d429 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,6 @@ magellan emulator/rf-emulator **/*.db dist/* +**.tar.gz +**.tar.zst +**.part From 5806bebce6d289c85ac7ec2d7defc0e910e1fd5c Mon Sep 17 00:00:00 2001 From: "David J. Allen" Date: Wed, 28 Aug 2024 17:55:48 -0600 Subject: [PATCH 3/5] Fixed minor typo --- PKGBUILD | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PKGBUILD b/PKGBUILD index 0af4fce..23e69b7 100644 --- a/PKGBUILD +++ b/PKGBUILD @@ -9,7 +9,7 @@ license=('MIT') groups=("openchami") provides=('magellan') conflicts=('magellan') -source_x86_64=("${url}/releases/download/v${pkgver}/${pkgname}_Linux_x86_64.tar.gz") +source_x86_64=("${url}/releases/download/${pkgver}/${pkgname}_Linux_x86_64.tar.gz") sha256sums_x86_64=('1bb028d592d5389b519362e6aa7021f27443f0b36471e09ee7f47ab5cb6d4d7f') # Please refer to the 'USING VCS SOURCES' section of the PKGBUILD man page for From bc4a9ad5a9b7e951550c21dda98f7637f4fdbef2 Mon Sep 17 00:00:00 2001 From: "David J. Allen" Date: Wed, 28 Aug 2024 18:00:01 -0600 Subject: [PATCH 4/5] Update .gitignore removing dist/ --- .gitignore | 1 - 1 file changed, 1 deletion(-) diff --git a/.gitignore b/.gitignore index a34d429..96c3c6e 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,6 @@ magellan emulator/rf-emulator **/*.db -dist/* **.tar.gz **.tar.zst **.part From 51ed5b308740019509dc5ba5be4d5ffc9ee99843 Mon Sep 17 00:00:00 2001 From: "David J. Allen" Date: Wed, 28 Aug 2024 18:02:29 -0600 Subject: [PATCH 5/5] Moved PKGBUILD into dist/archlinux --- PKGBUILD => dist/archlinux/PKGBUILD | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename PKGBUILD => dist/archlinux/PKGBUILD (100%) diff --git a/PKGBUILD b/dist/archlinux/PKGBUILD similarity index 100% rename from PKGBUILD rename to dist/archlinux/PKGBUILD