summaryrefslogtreecommitdiff
path: root/app-backup/mylvmbackup
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-12-30 01:11:30 +0000
committerV3n3RiX <venerix@redcorelinux.org>2017-12-30 01:11:30 +0000
commit76dfef0cec9170000357d2f354e412daf48941fc (patch)
tree56647120c0ee20ab3494475c86722034cd194b02 /app-backup/mylvmbackup
parentccf84bcd604130256d1377cd58f0a634ae6ee20f (diff)
gentoo resync : 30.12.2017
Diffstat (limited to 'app-backup/mylvmbackup')
-rw-r--r--app-backup/mylvmbackup/Manifest4
-rw-r--r--app-backup/mylvmbackup/files/mylvmbackup-0.14-fix-build-system.patch17
-rw-r--r--app-backup/mylvmbackup/files/mylvmbackup-0.14-fix-config.patch11
-rw-r--r--app-backup/mylvmbackup/mylvmbackup-0.14.ebuild30
4 files changed, 47 insertions, 15 deletions
diff --git a/app-backup/mylvmbackup/Manifest b/app-backup/mylvmbackup/Manifest
index 046318d684f2..f38338fca813 100644
--- a/app-backup/mylvmbackup/Manifest
+++ b/app-backup/mylvmbackup/Manifest
@@ -1,3 +1,5 @@
+AUX mylvmbackup-0.14-fix-build-system.patch 381 BLAKE2B 02c0af3b1809145bec8c48b4dceee08c78691b97e3a8df0e260cb2ea16e263bf01c6cc5d9a59217b09daa3e9ab5a2ca14ccbe3e154dad73c35eca5dda49d0c97 SHA512 aff25a3828187de79ccaa3b43189a2d2d89381f1628d47bb2fb6b9fe347009e34f2e26697f57ec08c62083596b0fc49dd59c130b1ceb40bf60012608aa09d306
+AUX mylvmbackup-0.14-fix-config.patch 160 BLAKE2B aa9fd816d76743131b59478acf6b7a0b0f1f735b5ec95c011fb0ff2f25452317766e780c0d051ac1c1b46a42e08342791c10748ed55d532e9adfb2f8c1dd37a8 SHA512 b79b0338563459e757ebf7a8b0cadb59847ab085d224904df3730d1c15827214b26246c27b05d098bfc2a0a8c0339cbcb69cf13407408e3befd5c25c26bdfd04
DIST mylvmbackup-0.14.tar.gz 57338 BLAKE2B 2f3e85d73a08d8877f84c04e8a7368500fd10dd9ee5172110589175918c10d0e80dce17b842286aacb111d088c275138a87fcf46fb4b416d0697221735cc36b3 SHA512 e61f0c4e24b5482b2f7f4213e810a32776d1b39f589e27c309a4940943f3a9519041e53cf85a089a94100e2cc81715a033682bbe071220d755c14211b4177bfa
-EBUILD mylvmbackup-0.14.ebuild 820 BLAKE2B b3f9d112130a376101c45d865246d509bfa4a2c1ef24946ded10725d9129c9aa7702fb69b8e1ad4e9dcccff66d61f5ac29659abfa74dd15fc4214cb15abe19b7 SHA512 3a90bd402c6c762516354c2465b8d2d399b5c40e43dec703970f93ec8fa2425c58b93d228556df027f97bf8e1a6d07b0deac60860e183250c04e6dc99d8e7c4b
+EBUILD mylvmbackup-0.14.ebuild 678 BLAKE2B b879f2a7701675784b211f3586f929246cdb45dcd2a205578a941f8b5a9f937cfdc39d6788ebc72e36ebef417a6fbffa6c07737dc981ab8659b85c424aa52d48 SHA512 0393f91e96ee75b9320e7b6ec4aa3d040b48a00542e3448f5a666d7a7bca512772b082d986f4796ee477baf2e99bc373c84aced40af433e28f1f45be7d8b3684
MISC metadata.xml 298 BLAKE2B c8bd6ba1156ac9e53365acb57e9a58584abd5a8de30c8d1c4a5104c3585b8a20d39a950d9a7a5592bce17742f112e7dea832aad3b682c042ffcfae4e5138b78a SHA512 4d3effe7eeee87ea1ceecebf4f29dcd62e520e3c081ab58926441be0841a70f4065fa3031744c337d00faf20b1367e4d951d4443a4c4de76a7ef1f74c4f43923
diff --git a/app-backup/mylvmbackup/files/mylvmbackup-0.14-fix-build-system.patch b/app-backup/mylvmbackup/files/mylvmbackup-0.14-fix-build-system.patch
new file mode 100644
index 000000000000..ebfeee6225e4
--- /dev/null
+++ b/app-backup/mylvmbackup/files/mylvmbackup-0.14-fix-build-system.patch
@@ -0,0 +1,17 @@
+--- a/Makefile
++++ b/Makefile
+@@ -45,12 +45,12 @@
+ README \
+ TODO
+ CLEANFILES = $(NAME).spec $(NAME) $(MAN1) $(MAN1).html
+-prefix = /usr/local
++prefix = /usr
+ sysconfdir = /etc
+ bindir = $(prefix)/bin
+ datadir = $(prefix)/share/mylvmbackup
+ distdir = $(NAME)-$(VERSION)
+-mandir = $(prefix)/man
++mandir = $(prefix)/share/man
+ man1dir = $(mandir)/man1
+
+ all: $(DISTFILES) $(MAN1)
diff --git a/app-backup/mylvmbackup/files/mylvmbackup-0.14-fix-config.patch b/app-backup/mylvmbackup/files/mylvmbackup-0.14-fix-config.patch
new file mode 100644
index 000000000000..ed9ff25d6d20
--- /dev/null
+++ b/app-backup/mylvmbackup/files/mylvmbackup-0.14-fix-config.patch
@@ -0,0 +1,11 @@
+--- a/mylvmbackup.conf
++++ b/mylvmbackup.conf
+@@ -18,7 +18,7 @@
+ host=
+ port=
+ socket=
+-mycnf=/etc/my.cnf
++mycnf=/etc/mysql/my.cnf
+
+ #
+ # LVM-specific options
diff --git a/app-backup/mylvmbackup/mylvmbackup-0.14.ebuild b/app-backup/mylvmbackup/mylvmbackup-0.14.ebuild
index 0c9c3e32e542..77f80942fdf2 100644
--- a/app-backup/mylvmbackup/mylvmbackup-0.14.ebuild
+++ b/app-backup/mylvmbackup/mylvmbackup-0.14.ebuild
@@ -1,31 +1,33 @@
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
+EAPI=6
+
DESCRIPTION="Tool for creating backups of MySQL server's data files using LVM snapshots"
HOMEPAGE="http://lenzg.net/mylvmbackup/"
SRC_URI="http://lenzg.net/${PN}/${P}.tar.gz"
+
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE=""
+
DEPEND=""
-RDEPEND="dev-perl/Config-IniFiles
- >=sys-fs/lvm2-2.02.06
- dev-perl/DBD-mysql
- virtual/mysql
- dev-perl/TimeDate"
+RDEPEND="
+ dev-perl/Config-IniFiles
+ dev-perl/DBD-mysql
+ dev-perl/TimeDate
+ >=sys-fs/lvm2-2.02.06
+ virtual/mysql"
-src_unpack() {
- unpack ${A}
- sed -i \
- -e '/^prefix/s,/usr/local,/usr,' \
- "${S}"/Makefile
- sed -i 's|mycnf=/etc/my.cnf|mycnf=/etc/mysql/my.cnf|' "${S}"/mylvmbackup.conf
-}
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.14-fix-build-system.patch
+ "${FILESDIR}"/${PN}-0.14-fix-config.patch
+)
src_install() {
- emake install DESTDIR="${D}" mandir="/usr/share/man" || die
- dodoc ChangeLog README TODO
+ default
+
keepdir /var/tmp/${PN}/{backup,mnt}
fperms 0700 /var/tmp/${PN}/
}