[arch-commits] Commit in vhba-module/trunk (PKGBUILD vhba-module.install)

Jan Steffens heftig at archlinux.org
Sat Nov 18 23:32:32 UTC 2017


    Date: Saturday, November 18, 2017 @ 23:32:31
  Author: heftig
Revision: 267373

20170610-19

Modified:
  vhba-module/trunk/PKGBUILD
Deleted:
  vhba-module/trunk/vhba-module.install

---------------------+
 PKGBUILD            |   14 ++++++++------
 vhba-module.install |   15 ---------------
 2 files changed, 8 insertions(+), 21 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2017-11-18 23:23:42 UTC (rev 267372)
+++ PKGBUILD	2017-11-18 23:32:31 UTC (rev 267373)
@@ -6,13 +6,14 @@
 pkgbase=vhba-module
 pkgname=(vhba-module vhba-module-dkms)
 pkgver=20170610
-_extramodules=extramodules-4.13-ARCH
-pkgrel=18
+pkgrel=19
 pkgdesc="Kernel module that emulates SCSI devices"
 url="http://cdemu.sourceforge.net/"
 arch=(x86_64)
 license=(GPL)
-makedepends=('linux-headers>=4.13' 'linux-headers<4.14' linux)
+depends=('linux>=4.14' 'linux<4.15')
+makedepends=('linux-headers>=4.14' 'linux-headers<4.15')
+_extramodules=extramodules-4.14-ARCH
 source=("https://downloads.sourceforge.net/cdemu/$pkgbase-$pkgver.tar.bz2"
         60-vhba.rules dkms.conf)
 sha256sums=('7970c93f989d9c4f2629371bf5ee7a76f95e4c12342c3320ddc528d0df02d9ec'
@@ -29,12 +30,12 @@
 }
 
 package_vhba-module() {
-  depends=('linux>=4.13' 'linux<4.14')
-  install=vhba-module.install
-
   cd $pkgbase-$pkgver
   install -Dt "$pkgdir/usr/lib/modules/$_extramodules" -m644 vhba.ko
   install -Dt "$pkgdir/usr/lib/udev/rules.d" -m644 ../60-vhba.rules
+  echo 'g cdemu - -' | install -Dm644 /dev/stdin "$pkgdir/usr/lib/sysusers.d/cdemu.conf"
+
+  find "$pkgdir" -name '*.ko' -exec gzip -n {} +
 }
 
 package_vhba-module-dkms() {
@@ -45,6 +46,7 @@
   cd $pkgbase-$pkgver
   install -Dt "$pkgdir/usr/src/$pkgbase-$pkgver" -m644 Makefile vhba.c ../dkms.conf
   install -Dt "$pkgdir/usr/lib/udev/rules.d" -m644 ../60-vhba.rules
+  echo 'g cdemu - -' | install -Dm644 /dev/stdin "$pkgdir/usr/lib/sysusers.d/cdemu.conf"
 }
 
 # vim:set ts=2 sw=2 et:

Deleted: vhba-module.install
===================================================================
--- vhba-module.install	2017-11-18 23:23:42 UTC (rev 267372)
+++ vhba-module.install	2017-11-18 23:32:31 UTC (rev 267373)
@@ -1,15 +0,0 @@
-post_install() {
-  getent group cdemu &>/dev/null || groupadd -r cdemu
-  post_upgrade $1 0
-}
-
-post_upgrade() {
-  EXTRAMODULES=extramodules-4.13-ARCH
-  depmod $(cat /usr/lib/modules/$EXTRAMODULES/version)
-}
-
-post_remove() {
-  post_upgrade 0 $1
-}
-
-# vim:set ts=2 sw=2 et:


More information about the arch-commits mailing list