update to 12.3: kmod
This commit is contained in:
@@ -1,34 +0,0 @@
|
|||||||
pkgname=kmod
|
|
||||||
pkgver=33
|
|
||||||
pkgdesc="Linux kernel module management tools and library"
|
|
||||||
url="https://github.com/kmod-project/kmod"
|
|
||||||
license=('LGPL-2.1-or-later' 'GPL-2.0-or-later')
|
|
||||||
sources=("${pkgname}-${pkgver}.tar.xz")
|
|
||||||
urls=("https://www.kernel.org/pub/linux/utils/kernel/${pkgname}/${sources[0]}")
|
|
||||||
md5sums=("c451c4aa61521adbe8af147f498046f8")
|
|
||||||
|
|
||||||
src_prepare() {
|
|
||||||
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
|
||||||
}
|
|
||||||
|
|
||||||
src_build() {
|
|
||||||
./configure --prefix=/usr \
|
|
||||||
--sysconfdir=/etc \
|
|
||||||
--with-openssl \
|
|
||||||
--with-xz \
|
|
||||||
--with-zstd \
|
|
||||||
--with-zlib \
|
|
||||||
--disable-manpages
|
|
||||||
make
|
|
||||||
}
|
|
||||||
|
|
||||||
src_install() {
|
|
||||||
make DESTDIR="${pkgdir}" install
|
|
||||||
install -d -m 755 "${pkgdir}/usr/sbin"
|
|
||||||
install -dm0755 "${pkgdir}"/{etc,usr/lib}/{depmod,modprobe}.d
|
|
||||||
for target in depmod insmod modinfo modprobe rmmod; do
|
|
||||||
ln -sfv ../bin/kmod "${pkgdir}/usr/sbin/$target"
|
|
||||||
rm -fv "${pkgdir}/usr/bin/$target"
|
|
||||||
done
|
|
||||||
}
|
|
||||||
|
|
||||||
@@ -0,0 +1,27 @@
|
|||||||
|
pkgname=kmod
|
||||||
|
pkgver=34
|
||||||
|
pkgdesc="Linux kernel module management tools and library"
|
||||||
|
arch=('x86_64')
|
||||||
|
homepage='https://git.kernel.org/pub/scm/utils/kernel/kmod/kmod.git'
|
||||||
|
license=('LGPL-2.1-or-later' 'GPL-2.0-or-later')
|
||||||
|
sources=("${pkgname}-${pkgver}.tar.xz")
|
||||||
|
urls=("https://www.kernel.org/pub/linux/utils/kernel/${pkgname}/${sources[0]}")
|
||||||
|
md5sums=("3e6c5c9ad9c7367ab9c3cc4f08dfde62")
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
tar -xf ${distdir}/${sources[0]} --strip-components=1
|
||||||
|
}
|
||||||
|
|
||||||
|
src_build() {
|
||||||
|
mkdir -p build
|
||||||
|
cd build
|
||||||
|
meson setup --prefix=/usr .. \
|
||||||
|
--sbindir=/usr/sbin \
|
||||||
|
--buildtype=release \
|
||||||
|
-D manpages=false
|
||||||
|
ninja
|
||||||
|
}
|
||||||
|
|
||||||
|
src_install() {
|
||||||
|
DESTDIR=${pkgdir} ninja install
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user