aboutsummaryrefslogtreecommitdiffstats
path: root/app-backup
diff options
context:
space:
mode:
authorAlexander Sulfrian <alexander@sulfrian.net>2012-11-08 23:57:26 +0100
committerAlexander Sulfrian <alexander@sulfrian.net>2012-11-09 00:09:40 +0100
commitc14cc32b3fae8c2674497d16d190e0be7d378659 (patch)
treeee65ef8271f4e9793e34197f70f7277371d75bc2 /app-backup
parentcb646851030bf217d0090a0d025505cc2659de61 (diff)
downloadoverlay-c14cc32b3fae8c2674497d16d190e0be7d378659.tar.gz
overlay-c14cc32b3fae8c2674497d16d190e0be7d378659.tar.xz
overlay-c14cc32b3fae8c2674497d16d190e0be7d378659.zip
app-backup/obnam: port package to python-r1, distutils-r1
Diffstat (limited to 'app-backup')
-rw-r--r--app-backup/obnam/Manifest5
-rw-r--r--app-backup/obnam/files/obnam-1.2_diff_fix.patch11
-rw-r--r--app-backup/obnam/files/obnam-1.2_man_diff_fix.patch18
-rw-r--r--app-backup/obnam/files/obnam.conf85
-rw-r--r--app-backup/obnam/obnam-1.2-r1.ebuild54
5 files changed, 173 insertions, 0 deletions
diff --git a/app-backup/obnam/Manifest b/app-backup/obnam/Manifest
new file mode 100644
index 0000000..4b70df7
--- /dev/null
+++ b/app-backup/obnam/Manifest
@@ -0,0 +1,5 @@
+AUX obnam-1.2_diff_fix.patch 579 SHA256 cca29971f0542af40c1b6b9865f3af9c6ea94f0d82469b1cb4534fe2fcbf30f2 SHA512 49ce28a0654f270a677b4eb2eb1032179895bb993891870f97134351892495134389cd9c8f900b0474a936f9fefbc38160fed6513b7ceb39be4cb158b2c20da9 WHIRLPOOL 828303e281d3d4edfd6ee1eccfcafbdd45a9c75d6bca82b50077b66ece1b9ade9956dd9da0d95cc0698e34d7373461990d07ad3b551fdcaaf8d07b2a22bd4d94
+AUX obnam-1.2_man_diff_fix.patch 908 SHA256 b3fb2a266a6436b3b4a2889b76418e1204b074856d3a65fbde23c5938ce2d256 SHA512 bf137ee556ed1a8cd619c3ceed9f90bd8bbb314710b0b80ae83eec95410917a68301d2a98e06bd3199389855238c622afd66aa5d689be53594b3c82b9724eb73 WHIRLPOOL ce50171c095a9f88a71d2a8d6a1da82c7af03158357a03f007a8329cacbb8eea229d50b498bc85046854c95b2a3ec03e815b8085c9decb84ea5c1c3fbd80efc3
+AUX obnam.conf 2366 SHA256 2a609d1243d5ea3e063a413e78421ede02eda5cbbfd984c211f78ff0239cb5bb SHA512 7fdeb7c51e3ee80c60cf857117ad9571f38a4657fb8e3f95767e6fa0d0eae9b31cd54d5e2e8aa93e1e5255bd2c116c462594b5cd01f0efc0059d2d9ee07efc1c WHIRLPOOL 9766794181bed1e6aef1b15b5be69412dada2d075292c177a4edfa550d29612b8291e2f1b6170ee1d61c735d217ef8d94d3a2fb5b78271f1212e186af1b622de
+DIST obnam_1.2.orig.tar.gz 141515 SHA256 33457452726d5c393d98c565b8e1ab3ac11276cc42bf67c4eee6c4e4ac9976d6 SHA512 9e2bbe94963215911e334c6c7ed89f7b3e9fe4904a371c9eae5290d522c60a10a31ac19009941a7199f217b84be168e188f3beb930b359a637c9c85cddb9586b WHIRLPOOL 29db843b7fd9e0b0178cea8d263dc16076eb8d339319beff704f408f1c4b93836b7b6d03dceb9bf63e7f71ddad438d173040d12ee63b3b2030774e7594c04b6a
+EBUILD obnam-1.2-r1.ebuild 1465 SHA256 a3dfc01daa70eb5a2061b82e78da104f25efbd76884838f54fac94c6100274b9 SHA512 1fe1ed46dbbcd7b7bf03db20028c2a3ef51c683ec2240fcd5eed9cc7a66cc2dbbabc56f1b88eff96ebd8a6b98dea0469c492632b6427af9cd2f3830c4fafe740 WHIRLPOOL 4adc83952e8f2c1f2bbc5c9a67194aecce3132aadc88b023a40269b7c7dba177bafa93fceb2e9426b43056fac3309ce9509e640bcbbb6729fbff0b50fc01d3f5
diff --git a/app-backup/obnam/files/obnam-1.2_diff_fix.patch b/app-backup/obnam/files/obnam-1.2_diff_fix.patch
new file mode 100644
index 0000000..5739dd0
--- /dev/null
+++ b/app-backup/obnam/files/obnam-1.2_diff_fix.patch
@@ -0,0 +1,11 @@
+diff -urN obnam-1.2.orig/obnamlib/plugins/show_plugin.py obnam-1.2/obnamlib/plugins/show_plugin.py
+--- obnam-1.2.orig/obnamlib/plugins/show_plugin.py 2012-10-06 18:45:31.000000000 +0200
++++ obnam-1.2/obnamlib/plugins/show_plugin.py 2012-10-11 09:54:28.757951340 +0200
+@@ -234,6 +234,7 @@
+ self.show_diff_for_file(gen2, full, '+')
+ for basename in sorted(set1):
+ # This was only in gen1 - it got removed
++ full = os.path.join(dirname, basename)
+ self.show_diff_for_file(gen1, full, '-')
+
+ for subdir in subdirs:
diff --git a/app-backup/obnam/files/obnam-1.2_man_diff_fix.patch b/app-backup/obnam/files/obnam-1.2_man_diff_fix.patch
new file mode 100644
index 0000000..b2045c1
--- /dev/null
+++ b/app-backup/obnam/files/obnam-1.2_man_diff_fix.patch
@@ -0,0 +1,18 @@
+diff -urN obnam-1.2.orig/obnam.1.in obnam-1.2/obnam.1.in
+--- obnam-1.2.orig/obnam.1.in 2012-10-06 18:45:31.000000000 +0200
++++ obnam-1.2/obnam.1.in 2012-10-11 10:18:55.991780255 +0200
+@@ -59,6 +59,14 @@
+ lists every backup generation for a given client,
+ plus some metadata about the generation.
+ .IP \(bu
++.B diff
++compares two generations and lists files differing between them. Every output
++line will be prefixed either by a plus sign (+) for files that were added, a
++minus sign (-) for files that have been removed or an asterisk (*) for files
++that have changed. If only one generation ID is specified on the command line
++that generation will be compared with its direct predecessor. If two IDs have
++been specified, all changes between those two generations will be listed.
++.IP \(bu
+ .B genids
+ lists the identifier for every backup generation for a given client.
+ No other information is shown.
diff --git a/app-backup/obnam/files/obnam.conf b/app-backup/obnam/files/obnam.conf
new file mode 100644
index 0000000..0d76717
--- /dev/null
+++ b/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
diff --git a/app-backup/obnam/obnam-1.2-r1.ebuild b/app-backup/obnam/obnam-1.2-r1.ebuild
new file mode 100644
index 0000000..3ddbb55
--- /dev/null
+++ b/app-backup/obnam/obnam-1.2-r1.ebuild
@@ -0,0 +1,54 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-backup/obnam/obnam-1.2-r1.ebuild,v 1.2 2012/10/11 08:25:40 mschiff Exp $
+
+EAPI=4
+
+PYTHON_COMPAT=( python2_6 python2_7 )
+PYTHON_MODNAME="${PN}lib"
+MY_P="${PN}_${PV}.orig"
+
+inherit eutils distutils-r1 python-r1
+
+DESCRIPTION="A backup program that supports encryption and deduplication"
+HOMEPAGE="http://liw.fi/obnam/"
+SRC_URI="http://code.liw.fi/debian/pool/main/o/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="benchmark-utils"
+
+DEPEND="${PYTHON_DEPS}
+ >=dev-python/cliapp-1.20120630
+ dev-python/larch
+ dev-python/paramiko
+ dev-python/tracing
+ >=dev-python/ttystatus-0.19
+ "
+RDEPEND="${DEPEND}"
+
+PATCHES=( "${FILESDIR}/${P}_diff_fix.patch"
+ "${FILESDIR}/${P}_man_diff_fix.patch" )
+
+src_install() {
+ distutils-r1_src_install
+
+ if ! use benchmark-utils ; then
+ rm "${D}"/usr/bin/obnam-{benchmark,viewprof}-*
+ rm "${D}"/usr/bin/obnam-{benchmark,viewprof}
+ rm "${D}"/usr/share/man/man1/obnam-benchmark*
+ fi
+
+ 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
+}