Skip to content

Commit

Permalink
app-backup/sarab: Port to EAPI 6
Browse files Browse the repository at this point in the history
Package-Manager: Portage-2.3.19, Repoman-2.3.6
  • Loading branch information
SoapGentoo committed Dec 28, 2017
1 parent 5b3a051 commit 83825df
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 13 deletions.
File renamed without changes.
29 changes: 16 additions & 13 deletions app-backup/sarab/sarab-1.0.0.ebuild
Original file line number Diff line number Diff line change
@@ -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"
Expand Down

0 comments on commit 83825df

Please sign in to comment.