[arch-commits] Commit in vhba-module/repos (3 files)
Jan Steffens
heftig at gemini.archlinux.org
Thu Nov 25 23:01:26 UTC 2021
Date: Thursday, November 25, 2021 @ 23:01:26
Author: heftig
Revision: 1054822
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 1054819, vhba-module/trunk/PKGBUILD)
vhba-module/repos/community-testing-x86_64/dkms.conf
(from rev 1054819, 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 1054819, vhba-module/trunk/PKGBUILD)
===================================================================
--- community-testing-x86_64/PKGBUILD (rev 0)
+++ community-testing-x86_64/PKGBUILD 2021-11-25 23:01:26 UTC (rev 1054822)
@@ -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=20211023
+pkgrel=11
+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=('60087baaa928cefa06d5684706fef3d48712acfef92cb32afc507ab19adebf10'
+ '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 1054819, vhba-module/trunk/dkms.conf)
===================================================================
--- community-testing-x86_64/dkms.conf (rev 0)
+++ community-testing-x86_64/dkms.conf 2021-11-25 23:01:26 UTC (rev 1054822)
@@ -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