diff options
author | Michael J. Cohen <mjc@gentoo.org> | 2002-08-27 23:42:21 +0000 |
---|---|---|
committer | Michael J. Cohen <mjc@gentoo.org> | 2002-08-27 23:42:21 +0000 |
commit | 2207e7457adfd054a617caf92281c334b758d4d9 (patch) | |
tree | 730bc1db3d5fb3737f4e6a648b0d5810d6aabc37 /eclass/kmod.eclass | |
parent | Kernel Module Eclass (currently base.eclass) (diff) | |
download | historical-2207e7457adfd054a617caf92281c334b758d4d9.tar.gz historical-2207e7457adfd054a617caf92281c334b758d4d9.tar.bz2 historical-2207e7457adfd054a617caf92281c334b758d4d9.zip |
little better...
Diffstat (limited to 'eclass/kmod.eclass')
-rw-r--r-- | eclass/kmod.eclass | 85 |
1 files changed, 7 insertions, 78 deletions
diff --git a/eclass/kmod.eclass b/eclass/kmod.eclass index f092d2cd2c49..c8186085cdf3 100644 --- a/eclass/kmod.eclass +++ b/eclass/kmod.eclass @@ -1,7 +1,7 @@ # Copyright 1999-2000 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Author Dan Armak <danarmak@gentoo.org> -# $Header: /var/cvsroot/gentoo-x86/eclass/kmod.eclass,v 1.1 2002/08/27 23:32:05 mjc Exp $ +# $Header: /var/cvsroot/gentoo-x86/eclass/kmod.eclass,v 1.2 2002/08/27 23:42:21 mjc Exp $ # The base eclass defines some default functions and variables. Nearly everything # else inherits from here. ECLASS=kmod @@ -16,93 +16,22 @@ base_src_unpack() { cd ${WORKDIR} - while [ "$1" ]; do + debug-print-section patch + cd /usr/src/linux-${KV} + patch -p1 < ${FILESDIR}/${P}.patch + - case $1 in - unpack) - debug-print-section unpack - # rather ugly fix - check for usage of kde-patch.eclass - [ -n "$PATCH" -a -n "$ORIGPV" -a -n "$DATE" -a -n "$OLDIFS" ] && \ - A="`echo $A | sed -e s:${PATCH}::g --`" - unpack ${A} - ;; - patch) - debug-print-section patch - cd ${S} - patch -p0 < ${FILESDIR}/${P}-gentoo.diff - ;; - autopatch) - debug-print-section autopatch - debug-print "$FUNCNAME: autopatch: PATCHES=$PATCHES" - cd ${S} - for x in $PATCHES; do - debug-print "$FUNCNAME: autopatch: patching from ${x}" - patch -p0 < ${x} - done - ;; - all) - debug-print-section all - base_src_unpack unpack autopatch - ;; - esac - - shift done - } -base_src_compile() { - - debug-print-function $FUNCNAME $* - [ -z "$1" ] && base_src_compile all - - cd ${S} - - while [ "$1" ]; do - - case $1 in - configure) - debug-print-section configure - econf || die "died running econf, $FUNCNAME:configure" - ;; - make) - debug-print-section make - emake || die "died running emake, $FUNCNAME:make" - ;; - all) - debug-print-section all - base_src_compile configure make - ;; - esac - +base_unpack() { shift - done - + done } base_src_install() { - - debug-print-function $FUNCNAME $* - [ -z "$1" ] && base_src_install all - - cd ${S} - - while [ "$1" ]; do - - case $1 in - make) - debug-print-section make - make DESTDIR=${D} install || die "died running make install, $FUNCNAME:make" - ;; - all) - debug-print-section all - base_src_install make - ;; - esac - shift done - } EXPORT_FUNCTIONS src_unpack src_compile src_install |