You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.3 KiB
52 lines
1.3 KiB
9 years ago
|
# Copyright 1999-2015 Gentoo Foundation
|
||
11 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
9 years ago
|
# $Id$
|
||
11 years ago
|
|
||
|
EAPI=5
|
||
|
|
||
9 years ago
|
PYTHON_COMPAT=( python2_7 )
|
||
11 years ago
|
PYTHON_REQ_USE="threads"
|
||
11 years ago
|
|
||
9 years ago
|
inherit distutils-r1
|
||
11 years ago
|
|
||
|
DESCRIPTION="A backup program that supports encryption and deduplication"
|
||
10 years ago
|
HOMEPAGE="http://obnam.org/"
|
||
9 years ago
|
SRC_URI="http://git.liw.fi/cgi-bin/cgit/cgit.cgi/obnam/snapshot/${P}.tar.gz"
|
||
11 years ago
|
|
||
|
LICENSE="GPL-3"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~amd64 ~x86"
|
||
|
IUSE=""
|
||
|
|
||
|
DEPEND="${PYTHON_DEPS}
|
||
9 years ago
|
dev-python/cliapp[${PYTHON_USEDEP}]
|
||
|
dev-python/fuse-python[${PYTHON_USEDEP}]
|
||
|
dev-python/larch[${PYTHON_USEDEP}]
|
||
|
>dev-python/paramiko-1.13.0[${PYTHON_USEDEP}]
|
||
|
dev-python/pyyaml[${PYTHON_USEDEP}]
|
||
|
dev-python/tracing[${PYTHON_USEDEP}]
|
||
|
dev-python/ttystatus[${PYTHON_USEDEP}]
|
||
11 years ago
|
"
|
||
|
RDEPEND="${DEPEND}"
|
||
|
|
||
|
src_compile() {
|
||
|
addwrite /proc/self/comm
|
||
|
distutils-r1_src_compile
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
distutils-r1_src_install
|
||
10 years ago
|
find "${D}" -name "obnam-viewprof*" -delete
|
||
11 years ago
|
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
|
||
|
}
|