[arch-commits] Commit in vhba-module/repos (3 files)

Jan Steffens heftig at gemini.archlinux.org
Sun Jan 16 12:15:30 UTC 2022


    Date: Sunday, January 16, 2022 @ 12:15:30
  Author: heftig
Revision: 1106223

archrelease: copy trunk to community-testing-x86_64

Added:
  vhba-module/repos/community-testing-x86_64/
  vhba-module/repos/community-testing-x86_64/PKGBUILD
    (from rev 1106220, vhba-module/trunk/PKGBUILD)
  vhba-module/repos/community-testing-x86_64/dkms.conf
    (from rev 1106220, vhba-module/trunk/dkms.conf)

-----------+
 PKGBUILD  |   49 +++++++++++++++++++++++++++++++++++++++++++++++++
 dkms.conf |    9 +++++++++
 2 files changed, 58 insertions(+)

Copied: vhba-module/repos/community-testing-x86_64/PKGBUILD (from rev 1106220, vhba-module/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD	                        (rev 0)
+++ community-testing-x86_64/PKGBUILD	2022-01-16 12:15:30 UTC (rev 1106223)
@@ -0,0 +1,49 @@
+# Maintainer: Jan Alexander Steffens (heftig) <heftig at archlinux.org>
+# Contributor: Ray Rashif <schiv at archlinux.org>
+# Contributor: Mateusz Herych <heniekk at gmail.com>
+# Contributor: Charles Lindsay <charles at chaoslizard.org>
+
+pkgbase=vhba-module
+pkgname=(vhba-module vhba-module-dkms)
+pkgver=20211218
+pkgrel=6
+pkgdesc="Kernel module that emulates SCSI devices"
+url="https://cdemu.sourceforge.io/"
+arch=(x86_64)
+license=(GPL)
+makedepends=('linux-headers')
+source=("https://downloads.sourceforge.net/cdemu/$pkgbase-$pkgver.tar.xz"
+        dkms.conf)
+sha256sums=('72c5a8c1c452805e4cef8cafefcecc2d25ce197ae4c67383082802e5adcd77b6'
+            '8cab0ebb4fee72069d63616b0983f105b98d1261e72e9bef5509a6e60bc382a7')
+
+prepare() {
+  cd $pkgbase-$pkgver
+}
+
+build() {
+  cd $pkgbase-$pkgver
+  make KERNELRELEASE="$(</usr/src/linux/version)"
+}
+
+package_vhba-module() {
+  depends=(linux)
+  provides=(VHBA-MODULE)
+
+  local extradir="/usr/lib/modules/$(</usr/src/linux/version)/extramodules"
+  install -Dt "$pkgdir$extradir" -m644 $pkgbase-$pkgver/*.ko
+
+  find "$pkgdir" -name '*.ko' -exec strip --strip-debug {} +
+  find "$pkgdir" -name '*.ko' -exec xz {} +
+}
+
+package_vhba-module-dkms() {
+  depends=(dkms)
+  provides=(VHBA-MODULE)
+  conflicts=(vhba-module)
+
+  install -Dt "$pkgdir/usr/src/$pkgbase-$pkgver" -m644 \
+    dkms.conf $pkgbase-$pkgver/{Makefile,vhba.c}
+}
+
+# vim:set ts=2 sw=2 et:

Copied: vhba-module/repos/community-testing-x86_64/dkms.conf (from rev 1106220, vhba-module/trunk/dkms.conf)
===================================================================
--- community-testing-x86_64/dkms.conf	                        (rev 0)
+++ community-testing-x86_64/dkms.conf	2022-01-16 12:15:30 UTC (rev 1106223)
@@ -0,0 +1,9 @@
+PACKAGE_NAME="vhba-module"
+PACKAGE_VERSION="#MODULE_VERSION#"
+AUTOINSTALL="yes"
+
+MAKE[0]="make KERNELRELEASE=$kernelver"
+CLEAN="make clean"
+
+BUILT_MODULE_NAME[0]="vhba"
+DEST_MODULE_LOCATION[0]="/kernel/drivers/scsi"



More information about the arch-commits mailing list