blob: b1566507baf3b90afb5e5290951c0bbd0dd0e544 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
# $Id: PKGBUILD 148396 2012-01-31 05:23:46Z dreisner $
# Maintainer: Dave Reisner <dreisner@archlinux.org>
pkgname=kmod
pkgver=4
pkgrel=2
pkgdesc="Linux kernel module handling"
arch=('i686' 'x86_64')
url="http://git.profusion.mobi/cgit.cgi/kmod.git"
license=('GPL2')
depends=('glibc' 'zlib')
makedepends=('docbook2x')
options=('!libtool')
provides=('module-init-tools=3.16')
conflicts=('module-init-tools')
replaces=('module-init-tools')
source=("http://packages.profusion.mobi/$pkgname/$pkgname-$pkgver.tar.xz"
0001-partially-fix-parsing-of-alias-with-dots.patch
0002-libkmod-module-used-shared-code-in-module-creation.patch
0003-modprobe-handle-all-error-returns-from-init_module.patch
0004-modprobe-remove-0-refcnt-deps.patch
"depmod-search.conf")
md5sums=('e14450a066a48accd0af1995b3c0232d'
'5f497ab3466ee1a616b6e6c97b330706'
'23a9257a152862753ce4c4ee7287761a'
'3a57671b0f37b1203b207f35a4442ae3'
'1fe88eee9302104b179124ce6bfc55d2'
'4b8cbcbc54b9029c99fd730e257d4436')
build() {
cd "$pkgname-$pkgver"
patch -Np1 <"$srcdir/0001-partially-fix-parsing-of-alias-with-dots.patch"
patch -Np1 <"$srcdir/0002-libkmod-module-used-shared-code-in-module-creation.patch"
patch -Np1 <"$srcdir/0003-modprobe-handle-all-error-returns-from-init_module.patch"
patch -Np1 <"$srcdir/0004-modprobe-remove-0-refcnt-deps.patch"
./configure \
--sysconfdir=/etc \
--with-rootprefix= \
--with-zlib
make
}
check() {
make -C "$pkgname-$pkgver" check
}
package() {
make -C "$pkgname-$pkgver" DESTDIR="$pkgdir" install
# binary directories
install -dm755 "$pkgdir"/{,s}bin
# configuration directories
install -dm755 "$pkgdir"/{etc,lib}/{depmod,modprobe}.d
# add symlinks to kmod
ln -s /usr/bin/kmod "$pkgdir/bin/lsmod"
for tool in {ins,rm,dep}mod mod{info,probe}; do
ln -s ../usr/bin/kmod "$pkgdir/sbin/$tool"
done
# install depmod.d file for search/ dir
install -Dm644 "$srcdir/depmod-search.conf" "$pkgdir/lib/depmod.d/search.conf"
}
# vim: ft=sh syn=sh et
|