[arch-commits] CVS update of core/base/klibc-module-init-tools (2 files)
Thomas Baechler
thomas at archlinux.org
Wed Oct 31 09:09:42 UTC 2007
Date: Wednesday, October 31, 2007 @ 10:09:42
Author: thomas
Path: /home/cvs-core/core/base/klibc-module-init-tools
Added: PKGBUILD (1.1) makefile.patch (1.1)
add module-init-tools to core
----------------+
PKGBUILD | 27 +++++++++++++++++++++++++++
makefile.patch | 22 ++++++++++++++++++++++
2 files changed, 49 insertions(+)
Index: core/base/klibc-module-init-tools/PKGBUILD
diff -u /dev/null core/base/klibc-module-init-tools/PKGBUILD:1.1
--- /dev/null Wed Oct 31 10:09:42 2007
+++ core/base/klibc-module-init-tools/PKGBUILD Wed Oct 31 10:09:42 2007
@@ -0,0 +1,27 @@
+# $Id: PKGBUILD,v 1.1 2007/10/31 09:09:42 thomas Exp $
+# Maintainer: Thomas Baechler <thomas at archlinux.org>
+
+pkgname=klibc-module-init-tools
+pkgver=3.2.2
+pkgrel=1
+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')
+source=(http://www.kernel.org/pub/linux/utils/kernel/module-init-tools/module-init-tools-$pkgver.tar.bz2 \
+ makefile.patch)
+md5sums=('a1ad0a09d3231673f70d631f3f5040e9'
+ '47e14fda7a46668290d11d0444d81826')
+
+build() {
+ cd $startdir/src/module-init-tools-$pkgver
+ patch -Np1 -i ../makefile.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/sbin/{generate-modprobe.conf,insmod.static}
+ rm -rf $startdir/pkg/usr/lib/klibc/{share,man}
+}
Index: core/base/klibc-module-init-tools/makefile.patch
diff -u /dev/null core/base/klibc-module-init-tools/makefile.patch:1.1
--- /dev/null Wed Oct 31 10:09:42 2007
+++ core/base/klibc-module-init-tools/makefile.patch Wed Oct 31 10:09:42 2007
@@ -0,0 +1,22 @@
+diff -Naur module-init-tools-3.1-orig/Makefile.in module-init-tools-3.1/Makefile.in
+--- module-init-tools-3.1-orig/Makefile.in 2004-11-14 16:59:48.000000000 -0800
++++ module-init-tools-3.1/Makefile.in 2004-11-19 11:09:36.000000000 -0800
+@@ -704,18 +704,8 @@
+
+ # docbook2man writes file itself, doesn't do stdout.
+ %.8: doc/%.sgml
+- if [ "$(DOCBOOKTOMAN)" = "docbook2man" ]; then \
+- $(DOCBOOKTOMAN) $< > /dev/null 2>&1; \
+- else \
+- $(DOCBOOKTOMAN) $< 2>&1 > $@ | sed 's/^[^:]*://'; \
+- fi
+
+ %.5: doc/%.sgml
+- if [ "$(DOCBOOKTOMAN)" = "docbook2man" ]; then \
+- $(DOCBOOKTOMAN) $< > /dev/null 2>&1; \
+- else \
+- $(DOCBOOKTOMAN) $< 2>&1 > $@ | sed 's/^[^:]*://'; \
+- fi
+
+ # docbook2man creates extra crap files which need cleaning.
+ distclean: killbuildmanpages
More information about the arch-commits
mailing list