From 54b7119c36756b86ea463649ee972cd6c1ce5863 Mon Sep 17 00:00:00 2001 From: root Date: Wed, 8 Feb 2012 23:15:20 +0000 Subject: Wed Feb 8 23:15:20 UTC 2012 --- staging/kmod/PKGBUILD | 56 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 staging/kmod/PKGBUILD (limited to 'staging/kmod/PKGBUILD') diff --git a/staging/kmod/PKGBUILD b/staging/kmod/PKGBUILD new file mode 100644 index 000000000..d78008662 --- /dev/null +++ b/staging/kmod/PKGBUILD @@ -0,0 +1,56 @@ +# $Id: PKGBUILD 149394 2012-02-07 13:26:20Z dreisner $ +# Maintainer: Dave Reisner + +pkgname=kmod +pkgver=5 +pkgrel=1 +pkgdesc="Linux kernel module handling" +arch=('i686' 'x86_64') +url="http://git.profusion.mobi/cgit.cgi/kmod.git" +license=('GPL2') +depends=('glibc' 'zlib') +options=('!libtool' '!strip') +provides=('module-init-tools=3.16') +conflicts=('module-init-tools') +replaces=('module-init-tools') +source=("http://packages.profusion.mobi/$pkgname/$pkgname-$pkgver.tar.xz" + "depmod-search.conf") +md5sums=('b271c2ec54aba1c67bda63c8579d8c15' + '4b8cbcbc54b9029c99fd730e257d4436') + +build() { + cd "$pkgname-$pkgver" + + CFLAGS+=' -g -O0' ./configure \ + --sysconfdir=/etc \ + --with-rootprefix= \ + --with-zlib \ + --enable-debug + + 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 -- cgit v1.2.3-54-g00ecf