diff options
Diffstat (limited to 'libre/vhba-module')
-rw-r--r-- | libre/vhba-module/PKGBUILD | 9 | ||||
-rw-r--r-- | libre/vhba-module/kmod.install | 15 |
2 files changed, 6 insertions, 18 deletions
diff --git a/libre/vhba-module/PKGBUILD b/libre/vhba-module/PKGBUILD index 82c8038d6..4efe21005 100644 --- a/libre/vhba-module/PKGBUILD +++ b/libre/vhba-module/PKGBUILD @@ -9,8 +9,8 @@ _kernelname= if [[ ${_kernelname} == "" ]]; then - _basekernel=4.13 - _archrel=16 + _basekernel=4.14 + _archrel=31 _parabolarel=1 elif [[ ${_kernelname} == -lts ]]; then _basekernel=4.9 @@ -52,13 +52,15 @@ _package() { depends=("linux-libre${_kernelname}>=${_basekernel}" "linux-libre${_kernelname}<${_toohigh}") replaces=("${pkgbase}-libre${_kernelname}" "${pkgbase}-parabola${_kernelname}") conflicts=("${pkgbase}-libre${_kernelname}" "${pkgbase}-parabola${_kernelname}") - install='kmod.install' cd "${pkgbase}-${pkgver}" # Actually install 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 {} + } if [[ ${_kernelname} == "" ]]; then @@ -70,6 +72,7 @@ if [[ ${_kernelname} == "" ]]; then 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" } pkgname=("${pkgbase}${_kernelname}" "${pkgbase}${_kernelname}-dkms") diff --git a/libre/vhba-module/kmod.install b/libre/vhba-module/kmod.install deleted file mode 100644 index 2c7652580..000000000 --- a/libre/vhba-module/kmod.install +++ /dev/null @@ -1,15 +0,0 @@ - -post_install() { - post_upgrade $1 0 - getent group cdemu &>/dev/null || groupadd -r cdemu -} - -post_upgrade() { - _EXTRAMODULES=extramodules-4.11 - depmod "$(cat /usr/lib/modules/$_EXTRAMODULES/version)" >/dev/null 2>&1 -} - -post_remove() { - post_upgrade $1 0 - groupdel cdemu -} |