# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils IUSE="" # S=${WORKDIR}/${P} - this is not needed as S is set to this by default DESCRIPTION="rsnapshot is a filesystem backup utility based on rsync." HOMEPAGE="http://www.rsnapshot.org" SRC_URI="http://www.rsnapshot.org/downloads/${P}.tar.gz" SLOT="0" LICENSE="GPL-2" KEYWORDS="~x86 ~ppc ~sparc ~mips" #new keywords confirmed w/ author - *64 should work too, but leaving them omitted for now RDEPEND=">=dev-lang/perl-5.8.2 >=util-linux-2.12-r4 >=sys-apps/coreutils-5.0.91-r4 >=net-misc/openssh-3.7.1_p2-r1 >=net-misc/rsync-2.6.0" src_unpack() { unpack ${P}.tar.gz cd ${S} #autoconf || die "autoconf problem" } src_compile() { econf \ --prefix=/usr \ --sysconfdir=/etc || die emake || die } src_install() { make install DESTDIR=${D} || die } pkg_postinst() { einfo einfo "The configuration file: " einfo " /etc/rsnapshot.conf.default " einfo " has been installed. " einfo "This is a template. " einfo "Copy, or move, the above file to: " einfo " /etc/rsnapshot.conf " einfo "Note that upgrading will update " einfo " the template, not real config. " einfo }