summaryrefslogtreecommitdiff
blob: 497995f1b1453201806b76a6a4e6c1f0741ff2e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# 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.6.5.ebuild,v 1.1 2004/05/11 20:30:54 randy Exp $


DESCRIPTION="Object-code only (OCO) modules for s390"
SRC_URI="s390x?( tape_3590-2.6.5-s390x-april2004.tar.gz ) :( tape_3590-2.6.5-s390-april2004.tar.gz )"
HOMEPAGE="http://www10.software.ibm.com/developerworks/opensource/linux390/tape_3590-2.6.5-s390-april2004.shtml"
LICENSE="IBM-ILNWP"
KEYWORDS="~s390"
SLOT="${KV}"
DEPEND="=sys-kernel/development-sources-2.6.5"

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.6.5-s390*-01-april2004.ko tape_3590.ko
}

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.ko

	dodoc README LICENSE
}