summaryrefslogtreecommitdiffstats
path: root/abs/core/klibc-module-init-tools/PKGBUILD
blob: 80a1ede74bda3b66a946ba0767db5f3df863a947 (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
# $Id: PKGBUILD 5989 2008-07-22 12:58:46Z thomas $
# Maintainer: Thomas Baechler <thomas@archlinux.org>

pkgname=klibc-module-init-tools
pkgver=3.4
pkgrel=10
pkgdesc="Utilities for inserting and removing modules from the Linux kernel"
arch=(i686 x86_64)
url="http://www.kernel.org"
license=('GPL')
groups=('base')
depends=('klibc' $(basename /lib/klibc-*.so .so))
source=(http://www.kernel.org/pub/linux/utils/kernel/module-init-tools/module-init-tools-$pkgver.tar.bz2 \
	makefile.patch
	fix-modprobe-ignore-path.patch)
md5sums=('db6ac059e80e8dd4389dbe81ee61f3c6'
         'c48553c2b61fd8d9784aa86e559b9d7b'
         '335c3f8317f257ddd70b09271b4360bd')

build() {
  cd $startdir/src/module-init-tools-$pkgver
  patch -p1 -i ../makefile.patch || return 1
  autoreconf || return 1
  patch -p0 -i ../fix-modprobe-ignore-path.patch || return 1
  sed -i 's|/usr/bin/install|/bin/install|g' install-with-care
  CFLAGS="${CFLAGS} -DCONFIG_NO_BACKWARDS_COMPAT" CC=klcc LD=klcc ./configure --prefix=/usr/lib/klibc
  make || return 1
  INSTALL=/bin/install make DESTDIR=$startdir/pkg install || return 1
  rm -f $startdir/pkg/usr/lib/klibc/sbin/{generate-modprobe.conf,insmod.static}
  rm -rf $startdir/pkg/usr/lib/klibc/{share,man}
}