forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
obnam-1.18.2-r1.ebuild
55 lines (45 loc) · 1.35 KB
/
obnam-1.18.2-r1.ebuild
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
46
47
48
49
50
51
52
53
54
55
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
PYTHON_COMPAT=( python2_7 )
PYTHON_REQ_USE="threads"
inherit distutils-r1
DESCRIPTION="A backup program that supports encryption and deduplication"
HOMEPAGE="http://obnam.org/"
SRC_URI="http://git.liw.fi/cgi-bin/cgit/cgit.cgi/obnam/snapshot/${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND="${PYTHON_DEPS}
dev-python/cliapp[${PYTHON_USEDEP}]
dev-python/fuse-python[${PYTHON_USEDEP}]
dev-python/larch[${PYTHON_USEDEP}]
>=dev-python/paramiko-1.16.0[${PYTHON_USEDEP}]
dev-python/pyyaml[${PYTHON_USEDEP}]
dev-python/tracing[${PYTHON_USEDEP}]
dev-python/ttystatus[${PYTHON_USEDEP}]
"
RDEPEND="${DEPEND}"
src_prepare() {
epatch "${FILESDIR}/${P}-obnamlib-sftp-Add-prefetch-size-argument.patch"
}
src_compile() {
addwrite /proc/self/comm
distutils-r1_src_compile
}
src_install() {
distutils-r1_src_install
find "${D}" -name "obnam-viewprof*" -delete
insinto /etc
doins "${FILESDIR}"/obnam.conf
keepdir /var/log/obnam
}
pkg_postinst() {
if [[ $REPLACING_VERSIONS < "1.2" ]]; then
elog "You will need to setup a config file before running obnam for the first time."
elog "For details, please see the obnam(1) manual page."
elog "An example file has been installed as /etc/obnam.conf for your convenience."
fi
}