summaryrefslogtreecommitdiff
blob: 8a5a8517c55faa0a2c8524ad555ddd1337f2e977 (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
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-backup/mylvmbackup/mylvmbackup-0.4_pre1.ebuild,v 1.2 2007/01/12 15:01:01 robbat2 Exp $

inherit eutils

DESCRIPTION="mylvmbackup is a Perl script for quickly creating backups of MySQL server's data files utilizing LVM snapshots."
HOMEPAGE="http://lenz.homelinux.org/mylvmbackup/"
MY_PV=0.3
SRC_URI="http://lenz.homelinux.org/${PN}/${PN}-${MY_PV}.tar.gz
		mirror://gentoo/${PN}-0.3-to-0.4-changes.patch.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~ppc ~amd64"
IUSE=""
DEPEND=">=app-text/asciidoc-7.1.2"
RDEPEND="dev-perl/Config-IniFiles
		>=sys-fs/lvm2-2.02.6
		dev-perl/DBD-mysql
		virtual/mysql"

S="${WORKDIR}/${PN}-${MY_PV}"

src_unpack() {
	unpack ${PN}-${MY_PV}.tar.gz
	epatch ${DISTDIR}/${PN}-0.3-to-0.4-changes.patch.gz
	sed -i \
		-e '/^VERSION/s,0.4,0.4_pre1,' \
		-e '/^prefix/s,/usr/local,/usr,' \
		${S}/Makefile
	# Clean up one thinko
	sed -i \
		-e '/^my$/d' \
		${S}/mylvmbackup.pl.in
}

src_install() {
	emake -j1 install DESTDIR="${D}"
	dodoc ChangeLog README TODO
	keepdir /var/tmp/${PN}/{backup,mnt}
}