[arch-commits] Commit in nvme-cli/repos/community-x86_64 (3 files)

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


    Date: Tuesday, July 7, 2020 @ 13:19:24
  Author: foxboron
Revision: 658410

archrelease: copy trunk to community-x86_64

Added:
  nvme-cli/repos/community-x86_64/PKGBUILD
    (from rev 658409, nvme-cli/trunk/PKGBUILD)
  nvme-cli/repos/community-x86_64/nvme-cli.install
    (from rev 658409, nvme-cli/trunk/nvme-cli.install)
Deleted:
  nvme-cli/repos/community-x86_64/PKGBUILD

------------------+
 PKGBUILD         |   72 ++++++++++++++++++++++++++++-------------------------
 nvme-cli.install |    8 +++++
 2 files changed, 47 insertions(+), 33 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-07 13:19:15 UTC (rev 658409)
+++ PKGBUILD	2020-07-07 13:19:24 UTC (rev 658410)
@@ -1,33 +0,0 @@
-# Maintainer: Morten Linderud <foxboron at archlinux.org>
-# Contributor: Devin Cofer <ranguvar[at]ranguvar[dot]io>
-# Contributor: DriverX
-# Contributor: Nicolas Quiénot <niQo @ aur>
-# Contributor: Martin Schrodt <martin at schrodt.org>
-
-pkgname=nvme-cli
-pkgver=1.12
-pkgrel=1
-pkgdesc="NVM-Express user space tooling for Linux"
-arch=('i686' 'x86_64')
-url="https://github.com/linux-nvme/nvme-cli"
-license=('GPL')
-makedepends=('libsystemd')
-# checkdepends=('python2-nose' 'python-nose')
-source=("$pkgname-$pkgver.tar.gz::https://github.com/linux-nvme/${pkgname}/archive/v${pkgver}.tar.gz")
-sha256sums=('a75270e65a4a7a6add48f748ba216d8f68d78f90f8cb77e88e9753b74d527991')
-
-build() {
-	cd "${pkgname}-${pkgver}"
-	make PREFIX=/usr
-}
-
-# Tests require a working NVME disk.
-# check() {
-# 	cd "${pkgname}-${pkgver}"
-# 	make test
-# }
-
-package() {
-	cd "${pkgname}-${pkgver}"
-	make DESTDIR="$pkgdir" UDEVDIR=/usr/lib/udev PREFIX=/usr SBINDIR=/usr/bin install
-}

Copied: nvme-cli/repos/community-x86_64/PKGBUILD (from rev 658409, nvme-cli/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-07-07 13:19:24 UTC (rev 658410)
@@ -0,0 +1,39 @@
+# Maintainer: Morten Linderud <foxboron at archlinux.org>
+# Contributor: Devin Cofer <ranguvar[at]ranguvar[dot]io>
+# Contributor: DriverX
+# Contributor: Nicolas Quiénot <niQo @ aur>
+# Contributor: Martin Schrodt <martin at schrodt.org>
+
+pkgname=nvme-cli
+pkgver=1.12
+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')
+
+build() {
+	cd "${pkgname}-${pkgver}"
+	make PREFIX=/usr
+}
+
+# Tests require a working NVME disk.
+# check() {
+# 	cd "${pkgname}-${pkgver}"
+# 	make test
+# }
+
+package() {
+	cd "${pkgname}-${pkgver}"
+	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}
+}

Copied: nvme-cli/repos/community-x86_64/nvme-cli.install (from rev 658409, nvme-cli/trunk/nvme-cli.install)
===================================================================
--- nvme-cli.install	                        (rev 0)
+++ nvme-cli.install	2020-07-07 13:19:24 UTC (rev 658410)
@@ -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