blob: 59bd512565c8a415d4333c525313037e36f0611a (
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
53
54
55
56
57
58
59
60
61
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-backup/mondo-rescue/mondo-rescue-1.61.ebuild,v 1.2 2007/01/24 04:22:44 genone Exp $
DESCRIPTION="a nice backup tool"
SRC_URI="http://www.microwerks.net/~hugo/download/stable/final/${PN/-rescue/}-${PV}.tgz"
HOMEPAGE="http://www.microwerks.net/~hugo/download.html"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86"
IUSE=""
DEPEND=">=app-arch/afio-2.4.7
>=sys-apps/mindi-0.80
>=app-arch/bzip2-1.0.1
>=app-cdr/cdrtools-1.10
>=sys-libs/ncurses-5.2
>=sys-libs/slang-1.4.4
>=dev-libs/lzo-1.07
>=app-arch/lzop-1.00
>=dev-libs/newt-0.50
>=sys-boot/syslinux-1.7"
S=${WORKDIR}/${PN/-rescue/}-${PV}
src_compile() {
econf || die "econf failed"
emake || die "make failed"
}
src_install() {
dodir /usr/share/mondo
dodir /usr/bin
cp -f mondoarchive mondorestore mondo/mondo-makefilelist mondo/autorun mondo/restore-scripts.tgz ${D}/usr/share/mondo
dosym /usr/share/mondo/mondoarchive /usr/bin/mondoarchive
dosym /usr/share/mondo/mondorestore /usr/bin/mondorestore
dosym /usr/share/mondo/mondo-makefilelist /usr/bin/mondo-makefilelist
dodir /usr/share/doc/mondo-${PV}
cp -pRdf mondo/docs/en/* ${D}/usr/share/doc/mondo-${PV}
dodir /usr/share/man/man1
cp -f mondoarchive.1 ${D}/usr/share/man/man1
}
pkg_postinst() {
elog
elog "Installation notes:"
elog "1) /boot must be mounted before running mondo"
elog " (/etc/fstab does not automount it by default)"
elog "2) make a symlink \"ln -s /boot/grub/menu.lst /etc/grub.conf\""
elog " as mondo wants to have a /etc/grub.conf file"
elog "3) when doing a system backup be sure to use"
elog " \"-E ${DISTDIR}\" because otherwise"
elog " all source files will be included into the backup"
elog
}
|