summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2022-07-02 23:45:32 +0100
committerSam James <sam@gentoo.org>2022-07-02 23:45:32 +0100
commit40050014c16b2cd4bdad7f8bbc9aaabbd2044bc1 (patch)
treed9ce9e13c2b4524b2f99ec8b08d39d1936b0bb79 /app-backup/vzdump
parentsci-biology/vcftools: drop 0.1.14 (diff)
downloadgentoo-40050014c16b2cd4bdad7f8bbc9aaabbd2044bc1.tar.gz
gentoo-40050014c16b2cd4bdad7f8bbc9aaabbd2044bc1.tar.bz2
gentoo-40050014c16b2cd4bdad7f8bbc9aaabbd2044bc1.zip
app-backup/vzdump: update EAPI 6 -> 8
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'app-backup/vzdump')
-rw-r--r--app-backup/vzdump/files/vzdump-1.2-no-compress.patch45
-rw-r--r--app-backup/vzdump/vzdump-1.2-r1.ebuild37
2 files changed, 82 insertions, 0 deletions
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
+}