app-backup/flexbackup: cleanup

Package-Manager: Portage-2.3.13, Repoman-2.3.3
This commit is contained in:
Hans de Graaff
2017-12-03 09:35:01 +01:00
parent 0974d0da4a
commit 3eab8b400f
2 changed files with 1 additions and 85 deletions

View File

@@ -1 +1 @@
DIST flexbackup-1.2.1.tar.gz 80158 SHA256 58282b21985be75f1219c5ff4906d217055ed8627ea3e2ffdfe7a2393bc9d2c3 SHA512 17630bc46657becdf5d5bde4852fd6cebe189fe54d381bda6471aa2e1db1ff082ba24461e2c22ba5805c2d93ac7f9805ffbdc4904da017f1b163cc21b5a3974b WHIRLPOOL 0beb123986579b5f5c9add2e1ccc02b11e687dfce7a093d550239aec50cf5a35cf15da066a6b0f23819a001dce222d5167874527411bb31bca405b55c8f2d171
DIST flexbackup-1.2.1.tar.gz 80158 BLAKE2B 0e54c275ddd218184195bb5bc873db10ab144409eed9d87410e5b7ba5ed09297fbdb58f3eb69b5d55c1ec727fe79f51b376914542ba5eae70ab4f87351b6dd4c SHA512 17630bc46657becdf5d5bde4852fd6cebe189fe54d381bda6471aa2e1db1ff082ba24461e2c22ba5805c2d93ac7f9805ffbdc4904da017f1b163cc21b5a3974b

View File

@@ -1,84 +0,0 @@
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
inherit eutils versionator
DESCRIPTION="Flexible backup script using perl"
HOMEPAGE="http://flexbackup.sourceforge.net/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 hppa ppc x86"
IUSE=""
RDEPEND="app-arch/mt-st"
DEPEND="${RDEPEND}"
src_unpack() {
unpack ${A}
cd "${S}"
# Patch from upstream adds optional lzma compression mode.
epatch "${FILESDIR}"/${P}-lzma.patch
# Fix bug #116510: cannot back up remote machines after patch CAN-2005-2965
epatch "${FILESDIR}"/${P}-secure-tempfile.patch
# Fix bug #96334: incorrectly determines bash 3.x to be bash 1.x
epatch "${FILESDIR}"/${P}-bash.patch
# Fix bug #171205: specifies wrong command line option for mbuffer / other small enhancements
epatch "${FILESDIR}"/${P}-mbuffer-switch.patch
# Fix bug #173672: remote host buffer test is broken
epatch "${FILESDIR}"/${P}-remote-bufftest.patch
# Fix bug #178126: subtle subtree pruning issue / other small issues
epatch "${FILESDIR}"/${P}-prune.patch
# Fix bug #184560: fails to back up targets with spaces in their names in some modes
epatch "${FILESDIR}"/${P}-spaces-in-filenames.patch
# Fix bug #190357: fails on very large files with afio back end
epatch "${FILESDIR}"/${P}-afio-large-files.patch
# Fix bug #235416: prevent normal status message during conf file read from going to stderr
epatch "${FILESDIR}"/${P}-quieten.patch
# Fix bug #331673: perl 5.12 deprecation warnings.
epatch "${FILESDIR}"/${P}-perl-5.12-deprecation-warning.patch
# Fix bug #495232: perl 5.16 deprecation warnings.
epatch "${FILESDIR}"/${P}-perl-5.16-deprecation-warning.patch
sed -i \
-e '/^\$type = /s:afio:tar:' \
-e "/^\$buffer = /s:'buffer':'false':" \
flexbackup.conf \
|| die "Failed to set modified configuration defaults."
MY_PV=$(replace_all_version_separators '_')
sed -i \
-e "/^[[:blank:]]*my \$ver = /s:${MY_PV}:&-${PR}:" \
flexbackup \
|| die "Failed to apply ebuild revision to internal version string."
}
src_install() {
dodir /etc /usr/bin /usr/share/man/man{1,5}
emake install \
PREFIX="${D}"/usr \
CONFFILE="${D}"/etc/flexbackup.conf \
|| die "emake install failed"
dodoc CHANGES CREDITS README TODO
dohtml faq.html
}
pkg_postinst() {
elog "Please edit your /etc/flexbackup.conf file to suit your"
elog "needs. If you are using devfs, the tape device should"
elog "be set to /dev/tapes/tape0/mtn. If you need to use any"
elog "archiver other than tar, please emerge it separately."
}