summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/module-init-tools/PKGBUILD
blob: b4260d1a8341f8f6b13d5224435dcb14b4d6ac03 (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
# $Id: PKGBUILD 5982 2008-07-22 12:44:28Z thomas $
# Maintainer: judd <jvinet@zeroflux.org>
pkgname=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=('glibc')
backup=('etc/modprobe.conf')
source=(http://www.kernel.org/pub/linux/utils/kernel/module-init-tools/module-init-tools-$pkgver.tar.bz2
        ftp://sunsite.informatik.rwth-aachen.de/pub/linux/gentoo/distfiles/module-init-tools-$pkgver-manpages.tar.bz2
        makefile.patch
        modprobe.conf
        fix-modprobe-ignore-path.patch)
md5sums=('db6ac059e80e8dd4389dbe81ee61f3c6'
         '006678277788b5a0402b171f4a235cd6'
         '47e14fda7a46668290d11d0444d81826'
         '6db59d41e04941a790f80c1a4432faef'
         '335c3f8317f257ddd70b09271b4360bd')

build() {
  cd $startdir/src/$pkgname-$pkgver
  patch -Np1 -i ../makefile.patch
  patch -Np0 -i ../fix-modprobe-ignore-path.patch || return 1
  sed -i 's|/usr/bin/install|/bin/install|g' install-with-care
  ./configure --prefix=/usr --exec-prefix=/
  make || return 1
  INSTALL=/bin/install make DESTDIR=$startdir/pkg install || return 1
  install -D -m644 ../modprobe.conf $startdir/pkg/etc/modprobe.conf
}