Debian Codegraph @

packaging/gentoo/rear.ebuild

raw
1 # Copyright 1999-2013 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: $
4
5 EAPI=4
6
7 DESCRIPTION="Fully automated disaster recovery supporting a broad variety of backup strategies and scenarios"
8 HOMEPAGE="http://relax-and-recover.org/"
9 SRC_URI="https://github.com/rear/rear/archive/${PV}.tar.gz -> ${P}.tar.gz"
10
11 LICENSE="GPL-2"
12 SLOT="0"
13 KEYWORDS="~amd64 ~x86"
14 IUSE="udev"
15
16 RDEPEND="net-fs/nfs-utils
17 sys-apps/iproute2
18 sys-apps/lsb-release
19 sys-apps/util-linux
20 sys-apps/gawk
21 sys-block/parted
22 sys-boot/syslinux
23 virtual/cdrtools
24 udev? ( sys-fs/udev )
25 dev-libs/openssl
26 "
27
28 src_compile () {
29 true
30 }
31
32 src_install () {
33 # deploy udev USB rule and udev will autostart ReaR workflows in case a USB
34 # drive with the label 'REAR_000' is connected, which in turn is the
35 # default label when running the `rear format` command.
36 if use udev; then
37 insinto /lib/udev/rules.d
38 doins etc/udev/rules.d/62-${PN}-usb.rules
39 fi
40
41 # copy configurations files
42 insinto /etc
43 doins -r etc/${PN}/
44
45 # copy main script-file and docs
46 dosbin usr/sbin/${PN}
47 doman doc/${PN}.8
48 dodoc README.md
49
50 insinto /usr/share/
51 doins -r usr/share/${PN}/
52 }
53