Skip to content

Commit

Permalink
+ obnam: version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
l29ah committed Jan 18, 2016
1 parent befaa25 commit 48cebc9
Show file tree
Hide file tree
Showing 3 changed files with 137 additions and 0 deletions.
1 change: 1 addition & 0 deletions app-backup/obnam/Manifest
@@ -0,0 +1 @@
DIST obnam-1.19.tar.gz 372386 SHA256 728629327fa3771e2046b926b025dcfdcbae33a77d946a4daed58b23f1f99153 SHA512 c0dfc8233a6b98d428475261d71b9878acf9bd0b7393ba50cd8c7ce6563ab4b92406c63a897d49b72b8506719e05631861f1fd7559164b13719ae7c76b800195 WHIRLPOOL f42920e3e9b322e4f7448d35035406fb35b7cfe4e91f302ea086f97f15b4c88a5d016e17855f7bff6d40250070f7e0428ecee52c47d63a90cefe9209922098a8
85 changes: 85 additions & 0 deletions app-backup/obnam/files/obnam.conf
@@ -0,0 +1,85 @@
#
# This is the global obnam configuration file
#
# see 'man obnam' for all available config options
#

[config]
###
### BACKUP REPOSITORY (backup destination)
###
### configure where to store backups and how
###
# name of the backup repository
# can be a local path (or NFS mount ...) or a sftp URL
#
# local directory:
#repository = /mnt/mybackupspace
#
# or remote via sftp
#repository = sftp://someuser@server/path/to/backup
#
# enable compression of files in repository (disabled by default)
#compress-with = deflate

###
### BACKUP ROOT(s) (backup source)
###
### configure what to backup and what to exclude
###
#root = /boot, /home
#exclude = ^/var/tmp/, .*\.pid$, \.cache/, ^/usr/src/linux.*/, ^/var/tmp/portage/, .*/.local/share/Trash/
#one-file-system = true

###
### FORGET POLICY (repository housekeeping)
###
### configure which backup generations to keep when
### cleaning up repository
#keep = 72h,14d,10w,12m

###
### LOGGING
###
# where to write a logfile
# log = /var/log/obnam/obnam.log
# log-level = debug
# log-keep = 10
# log-max = 0
# log-mode = 0600

###
### BACKUP ENCRYPTION
###
# Encryption:
# --encrypt-with=ENCRYPT-WITH
# PGP key with which to encrypt data in the backup
# repository
# --keyid=KEYID PGP key id to add to/remove from the backup repository
# --weak-random use /dev/urandom instead of /dev/random to generate
# symmetric keys
# --symmetric-key-bits=SYMMETRIC-KEY-BITS
# size of symmetric key, in bits

###
### PERFORMANCE TWEAKING
###
#
# Performance tweaking:
# --node-size=SIZE size of B-tree nodes on disk (default: 262144)
# --chunk-size=SIZE size of chunks of file data backed up (default:
# 1048576)
# --upload-queue-size=SIZE
# length of upload queue for B-tree nodes (default:
# 1024)
# --lru-size=SIZE size of LRU cache for B-tree nodes (default: 500)
# --idpath-depth=IDPATH-DEPTH
# depth of chunk id mapping
# --idpath-bits=IDPATH-BITS
# chunk id level size
# --idpath-skip=IDPATH-SKIP
# chunk id mapping lowest bits skip
# --chunkids-per-group=NUM
# encode NUM chunk ids per group (1024)
#
# EOF
51 changes: 51 additions & 0 deletions app-backup/obnam/obnam-1.19.ebuild
@@ -0,0 +1,51 @@
# Copyright 1999-2015 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_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
}

0 comments on commit 48cebc9

Please sign in to comment.