diff options
-rw-r--r-- | app-backup/backup-manager/backup-manager-0.7.14-r1.ebuild | 47 | ||||
-rw-r--r-- | app-backup/backup-manager/files/backup-manager-0.7.14-fix_purge.patch | 23 |
2 files changed, 70 insertions, 0 deletions
diff --git a/app-backup/backup-manager/backup-manager-0.7.14-r1.ebuild b/app-backup/backup-manager/backup-manager-0.7.14-r1.ebuild new file mode 100644 index 000000000000..6142fd7c265c --- /dev/null +++ b/app-backup/backup-manager/backup-manager-0.7.14-r1.ebuild @@ -0,0 +1,47 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit eutils + +MY_P=Backup-Manager-${PV} +DESCRIPTION="Backup Manager is a command line backup tool for GNU/Linux" +HOMEPAGE="https://github.com/sukria/Backup-Manager" +SRC_URI="https://github.com/sukria/Backup-Manager/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="s3" + +DEPEND="dev-lang/perl:= + sys-devel/gettext" + +RDEPEND="${DEPEND} + s3? ( dev-perl/Net-Amazon-S3 + dev-perl/File-Slurp )" + +PATCHES=( "${FILESDIR}"/${P}-fix_purge.patch ) + +S=${WORKDIR}/${MY_P} + +src_prepare() { + sed -e "/^PERL5DIR/s/sitelib/vendorlib/" \ + -e "/sed/s:=\$(DESTDIR)/:=:" \ + -i Makefile || die + + default +} + +src_compile() { + default + emake -C po +} + +src_install() { + emake DESTDIR="${D}" PREFIX=/usr install + + insinto /etc + newins backup-manager.conf.tpl backup-manager.conf + fperms 0600 /etc/backup-manager.conf +} diff --git a/app-backup/backup-manager/files/backup-manager-0.7.14-fix_purge.patch b/app-backup/backup-manager/files/backup-manager-0.7.14-fix_purge.patch new file mode 100644 index 000000000000..c3e2cbf0ce7b --- /dev/null +++ b/app-backup/backup-manager/files/backup-manager-0.7.14-fix_purge.patch @@ -0,0 +1,23 @@ +From 90b5f71f3803747a788c693d4bcb7e3b60bb4911 Mon Sep 17 00:00:00 2001 +From: Thomas Parmelan <36071478+tompar28@users.noreply.github.com> +Date: Sat, 3 Aug 2019 20:02:34 +0200 +Subject: [PATCH] Fix issue #91 (See + https://github.com/sukria/Backup-Manager/issues/91#issuecomment-381925277) + (#120) + +--- + backup-manager | 1 - + 1 file changed, 1 deletion(-) + +diff --git a/backup-manager b/backup-manager +index 331cfa9..53e622a 100755 +--- a/backup-manager ++++ b/backup-manager +@@ -34,7 +34,6 @@ vardir="/var/lib/backup-manager" + bindir="/usr/bin" + bmu="$bindir/backup-manager-upload" + bmp="$bindir/backup-manager-purge" +-export BM_BMP_PATH=$bmp + + # Find which lockfile to use + # If we are called by an unprivileged user, use a lockfile inside the user's home; |