This commit is contained in:
joborun linux 2024-08-26 23:37:54 +03:00
parent 2090a3483b
commit 9003671037
5 changed files with 25 additions and 12 deletions

View file

@ -7,7 +7,7 @@
pkgname=kmod
pkgver=33
pkgrel=02
pkgrel=03
pkgdesc="Linux kernel module management tools and library"
url='https://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git'
depends=('glibc' 'zlib' 'openssl' 'xz')
@ -91,14 +91,12 @@ validpgpkeys=('EAB33C9690013C733916AC839BA2A5A630CBEA53') # Lucas DeMarchi
md5sums=('621c84906429cdf0b8b7f6826f142c8d'
'dd62cbf62bd8f212f51ef8c43bec9a77'
'e179ace75721e92b04b2e145b69dab29'
'b00253ca0d4ebfb2414e4596597bdebd')
'3aae9a88a6b41827d73d2dea4642a58a') # depmod.script
sha256sums=(f5795fe50a747609d70f764244e645cd946074e70a7e51de0f82bd2e4d0612c8 # kmod 33
# e958b88d3d43ae2f73f3753e7e20a8eb07d2fba3a8145576a2a82796b318fbb0 # kmod-33.tar.sign
# 1297d45ba9cabb88edecebdbf4431b7b384bbab976d117d5ef1f44988a04895d # 0001-test-user-path.patch
1a92bfeae870f61ce814577e69d2a147a9c0caf6aed1131243e4179241fcc4a8 # depmod-search.conf
c11c2a0f66ea405493e8617689ca10818dc81dd1dddc19bdb220c8b2917119c1 # depmod.hook
d2cd04a09feba30e1376144a8110ec7521892acb0940c3c4ba459aeecf0452ed) # depmod.script
18661aa40c25580f04d2ac3f32e54c2997c0994d1c829905537b413a9d291ac6) # depmod.script
## 26ec04bfd151f63443634f7af3ca6bcc54107502fdcff3195ccb174ca97d89b1 kmod-33-02-x86_64.pkg.tar.lz
## 9083fd4b12713ace67dd1b5969cedca2c8bea7c7bf1c2a1261464c6d4395a1a0 kmod-33-03-x86_64.pkg.tar.lz

View file

@ -2,7 +2,7 @@
pkgname=kmod
pkgver=33
pkgrel=2
pkgrel=3
pkgdesc="Linux kernel module management tools and library"
arch=('x86_64')
url='https://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git'
@ -20,7 +20,7 @@ source=("git+https://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git#tag=v${pk
sha256sums=('f5795fe50a747609d70f764244e645cd946074e70a7e51de0f82bd2e4d0612c8'
'1a92bfeae870f61ce814577e69d2a147a9c0caf6aed1131243e4179241fcc4a8'
'c11c2a0f66ea405493e8617689ca10818dc81dd1dddc19bdb220c8b2917119c1'
'd2cd04a09feba30e1376144a8110ec7521892acb0940c3c4ba459aeecf0452ed')
'18661aa40c25580f04d2ac3f32e54c2997c0994d1c829905537b413a9d291ac6')
prepare() {
cd "${pkgname}"

View file

@ -5,7 +5,8 @@ while read -r f; do
depmod $(basename "$f")
elif [[ -d $f ]]; then
rm -f "${f}"modules.{alias,alias.bin,builtin.alias.bin,builtin.bin} \
"${f}"modules.{dep,dep.bin,devname,softdep,symbols,symbols.bin}
"${f}"modules.{dep,dep.bin,devname,softdep,symbols,symbols.bin} \
"${f}"modules.weakdep
rmdir --ignore-fail-on-non-empty "$f"
fi
done

13
kmod/depmod.script.0 Normal file
View file

@ -0,0 +1,13 @@
#!/bin/bash
while read -r f; do
if [[ -e ${f}modules.order ]]; then
depmod $(basename "$f")
elif [[ -d $f ]]; then
rm -f "${f}"modules.{alias,alias.bin,builtin.alias.bin,builtin.bin} \
"${f}"modules.{dep,dep.bin,devname,softdep,symbols,symbols.bin}
rmdir --ignore-fail-on-non-empty "$f"
fi
done
# vim:set ft=sh sw=2 et:

View file

@ -1,5 +1,6 @@
real 0m22.024s
user 0m38.606s
sys 0m4.436s
real 0m53.015s
user 0m49.174s
sys 0m5.393s