summaryrefslogtreecommitdiff
blob: b3224822172a604537f8967274196bda8df42bab (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
36
37
38
39
40
41
42
43
44
45
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-backup/hdup/hdup-2.0.14.ebuild,v 1.1 2006/07/22 12:36:53 chtekk Exp $

KEYWORDS="~amd64 ~x86"
DESCRIPTION="Hdup is backup program using tar, find, gzip/bzip2, mcrypt and ssh."
HOMEPAGE="http://www.miek.nl/projects/hdup2/index.html"
SRC_URI="http://www.miek.nl/projects/${PN}2/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
IUSE="crypt"

DEPEND="app-arch/tar
		sys-apps/findutils
		app-arch/gzip
		app-arch/bzip2
		net-misc/openssh
		sys-apps/coreutils
		crypt? ( app-crypt/mcrypt )"

RDEPEND="${DEPEND}"

src_compile() {
	econf || die "conf failed"
	emake || die "make failed"
}

src_install() {
	dodir /usr/sbin
	make DESTDIR="${D}" install || die "install failed"

	dohtml doc/FAQ.html
	dodoc ChangeLog Credits README

	insinto /usr/share/${PN}/contrib/
	doins contrib/*

	insinto /usr/share/${PN}/examples/
	doins examples/*
}

pkg_postinst() {
	einfo "Now edit your /etc/hdup/${PN}.conf to configure your backups."
	einfo "You can also check included examples and contrib, see /usr/share/${PN}/."
}