diff options
author | Martin Schlemmer <azarah@gentoo.org> | 2003-03-06 21:23:09 +0000 |
---|---|---|
committer | Martin Schlemmer <azarah@gentoo.org> | 2003-03-06 21:23:09 +0000 |
commit | c857f35f2253e7a3dc569453afd22107d36a8a2a (patch) | |
tree | b6bb1ccf2f78f4196fe32ddf7bcdd36e7bbcabe9 /sys-apps/module-init-tools | |
parent | bump (diff) | |
download | gentoo-2-c857f35f2253e7a3dc569453afd22107d36a8a2a.tar.gz gentoo-2-c857f35f2253e7a3dc569453afd22107d36a8a2a.tar.bz2 gentoo-2-c857f35f2253e7a3dc569453afd22107d36a8a2a.zip |
add pkg_setup to check fi we have a kernel installed, else die (will fail anyhow during compile)
Diffstat (limited to 'sys-apps/module-init-tools')
-rw-r--r-- | sys-apps/module-init-tools/ChangeLog | 5 | ||||
-rw-r--r-- | sys-apps/module-init-tools/module-init-tools-0.9.10-r1.ebuild | 12 |
2 files changed, 15 insertions, 2 deletions
diff --git a/sys-apps/module-init-tools/ChangeLog b/sys-apps/module-init-tools/ChangeLog index fcee7f0972bf..f2fe31050fc0 100644 --- a/sys-apps/module-init-tools/ChangeLog +++ b/sys-apps/module-init-tools/ChangeLog @@ -1,9 +1,12 @@ # ChangeLog for sys-apps/module-init-tools # Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL -# $Header: /var/cvsroot/gentoo-x86/sys-apps/module-init-tools/ChangeLog,v 1.13 2003/03/02 22:30:28 azarah Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/module-init-tools/ChangeLog,v 1.14 2003/03/06 21:23:09 azarah Exp $ *module-init-tools-0.9.10-r1 (02 March 2003) + 06 March 2003; Martin Schlemmer <azarah@gentoo.org> module-init-tools-0.9.10-r1 : + Add pkg_setup() to check for a valid kernel, bug #15568. + 02 March 2003; Martin Schlemmer <azarah@gentoo.org> module-init-tools-0.9.10-r1 : Fix '-q' to be really quiet. Patch generate-modprobe.conf to create sub install commands with 'modprobe -q'. diff --git a/sys-apps/module-init-tools/module-init-tools-0.9.10-r1.ebuild b/sys-apps/module-init-tools/module-init-tools-0.9.10-r1.ebuild index 6c108fe39414..e6290b38cdf5 100644 --- a/sys-apps/module-init-tools/module-init-tools-0.9.10-r1.ebuild +++ b/sys-apps/module-init-tools/module-init-tools-0.9.10-r1.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later -# $Header: /var/cvsroot/gentoo-x86/sys-apps/module-init-tools/module-init-tools-0.9.10-r1.ebuild,v 1.1 2003/03/02 22:30:28 azarah Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-apps/module-init-tools/module-init-tools-0.9.10-r1.ebuild,v 1.2 2003/03/06 21:23:09 azarah Exp $ # This includes backwards compatability for stable kernels IUSE="" @@ -25,6 +25,16 @@ DEPEND="virtual/glibc" RDEPEND=">=sys-apps/devfsd-1.3.25-r1 >=sys-kernel/development-sources-2.5.48" +pkg_setup() { + get_KV &> /dev/null + + if [ ! -f /lib/modules/${KV}/modules.dep ] + then + eerror "Please compile and install a kernel first!" + die "Please compile and install a kernel first!" + fi +} + src_unpack() { unpack ${A} |