diff --git a/core/module-init-tools/PKGBUILD b/core/module-init-tools/PKGBUILD new file mode 100644 index 000000000..8d8b4e292 --- /dev/null +++ b/core/module-init-tools/PKGBUILD @@ -0,0 +1,57 @@ +# $Id: PKGBUILD 144464 2011-12-06 10:57:38Z dreisner $ +# Maintainer: Dave Reisner +# Maintainer: Aaron Griffin +# Contributor: judd + +# ALARM: Kevin Mihelich +# - bringing back this package due to kmod not quite working for us yet +# - this package replaces and provides kmod + +plugrel=1 + +pkgname=module-init-tools +pkgver=3.16 +pkgrel=4 +pkgdesc="Utilities needed by Linux systems for managing loadable kernel modules" +arch=('i686' 'x86_64') +url="https://modules.wiki.kernel.org" +license=('GPL') +depends=('glibc') +makedepends=('docbook2x') +provides=('kmod') +replaces=('kmod') +backup=('etc/modprobe.d/modprobe.conf' + 'etc/depmod.d/depmod.conf') +source=("http://www.kernel.org/pub/linux/utils/kernel/$pkgname/$pkgname-$pkgver.tar.bz2" + modprobe.conf + depmod.conf + docfix.patch) +md5sums=('bc44832c6e41707b8447e2847d2019f5' + '325657db471b3190f685e5a89c9b90e3' + '4b8cbcbc54b9029c99fd730e257d4436' + '4320d19902ded43bed55c804b065cdc7') + +build() { + cd "$srcdir/$pkgname-$pkgver" + + # fix headers in SGML manpage sources and an XML typo + patch -Np0 < "$srcdir/docfix.patch" + + ./configure --prefix=/usr --exec-prefix=/ --enable-zlib + make +} + +package() { + cd "$srcdir/$pkgname-$pkgver" + + make DESTDIR=$pkgdir install + + # extra modprobe.d and depmod.d conf dirs + install -dm755 "$pkgdir/lib/modprobe.d" "$pkgdir/etc/depmod.d" + + # Install custom depmod config to allow searching extramodules/ + install -Dm644 "$srcdir/depmod.conf" "$pkgdir/etc/depmod.d/depmod.conf" + + # Install our custom (empty) modprobe.conf + install -Dm644 "$srcdir/modprobe.conf" "$pkgdir/etc/modprobe.d/modprobe.conf" +} diff --git a/core/module-init-tools/depmod.conf b/core/module-init-tools/depmod.conf new file mode 100644 index 000000000..3feb67b05 --- /dev/null +++ b/core/module-init-tools/depmod.conf @@ -0,0 +1,5 @@ +# +# /etc/depmod.d/depmod.conf +# + +search updates extramodules built-in diff --git a/core/module-init-tools/docfix.patch b/core/module-init-tools/docfix.patch new file mode 100644 index 000000000..0151ca3f1 --- /dev/null +++ b/core/module-init-tools/docfix.patch @@ -0,0 +1,90 @@ +--- doc/depmod.conf.sgml.orig 2011-06-25 10:07:15.897805024 -0400 ++++ doc/depmod.conf.sgml 2011-06-25 10:07:48.810805020 -0400 +@@ -1,4 +1,5 @@ +-Debian GNU/Linux"> + DocBook"> + SGML"> +--- doc/depmod.sgml.orig 2011-06-25 10:07:15.898805024 -0400 ++++ doc/depmod.sgml 2011-06-25 10:07:56.636805021 -0400 +@@ -1,4 +1,5 @@ +-Debian GNU/Linux"> + DocBook"> + SGML"> +@@ -52,7 +52,7 @@ + + + +- ++ + + + +--- doc/insmod.sgml.orig 2011-06-25 10:07:15.899805024 -0400 ++++ doc/insmod.sgml 2011-06-25 10:07:59.228805019 -0400 +@@ -1,4 +1,5 @@ +-Debian GNU/Linux"> + DocBook"> + SGML"> +--- doc/lsmod.sgml.orig 2011-06-25 10:07:15.899805024 -0400 ++++ doc/lsmod.sgml 2011-06-25 10:08:04.804805020 -0400 +@@ -1,4 +1,5 @@ +-Debian GNU/Linux"> + DocBook"> + SGML"> +--- doc/modinfo.sgml.orig 2011-06-25 10:07:15.900805024 -0400 ++++ doc/modinfo.sgml 2011-06-25 10:08:07.630805019 -0400 +@@ -1,4 +1,5 @@ +-Debian GNU/Linux"> + DocBook"> + SGML"> +--- doc/modprobe.conf.sgml.orig 2011-06-25 10:07:15.901805024 -0400 ++++ doc/modprobe.conf.sgml 2011-06-25 10:08:10.173805018 -0400 +@@ -1,4 +1,5 @@ +-Debian GNU/Linux"> + DocBook"> + SGML"> +--- doc/modprobe.sgml.orig 2011-06-25 10:07:15.902805024 -0400 ++++ doc/modprobe.sgml 2011-06-25 10:08:13.623805019 -0400 +@@ -1,4 +1,5 @@ +-Debian GNU/Linux"> + DocBook"> + SGML"> +--- doc/modules.dep.sgml.orig 2011-06-25 10:07:15.903805024 -0400 ++++ doc/modules.dep.sgml 2011-06-25 10:08:19.323805019 -0400 +@@ -1,4 +1,5 @@ +-Debian GNU/Linux"> + DocBook"> + SGML"> +--- doc/rmmod.sgml.orig 2011-06-25 10:07:15.904805024 -0400 ++++ doc/rmmod.sgml 2011-06-25 10:08:27.691805017 -0400 +@@ -1,4 +1,5 @@ +-Debian GNU/Linux"> + DocBook"> + SGML"> diff --git a/core/module-init-tools/modprobe.conf b/core/module-init-tools/modprobe.conf new file mode 100644 index 000000000..551bdfbdf --- /dev/null +++ b/core/module-init-tools/modprobe.conf @@ -0,0 +1,3 @@ +# +# /etc/modprobe.d/modprobe.conf +#