summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-apps/ezusb2131/ezusb2131-1.0.ebuild')
-rw-r--r--sys-apps/ezusb2131/ezusb2131-1.0.ebuild28
1 files changed, 18 insertions, 10 deletions
diff --git a/sys-apps/ezusb2131/ezusb2131-1.0.ebuild b/sys-apps/ezusb2131/ezusb2131-1.0.ebuild
index 7d4781685884..9a6a3bae8b30 100644
--- a/sys-apps/ezusb2131/ezusb2131-1.0.ebuild
+++ b/sys-apps/ezusb2131/ezusb2131-1.0.ebuild
@@ -1,30 +1,39 @@
-# Copyright 1999-2003 Gentoo Technologies, Inc.
+# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-apps/ezusb2131/ezusb2131-1.0.ebuild,v 1.1 2003/05/22 11:15:09 jje Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-apps/ezusb2131/ezusb2131-1.0.ebuild,v 1.1.1.1 2005/11/30 09:56:07 chriswhite Exp $
MY_P=${PN/e/E}-${PV}
DESCRIPTION="This is a firmware uploader for EZ-USB devices"
HOMEPAGE="http://ezusb2131.sourceforge.net/"
SRC_URI="mirror://sourceforge/ezusb2131/${MY_P}.tar.gz"
+
LICENSE="GPL-2"
SLOT="0"
-
-KEYWORDS="~x86"
+KEYWORDS="amd64 x86"
IUSE=""
-DEPEND=""
+DEPEND=""
RDEPEND="sys-apps/hotplug"
S=${WORKDIR}/Ezusb2131
+
+pkg_setup() {
+ if [[ ${KV:0:2} != "2.6" ]] ; then
+ eerror "This kernel module is only for 2.4 kernels."
+ eerror "See ${HOMEPAGE} for 2.6 support."
+ die "2.4 kernel only"
+ fi
+}
+
src_compile() {
- einfo "${S}"
make all || die
}
src_install() {
- cp Makefile Makefile~
- sed -e 's/INSTALLDIR = \/lib\/modules/INSTALLDIR = ${D}\/lib\/modules/' \
- -e 's/depmod -a/#depmod -a/' Makefile~ > Makefile
+ sed -i \
+ -e 's/INSTALLDIR = \/lib\/modules/INSTALLDIR = ${D}\/lib\/modules/' \
+ -e 's/depmod -a/#depmod -a/' \
+ Makefile
make install || die
dodoc ${S}/README ${S}/COPYING ${S}/AUTHORS
@@ -34,4 +43,3 @@ pkg_postinst() {
einfo "Updating modules dependancies"
depmod -a
}
-