blob: 5c9c3bdec70d1df66596d4cf529637d541ed09b9 (
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
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-arch/flexbackup/flexbackup-1.2.1.ebuild,v 1.3 2003/11/14 11:39:04 seemant Exp $
DESCRIPTION="Flexible backup script using perl."
HOMEPAGE="http://flexbackup.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
RESTRICT="nomirror"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
RDEPEND="dev-lang/perl
sys-apps/findutils
app-arch/tar
app-arch/mt-st"
src_compile() {
emake BINPATH="/usr/bin" || die "compile problem"
}
src_install() {
dodir /etc /usr/bin /usr/share/man/man{1,5}
einstall BINPATH="${D}/usr/bin" CONFFILE="${D}/etc/flexbackup.conf" \
MANPATH="${D}/usr/share/man"
dosed "/^\$type = /s:'afio':'tar':" /etc/flexbackup.conf
dosed "/^\$buffer = /s:'buffer':'false':" /etc/flexbackup.conf
dodoc CHANGES COPYING CREDITS INSTALL README TODO
dohtml faq.html
}
pkg_postinst() {
einfo "Please edit your /etc/flexbackup.conf file to suit your"
einfo "needs. If you are using devfs, the tape device should"
einfo "be set to /dev/tapes/tape0/mtn. If you need to use any"
einfo "archiver other than tar, please emerge it separately."
}
|