blob: 6d9243bf0849b6ef67c4b41924fd8117b2b8323b (
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
49
50
51
52
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-cdr/cddump/cddump-0.7.ebuild,v 1.12 2003/03/11 21:11:44 seemant Exp $
S=${WORKDIR}/${P}
DESCRIPTION="cddump - backup to CD-Recordable and CD-Rewritable"
SRC_URI="http://www.joat.ca/software/${P}.tar.gz"
HOMEPAGE="http://www.joat.ca/software/cddump.html"
SLOT="0"
LICENSE="GPL-2"
DEPEND="app-cdr/cdrtools
dev-lang/perl"
KEYWORDS="x86 ppc sparc"
src_unpack() {
unpack ${A}
cd ${S}
cat install.cddump | sed \
-e "/system/s:/usr/local/man/man8:${D}usr/man/man8:" > install.cddump.NEW
mv install.cddump.NEW install.cddump
}
src_compile() {
# These are appropriate defaults for my system (with an 8x
# writer). I don't know if these defaults will be appropriate for
# other systems.
( echo /usr/bin/perl
echo /usr/bin/mkisofs
echo /usr/bin/cdrecord
echo /usr/bin/cpio
echo /dev/sg0
echo 8
echo .
echo y
) | perl install.cddump
}
src_install() {
# Include the source in the documentation so that the user can be
# free to rerun the install.
dobin cddump
dodoc cddump.in CHANGELOG install.cddump LICENCE README TUTORIAL
doman cddump.8
}
pkg_postinst() {
echo
einfo "Cddump has been configured for an 8x writer at /dev/sg0."
einfo "To reconfigure, please run \"perl /usr/share/doc/${P}/cddump.in\""
echo
}
|