commit:     40050014c16b2cd4bdad7f8bbc9aaabbd2044bc1
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Jul  2 22:45:32 2022 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Jul  2 22:45:32 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=40050014

app-backup/vzdump: update EAPI 6 -> 8

Signed-off-by: Sam James <sam <AT> gentoo.org>

 .../vzdump/files/vzdump-1.2-no-compress.patch      | 45 ++++++++++++++++++++++
 app-backup/vzdump/vzdump-1.2-r1.ebuild             | 37 ++++++++++++++++++
 2 files changed, 82 insertions(+)

diff --git a/app-backup/vzdump/files/vzdump-1.2-no-compress.patch 
b/app-backup/vzdump/files/vzdump-1.2-no-compress.patch
new file mode 100644
index 000000000000..7c9ff3ed10d0
--- /dev/null
+++ b/app-backup/vzdump/files/vzdump-1.2-no-compress.patch
@@ -0,0 +1,45 @@
+--- a/Makefile
++++ b/Makefile
+@@ -55,9 +55,9 @@ DISTFILES=                   \
+ 
+ PKGSOURCE=                    \
+       vzdump                  \
+-      vzdump.1.gz             \
++      vzdump.1                \
+       vzrestore               \
+-      vzrestore.1.gz          \
++      vzrestore.1             \
+       VZDump.pm               \
+       Plugin.pm               \
+       OpenVZ.pm               \
+@@ -77,8 +77,8 @@ install: ${PKGSOURCE}
+       install -m 0755 vzdump ${DESTDIR}${SBINDIR}
+       install -m 0755 vzrestore ${DESTDIR}${SBINDIR}
+       install -d ${DESTDIR}${MAN1DIR}
+-      install -m 0644 vzdump.1.gz ${DESTDIR}${MAN1DIR}
+-      install -m 0644 vzrestore.1.gz ${DESTDIR}${MAN1DIR}
++      install -m 0644 vzdump.1 ${DESTDIR}${MAN1DIR}
++      install -m 0644 vzrestore.1 ${DESTDIR}${MAN1DIR}
+       install -d ${DESTDIR}${PERLLIBDIR}
+       install -m 0644 VZDump.pm ${DESTDIR}${PERLLIBDIR}
+       install -d ${DESTDIR}${PERLLIBDIR}/VZDump
+@@ -104,9 +104,9 @@ deb ${DEB}: ${PKGSOURCE} ${DISTFILES}
+       rm -rf debian
+       lintian ${DEB}
+ 
+-%.1.gz: %
+-      rm -f $*.1.gz
+-      pod2man -n $* -s 1 -r ${VERSION} -c "Proxmox Documentation"  <$* |gzip 
-c9 >$*.1.gz
++%.1: %
++      rm -f $*.1
++      pod2man -n $* -s 1 -r ${VERSION} -c "Proxmox Documentation"  <$* >$*.1
+ 
+ .PHONY: rpm
+ rpm ${RPM}: ${TGZ} ${PACKAGE}.spec
+@@ -134,4 +134,4 @@ ${TGZ}: ${DISTFILES}
+ 
+ .PHONY: clean
+ clean:        
+-      rm -rf debian *~ *.deb *.tar.gz *.rpm *.1.gz vzdump.spec control 
${DISTDIR}
+\ No newline at end of file
++      rm -rf debian *~ *.deb *.tar.gz *.rpm *.1.gz vzdump.spec control 
${DISTDIR}

diff --git a/app-backup/vzdump/vzdump-1.2-r1.ebuild 
b/app-backup/vzdump/vzdump-1.2-r1.ebuild
new file mode 100644
index 000000000000..24171295d3e1
--- /dev/null
+++ b/app-backup/vzdump/vzdump-1.2-r1.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit perl-functions
+
+DESCRIPTION="A utility to make consistent snapshots of running OpenVZ 
containers"
+HOMEPAGE="http://pve.proxmox.com/wiki/VZDump";
+SRC_URI="http://www.proxmox.com/cms_proxmox/cms/upload/vzdump/${P}.tar.gz";
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="dev-lang/perl:="
+RDEPEND="${DEPEND}
+       app-misc/cstream
+       dev-perl/LockFile-Simple
+       net-misc/rsync
+       sys-cluster/vzctl
+       sys-fs/lvm2
+       virtual/mta
+       virtual/perl-Getopt-Long"
+
+PATCHES=(
+       "${FILESDIR}"/${PN}-1.2-no-compress.patch
+)
+
+src_compile() {
+       return
+}
+
+src_install() {
+       emake PERLLIBDIR="$(perl_get_vendorlib)/PVE" DESTDIR="${D}" install
+       einstalldocs
+}

Reply via email to