# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/sys-apps/s390-oco/s390-oco-2.4.21.ebuild,v 1.1 2004/04/18 04:12:09 randy Exp $ DESCRIPTION="Object-code only (OCO) modules for s390" SRC_URI="s390x?( tape3590-2.4.21-s390x-01-june2003.tar.gz ) :( tape3590-2.4.21-s390-01-june2003.tar.gz )" HOMEPAGE="http://oss.software.ibm.com/developerworks/opensource/linux390/june2003_recommended.shtml" LICENSE="IBM-ILNWP" KEYWORDS="~s390" SLOT="${KV}" DEPEND="=sys-kernel/vanilla-sources-2.4.21" RESTRICT="fetch" pkg_nofetch() { einfo "Please download ${SRC_URI} from" einfo "" einfo " o ${HOMEPAGE}" einfo "" einfo "and put it into ${DISTDIR}" } src_unpack() { unpack ${A} check_KV || die "Cannot find kernel in /usr/src/linux" } src_compile() { cd ${WORKDIR} mv tape3590-2.4.21-s390*-01-june2003.o tape_3590.o } src_install() { dodir /etc/modules.d insinto /etc/modules.d doins ${FILESDIR}/s390-oco cd ${WORKDIR} dodir /lib/modules/${KV}/OCO insinto /lib/modules/${KV}/OCO doins tape_3590.o dodoc README LICENSE }