summaryrefslogtreecommitdiff
blob: 50fa98029db5584e6b3205bbda47588b1cdcbdd0 (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
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-cdr/virtualcd/virtualcd-0.4.ebuild,v 1.2 2003/06/12 17:25:22 vapier Exp $

DESCRIPTION="mount bin/cue cd images"
HOMEPAGE="http://outertech.com/robert/virtualcd/"
SRC_URI="http://outertech.com/robert/virtualcd/${P}.tar.bz2"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 ppc"

DEPEND="virtual/kernel"

S=${WORKDIR}/${P/-/_}

src_compile() {
	[ -z "${CC}" ] && CC=gcc
	${CC} virtualcd.c -o virtualcd.o -c \
		${CFLAGS} -D__KERNEL__ -DMODULE -Wall \
		-I/usr/src/linux/include \
		|| die "could not make kernel module"

	cd vcsetup
	econf || die
	emake || die
}

src_install() {
	insinto /lib/modules/`uname -r`/kernel/fs/virtualcd/
	doins virtualcd.o

	cd vcsetup
	make install DESTDIR=${D} || die
	dodoc AUTHORS ChangeLog README TODO
}