blob: 0e4c9d5d81c5f8b7246768ca67aed3899e94f196 (
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-2004 Gentoo Foundation
# 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.15 2004/06/24 21:31:21 agriffis Exp $
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"
IUSE=""
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
}
|