summaryrefslogtreecommitdiff
blob: 3552c121a7e1632ebc7df4f8c2e7e789655fbd2c (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
48
# Copyright 1999-2005 Gentoo Foundation
# 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-r1.ebuild,v 1.5 2005/07/13 12:50:32 swegener Exp $

DESCRIPTION="Object-code only (OCO) modules for s390"
HOMEPAGE="http://oss.software.ibm.com/developerworks/opensource/linux390/june2003_recommended.shtml"
if [[ ${CTARGET:-${CHOST}} == s390x-* ]] ; then
SRC_URI="tape3590-2.4.21-s390x-02-june2003.tar.gz"
else
SRC_URI="tape3590-2.4.21-s390-02-june2003.tar.gz"
fi

LICENSE="IBM-ILNWP"
SLOT="${KV}"
KEYWORDS="~s390"
IUSE=""
RESTRICT="fetch"

DEPEND="~sys-kernel/vanilla-sources-2.4.21"

S=${WORKDIR}

pkg_nofetch() {
	einfo "Please download ${A} 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() {
	mv tape3590-2.4.21-s390*-02-june2003.o tape_3590.o || die
}

src_install() {
	insinto /etc/modules.d
	doins "${FILESDIR}"/s390-oco || die

	insinto /lib/modules/${KV}/OCO
	doins tape_3590.o || die

	dodoc README
}