diff options
author | David Seifert <soap@gentoo.org> | 2017-12-28 15:16:07 +0100 |
---|---|---|
committer | David Seifert <soap@gentoo.org> | 2017-12-28 16:06:58 +0100 |
commit | 2f3da02ee6bed81c630ff3ccda6e33c193f16fb6 (patch) | |
tree | f74a0edf127e3f4a7648a8e5568c61e9298cc730 /app-backup | |
parent | app-backup/dirvish: Port to EAPI 6 (diff) | |
download | gentoo-2f3da02ee6bed81c630ff3ccda6e33c193f16fb6.tar.gz gentoo-2f3da02ee6bed81c630ff3ccda6e33c193f16fb6.tar.bz2 gentoo-2f3da02ee6bed81c630ff3ccda6e33c193f16fb6.zip |
app-backup/mylvmbackup: Port to EAPI 6
Package-Manager: Portage-2.3.19, Repoman-2.3.6
Diffstat (limited to 'app-backup')
3 files changed, 44 insertions, 14 deletions
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}/ } |