From 83825dfd74d88acd857eef7e85482b34507fabef Mon Sep 17 00:00:00 2001 From: David Seifert Date: Thu, 28 Dec 2017 14:58:41 +0100 Subject: app-backup/sarab: Port to EAPI 6 Package-Manager: Portage-2.3.19, Repoman-2.3.6 --- app-backup/sarab/files/README.Gentoo | 13 ------------- app-backup/sarab/files/README.gentoo | 13 +++++++++++++ app-backup/sarab/sarab-1.0.0.ebuild | 29 ++++++++++++++++------------- 3 files changed, 29 insertions(+), 26 deletions(-) delete mode 100644 app-backup/sarab/files/README.Gentoo create mode 100644 app-backup/sarab/files/README.gentoo (limited to 'app-backup/sarab') diff --git a/app-backup/sarab/files/README.Gentoo b/app-backup/sarab/files/README.Gentoo deleted file mode 100644 index 46359913c729..000000000000 --- a/app-backup/sarab/files/README.Gentoo +++ /dev/null @@ -1,13 +0,0 @@ --*- outline -*- - -Gentoo GNU/Linux specific notes for SaraB ------------------------------------------ - -This is the README.Gentoo file from /usr/share/doc/@PF@/ directory. - - * The Gentoo port includes more reasonable pathnames for the example - configuration. - -If you encounter any problems or have suggestions, use https://bugs.gentoo.org. -Please don't bother the upstream authors unless you are absolutely certain it is -not Gentoo-related. diff --git a/app-backup/sarab/files/README.gentoo b/app-backup/sarab/files/README.gentoo new file mode 100644 index 000000000000..46359913c729 --- /dev/null +++ b/app-backup/sarab/files/README.gentoo @@ -0,0 +1,13 @@ +-*- outline -*- + +Gentoo GNU/Linux specific notes for SaraB +----------------------------------------- + +This is the README.Gentoo file from /usr/share/doc/@PF@/ directory. + + * The Gentoo port includes more reasonable pathnames for the example + configuration. + +If you encounter any problems or have suggestions, use https://bugs.gentoo.org. +Please don't bother the upstream authors unless you are absolutely certain it is +not Gentoo-related. diff --git a/app-backup/sarab/sarab-1.0.0.ebuild b/app-backup/sarab/sarab-1.0.0.ebuild index 6c426c2c9cbd..896edbcc95c8 100644 --- a/app-backup/sarab/sarab-1.0.0.ebuild +++ b/app-backup/sarab/sarab-1.0.0.ebuild @@ -1,38 +1,41 @@ -# Copyright 1999-2014 Gentoo Foundation +# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -inherit eutils +EAPI=6 + +inherit readme.gentoo-r1 DESCRIPTION="SaraB is a powerful and automated backup scheduling system based on DAR" HOMEPAGE="http://sarab.sourceforge.net/" SRC_URI="mirror://sourceforge/sarab/${P}.tar.gz" + LICENSE="GPL-2" SLOT="0" KEYWORDS="amd64 x86" IUSE="" DEPEND="" -RDEPEND="app-backup/dar +RDEPEND=" + app-backup/dar virtual/mailx" -src_unpack() { - cd "${S}" - unpack ${A} - - epatch "${FILESDIR}"/${PV}-better-defaults-gentoo.patch -} +PATCHES=( "${FILESDIR}"/${PV}-better-defaults-gentoo.patch ) src_install() { dobin sarab.sh + einstalldocs + insinto /etc/sarab - doins -r etc/* + doins -r etc/. # sarab.conf could contain passphrase information fperms 600 /etc/sarab/sarab.conf - dodoc CHANGELOG FAQ INSTALL README - dodoc "${FILESDIR}"/README.Gentoo + + readme.gentoo_create_doc } -pkg_postinstl() { +pkg_postinst() { + readme.gentoo_print_elog + ewarn "The configuration format for DAR encryption has changed in Sarab 0.2.4." ewarn "Replace DAR_ENCRYPTION_OPTIONS=\"--key blowfish:PASSPHRASE\"" ewarn "by SARAB_KEY=\"blowfish:PASSPHRASE\" in /etc/sarab/sarab.conf" -- cgit v1.2.3-65-gdbad