summaryrefslogtreecommitdiff
path: root/libre/vhba-module
diff options
context:
space:
mode:
authorOmar Vega Ramos <ovruni@gnu.org.pe>2018-01-01 15:42:21 -0500
committerOmar Vega Ramos <ovruni@gnu.org.pe>2018-01-01 15:42:21 -0500
commitdb981075ece1f63a698d667cabfbbcf7bbf5d234 (patch)
tree152e751a6179b8898651711ba6f911a2aec6ea81 /libre/vhba-module
parentecb943071c70930d377490723fbfe5b12ca37e8e (diff)
downloadabslibre-db981075ece1f63a698d667cabfbbcf7bbf5d234.tar.gz
abslibre-db981075ece1f63a698d667cabfbbcf7bbf5d234.tar.bz2
abslibre-db981075ece1f63a698d667cabfbbcf7bbf5d234.zip
rebuild module packages against linux-libre-4.14.8_gnu-1
Diffstat (limited to 'libre/vhba-module')
-rw-r--r--libre/vhba-module/PKGBUILD9
-rw-r--r--libre/vhba-module/kmod.install15
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
-}