* [gentoo-commits] repo/gentoo:master commit in: app-backup/mylvmbackup/files/, app-backup/mylvmbackup/
@ 2017-12-28 15:07 David Seifert
0 siblings, 0 replies; 3+ messages in thread
From: David Seifert @ 2017-12-28 15:07 UTC (permalink / raw
To: gentoo-commits
commit: 2f3da02ee6bed81c630ff3ccda6e33c193f16fb6
Author: David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Thu Dec 28 14:16:07 2017 +0000
Commit: David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Thu Dec 28 15:06:58 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2f3da02e
app-backup/mylvmbackup: Port to EAPI 6
Package-Manager: Portage-2.3.19, Repoman-2.3.6
.../files/mylvmbackup-0.14-fix-build-system.patch | 17 ++++++++++++
.../files/mylvmbackup-0.14-fix-config.patch | 11 ++++++++
app-backup/mylvmbackup/mylvmbackup-0.14.ebuild | 30 ++++++++++++----------
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 00000000000..ebfeee6225e
--- /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 00000000000..ed9ff25d6d2
--- /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 0c9c3e32e54..77f80942fdf 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}/
}
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: app-backup/mylvmbackup/files/, app-backup/mylvmbackup/
@ 2023-10-08 12:48 David Seifert
0 siblings, 0 replies; 3+ messages in thread
From: David Seifert @ 2023-10-08 12:48 UTC (permalink / raw
To: gentoo-commits
commit: 5ee71c63c75292cc6e75397913fa079899ef79b8
Author: David Seifert <soap <AT> gentoo <DOT> org>
AuthorDate: Sun Oct 8 12:48:27 2023 +0000
Commit: David Seifert <soap <AT> gentoo <DOT> org>
CommitDate: Sun Oct 8 12:48:27 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5ee71c63
app-backup/mylvmbackup: add 0.16
Closes: https://bugs.gentoo.org/534044
Signed-off-by: David Seifert <soap <AT> gentoo.org>
app-backup/mylvmbackup/Manifest | 1 +
.../files/mylvmbackup-0.16-fix-build-system.patch | 11 ++++++++
app-backup/mylvmbackup/mylvmbackup-0.16.ebuild | 31 ++++++++++++++++++++++
3 files changed, 43 insertions(+)
diff --git a/app-backup/mylvmbackup/Manifest b/app-backup/mylvmbackup/Manifest
index e4b66dfb2adc..5bb27e48373c 100644
--- a/app-backup/mylvmbackup/Manifest
+++ b/app-backup/mylvmbackup/Manifest
@@ -1 +1,2 @@
DIST mylvmbackup-0.14.tar.gz 57338 BLAKE2B 2f3e85d73a08d8877f84c04e8a7368500fd10dd9ee5172110589175918c10d0e80dce17b842286aacb111d088c275138a87fcf46fb4b416d0697221735cc36b3 SHA512 e61f0c4e24b5482b2f7f4213e810a32776d1b39f589e27c309a4940943f3a9519041e53cf85a089a94100e2cc81715a033682bbe071220d755c14211b4177bfa
+DIST mylvmbackup-0.16.tar.gz 58490 BLAKE2B 43f34e0e386c4cc4f8d30ce3fb3f9e93f4ce7c795d1b74a0e6c2bb74750c855b5eeb41a09d9c2f6e0532bb297d00519d99b356fa98dfb0fbc4fc8cfd25daa976 SHA512 c23dd47c7cb13883cddb161f12a1698a1108b65d01a0e6d6feafab2d92c98717e38d4bc4a23712cb2e23f624e8c4e6307a2b0f171024976b52a58a720fd01b8b
diff --git a/app-backup/mylvmbackup/files/mylvmbackup-0.16-fix-build-system.patch b/app-backup/mylvmbackup/files/mylvmbackup-0.16-fix-build-system.patch
new file mode 100644
index 000000000000..486f336e70c0
--- /dev/null
+++ b/app-backup/mylvmbackup/files/mylvmbackup-0.16-fix-build-system.patch
@@ -0,0 +1,11 @@
+--- a/Makefile
++++ b/Makefile
+@@ -58,7 +58,7 @@
+ README \
+ TODO
+ CLEANFILES = $(NAME).spec $(NAME) $(MAN1) $(MAN1).html
+-prefix = /usr/local
++prefix = /usr
+ sysconfdir = /etc
+ bindir = $(prefix)/bin
+ datadir = $(prefix)/share/mylvmbackup
diff --git a/app-backup/mylvmbackup/mylvmbackup-0.16.ebuild b/app-backup/mylvmbackup/mylvmbackup-0.16.ebuild
new file mode 100644
index 000000000000..12b6e0aecc11
--- /dev/null
+++ b/app-backup/mylvmbackup/mylvmbackup-0.16.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+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"
+
+RDEPEND="
+ dev-perl/Config-IniFiles
+ dev-perl/DBD-mysql
+ dev-perl/TimeDate
+ sys-fs/lvm2
+ virtual/mysql"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.16-fix-build-system.patch
+ "${FILESDIR}"/${PN}-0.14-fix-config.patch
+)
+
+src_install() {
+ default
+
+ keepdir /var/tmp/${PN}/{backup,mnt}
+ fperms 0700 /var/tmp/${PN}/
+}
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: app-backup/mylvmbackup/files/, app-backup/mylvmbackup/
@ 2023-10-10 3:04 Sam James
0 siblings, 0 replies; 3+ messages in thread
From: Sam James @ 2023-10-10 3:04 UTC (permalink / raw
To: gentoo-commits
commit: bd68e7bfc7a1b925936fd60d6600e3e2c670a54f
Author: Leonardo Hernández Hernández <leohdz172 <AT> proton <DOT> me>
AuthorDate: Sun Oct 1 22:12:34 2023 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Tue Oct 10 03:03:05 2023 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=bd68e7bf
app-backup/mylvmbackup: do not install files into /var/tmp
Closes: https://bugs.gentoo.org/840960
Signed-off-by: Leonardo Hernández Hernández <leohdz172 <AT> proton.me>
Signed-off-by: Sam James <sam <AT> gentoo.org>
app-backup/mylvmbackup/files/mylvmbackup.conf | 2 ++
app-backup/mylvmbackup/mylvmbackup-0.16-r1.ebuild | 37 +++++++++++++++++++++++
2 files changed, 39 insertions(+)
diff --git a/app-backup/mylvmbackup/files/mylvmbackup.conf b/app-backup/mylvmbackup/files/mylvmbackup.conf
new file mode 100644
index 000000000000..555c4853a4b6
--- /dev/null
+++ b/app-backup/mylvmbackup/files/mylvmbackup.conf
@@ -0,0 +1,2 @@
+d /var/tmp/mylvmbackup/backup 0700 - - - -
+d /var/tmp/mylvmbackup/mnt 0700 - - - -
diff --git a/app-backup/mylvmbackup/mylvmbackup-0.16-r1.ebuild b/app-backup/mylvmbackup/mylvmbackup-0.16-r1.ebuild
new file mode 100644
index 000000000000..a54c4ea48eb2
--- /dev/null
+++ b/app-backup/mylvmbackup/mylvmbackup-0.16-r1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit tmpfiles
+
+DESCRIPTION="Tool for creating backups of MySQL server's data files using LVM snapshots"
+HOMEPAGE="https://lenzg.net/mylvmbackup/"
+SRC_URI="https://lenzg.net/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+
+RDEPEND="
+ dev-perl/Config-IniFiles
+ dev-perl/DBD-mysql
+ dev-perl/TimeDate
+ sys-fs/lvm2
+ virtual/mysql
+"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-0.16-fix-build-system.patch
+ "${FILESDIR}"/${PN}-0.14-fix-config.patch
+)
+
+src_install() {
+ default
+
+ dotmpfiles "${FILESDIR}/${PN}.conf"
+}
+
+pkg_postinst() {
+ tmpfiles_process "${PN}.conf"
+}
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-10-10 3:04 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-10-10 3:04 [gentoo-commits] repo/gentoo:master commit in: app-backup/mylvmbackup/files/, app-backup/mylvmbackup/ Sam James
-- strict thread matches above, loose matches on Subject: below --
2023-10-08 12:48 David Seifert
2017-12-28 15:07 David Seifert
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox