diff options
Diffstat (limited to 'community/vhba-module')
-rw-r--r-- | community/vhba-module/PKGBUILD | 10 | ||||
-rw-r--r-- | community/vhba-module/vhba-module.install | 17 |
2 files changed, 13 insertions, 14 deletions
diff --git a/community/vhba-module/PKGBUILD b/community/vhba-module/PKGBUILD index 16a65b9b7..8f114c3ff 100644 --- a/community/vhba-module/PKGBUILD +++ b/community/vhba-module/PKGBUILD @@ -1,18 +1,18 @@ -# $Id: PKGBUILD 74112 2012-07-21 11:58:49Z schiv $ +# $Id: PKGBUILD 79181 2012-10-31 07:25:46Z tpowa $ # Maintainer: Ray Rashif <schiv@archlinux.org> # Contributor: Mateusz Herych <heniekk@gmail.com> # Contributor: Charles Lindsay <charles@chaoslizard.org> pkgname=vhba-module pkgver=20120422 -_extramodules=extramodules-3.4-ARCH -pkgrel=4 +_extramodules=extramodules-3.6-ARCH +pkgrel=14 pkgdesc="Kernel module that emulates SCSI devices" arch=('i686' 'x86_64') url="http://cdemu.sourceforge.net/" license=('GPL') -depends=('linux>=3.4' 'linux<3.5') -makedepends=('linux-headers>=3.4') +depends=('linux>=3.6' 'linux<3.7') +makedepends=('linux-headers') options=(!makeflags) install=$pkgname.install source=("http://downloads.sourceforge.net/cdemu/$pkgname-$pkgver.tar.bz2" diff --git a/community/vhba-module/vhba-module.install b/community/vhba-module/vhba-module.install index 8458b2ae7..d6e4d08d7 100644 --- a/community/vhba-module/vhba-module.install +++ b/community/vhba-module/vhba-module.install @@ -1,21 +1,20 @@ -post_upgrade() { - ! grep -q 'cdemu' /etc/group && groupadd cdemu +_updatemod() { echo " > Updating module dependencies..." - EXTRAMODULES='extramodules-3.4-ARCH' + EXTRAMODULES='extramodules-3.6-ARCH' depmod $(cat /usr/lib/modules/$EXTRAMODULES/version) } - post_install() { - echo " > Adding 'cdemu' group" - ! grep -q 'cdemu' /etc/group && groupadd cdemu - echo " > Add 'vhba' to your modules array to autoload it" post_upgrade } +post_upgrade() { + getent group cdemu &>/dev/null || groupadd -r cdemu + _updatemod +} + post_remove() { - post_upgrade - echo "Removing 'cdemu' group" + _updatemod groupdel cdemu } |