summaryrefslogtreecommitdiff
blob: e844ac66260ed8f1a8b199493402bafd2854b561 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils subversion

ESVN_REPO_URI="https://faracvs.cs.uni-magdeburg.de/svn/christsc/${PN}/${PN}/branches/${PV}"

DESCRIPTION="a wrapper script for creating backups using dar"
HOMEPAGE="https://faracvs.cs.uni-magdeburg.de/projects/christsc-darbackup/"
SRC_URI=""

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

RDEPEND=">=app-backup/dar-2.2.6
	|| ( dev-util/bdelta dev-util/xdelta )
	net-misc/openssh"

pkg_setup() {
	if ! built_with_use app-backup/dar dar32 && ! built_with_use app-backup/dar dar64; then
		die 'You must have dar32 or dar64 useflags for dar enabled.'
	fi
}

src_install() {
	dobin darbackup
	doman darbackup.1
}

pkg_postinst() {
	enewgroup backup
}