[arch-commits] Commit in nvme-cli/trunk (PKGBUILD nvme-cli.install)

Morten Linderud foxboron at archlinux.org
Tue Jul 7 13:19:15 UTC 2020


    Date: Tuesday, July 7, 2020 @ 13:19:15
  Author: foxboron
Revision: 658409

upgpkg: nvme-cli 1.12-2 - repro fixing

Added:
  nvme-cli/trunk/nvme-cli.install
Modified:
  nvme-cli/trunk/PKGBUILD

------------------+
 PKGBUILD         |   10 ++++++++--
 nvme-cli.install |    8 ++++++++
 2 files changed, 16 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-07 13:18:52 UTC (rev 658408)
+++ PKGBUILD	2020-07-07 13:19:15 UTC (rev 658409)
@@ -6,12 +6,14 @@
 
 pkgname=nvme-cli
 pkgver=1.12
-pkgrel=1
+pkgrel=2
 pkgdesc="NVM-Express user space tooling for Linux"
 arch=('i686' 'x86_64')
 url="https://github.com/linux-nvme/nvme-cli"
 license=('GPL')
 makedepends=('libsystemd')
+depends=('util-linux')
+install=nvme-cli.install
 # checkdepends=('python2-nose' 'python-nose')
 source=("$pkgname-$pkgver.tar.gz::https://github.com/linux-nvme/${pkgname}/archive/v${pkgver}.tar.gz")
 sha256sums=('a75270e65a4a7a6add48f748ba216d8f68d78f90f8cb77e88e9753b74d527991')
@@ -29,5 +31,9 @@
 
 package() {
 	cd "${pkgname}-${pkgver}"
-	make DESTDIR="$pkgdir" UDEVDIR=/usr/lib/udev PREFIX=/usr SBINDIR=/usr/bin install
+	make DESTDIR="$pkgdir" UDEVDIR=/usr/lib/udev PREFIX=/usr SBINDIR=/usr/bin install-spec
+
+	# This is done because we don't want the hostnqn and hostid files tracked.
+	# they are supposed to be unique
+	rm $pkgdir/etc/nvme/host{nqn,id}
 }

Added: nvme-cli.install
===================================================================
--- nvme-cli.install	                        (rev 0)
+++ nvme-cli.install	2020-07-07 13:19:15 UTC (rev 658409)
@@ -0,0 +1,8 @@
+post_install(){
+	if [ ! -f /etc/nvme/hostnqn ]; then
+		nvme gen-hostnqn > /etc/nvme/hostnqn
+	fi
+	if [ ! -f /etc/nvme/hostid ]; then
+		uuidgen > /etc/nvme/hostid
+	fi
+}



More information about the arch-commits mailing list