mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-11 22:04:37 +08:00
43 lines
1.1 KiB
Bash
43 lines
1.1 KiB
Bash
#
|
|
# Chakra Packages for Chakra, part of chakra-project.org
|
|
#
|
|
# maintainer (i686): Phil Miller <philm[at]chakra-project[dog]org>
|
|
# maintainer (x86_64): Manuel Tortosa <manutortosa[at]chakra-project[dot]org>
|
|
|
|
pkgname=module-init-tools
|
|
pkgver=3.12
|
|
pkgrel=1
|
|
pkgdesc="utilities needed by Linux systems for managing loadable kernel modules"
|
|
arch=('i686' 'x86_64')
|
|
url="http://kerneltools.org"
|
|
license=('GPL')
|
|
depends=('glibc')
|
|
backup=('etc/modprobe.d/modprobe.conf')
|
|
options=('sign')
|
|
source=(http://www.kernel.org/pub/linux/utils/kernel/module-init-tools/module-init-tools-$pkgver.tar.bz2
|
|
modprobe.conf)
|
|
md5sums=('8b2257ce9abef74c4a44d825d23140f3'
|
|
'316f1bda4c21af02b30252eb014a0a55')
|
|
|
|
build() {
|
|
cd $srcdir/$pkgname-$pkgver
|
|
|
|
# do not regenerate man pages
|
|
touch *.{5,8}
|
|
|
|
./configure --prefix=/usr --exec-prefix=/ --enable-zlib
|
|
make
|
|
}
|
|
|
|
package() {
|
|
cd $srcdir/$pkgname-$pkgver
|
|
|
|
make DESTDIR=$pkgdir install
|
|
|
|
# Install our custom (read: empty) modprobe.conf
|
|
install -Dm644 $srcdir/modprobe.conf $pkgdir/etc/modprobe.d/modprobe.conf
|
|
|
|
# fix man page (FS#17559)
|
|
sed -i "s#mod#man5/mod#" $pkgdir/usr/share/man/man5/modprobe.d.5
|
|
}
|