Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 534044
Collapse All | Expand All

(-)mylvmbackup-0.14.ebuild (-9 / +11 lines)
Lines 1-6 Link Here
1
# Copyright 1999-2013 Gentoo Foundation
1
# Copyright 1999-2014 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/app-backup/mylvmbackup/mylvmbackup-0.14.ebuild,v 1.1 2013/12/28 01:44:12 robbat2 Exp $
3
# $Header: $
4
5
EAPI=5
4
6
5
DESCRIPTION="mylvmbackup is a tool for quickly creating backups of MySQL server's data files using LVM snapshots"
7
DESCRIPTION="mylvmbackup is a tool for quickly creating backups of MySQL server's data files using LVM snapshots"
6
HOMEPAGE="http://lenzg.net/mylvmbackup/"
8
HOMEPAGE="http://lenzg.net/mylvmbackup/"
Lines 8-31 Link Here
8
LICENSE="GPL-2"
10
LICENSE="GPL-2"
9
SLOT="0"
11
SLOT="0"
10
KEYWORDS="~amd64 ~ppc ~x86"
12
KEYWORDS="~amd64 ~ppc ~x86"
11
IUSE=""
13
IUSE="snmp"
12
DEPEND=""
14
DEPEND=""
13
RDEPEND="dev-perl/Config-IniFiles
15
RDEPEND="dev-perl/Config-IniFiles
14
		>=sys-fs/lvm2-2.02.06
16
		>=sys-fs/lvm2-2.02.06
15
		dev-perl/DBD-mysql
17
		dev-perl/DBD-mysql
16
		virtual/mysql
18
		virtual/mysql
17
		dev-perl/TimeDate"
19
		dev-perl/TimeDate
20
	snmp? ( dev-perl/Net-SNMP )"
18
21
19
src_unpack() {
22
src_prepare() {
20
	unpack ${A}
21
	sed -i \
23
	sed -i \
22
		-e '/^prefix/s,/usr/local,/usr,' \
24
		-e '/^prefix/s,/usr/local,/usr,' \
23
		"${S}"/Makefile
25
		"${S}"/Makefile || die
24
	sed -i 's|mycnf=/etc/my.cnf|mycnf=/etc/mysql/my.cnf|' "${S}"/mylvmbackup.conf
26
	sed -i 's|mycnf=/etc/my.cnf|mycnf=/etc/mysql/my.cnf|' "${S}"/mylvmbackup.conf || die
25
}
27
}
26
28
27
src_install() {
29
src_install() {
28
	emake install DESTDIR="${D}" mandir="/usr/share/man" || die
30
	emake install DESTDIR="${D}" mandir="/usr/share/man"
29
	dodoc ChangeLog README TODO
31
	dodoc ChangeLog README TODO
30
	keepdir /var/tmp/${PN}/{backup,mnt}
32
	keepdir /var/tmp/${PN}/{backup,mnt}
31
	fperms 0700 /var/tmp/${PN}/
33
	fperms 0700 /var/tmp/${PN}/

Return to bug 534044