diff options
Diffstat (limited to 'app-backup/sarab')
-rw-r--r-- | app-backup/sarab/Manifest | 1 | ||||
-rw-r--r-- | app-backup/sarab/files/1.0.0-better-defaults-gentoo.patch | 21 | ||||
-rw-r--r-- | app-backup/sarab/files/README.Gentoo | 13 | ||||
-rw-r--r-- | app-backup/sarab/metadata.xml | 15 | ||||
-rw-r--r-- | app-backup/sarab/sarab-1.0.0.ebuild | 40 |
5 files changed, 90 insertions, 0 deletions
diff --git a/app-backup/sarab/Manifest b/app-backup/sarab/Manifest new file mode 100644 index 000000000000..d747750e5b68 --- /dev/null +++ b/app-backup/sarab/Manifest @@ -0,0 +1 @@ +DIST sarab-1.0.0.tar.gz 24738 SHA256 4296617123e0e53c829ad7cb0c9a04f3fabcb1cd65bfddaaa4db8953451824ea SHA512 246abd1893127a8aaf73537b9eb0d43921da37ddee97a02513916db2d6abdde6dd45715fbe56c53809c5442531e8172467de1b05af264a50054ecbecaa8d319f WHIRLPOOL 54f43c7d1be4f9f5cd4f8c60ff9a995ee9972e17f1a01b03d5290f0169a2f2c78f1bd9d76d3be1fb1814e12f1bc41ac2702a89d7544a42d3a18bb108958924a9 diff --git a/app-backup/sarab/files/1.0.0-better-defaults-gentoo.patch b/app-backup/sarab/files/1.0.0-better-defaults-gentoo.patch new file mode 100644 index 000000000000..ecb8b558e067 --- /dev/null +++ b/app-backup/sarab/files/1.0.0-better-defaults-gentoo.patch @@ -0,0 +1,21 @@ +--- sarab-1.0.0.orig/etc/sarab.conf 2010-02-21 06:13:22.000000000 -0500 ++++ sarab-1.0.0/etc/sarab.conf 2010-08-20 18:30:41.630323933 -0400 +@@ -76,10 +76,10 @@ + + # The location of the DAR executable file + # This line is only effective if not added by install.sh later in this file +-DAR_BINARY="/usr/local/bin/dar" ++DAR_BINARY="/usr/bin/dar" + + # The location of the statically-compiled DAR executable file +-DAR_STATIC="/usr/local/bin/dar_static" ++DAR_STATIC="/usr/bin/dar_static" + + # The temporary directory name that backups will be created in. This will be created underneath $DESTINATION. + WORK_DIR=".sarab_temp_workdir" +@@ -88,4 +88,4 @@ + DAR_CREATE="$DESTINATION/$WORK_DIR/$BASENAME" + + # Location and name of temporary log file +-TEMP_LOG="$SARAB_ETC/sarab_temp.log" ++TEMP_LOG="/var/log/sarab_temp.log" diff --git a/app-backup/sarab/files/README.Gentoo b/app-backup/sarab/files/README.Gentoo new file mode 100644 index 000000000000..680a395239df --- /dev/null +++ b/app-backup/sarab/files/README.Gentoo @@ -0,0 +1,13 @@ +-*- outline -*- $Id$ + +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/metadata.xml b/app-backup/sarab/metadata.xml new file mode 100644 index 000000000000..b7622b999785 --- /dev/null +++ b/app-backup/sarab/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer> + <email>rich0@gentoo.org</email> + </maintainer> + <longdescription> +SaraB works with DAR (Disk ARchive) to schedule backups. SaraB provides a +powerful, automated rotation schedule which allows administrators to create a +custom rotation that fits the needs of their network. +</longdescription> + <upstream> + <remote-id type="sourceforge">sarab</remote-id> + </upstream> +</pkgmetadata> diff --git a/app-backup/sarab/sarab-1.0.0.ebuild b/app-backup/sarab/sarab-1.0.0.ebuild new file mode 100644 index 000000000000..5e8a572c57e0 --- /dev/null +++ b/app-backup/sarab/sarab-1.0.0.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +inherit eutils + +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 + virtual/mailx" + +src_unpack() { + cd "${S}" + unpack ${A} + + epatch "${FILESDIR}"/${PV}-better-defaults-gentoo.patch +} + +src_install() { + dobin sarab.sh + insinto /etc/sarab + doins -r etc/* + # sarab.conf could contain passphrase information + fperms 600 /etc/sarab/sarab.conf + dodoc CHANGELOG FAQ INSTALL README + dodoc "${FILESDIR}"/README.Gentoo +} + +pkg_postinstl() { + 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" +} |