summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2015-08-08 13:49:04 -0700
committerRobin H. Johnson <robbat2@gentoo.org>2015-08-08 17:38:18 -0700
commit56bd759df1d0c750a065b8c845e93d5dfa6b549d (patch)
tree3f91093cdb475e565ae857f1c5a7fd339e2d781e /app-backup
downloadgentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.gz
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.tar.bz2
gentoo-56bd759df1d0c750a065b8c845e93d5dfa6b549d.zip
proj/gentoo: Initial commit
This commit represents a new era for Gentoo: Storing the gentoo-x86 tree in Git, as converted from CVS. This commit is the start of the NEW history. Any historical data is intended to be grafted onto this point. Creation process: 1. Take final CVS checkout snapshot 2. Remove ALL ChangeLog* files 3. Transform all Manifests to thin 4. Remove empty Manifests 5. Convert all stale $Header$/$Id$ CVS keywords to non-expanded Git $Id$ 5.1. Do not touch files with -kb/-ko keyword flags. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org> X-Thanks: Alec Warner <antarus@gentoo.org> - did the GSoC 2006 migration tests X-Thanks: Robin H. Johnson <robbat2@gentoo.org> - infra guy, herding this project X-Thanks: Nguyen Thai Ngoc Duy <pclouds@gentoo.org> - Former Gentoo developer, wrote Git features for the migration X-Thanks: Brian Harring <ferringb@gentoo.org> - wrote much python to improve cvs2svn X-Thanks: Rich Freeman <rich0@gentoo.org> - validation scripts X-Thanks: Patrick Lauer <patrick@gentoo.org> - Gentoo dev, running new 2014 work in migration X-Thanks: Michał Górny <mgorny@gentoo.org> - scripts, QA, nagging X-Thanks: All of other Gentoo developers - many ideas and lots of paint on the bikeshed
Diffstat (limited to 'app-backup')
-rw-r--r--app-backup/amanda/Manifest3
-rw-r--r--app-backup/amanda/amanda-3.3.3-r1.ebuild475
-rw-r--r--app-backup/amanda/amanda-3.3.3.ebuild469
-rw-r--r--app-backup/amanda/amanda-3.3.5.ebuild475
-rw-r--r--app-backup/amanda/amanda-3.3.7.ebuild472
-rw-r--r--app-backup/amanda/files/amanda-amandahosts-client-2.5.1_p3-r18
-rw-r--r--app-backup/amanda/files/amanda-amandahosts-server-2.5.1_p3-r18
-rw-r--r--app-backup/amanda/files/amanda-cron13
-rw-r--r--app-backup/amanda/files/amanda-devfs7
-rw-r--r--app-backup/amanda/files/amanda-inetd.amanda.sample-2.6.0_p2-r23
-rw-r--r--app-backup/amanda/files/amanda-profile1
-rw-r--r--app-backup/amanda/files/amanda-xinetd-2.6.1_p1-client19
-rw-r--r--app-backup/amanda/files/amanda-xinetd-2.6.1_p1-server19
-rw-r--r--app-backup/amanda/files/amanda.service10
-rw-r--r--app-backup/amanda/files/amanda.service-r110
-rw-r--r--app-backup/amanda/files/amanda.socket7
-rw-r--r--app-backup/amanda/files/example_amanda.conf44
-rw-r--r--app-backup/amanda/files/example_disklist-2.5.1_p3-r14
-rw-r--r--app-backup/amanda/files/example_global.conf78
-rw-r--r--app-backup/amanda/files/local-amanda-perl5.20.patch205
-rw-r--r--app-backup/amanda/metadata.xml28
-rw-r--r--app-backup/backintime/Manifest4
-rw-r--r--app-backup/backintime/backintime-1.0.24-r2.ebuild98
-rw-r--r--app-backup/backintime/backintime-1.0.36-r2.ebuild98
-rw-r--r--app-backup/backintime/backintime-1.0.40.ebuild98
-rw-r--r--app-backup/backintime/backintime-1.1.4.ebuild76
-rw-r--r--app-backup/backintime/files/backintime-1.0.24-dont-install-license.patch49
-rw-r--r--app-backup/backintime/files/backintime-1.0.24-wrapper.patch64
-rw-r--r--app-backup/backintime/files/backintime-1.0.36-wrapper.patch65
-rw-r--r--app-backup/backintime/files/backintime-1.0.4-fix-configure-warning.diff17
-rw-r--r--app-backup/backintime/files/backintime-1.0.4-kde4-root.desktop11
-rw-r--r--app-backup/backintime/metadata.xml17
-rw-r--r--app-backup/backup-manager/Manifest2
-rw-r--r--app-backup/backup-manager/backup-manager-0.7.10.1-r1.ebuild50
-rw-r--r--app-backup/backup-manager/backup-manager-0.7.10.1-r2.ebuild51
-rw-r--r--app-backup/backup-manager/backup-manager-0.7.5.ebuild45
-rw-r--r--app-backup/backup-manager/files/Makefile-fix.diff25
-rw-r--r--app-backup/backup-manager/files/backup-manager-0.7.10-Fix-POD-syntax.patch30
-rw-r--r--app-backup/backup-manager/files/backup-manager-0.7.9-parallel_install.patch20
-rw-r--r--app-backup/backup-manager/metadata.xml13
-rw-r--r--app-backup/backupninja/Manifest1
-rw-r--r--app-backup/backupninja/backupninja-1.0.1.ebuild28
-rw-r--r--app-backup/backupninja/metadata.xml9
-rw-r--r--app-backup/backuppc/Manifest1
-rw-r--r--app-backup/backuppc/backuppc-3.3.0-r1.ebuild223
-rw-r--r--app-backup/backuppc/files/3.2.0/01-fix-configure.pl.patch30
-rw-r--r--app-backup/backuppc/files/3.2.0/03-reasonable-config.pl-defaults.patch47
-rw-r--r--app-backup/backuppc/files/3.2.0/04-add-docdir-marker.patch11
-rw-r--r--app-backup/backuppc/files/3.2.0/05-nicelevel.patch18
-rw-r--r--app-backup/backuppc/files/3.3.0/01-fix-configure.pl.patch30
-rw-r--r--app-backup/backuppc/files/3.3.0/02-fix-config.pl-formatting.patch801
-rw-r--r--app-backup/backuppc/files/3.3.0/03-reasonable-config.pl-defaults.patch47
-rw-r--r--app-backup/backuppc/files/BackupPC-2.1.2pl2.diff202
-rw-r--r--app-backup/backuppc/files/apache2-backuppc.conf73
-rw-r--r--app-backup/backuppc/files/apache2-backuppc.init170
-rw-r--r--app-backup/backuppc/files/backuppc.service13
-rw-r--r--app-backup/backuppc/files/httpd.conf332
-rw-r--r--app-backup/backuppc/files/postinstall-en.txt1
-rw-r--r--app-backup/backuppc/metadata.xml8
-rw-r--r--app-backup/bacula/Manifest3
-rw-r--r--app-backup/bacula/bacula-5.0.3-r4.ebuild381
-rw-r--r--app-backup/bacula/bacula-5.2.13-r3.ebuild410
-rw-r--r--app-backup/bacula/bacula-7.0.5-r1.ebuild403
-rw-r--r--app-backup/bacula/files/5.0.3/bacula-5.0.3-Makefile.patch26
-rw-r--r--app-backup/bacula/files/5.0.3/bacula-5.0.3-as-needed.patch33
-rw-r--r--app-backup/bacula/files/5.0.3/bacula-5.0.3-cve.patch125
-rw-r--r--app-backup/bacula/files/5.0.3/bacula-5.0.3-doc.patch13
-rw-r--r--app-backup/bacula/files/5.0.3/bacula-5.0.3-fix-static.patch47
-rw-r--r--app-backup/bacula/files/5.0.3/bacula-5.0.3-ldflags.patch10
-rw-r--r--app-backup/bacula/files/5.0.3/bacula-5.0.3-lib-search-path.patch12
-rw-r--r--app-backup/bacula/files/5.0.3/bacula-5.0.3-openssl-1.patch25
-rw-r--r--app-backup/bacula/files/5.2.10/bacula-5.2.10-fix-static.patch56
-rw-r--r--app-backup/bacula/files/5.2.12/bacula-5.2.12-depend.patch12
-rw-r--r--app-backup/bacula/files/5.2.3/bacula-5.2.3-Makefile.patch27
-rw-r--r--app-backup/bacula/files/5.2.3/bacula-5.2.3-as-needed.patch14
-rw-r--r--app-backup/bacula/files/5.2.3/bacula-5.2.3-doc.patch13
-rw-r--r--app-backup/bacula/files/5.2.3/bacula-5.2.3-fix-static.patch60
-rw-r--r--app-backup/bacula/files/5.2.3/bacula-5.2.3-ldflags.patch11
-rw-r--r--app-backup/bacula/files/5.2.3/bacula-5.2.3-lib-search-path.patch12
-rw-r--r--app-backup/bacula/files/5.2.3/bacula-5.2.3-openssl-1.patch25
-rw-r--r--app-backup/bacula/files/7.0.2/bacula-7.0.2-depend.patch12
-rw-r--r--app-backup/bacula/files/7.0.2/bacula-7.0.2-fix-static.patch56
-rw-r--r--app-backup/bacula/files/bacula-dir.confd17
-rw-r--r--app-backup/bacula/files/bacula-dir.initd25
-rw-r--r--app-backup/bacula/files/bacula-fd.confd8
-rw-r--r--app-backup/bacula/files/bacula-fd.initd22
-rw-r--r--app-backup/bacula/files/bacula-sd.confd11
-rw-r--r--app-backup/bacula/files/bacula-sd.initd22
-rw-r--r--app-backup/bacula/metadata.xml19
-rw-r--r--app-backup/bareos/Manifest3
-rw-r--r--app-backup/bareos/bareos-12.4.5-r1.ebuild402
-rw-r--r--app-backup/bareos/bareos-13.2.4-r1.ebuild398
-rw-r--r--app-backup/bareos/bareos-14.2.1.ebuild409
-rw-r--r--app-backup/bareos/files/bareos-12.4.5-Makefile.patch27
-rw-r--r--app-backup/bareos/files/bareos-12.4.5-bat-ldflags.patch11
-rw-r--r--app-backup/bareos/files/bareos-dir.confd18
-rw-r--r--app-backup/bareos/files/bareos-dir.initd22
-rw-r--r--app-backup/bareos/files/bareos-fd.confd8
-rw-r--r--app-backup/bareos/files/bareos-fd.initd22
-rw-r--r--app-backup/bareos/files/bareos-sd.confd11
-rw-r--r--app-backup/bareos/files/bareos-sd.initd22
-rw-r--r--app-backup/bareos/metadata.xml25
-rw-r--r--app-backup/boxbackup/Manifest1
-rw-r--r--app-backup/boxbackup/boxbackup-0.11.1.ebuild75
-rw-r--r--app-backup/boxbackup/files/bbackupd.rc21
-rw-r--r--app-backup/boxbackup/files/bbstored.rc21
-rw-r--r--app-backup/boxbackup/files/boxbackup-0.11_rc8-testbbackupd.patch11
-rw-r--r--app-backup/boxbackup/metadata.xml11
-rw-r--r--app-backup/burp/Manifest4
-rw-r--r--app-backup/burp/burp-1.3.48.ebuild96
-rw-r--r--app-backup/burp/burp-1.3.8.ebuild91
-rw-r--r--app-backup/burp/burp-1.4.26.ebuild96
-rw-r--r--app-backup/burp/burp-1.4.34.ebuild95
-rw-r--r--app-backup/burp/files/1.3.48-bedup-conf-path.patch33
-rw-r--r--app-backup/burp/files/1.3.48-tinfo.patch22
-rw-r--r--app-backup/burp/files/1.3.8-bedup-conf-path.patch33
-rw-r--r--app-backup/burp/files/1.4.26-bedup-conf-path.patch33
-rw-r--r--app-backup/burp/files/1.4.26-tinfo.patch22
-rw-r--r--app-backup/burp/files/1.4.34-bedup-conf-path.patch33
-rw-r--r--app-backup/burp/files/1.4.34-tinfo.patch22
-rw-r--r--app-backup/burp/files/burp.initd41
-rw-r--r--app-backup/burp/metadata.xml17
-rw-r--r--app-backup/ccollect/Manifest3
-rw-r--r--app-backup/ccollect/ccollect-0.5.1.ebuild45
-rw-r--r--app-backup/ccollect/ccollect-0.7.1.ebuild73
-rw-r--r--app-backup/ccollect/ccollect-0.8.ebuild76
-rw-r--r--app-backup/ccollect/metadata.xml7
-rw-r--r--app-backup/cdbackup/Manifest2
-rw-r--r--app-backup/cdbackup/cdbackup-0.7.0.ebuild34
-rw-r--r--app-backup/cdbackup/cdbackup-0.7.1.ebuild34
-rw-r--r--app-backup/cdbackup/metadata.xml5
-rw-r--r--app-backup/cdbkup/Manifest1
-rw-r--r--app-backup/cdbkup/cdbkup-1.0-r1.ebuild34
-rw-r--r--app-backup/cdbkup/cdbkup-1.0.ebuild36
-rw-r--r--app-backup/cdbkup/metadata.xml10
-rw-r--r--app-backup/cpdup/Manifest1
-rw-r--r--app-backup/cpdup/cpdup-1.18.ebuild46
-rw-r--r--app-backup/cpdup/files/Makefile.linux13
-rw-r--r--app-backup/cpdup/files/cpdup-1.11-unused.patch14
-rw-r--r--app-backup/cpdup/metadata.xml5
-rw-r--r--app-backup/dar/Manifest8
-rw-r--r--app-backup/dar/dar-2.3.8.ebuild63
-rw-r--r--app-backup/dar/dar-2.4.10.ebuild69
-rw-r--r--app-backup/dar/dar-2.4.11.ebuild69
-rw-r--r--app-backup/dar/dar-2.4.12.ebuild69
-rw-r--r--app-backup/dar/dar-2.4.13.ebuild69
-rw-r--r--app-backup/dar/dar-2.4.17.ebuild69
-rw-r--r--app-backup/dar/dar-2.4.2.ebuild68
-rw-r--r--app-backup/dar/dar-2.4.9.ebuild69
-rw-r--r--app-backup/dar/metadata.xml23
-rw-r--r--app-backup/deja-dup/Manifest2
-rw-r--r--app-backup/deja-dup/deja-dup-32.0-r1.ebuild79
-rw-r--r--app-backup/deja-dup/deja-dup-34.0.ebuild74
-rw-r--r--app-backup/deja-dup/files/deja-dup-29.1-cmake-backport-1.patch11
-rw-r--r--app-backup/deja-dup/files/deja-dup-29.1-cmake-backport-2.patch32
-rw-r--r--app-backup/deja-dup/files/deja-dup-29.5-cmake.patch16
-rw-r--r--app-backup/deja-dup/files/deja-dup-32.0-duplicity-0.6.25.patch41
-rw-r--r--app-backup/deja-dup/metadata.xml14
-rw-r--r--app-backup/dirvish/Manifest1
-rw-r--r--app-backup/dirvish/dirvish-1.2.1.ebuild39
-rw-r--r--app-backup/dirvish/files/master.conf.example33
-rw-r--r--app-backup/dirvish/metadata.xml10
-rw-r--r--app-backup/duplicity/Manifest4
-rw-r--r--app-backup/duplicity/duplicity-0.6.22.ebuild37
-rw-r--r--app-backup/duplicity/duplicity-0.6.23-r1.ebuild38
-rw-r--r--app-backup/duplicity/duplicity-0.6.24.ebuild49
-rw-r--r--app-backup/duplicity/duplicity-0.6.25.ebuild49
-rw-r--r--app-backup/duplicity/files/duplicity-0.6.24-skip-test.patch10
-rw-r--r--app-backup/duplicity/metadata.xml11
-rw-r--r--app-backup/duply/Manifest2
-rw-r--r--app-backup/duply/duply-1.10.ebuild28
-rw-r--r--app-backup/duply/duply-1.9.2.ebuild28
-rw-r--r--app-backup/duply/files/README.gentoo4
-rw-r--r--app-backup/duply/metadata.xml18
-rw-r--r--app-backup/flexbackup/Manifest1
-rw-r--r--app-backup/flexbackup/files/flexbackup-1.2.1-afio-large-files.patch13
-rw-r--r--app-backup/flexbackup/files/flexbackup-1.2.1-bash.patch18
-rw-r--r--app-backup/flexbackup/files/flexbackup-1.2.1-lzma.patch114
-rw-r--r--app-backup/flexbackup/files/flexbackup-1.2.1-mbuffer-switch.patch130
-rw-r--r--app-backup/flexbackup/files/flexbackup-1.2.1-perl-5.12-deprecation-warning.patch29
-rw-r--r--app-backup/flexbackup/files/flexbackup-1.2.1-perl-5.16-deprecation-warning.patch11
-rw-r--r--app-backup/flexbackup/files/flexbackup-1.2.1-prune.patch136
-rw-r--r--app-backup/flexbackup/files/flexbackup-1.2.1-quieten.patch13
-rw-r--r--app-backup/flexbackup/files/flexbackup-1.2.1-remote-bufftest.patch59
-rw-r--r--app-backup/flexbackup/files/flexbackup-1.2.1-secure-tempfile.patch72
-rw-r--r--app-backup/flexbackup/files/flexbackup-1.2.1-spaces-in-filenames.patch296
-rw-r--r--app-backup/flexbackup/flexbackup-1.2.1-r12.ebuild85
-rw-r--r--app-backup/flexbackup/metadata.xml10
-rw-r--r--app-backup/fsarchiver/Manifest1
-rw-r--r--app-backup/fsarchiver/fsarchiver-0.6.19.ebuild36
-rw-r--r--app-backup/fsarchiver/metadata.xml11
-rw-r--r--app-backup/furball/Manifest1
-rw-r--r--app-backup/furball/furball-0.5.ebuild22
-rw-r--r--app-backup/furball/metadata.xml8
-rw-r--r--app-backup/hdup/Manifest1
-rw-r--r--app-backup/hdup/hdup-2.0.14.ebuild59
-rw-r--r--app-backup/hdup/metadata.xml7
-rw-r--r--app-backup/holland-backup-example/Manifest1
-rw-r--r--app-backup/holland-backup-example/holland-backup-example-1.0.10.ebuild40
-rw-r--r--app-backup/holland-backup-example/metadata.xml10
-rw-r--r--app-backup/holland-backup-mysql-lvm/Manifest1
-rw-r--r--app-backup/holland-backup-mysql-lvm/holland-backup-mysql-lvm-1.0.10.ebuild52
-rw-r--r--app-backup/holland-backup-mysql-lvm/metadata.xml10
-rw-r--r--app-backup/holland-backup-mysql-meta/holland-backup-mysql-meta-1.0.10.ebuild25
-rw-r--r--app-backup/holland-backup-mysql-meta/metadata.xml15
-rw-r--r--app-backup/holland-backup-mysqldump/Manifest1
-rw-r--r--app-backup/holland-backup-mysqldump/holland-backup-mysqldump-1.0.10.ebuild53
-rw-r--r--app-backup/holland-backup-mysqldump/metadata.xml10
-rw-r--r--app-backup/holland-backup-mysqlhotcopy/Manifest1
-rw-r--r--app-backup/holland-backup-mysqlhotcopy/holland-backup-mysqlhotcopy-1.0.10.ebuild47
-rw-r--r--app-backup/holland-backup-mysqlhotcopy/metadata.xml10
-rw-r--r--app-backup/holland-backup-pgdump/Manifest1
-rw-r--r--app-backup/holland-backup-pgdump/holland-backup-pgdump-1.0.10.ebuild39
-rw-r--r--app-backup/holland-backup-pgdump/metadata.xml10
-rw-r--r--app-backup/holland-backup-random/Manifest1
-rw-r--r--app-backup/holland-backup-random/holland-backup-random-1.0.10.ebuild40
-rw-r--r--app-backup/holland-backup-random/metadata.xml10
-rw-r--r--app-backup/holland-backup-sqlite/Manifest1
-rw-r--r--app-backup/holland-backup-sqlite/holland-backup-sqlite-1.0.10.ebuild40
-rw-r--r--app-backup/holland-backup-sqlite/metadata.xml10
-rw-r--r--app-backup/holland-lib-common/Manifest1
-rw-r--r--app-backup/holland-lib-common/holland-lib-common-1.0.10.ebuild26
-rw-r--r--app-backup/holland-lib-common/metadata.xml10
-rw-r--r--app-backup/holland-lib-lvm/Manifest1
-rw-r--r--app-backup/holland-lib-lvm/holland-lib-lvm-1.0.10.ebuild26
-rw-r--r--app-backup/holland-lib-lvm/metadata.xml10
-rw-r--r--app-backup/holland-lib-mysql/Manifest1
-rw-r--r--app-backup/holland-lib-mysql/holland-lib-mysql-1.0.10.ebuild39
-rw-r--r--app-backup/holland-lib-mysql/metadata.xml10
-rw-r--r--app-backup/holland/Manifest1
-rw-r--r--app-backup/holland/holland-1.0.10.ebuild56
-rw-r--r--app-backup/holland/metadata.xml10
-rw-r--r--app-backup/kbackup/Manifest1
-rw-r--r--app-backup/kbackup/kbackup-0.8-r1.ebuild18
-rw-r--r--app-backup/kbackup/metadata.xml5
-rw-r--r--app-backup/luckybackup/Manifest2
-rw-r--r--app-backup/luckybackup/luckybackup-0.4.7-r1.ebuild42
-rw-r--r--app-backup/luckybackup/luckybackup-0.4.8.ebuild53
-rw-r--r--app-backup/luckybackup/metadata.xml8
-rw-r--r--app-backup/metadata.xml42
-rw-r--r--app-backup/mirdir/Manifest1
-rw-r--r--app-backup/mirdir/metadata.xml11
-rw-r--r--app-backup/mirdir/mirdir-2.1-r1.ebuild30
-rw-r--r--app-backup/mylvmbackup/Manifest3
-rw-r--r--app-backup/mylvmbackup/metadata.xml10
-rw-r--r--app-backup/mylvmbackup/mylvmbackup-0.11.ebuild31
-rw-r--r--app-backup/mylvmbackup/mylvmbackup-0.13.ebuild32
-rw-r--r--app-backup/mylvmbackup/mylvmbackup-0.14.ebuild32
-rw-r--r--app-backup/obnam/Manifest2
-rw-r--r--app-backup/obnam/files/obnam-1.9-setup-man.diff11
-rw-r--r--app-backup/obnam/files/obnam.conf85
-rw-r--r--app-backup/obnam/metadata.xml8
-rw-r--r--app-backup/obnam/obnam-1.13.ebuild54
-rw-r--r--app-backup/obnam/obnam-1.9.ebuild54
-rw-r--r--app-backup/pdumpfs/Manifest1
-rw-r--r--app-backup/pdumpfs/files/pdumpfs-in.patch40
-rw-r--r--app-backup/pdumpfs/files/pdumpfs-test.patch12
-rw-r--r--app-backup/pdumpfs/metadata.xml20
-rw-r--r--app-backup/pdumpfs/pdumpfs-1.3-r2.ebuild48
-rw-r--r--app-backup/qt4-fsarchiver/Manifest2
-rw-r--r--app-backup/qt4-fsarchiver/metadata.xml10
-rw-r--r--app-backup/qt4-fsarchiver/qt4-fsarchiver-0.6.19.6.ebuild66
-rw-r--r--app-backup/qt4-fsarchiver/qt4-fsarchiver-0.6.19.7.ebuild66
-rw-r--r--app-backup/rdiff-backup/Manifest2
-rw-r--r--app-backup/rdiff-backup/files/rdiff-backup-1.2.8-popen2.patch16
-rw-r--r--app-backup/rdiff-backup/metadata.xml9
-rw-r--r--app-backup/rdiff-backup/rdiff-backup-1.2.8-r1.ebuild32
-rw-r--r--app-backup/rdiff-backup/rdiff-backup-1.3.3-r1.ebuild31
-rw-r--r--app-backup/rdiff-backup/rdiff-backup-1.3.3.ebuild27
-rw-r--r--app-backup/rdumpfs/Manifest1
-rw-r--r--app-backup/rdumpfs/metadata.xml11
-rw-r--r--app-backup/rdumpfs/rdumpfs-20131002.ebuild29
-rw-r--r--app-backup/rear/Manifest3
-rw-r--r--app-backup/rear/files/rear-1.15-add-support-for-gentoo-kernels.patch19
-rw-r--r--app-backup/rear/metadata.xml18
-rw-r--r--app-backup/rear/rear-1.15-r1.ebuild57
-rw-r--r--app-backup/rear/rear-1.17.0.ebuild55
-rw-r--r--app-backup/rear/rear-1.17.1.ebuild55
-rw-r--r--app-backup/reoback/Manifest1
-rw-r--r--app-backup/reoback/metadata.xml11
-rw-r--r--app-backup/reoback/reoback-1.0_p3-r1.ebuild44
-rw-r--r--app-backup/rsnapshot/Manifest1
-rw-r--r--app-backup/rsnapshot/files/rsnapshot-1.3.1-cp_al.patch12
-rw-r--r--app-backup/rsnapshot/files/rsnapshot-1.3.1-perl518.patch17
-rw-r--r--app-backup/rsnapshot/metadata.xml14
-rw-r--r--app-backup/rsnapshot/rsnapshot-1.3.1-r1.ebuild51
-rw-r--r--app-backup/rsnapshot/rsnapshot-1.3.1-r2.ebuild52
-rw-r--r--app-backup/rsnapshot/rsnapshot-1.3.1.ebuild52
-rw-r--r--app-backup/sarab/Manifest1
-rw-r--r--app-backup/sarab/files/1.0.0-better-defaults-gentoo.patch21
-rw-r--r--app-backup/sarab/files/README.Gentoo13
-rw-r--r--app-backup/sarab/metadata.xml15
-rw-r--r--app-backup/sarab/sarab-1.0.0.ebuild40
-rw-r--r--app-backup/simplebackup/Manifest1
-rw-r--r--app-backup/simplebackup/metadata.xml8
-rw-r--r--app-backup/simplebackup/simplebackup-1.8.1.ebuild27
-rw-r--r--app-backup/snapback2/Manifest1
-rw-r--r--app-backup/snapback2/metadata.xml9
-rw-r--r--app-backup/snapback2/snapback2-1.1.0-r1.ebuild20
-rw-r--r--app-backup/snapper/Manifest3
-rw-r--r--app-backup/snapper/files/cron-confd.patch32
-rw-r--r--app-backup/snapper/metadata.xml38
-rw-r--r--app-backup/snapper/snapper-0.2.3-r1.ebuild70
-rw-r--r--app-backup/snapper/snapper-0.2.4.ebuild70
-rw-r--r--app-backup/snapper/snapper-0.2.6.ebuild70
-rw-r--r--app-backup/snapper/snapper-9999.ebuild69
-rw-r--r--app-backup/spideroak-bin/Manifest6
-rw-r--r--app-backup/spideroak-bin/metadata.xml14
-rw-r--r--app-backup/spideroak-bin/spideroak-bin-5.1.10.ebuild94
-rw-r--r--app-backup/spideroak-bin/spideroak-bin-5.1.8-r2.ebuild93
-rw-r--r--app-backup/spideroak-bin/spideroak-bin-5.2.0.ebuild94
-rw-r--r--app-backup/tarsnap/Manifest1
-rw-r--r--app-backup/tarsnap/metadata.xml12
-rw-r--r--app-backup/tarsnap/tarsnap-1.0.35.ebuild36
-rw-r--r--app-backup/tob/Manifest1
-rw-r--r--app-backup/tob/files/tob-0.26-nice.patch11
-rw-r--r--app-backup/tob/files/tob-0.26-no-maketemp-warn.diff12
-rw-r--r--app-backup/tob/files/tob-0.26-scsi-tape.diff12
-rw-r--r--app-backup/tob/metadata.xml8
-rw-r--r--app-backup/tob/tob-0.26-r2.ebuild39
-rw-r--r--app-backup/tsm/Manifest70
-rw-r--r--app-backup/tsm/files/dsmc.conf.d8
-rw-r--r--app-backup/tsm/files/dsmc.init.d28
-rw-r--r--app-backup/tsm/files/dsmc.service10
-rw-r--r--app-backup/tsm/files/dsmcad.init.d25
-rwxr-xr-xapp-backup/tsm/files/dsmcad.init.d-r126
-rw-r--r--app-backup/tsm/files/dsmcad.service12
-rw-r--r--app-backup/tsm/files/tsm.logrotate4
-rw-r--r--app-backup/tsm/metadata.xml23
-rw-r--r--app-backup/tsm/tsm-6.2.2.0-r2.ebuild223
-rw-r--r--app-backup/tsm/tsm-6.3.0.5-r2.ebuild238
-rw-r--r--app-backup/tsm/tsm-6.4.0.0-r1.ebuild234
-rw-r--r--app-backup/tsm/tsm-7.1.0.0-r1.ebuild240
-rw-r--r--app-backup/tsm/tsm-7.1.2.0.ebuild240
-rw-r--r--app-backup/vzdump/Manifest1
-rw-r--r--app-backup/vzdump/metadata.xml21
-rw-r--r--app-backup/vzdump/vzdump-1.2.ebuild34
337 files changed, 16497 insertions, 0 deletions
diff --git a/app-backup/amanda/Manifest b/app-backup/amanda/Manifest
new file mode 100644
index 000000000000..d567d0229867
--- /dev/null
+++ b/app-backup/amanda/Manifest
@@ -0,0 +1,3 @@
+DIST amanda-3.3.3.tar.gz 4394935 SHA256 c36c9cd61dc62a7824abb7ba74cc4b09527bd82a930d691cf207b60b4bb15b72 SHA512 42af74a9e3b3fd92600e78d98eb4cdcf9d260bd9bbd016dde4133db346374deb41e4893159205336b35521c36f737c2877fd5030028531e1c09a0a6ac2931ba9 WHIRLPOOL 730deda1d85e645e658500a01ea72895f836a3dd99209314a65161674da24fed5aad98313a8ef66ef76176c6c7b1a60e62d30d692cfe2121eb429d9cb37f5636
+DIST amanda-3.3.5.tar.gz 4530463 SHA256 17d14cdc64e5b98270a2ad6c1b58a5e317ab2fe0d518a4212f82f7e3d13d231b SHA512 bef1f5271939e804387424924e6423537efa3ac1a722fe68f3afd77677e5974d8325f1a32a2a22d510344ee3d7b8f480a969611388fcb632c0f3cd640315f812 WHIRLPOOL 5ba8c2734cbd3a7e771b9fc7f9561596e5cda3dce1ea60b7192893fcca401e1c5da6154dcac18084ce6ef5ccacdf4899a65e255424f1bbbdafc219e8405669e4
+DIST amanda-3.3.7.tar.gz 4618547 SHA256 cd1534c7d9c5b97afcb52b189f05fb158972fadb2cf46249847ae8bc5ad8a78a SHA512 33066a34f5da5a37f4e8b18a365c2e5ae9cd9105a1ed05f74df95d03937bddee25167960e3daf519d3cf04b1580d9e617e48ba1a695fe683823a27ec298582f4 WHIRLPOOL 21c1c70d04bf8f503158d3facdf4dd479ae26d69bcbc89a9ee2812cc97667cc0c9109a7357971c0d43620cd949ea195c1affb23b754afa81438a56aad247e15d
diff --git a/app-backup/amanda/amanda-3.3.3-r1.ebuild b/app-backup/amanda/amanda-3.3.3-r1.ebuild
new file mode 100644
index 000000000000..6c1ad5ef3f80
--- /dev/null
+++ b/app-backup/amanda/amanda-3.3.3-r1.ebuild
@@ -0,0 +1,475 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit autotools eutils perl-module user systemd
+
+DESCRIPTION="The Advanced Maryland Automatic Network Disk Archiver"
+HOMEPAGE="http://www.amanda.org/"
+SRC_URI="mirror://sourceforge/amanda/${P}.tar.gz"
+
+LICENSE="HPND BSD BSD-2 GPL-2+ GPL-3+"
+SLOT="0"
+IUSE="curl gnuplot ipv6 kerberos minimal nls readline s3 samba systemd xfs"
+
+KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
+RDEPEND="sys-libs/readline
+ virtual/awk
+ app-arch/tar
+ >=dev-lang/perl-5.6
+ app-arch/dump
+ net-misc/openssh
+ >=dev-libs/glib-2.26.0
+ nls? ( virtual/libintl )
+ s3? ( >=net-misc/curl-7.10.0 )
+ !s3? ( curl? ( >=net-misc/curl-7.10.0 ) )
+ samba? ( net-fs/samba )
+ kerberos? ( app-crypt/mit-krb5 )
+ xfs? ( sys-fs/xfsdump )
+ readline? ( sys-libs/readline )
+ !minimal? (
+ dev-perl/XML-Simple
+ virtual/mailx
+ app-arch/mt-st
+ sys-block/mtx
+ gnuplot? ( sci-visualization/gnuplot )
+ app-crypt/aespipe
+ app-crypt/gnupg
+ )"
+
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )
+ >=app-text/docbook-xsl-stylesheets-1.72.0
+ app-text/docbook-xml-dtd
+ dev-libs/libxslt
+ "
+
+MYFILESDIR="${T}/files"
+ENVDIR="/etc/env.d"
+ENVDFILE="97amanda"
+TMPENVFILE="${T}/${ENVDFILE}"
+
+# This is a complete list of Amanda settings that the ebuild takes from the
+# build environment. This allows users to alter the behavior of the package as
+# upstream intended, but keeping with Gentoo style. We store a copy of them in
+# /etc/env.d/97amanda during the install, so that they are preserved for future
+# installed. This variable name must not start with AMANDA_, as we do not want
+# it captured into the env file.
+ENV_SETTINGS_AMANDA="
+AMANDA_GROUP_GID AMANDA_GROUP_NAME
+AMANDA_USER_NAME AMANDA_USER_UID AMANDA_USER_SH AMANDA_USER_HOMEDIR AMANDA_USER_GROUPS
+AMANDA_SERVER AMANDA_SERVER_TAPE AMANDA_SERVER_INDEX
+AMANDA_TAR_LISTDIR AMANDA_TAR
+AMANDA_PORTS_UDP AMANDA_PORTS_TCP AMANDA_PORTS_BOTH AMANDA_PORTS
+AMANDA_CONFIG_NAME AMANDA_TMPDIR"
+
+amanda_variable_setup() {
+
+ # Setting vars
+ local currentamanda
+
+ # Grab the current settings
+ currentamanda="$(set | egrep "^AMANDA_" | grep -v '^AMANDA_ENV_SETTINGS' | xargs)"
+
+ # First we set the defaults
+ [ -z "${AMANDA_GROUP_GID}" ] && AMANDA_GROUP_GID=87
+ [ -z "${AMANDA_GROUP_NAME}" ] && AMANDA_GROUP_NAME=amanda
+ [ -z "${AMANDA_USER_NAME}" ] && AMANDA_USER_NAME=amanda
+ [ -z "${AMANDA_USER_UID}" ] && AMANDA_USER_UID=87
+ [ -z "${AMANDA_USER_SH}" ] && AMANDA_USER_SH=/bin/bash
+ [ -z "${AMANDA_USER_HOMEDIR}" ] && AMANDA_USER_HOMEDIR=/var/spool/amanda
+ [ -z "${AMANDA_USER_GROUPS}" ] && AMANDA_USER_GROUPS="${AMANDA_GROUP_NAME}"
+
+ # This installs Amanda, with the server. However, it could be a client,
+ # just specify an alternate server name in AMANDA_SERVER.
+ [ -z "${AMANDA_SERVER}" ] && AMANDA_SERVER="${HOSTNAME}"
+ [ -z "${AMANDA_SERVER_TAPE}" ] && AMANDA_SERVER_TAPE="${AMANDA_SERVER}"
+ [ -z "${AMANDA_SERVER_INDEX}" ] && AMANDA_SERVER_INDEX="${AMANDA_SERVER}"
+ [ -z "${AMANDA_TAR_LISTDIR}" ] && AMANDA_TAR_LISTDIR=${AMANDA_USER_HOMEDIR}/tar-lists
+ [ -z "${AMANDA_CONFIG_NAME}" ] && AMANDA_CONFIG_NAME=DailySet1
+ [ -z "${AMANDA_TMPDIR}" ] && AMANDA_TMPDIR=/var/tmp/amanda
+ [ -z "${AMANDA_DBGDIR}" ] && AMANDA_DBGDIR="$AMANDA_TMPDIR"
+ # These are left empty by default
+ [ -z "${AMANDA_PORTS_UDP}" ] && AMANDA_PORTS_UDP=
+ [ -z "${AMANDA_PORTS_TCP}" ] && AMANDA_PORTS_TCP=
+ [ -z "${AMANDA_PORTS_BOTH}" ] && AMANDA_PORTS_BOTH=
+ [ -z "${AMANDA_PORTS}" ] && AMANDA_PORTS=
+
+ # What tar to use
+ [ -z "${AMANDA_TAR}" ] && AMANDA_TAR=/bin/tar
+
+ # Now pull in the old stuff
+ if [ -f "${ROOT}${ENVDIR}/${ENVDFILE}" ]; then
+ # We don't just source it as we don't want everything in there.
+ eval $(egrep "^AMANDA_" "${ROOT}${ENVDIR}/${ENVDFILE}" | grep -v '^AMANDA_ENV_SETTINGS')
+ fi
+
+ # Re-apply the new settings if any
+ [ -n "${currentamanda}" ] && eval `echo "${currentamanda}"`
+
+}
+
+pkg_setup() {
+ amanda_variable_setup
+
+ # If USE=minimal, give out a warning, if AMANDA_SERVER is not set to
+ # another host than HOSTNAME.
+ if use minimal && [ "${AMANDA_SERVER}" = "${HOSTNAME}" ] ; then
+ elog "You are installing a client-only version of Amanda."
+ elog "You should set the variable \$AMANDA_SERVER to point at your"
+ elog "Amanda-tape-server, otherwise you will have to specify its name"
+ elog "when using amrecover on the client."
+ elog "For example: Use something like"
+ elog "AMANDA_SERVER=\"myserver\" emerge amanda"
+ elog
+ fi
+
+ enewgroup "${AMANDA_GROUP_NAME}" "${AMANDA_GROUP_GID}"
+ enewuser "${AMANDA_USER_NAME}" "${AMANDA_USER_UID}" "${AMANDA_USER_SH}" "${AMANDA_USER_HOMEDIR}" "${AMANDA_USER_GROUPS}"
+}
+
+src_unpack() {
+ # we do not want the perl src_unpack
+ default_src_unpack
+}
+
+src_prepare() {
+ # gentoo bug #537248
+ epatch "${FILESDIR}/local-amanda-perl5.20.patch"
+
+ # gentoo bug #331111
+ sed -i '/^check-local: check-perl$/d' "${S}"/config/automake/scripts.am
+ sed -i '/^check-local:/s,syntax-check,,g' "${S}"/perl/Makefile.am
+
+ # bug with glibc-2.16.0
+ sed -i -e '/gets is a security/d' "${S}"/gnulib/stdio.in.h
+
+ eautoreconf
+
+ # places for us to work in
+ mkdir -p "${MYFILESDIR}"
+ # Now we store the settings we just created
+ set | egrep "^AMANDA_" | grep -v '^AMANDA_ENV_SETTINGS' > "${TMPENVFILE}"
+
+ # Prepare our custom files
+ einfo "Building custom configuration files"
+ local i # our iterator
+ local sedexpr # var for sed expr
+ sedexpr=''
+ for i in ${ENV_SETTINGS_AMANDA} ; do
+ local val
+ eval "val=\"\${${i}}\""
+ sedexpr="${sedexpr}s|__${i}__|${val}|g;"
+ done
+
+ # now apply the sed expr
+ for i in "${FILESDIR}"/amanda-* ; do
+ sed -re "${sedexpr}" <"${i}" >"${MYFILESDIR}/`basename ${i}`"
+ done
+
+ (
+ cat "${MYFILESDIR}"/amanda-amandahosts-client-2.5.1_p3-r1
+ use minimal || cat "${MYFILESDIR}"/amanda-amandahosts-server-2.5.1_p3-r1
+ ) > "${T}"/amandahosts
+
+ if ! use minimal; then
+ sed -i -e 's:^\(my $amandahomedir\)=.*:\1 = $localstatedir;:' \
+ server-src/am{addclient,serverconfig}.pl || die
+ fi
+}
+
+src_configure() {
+ # fix bug #36316
+ addpredict /var/cache/samba/gencache.tdb
+ # fix bug #376169
+ addpredict /run/blkid
+ addpredict /etc/blkid.tab
+
+ [ ! -f "${TMPENVFILE}" ] && die "Variable setting file (${TMPENVFILE}) should exist!"
+ source "${TMPENVFILE}"
+ local myconf
+
+ einfo "Using ${AMANDA_SERVER_TAPE} for tape server."
+ myconf="${myconf} --with-tape-server=${AMANDA_SERVER_TAPE}"
+ einfo "Using ${AMANDA_SERVER_INDEX} for index server."
+ myconf="${myconf} --with-index-server=${AMANDA_SERVER_INDEX}"
+ einfo "Using ${AMANDA_USER_NAME} for amanda user."
+ myconf="${myconf} --with-user=${AMANDA_USER_NAME}"
+ einfo "Using ${AMANDA_GROUP_NAME} for amanda group."
+ myconf="${myconf} --with-group=${AMANDA_GROUP_NAME}"
+ einfo "Using ${AMANDA_TAR} as Tar implementation."
+ myconf="${myconf} --with-gnutar=${AMANDA_TAR}"
+ einfo "Using ${AMANDA_TAR_LISTDIR} as tar listdir."
+ myconf="${myconf} --with-gnutar-listdir=${AMANDA_TAR_LISTDIR}"
+ einfo "Using ${AMANDA_CONFIG_NAME} as default config name."
+ myconf="${myconf} --with-config=${AMANDA_CONFIG_NAME}"
+ einfo "Using ${AMANDA_TMPDIR} as Amanda temporary directory."
+ myconf="${myconf} --with-tmpdir=${AMANDA_TMPDIR}"
+
+ if [ -n "${AMANDA_PORTS_UDP}" ] && [ -n "${AMANDA_PORTS_TCP}" ] && [ -z "${AMANDA_PORTS_BOTH}" ] ; then
+ eerror "If you want _both_ UDP and TCP ports, please use only the"
+ eerror "AMANDA_PORTS environment variable for identical ports, or set"
+ eerror "AMANDA_PORTS_BOTH."
+ die "Bad port setup!"
+ fi
+ if [ -n "${AMANDA_PORTS_UDP}" ]; then
+ einfo "Using UDP ports ${AMANDA_PORTS_UDP/,/-}"
+ myconf="${myconf} --with-udpportrange=${AMANDA_PORTS_UDP}"
+ fi
+ if [ -n "${AMANDA_PORTS_TCP}" ]; then
+ einfo "Using TCP ports ${AMANDA_PORTS_TCP/,/-}"
+ myconf="${myconf} --with-tcpportrange=${AMANDA_PORTS_TCP}"
+ fi
+ if [ -n "${AMANDA_PORTS}" ]; then
+ einfo "Using ports ${AMANDA_PORTS/,/-}"
+ myconf="${myconf} --with-portrange=${AMANDA_PORTS}"
+ fi
+
+ # Extras
+ # Speed option
+ myconf="${myconf} --with-buffered-dump"
+ # "debugging" in the configuration is NOT debug in the conventional sense.
+ # It is actually just useful output in the application, and should remain
+ # enabled. There are some cases of breakage with MTX tape changers as of
+ # 2.5.1p2 that it exposes when turned off as well.
+ myconf="${myconf} --with-debugging"
+ # Where to put our files
+ myconf="${myconf} --localstatedir=${AMANDA_USER_HOMEDIR}"
+
+ # Samba support
+ myconf="${myconf} `use_with samba smbclient /usr/bin/smbclient`"
+
+ # Support for BSD, SSH, BSDUDP, BSDTCP security methods all compiled in by
+ # default
+ myconf="${myconf} --with-bsd-security"
+ myconf="${myconf} --with-ssh-security"
+ myconf="${myconf} --with-bsdudp-security"
+ myconf="${myconf} --with-bsdtcp-security"
+
+ # kerberos-security mechanism version 5
+ myconf="${myconf} `use_with kerberos krb5-security`"
+
+ # Amazon S3 support
+ myconf="${myconf} `use_enable s3 s3-device`"
+
+ # libcurl is required for S3 but otherwise optional
+ if ! use s3; then
+ myconf="${myconf} $(use_with curl libcurl)"
+ fi
+
+ # Client only, as requested in bug #127725
+ if use minimal ; then
+ myconf="${myconf} --without-server"
+ else
+ # amplot
+ myconf="${myconf} $(use_with gnuplot)"
+ fi
+
+ # IPv6 fun.
+ myconf="${myconf} `use_with ipv6`"
+ # This is to prevent the IPv6-is-working test
+ # As the test fails on binpkg build hosts with no IPv6.
+ use ipv6 && export amanda_cv_working_ipv6=yes
+
+ # I18N
+ myconf="${myconf} `use_enable nls`"
+
+ # Bug #296634: Perl location
+ perl_set_version
+ myconf="${myconf} --with-amperldir=${VENDOR_LIB}"
+
+ # Bug 296633: --disable-syntax-checks
+ # Some tests are not safe for production systems
+ myconf="${myconf} --disable-syntax-checks"
+
+ # build manpages
+ myconf="${myconf} --enable-manpage-build"
+
+ # bug #483120
+ tc-export AR
+
+ econf \
+ $(use_with readline) \
+ ${myconf}
+}
+
+src_compile() {
+ # Again, do not want the perl-module src_compile
+ default_src_compile
+}
+
+src_install() {
+ [ ! -f "${TMPENVFILE}" ] && die "Variable setting file (${TMPENVFILE}) should exist!"
+ source ${TMPENVFILE}
+
+ einfo "Doing stock install"
+ emake DESTDIR="${D}" install || die
+
+ # Build the envdir file
+ # Don't forget this..
+ einfo "Building environment file"
+ (
+ echo "# These settings are what was present in the environment when this"
+ echo "# Amanda was compiled. Changing anything below this comment will"
+ echo "# have no effect on your application, but it merely exists to"
+ echo "# preserve them for your next emerge of Amanda"
+ cat "${TMPENVFILE}" | sed "s,=\$,='',g"
+ ) >> "${MYFILESDIR}/${ENVDFILE}"
+
+ # Env.d
+ einfo "Installing environment config file"
+ doenvd "${MYFILESDIR}/${ENVDFILE}"
+
+ # Lock down next section (up until docs).
+ insopts -m0640
+ # Installing Amanda Xinetd Services Definition
+ einfo "Installing xinetd service file"
+ insinto /etc/xinetd.d
+ if use minimal ; then
+ newins "${MYFILESDIR}"/amanda-xinetd-2.6.1_p1-client amanda
+ else
+ newins "${MYFILESDIR}"/amanda-xinetd-2.6.1_p1-server amanda
+ fi
+
+ if ! use minimal; then
+ einfo "Installing Sample Daily Cron Job for Amanda"
+ insinto /etc/cron.daily
+ newins "${MYFILESDIR}/amanda-cron" amanda
+ fi
+
+ einfo "Installing systemd service and socket files for Amanda"
+ systemd_dounit "${FILESDIR}"/amanda.socket || die
+ systemd_newunit "${FILESDIR}"/amanda.service-r1 'amanda@.service' || die
+
+ insinto /etc/amanda
+ einfo "Installing .amandahosts File for ${AMANDA_USER_NAME} user"
+ doins "${T}/amandahosts"
+ fperms 600 /etc/amanda/amandahosts
+
+ dosym /etc/amanda/amandahosts "${AMANDA_USER_HOMEDIR}/.amandahosts"
+ insinto "${AMANDA_USER_HOMEDIR}"
+ einfo "Installing .profile for ${AMANDA_USER_NAME} user"
+ newins "${MYFILESDIR}/amanda-profile" .profile
+
+ insinto /etc/amanda
+ doins "${S}/example/amanda-client.conf"
+ if ! use minimal ; then
+ insinto "/etc/amanda/${AMANDA_CONFIG_NAME}"
+ doins "${S}/example/amanda.conf"
+ doins "${S}/example/disklist"
+ keepdir "${AMANDA_USER_HOMEDIR}/${AMANDA_CONFIG_NAME}/index"
+ fi
+
+ keepdir "${AMANDA_TAR_LISTDIR}"
+ keepdir "${AMANDA_USER_HOMEDIR}/amanda"
+ keepdir "${AMANDA_TMPDIR}/dumps"
+ # Just make sure it exists for XFS to work...
+ use xfs && keepdir /var/xfsdump/inventory
+
+ local i
+ for i in "${AMANDA_USER_HOMEDIR}" "${AMANDA_TAR_LISTDIR}" \
+ "${AMANDA_TMPDIR}" /etc/amanda; do
+ einfo "Securing directory (${i})"
+ fowners -R ${AMANDA_USER_NAME}:${AMANDA_GROUP_NAME} ${i}
+ done
+ # Do NOT use -R
+ fperms 0700 \
+ "${AMANDA_USER_HOMEDIR}" "${AMANDA_TAR_LISTDIR}" \
+ "${AMANDA_TMPDIR}" "${AMANDA_TMPDIR}/dumps" \
+ "${AMANDA_USER_HOMEDIR}/amanda" \
+ /etc/amanda
+
+ if ! use minimal ; then
+ fperms 0700 \
+ "${AMANDA_USER_HOMEDIR}/${AMANDA_CONFIG_NAME}" \
+ /etc/amanda/${AMANDA_CONFIG_NAME}
+ fi
+
+ einfo "Setting setuid permissions"
+ amanda_permissions_fix "${D}"
+
+ # Relax permissions again
+ insopts -m0644
+
+ # docs
+ einfo "Installing documentation"
+ dodoc AUTHORS ChangeLog DEVELOPING NEWS README ReleaseNotes UPGRADING
+ # our inetd sample
+ einfo "Installing standard inetd sample"
+ newdoc "${MYFILESDIR}/amanda-inetd.amanda.sample-2.6.0_p2-r2" amanda-inetd.amanda.sample
+ # Amanda example configs
+ einfo "Installing example configurations"
+ rm "${D}"/usr/share/amanda/{COPYRIGHT,ChangeLog,NEWS,ReleaseNotes}
+ mv "${D}/usr/share/amanda/example" "${D}/usr/share/doc/${PF}/"
+ docinto example1
+ newdoc "${FILESDIR}/example_amanda.conf" amanda.conf
+ newdoc "${FILESDIR}/example_disklist-2.5.1_p3-r1" disklist
+ newdoc "${FILESDIR}/example_global.conf" global.conf
+
+ einfo "Cleaning up dud .la files"
+ perl_set_version
+ find "${D}"/"${VENDOR_LIB}" -name '*.la' -print0 |xargs -0 rm -f
+}
+
+pkg_postinst() {
+ [ ! -f "${TMPENVFILE}" -a "$MERGE_TYPE" == "binary" ] && \
+ TMPENVFILE="${ROOT}${ENVDIR}/${ENVDFILE}"
+ [ ! -f "${TMPENVFILE}" ] && die "Variable setting file (${TMPENVFILE}) should exist!"
+ source "${TMPENVFILE}"
+
+ # Migration of amandates from /etc to $localstatedir/amanda
+ if [ -f "${ROOT}/etc/amandates" -a \
+ ! -f "${ROOT}/${AMANDA_USER_HOMEDIR}/amanda/amandates" ]; then
+ einfo "Migrating amandates from /etc/ to ${AMANDA_USER_HOMEDIR}/amanda"
+ einfo "A backup is also placed at /etc/amandates.orig"
+ cp -dp "${ROOT}/etc/amandates" "${ROOT}/etc/amandates.orig"
+ mkdir -p "${ROOT}/${AMANDA_USER_HOMEDIR}/amanda/"
+ cp -dp "${ROOT}/etc/amandates" "${ROOT}/${AMANDA_USER_HOMEDIR}/amanda/amandates"
+ fi
+ if [ -f "${ROOT}/etc/amandates" ]; then
+ einfo "If you have migrated safely, please delete /etc/amandates"
+ fi
+
+ einfo "Checking setuid permissions"
+ amanda_permissions_fix "${ROOT}"
+
+ elog "You should configure Amanda in /etc/amanda now."
+ elog
+ elog "If you use xinetd, Don't forget to check /etc/xinetd.d/amanda"
+ elog "and restart xinetd afterwards!"
+ elog
+ elog "Otherwise, please look at /usr/share/doc/${PF}/inetd.amanda.sample"
+ elog "as an example of how to configure your inetd."
+ elog
+ elog "NOTICE: If you need raw access to partitions you need to add the"
+ elog "amanda user to the 'disk' group."
+ elog
+ elog "NOTICE: If you have a tape changer, you need to add the amanda user"
+ elog "to the 'tape' group."
+ elog
+ elog "If you use localhost in your disklist your restores may break."
+ elog "You should replace it with the actual hostname!"
+ elog "Please also see the syntax changes to amandahosts."
+ elog
+ elog "Please note that this package no longer explicitly depends on"
+ elog "virtual/inetd, as it supports modes where an inetd is not needed"
+ elog "(see bug #506028 for details)."
+
+}
+
+# We have had reports of amanda file permissions getting screwed up.
+# Losing setuid, becoming too lax etc.
+# ONLY root and users in the amanda group should be able to run these binaries!
+amanda_permissions_fix() {
+ local root="$1"
+ [ -z "${root}" ] && die "Failed to pass root argument to amanda_permissions_fix!"
+ local le="/usr/libexec/amanda"
+ for i in /usr/sbin/amcheck "${le}"/calcsize "${le}"/killpgrp \
+ "${le}"/rundump "${le}"/runtar "${le}"/dumper \
+ "${le}"/planner ; do
+ chown root:${AMANDA_GROUP_NAME} "${root}"/${i}
+ chmod u=srwx,g=rx,o= "${root}"/${i}
+ done
+}
diff --git a/app-backup/amanda/amanda-3.3.3.ebuild b/app-backup/amanda/amanda-3.3.3.ebuild
new file mode 100644
index 000000000000..9a2de6ba5b7c
--- /dev/null
+++ b/app-backup/amanda/amanda-3.3.3.ebuild
@@ -0,0 +1,469 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit autotools eutils perl-module user systemd
+
+DESCRIPTION="The Advanced Maryland Automatic Network Disk Archiver"
+HOMEPAGE="http://www.amanda.org/"
+SRC_URI="mirror://sourceforge/amanda/${P}.tar.gz"
+LICENSE="HPND BSD BSD-2 GPL-2+ GPL-3+"
+SLOT="0"
+KEYWORDS="amd64 ppc ppc64 ~sparc x86"
+RDEPEND="sys-libs/readline
+ virtual/awk
+ app-arch/tar
+ >=dev-lang/perl-5.6
+ app-arch/dump
+ net-misc/openssh
+ >=dev-libs/glib-2.26.0
+ nls? ( virtual/libintl )
+ s3? ( >=net-misc/curl-7.10.0 )
+ !s3? ( curl? ( >=net-misc/curl-7.10.0 ) )
+ samba? ( net-fs/samba )
+ kerberos? ( app-crypt/mit-krb5 )
+ xfs? ( sys-fs/xfsdump )
+ readline? ( sys-libs/readline )
+ !minimal? (
+ dev-perl/XML-Simple
+ virtual/mailx
+ app-arch/mt-st
+ sys-block/mtx
+ gnuplot? ( sci-visualization/gnuplot )
+ app-crypt/aespipe
+ app-crypt/gnupg
+ )"
+
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )
+ >=app-text/docbook-xsl-stylesheets-1.72.0
+ app-text/docbook-xml-dtd
+ dev-libs/libxslt
+ "
+
+IUSE="curl gnuplot ipv6 kerberos minimal nls readline s3 samba systemd xfs"
+
+MYFILESDIR="${T}/files"
+ENVDIR="/etc/env.d"
+ENVDFILE="97amanda"
+TMPENVFILE="${T}/${ENVDFILE}"
+
+# This is a complete list of Amanda settings that the ebuild takes from the
+# build environment. This allows users to alter the behavior of the package as
+# upstream intended, but keeping with Gentoo style. We store a copy of them in
+# /etc/env.d/97amanda during the install, so that they are preserved for future
+# installed. This variable name must not start with AMANDA_, as we do not want
+# it captured into the env file.
+ENV_SETTINGS_AMANDA="
+AMANDA_GROUP_GID AMANDA_GROUP_NAME
+AMANDA_USER_NAME AMANDA_USER_UID AMANDA_USER_SH AMANDA_USER_HOMEDIR AMANDA_USER_GROUPS
+AMANDA_SERVER AMANDA_SERVER_TAPE AMANDA_SERVER_INDEX
+AMANDA_TAR_LISTDIR AMANDA_TAR
+AMANDA_PORTS_UDP AMANDA_PORTS_TCP AMANDA_PORTS_BOTH AMANDA_PORTS
+AMANDA_CONFIG_NAME AMANDA_TMPDIR"
+
+amanda_variable_setup() {
+
+ # Setting vars
+ local currentamanda
+
+ # Grab the current settings
+ currentamanda="$(set | egrep "^AMANDA_" | grep -v '^AMANDA_ENV_SETTINGS' | xargs)"
+
+ # First we set the defaults
+ [ -z "${AMANDA_GROUP_GID}" ] && AMANDA_GROUP_GID=87
+ [ -z "${AMANDA_GROUP_NAME}" ] && AMANDA_GROUP_NAME=amanda
+ [ -z "${AMANDA_USER_NAME}" ] && AMANDA_USER_NAME=amanda
+ [ -z "${AMANDA_USER_UID}" ] && AMANDA_USER_UID=87
+ [ -z "${AMANDA_USER_SH}" ] && AMANDA_USER_SH=/bin/bash
+ [ -z "${AMANDA_USER_HOMEDIR}" ] && AMANDA_USER_HOMEDIR=/var/spool/amanda
+ [ -z "${AMANDA_USER_GROUPS}" ] && AMANDA_USER_GROUPS="${AMANDA_GROUP_NAME}"
+
+ # This installs Amanda, with the server. However, it could be a client,
+ # just specify an alternate server name in AMANDA_SERVER.
+ [ -z "${AMANDA_SERVER}" ] && AMANDA_SERVER="${HOSTNAME}"
+ [ -z "${AMANDA_SERVER_TAPE}" ] && AMANDA_SERVER_TAPE="${AMANDA_SERVER}"
+ [ -z "${AMANDA_SERVER_INDEX}" ] && AMANDA_SERVER_INDEX="${AMANDA_SERVER}"
+ [ -z "${AMANDA_TAR_LISTDIR}" ] && AMANDA_TAR_LISTDIR=${AMANDA_USER_HOMEDIR}/tar-lists
+ [ -z "${AMANDA_CONFIG_NAME}" ] && AMANDA_CONFIG_NAME=DailySet1
+ [ -z "${AMANDA_TMPDIR}" ] && AMANDA_TMPDIR=/var/tmp/amanda
+ [ -z "${AMANDA_DBGDIR}" ] && AMANDA_DBGDIR="$AMANDA_TMPDIR"
+ # These are left empty by default
+ [ -z "${AMANDA_PORTS_UDP}" ] && AMANDA_PORTS_UDP=
+ [ -z "${AMANDA_PORTS_TCP}" ] && AMANDA_PORTS_TCP=
+ [ -z "${AMANDA_PORTS_BOTH}" ] && AMANDA_PORTS_BOTH=
+ [ -z "${AMANDA_PORTS}" ] && AMANDA_PORTS=
+
+ # What tar to use
+ [ -z "${AMANDA_TAR}" ] && AMANDA_TAR=/bin/tar
+
+ # Now pull in the old stuff
+ if [ -f "${ROOT}${ENVDIR}/${ENVDFILE}" ]; then
+ # We don't just source it as we don't want everything in there.
+ eval $(egrep "^AMANDA_" "${ROOT}${ENVDIR}/${ENVDFILE}" | grep -v '^AMANDA_ENV_SETTINGS')
+ fi
+
+ # Re-apply the new settings if any
+ [ -n "${currentamanda}" ] && eval `echo "${currentamanda}"`
+
+}
+
+pkg_setup() {
+ amanda_variable_setup
+
+ # If USE=minimal, give out a warning, if AMANDA_SERVER is not set to
+ # another host than HOSTNAME.
+ if use minimal && [ "${AMANDA_SERVER}" = "${HOSTNAME}" ] ; then
+ elog "You are installing a client-only version of Amanda."
+ elog "You should set the variable \$AMANDA_SERVER to point at your"
+ elog "Amanda-tape-server, otherwise you will have to specify its name"
+ elog "when using amrecover on the client."
+ elog "For example: Use something like"
+ elog "AMANDA_SERVER=\"myserver\" emerge amanda"
+ elog
+ fi
+
+ enewgroup "${AMANDA_GROUP_NAME}" "${AMANDA_GROUP_GID}"
+ enewuser "${AMANDA_USER_NAME}" "${AMANDA_USER_UID}" "${AMANDA_USER_SH}" "${AMANDA_USER_HOMEDIR}" "${AMANDA_USER_GROUPS}"
+}
+
+src_unpack() {
+ # we do not want the perl src_unpack
+ default_src_unpack
+}
+
+src_prepare() {
+
+ # gentoo bug #331111
+ sed -i '/^check-local: check-perl$/d' "${S}"/config/automake/scripts.am
+ sed -i '/^check-local:/s,syntax-check,,g' "${S}"/perl/Makefile.am
+
+ # bug with glibc-2.16.0
+ sed -i -e '/gets is a security/d' "${S}"/gnulib/stdio.in.h
+
+ eautoreconf
+
+ # places for us to work in
+ mkdir -p "${MYFILESDIR}"
+ # Now we store the settings we just created
+ set | egrep "^AMANDA_" | grep -v '^AMANDA_ENV_SETTINGS' > "${TMPENVFILE}"
+
+ # Prepare our custom files
+ einfo "Building custom configuration files"
+ local i # our iterator
+ local sedexpr # var for sed expr
+ sedexpr=''
+ for i in ${ENV_SETTINGS_AMANDA} ; do
+ local val
+ eval "val=\"\${${i}}\""
+ sedexpr="${sedexpr}s|__${i}__|${val}|g;"
+ done
+
+ # now apply the sed expr
+ for i in "${FILESDIR}"/amanda-* ; do
+ sed -re "${sedexpr}" <"${i}" >"${MYFILESDIR}/`basename ${i}`"
+ done
+
+ (
+ cat "${MYFILESDIR}"/amanda-amandahosts-client-2.5.1_p3-r1
+ use minimal || cat "${MYFILESDIR}"/amanda-amandahosts-server-2.5.1_p3-r1
+ ) > "${T}"/amandahosts
+
+ if ! use minimal; then
+ sed -i -e 's:^\(my $amandahomedir\)=.*:\1 = $localstatedir;:' \
+ server-src/am{addclient,serverconfig}.pl || die
+ fi
+}
+
+src_configure() {
+ # fix bug #36316
+ addpredict /var/cache/samba/gencache.tdb
+ # fix bug #376169
+ addpredict /run/blkid
+ addpredict /etc/blkid.tab
+
+ [ ! -f "${TMPENVFILE}" ] && die "Variable setting file (${TMPENVFILE}) should exist!"
+ source "${TMPENVFILE}"
+ local myconf
+
+ einfo "Using ${AMANDA_SERVER_TAPE} for tape server."
+ myconf="${myconf} --with-tape-server=${AMANDA_SERVER_TAPE}"
+ einfo "Using ${AMANDA_SERVER_INDEX} for index server."
+ myconf="${myconf} --with-index-server=${AMANDA_SERVER_INDEX}"
+ einfo "Using ${AMANDA_USER_NAME} for amanda user."
+ myconf="${myconf} --with-user=${AMANDA_USER_NAME}"
+ einfo "Using ${AMANDA_GROUP_NAME} for amanda group."
+ myconf="${myconf} --with-group=${AMANDA_GROUP_NAME}"
+ einfo "Using ${AMANDA_TAR} as Tar implementation."
+ myconf="${myconf} --with-gnutar=${AMANDA_TAR}"
+ einfo "Using ${AMANDA_TAR_LISTDIR} as tar listdir."
+ myconf="${myconf} --with-gnutar-listdir=${AMANDA_TAR_LISTDIR}"
+ einfo "Using ${AMANDA_CONFIG_NAME} as default config name."
+ myconf="${myconf} --with-config=${AMANDA_CONFIG_NAME}"
+ einfo "Using ${AMANDA_TMPDIR} as Amanda temporary directory."
+ myconf="${myconf} --with-tmpdir=${AMANDA_TMPDIR}"
+
+ if [ -n "${AMANDA_PORTS_UDP}" ] && [ -n "${AMANDA_PORTS_TCP}" ] && [ -z "${AMANDA_PORTS_BOTH}" ] ; then
+ eerror "If you want _both_ UDP and TCP ports, please use only the"
+ eerror "AMANDA_PORTS environment variable for identical ports, or set"
+ eerror "AMANDA_PORTS_BOTH."
+ die "Bad port setup!"
+ fi
+ if [ -n "${AMANDA_PORTS_UDP}" ]; then
+ einfo "Using UDP ports ${AMANDA_PORTS_UDP/,/-}"
+ myconf="${myconf} --with-udpportrange=${AMANDA_PORTS_UDP}"
+ fi
+ if [ -n "${AMANDA_PORTS_TCP}" ]; then
+ einfo "Using TCP ports ${AMANDA_PORTS_TCP/,/-}"
+ myconf="${myconf} --with-tcpportrange=${AMANDA_PORTS_TCP}"
+ fi
+ if [ -n "${AMANDA_PORTS}" ]; then
+ einfo "Using ports ${AMANDA_PORTS/,/-}"
+ myconf="${myconf} --with-portrange=${AMANDA_PORTS}"
+ fi
+
+ # Extras
+ # Speed option
+ myconf="${myconf} --with-buffered-dump"
+ # "debugging" in the configuration is NOT debug in the conventional sense.
+ # It is actually just useful output in the application, and should remain
+ # enabled. There are some cases of breakage with MTX tape changers as of
+ # 2.5.1p2 that it exposes when turned off as well.
+ myconf="${myconf} --with-debugging"
+ # Where to put our files
+ myconf="${myconf} --localstatedir=${AMANDA_USER_HOMEDIR}"
+
+ # Samba support
+ myconf="${myconf} `use_with samba smbclient /usr/bin/smbclient`"
+
+ # Support for BSD, SSH, BSDUDP, BSDTCP security methods all compiled in by
+ # default
+ myconf="${myconf} --with-bsd-security"
+ myconf="${myconf} --with-ssh-security"
+ myconf="${myconf} --with-bsdudp-security"
+ myconf="${myconf} --with-bsdtcp-security"
+
+ # kerberos-security mechanism version 5
+ myconf="${myconf} `use_with kerberos krb5-security`"
+
+ # Amazon S3 support
+ myconf="${myconf} `use_enable s3 s3-device`"
+
+ # libcurl is required for S3 but otherwise optional
+ if ! use s3; then
+ myconf="${myconf} $(use_with curl libcurl)"
+ fi
+
+ # Client only, as requested in bug #127725
+ if use minimal ; then
+ myconf="${myconf} --without-server"
+ else
+ # amplot
+ myconf="${myconf} $(use_with gnuplot)"
+ fi
+
+ # IPv6 fun.
+ myconf="${myconf} `use_with ipv6`"
+ # This is to prevent the IPv6-is-working test
+ # As the test fails on binpkg build hosts with no IPv6.
+ use ipv6 && export amanda_cv_working_ipv6=yes
+
+ # I18N
+ myconf="${myconf} `use_enable nls`"
+
+ # Bug #296634: Perl location
+ perl_set_version
+ myconf="${myconf} --with-amperldir=${VENDOR_LIB}"
+
+ # Bug 296633: --disable-syntax-checks
+ # Some tests are not safe for production systems
+ myconf="${myconf} --disable-syntax-checks"
+
+ # build manpages
+ myconf="${myconf} --enable-manpage-build"
+
+ econf \
+ $(use_with readline) \
+ ${myconf}
+}
+
+src_compile() {
+ # Again, do not want the perl-module src_compile
+ default_src_compile
+}
+
+src_install() {
+ [ ! -f "${TMPENVFILE}" ] && die "Variable setting file (${TMPENVFILE}) should exist!"
+ source ${TMPENVFILE}
+
+ einfo "Doing stock install"
+ emake DESTDIR="${D}" install || die
+
+ # Build the envdir file
+ # Don't forget this..
+ einfo "Building environment file"
+ (
+ echo "# These settings are what was present in the environment when this"
+ echo "# Amanda was compiled. Changing anything below this comment will"
+ echo "# have no effect on your application, but it merely exists to"
+ echo "# preserve them for your next emerge of Amanda"
+ cat "${TMPENVFILE}" | sed "s,=\$,='',g"
+ ) >> "${MYFILESDIR}/${ENVDFILE}"
+
+ # Env.d
+ einfo "Installing environment config file"
+ doenvd "${MYFILESDIR}/${ENVDFILE}"
+
+ # Lock down next section (up until docs).
+ insopts -m0640
+ # Installing Amanda Xinetd Services Definition
+ einfo "Installing xinetd service file"
+ insinto /etc/xinetd.d
+ if use minimal ; then
+ newins "${MYFILESDIR}"/amanda-xinetd-2.6.1_p1-client amanda
+ else
+ newins "${MYFILESDIR}"/amanda-xinetd-2.6.1_p1-server amanda
+ fi
+
+ if ! use minimal; then
+ einfo "Installing Sample Daily Cron Job for Amanda"
+ insinto /etc/cron.daily
+ newins "${MYFILESDIR}/amanda-cron" amanda
+ fi
+
+ einfo "Installing systemd service and socket files for Amanda"
+ systemd_dounit "${FILESDIR}"/amanda.socket || die
+ systemd_newunit "${FILESDIR}"/amanda.service 'amanda@.service' || die
+
+ insinto /etc/amanda
+ einfo "Installing .amandahosts File for ${AMANDA_USER_NAME} user"
+ doins "${T}/amandahosts"
+ fperms 600 /etc/amanda/amandahosts
+
+ dosym /etc/amanda/amandahosts "${AMANDA_USER_HOMEDIR}/.amandahosts"
+ insinto "${AMANDA_USER_HOMEDIR}"
+ einfo "Installing .profile for ${AMANDA_USER_NAME} user"
+ newins "${MYFILESDIR}/amanda-profile" .profile
+
+ insinto /etc/amanda
+ doins "${S}/example/amanda-client.conf"
+ if ! use minimal ; then
+ insinto "/etc/amanda/${AMANDA_CONFIG_NAME}"
+ doins "${S}/example/amanda.conf"
+ doins "${S}/example/disklist"
+ keepdir "${AMANDA_USER_HOMEDIR}/${AMANDA_CONFIG_NAME}/index"
+ fi
+
+ keepdir "${AMANDA_TAR_LISTDIR}"
+ keepdir "${AMANDA_USER_HOMEDIR}/amanda"
+ keepdir "${AMANDA_TMPDIR}/dumps"
+ # Just make sure it exists for XFS to work...
+ use xfs && keepdir /var/xfsdump/inventory
+
+ local i
+ for i in "${AMANDA_USER_HOMEDIR}" "${AMANDA_TAR_LISTDIR}" \
+ "${AMANDA_TMPDIR}" /etc/amanda; do
+ einfo "Securing directory (${i})"
+ fowners -R ${AMANDA_USER_NAME}:${AMANDA_GROUP_NAME} ${i}
+ done
+ # Do NOT use -R
+ fperms 0700 \
+ "${AMANDA_USER_HOMEDIR}" "${AMANDA_TAR_LISTDIR}" \
+ "${AMANDA_TMPDIR}" "${AMANDA_TMPDIR}/dumps" \
+ "${AMANDA_USER_HOMEDIR}/amanda" \
+ /etc/amanda
+
+ if ! use minimal ; then
+ fperms 0700 \
+ "${AMANDA_USER_HOMEDIR}/${AMANDA_CONFIG_NAME}" \
+ /etc/amanda/${AMANDA_CONFIG_NAME}
+ fi
+
+ einfo "Setting setuid permissions"
+ amanda_permissions_fix "${D}"
+
+ # Relax permissions again
+ insopts -m0644
+
+ # docs
+ einfo "Installing documentation"
+ dodoc AUTHORS ChangeLog DEVELOPING NEWS README ReleaseNotes UPGRADING
+ # our inetd sample
+ einfo "Installing standard inetd sample"
+ newdoc "${MYFILESDIR}/amanda-inetd.amanda.sample-2.6.0_p2-r2" amanda-inetd.amanda.sample
+ # Amanda example configs
+ einfo "Installing example configurations"
+ rm "${D}"/usr/share/amanda/{COPYRIGHT,ChangeLog,NEWS,ReleaseNotes}
+ mv "${D}/usr/share/amanda/example" "${D}/usr/share/doc/${PF}/"
+ docinto example1
+ newdoc "${FILESDIR}/example_amanda.conf" amanda.conf
+ newdoc "${FILESDIR}/example_disklist-2.5.1_p3-r1" disklist
+ newdoc "${FILESDIR}/example_global.conf" global.conf
+
+ einfo "Cleaning up dud .la files"
+ perl_set_version
+ find "${D}"/"${VENDOR_LIB}" -name '*.la' -print0 |xargs -0 rm -f
+}
+
+pkg_postinst() {
+ [ ! -f "${TMPENVFILE}" -a "$MERGE_TYPE" == "binary" ] && \
+ TMPENVFILE="${ROOT}${ENVDIR}/${ENVDFILE}"
+ [ ! -f "${TMPENVFILE}" ] && die "Variable setting file (${TMPENVFILE}) should exist!"
+ source "${TMPENVFILE}"
+
+ # Migration of amandates from /etc to $localstatedir/amanda
+ if [ -f "${ROOT}/etc/amandates" -a \
+ ! -f "${ROOT}/${AMANDA_USER_HOMEDIR}/amanda/amandates" ]; then
+ einfo "Migrating amandates from /etc/ to ${AMANDA_USER_HOMEDIR}/amanda"
+ einfo "A backup is also placed at /etc/amandates.orig"
+ cp -dp "${ROOT}/etc/amandates" "${ROOT}/etc/amandates.orig"
+ mkdir -p "${ROOT}/${AMANDA_USER_HOMEDIR}/amanda/"
+ cp -dp "${ROOT}/etc/amandates" "${ROOT}/${AMANDA_USER_HOMEDIR}/amanda/amandates"
+ fi
+ if [ -f "${ROOT}/etc/amandates" ]; then
+ einfo "If you have migrated safely, please delete /etc/amandates"
+ fi
+
+ einfo "Checking setuid permissions"
+ amanda_permissions_fix "${ROOT}"
+
+ elog "You should configure Amanda in /etc/amanda now."
+ elog
+ elog "If you use xinetd, Don't forget to check /etc/xinetd.d/amanda"
+ elog "and restart xinetd afterwards!"
+ elog
+ elog "Otherwise, please look at /usr/share/doc/${PF}/inetd.amanda.sample"
+ elog "as an example of how to configure your inetd."
+ elog
+ elog "NOTICE: If you need raw access to partitions you need to add the"
+ elog "amanda user to the 'disk' group."
+ elog
+ elog "NOTICE: If you have a tape changer, you need to add the amanda user"
+ elog "to the 'tape' group."
+ elog
+ elog "If you use localhost in your disklist your restores may break."
+ elog "You should replace it with the actual hostname!"
+ elog "Please also see the syntax changes to amandahosts."
+ elog
+ elog "Please note that this package no longer explicitly depends on"
+ elog "virtual/inetd, as it supports modes where an inetd is not needed"
+ elog "(see bug #506028 for details)."
+
+}
+
+# We have had reports of amanda file permissions getting screwed up.
+# Losing setuid, becoming too lax etc.
+# ONLY root and users in the amanda group should be able to run these binaries!
+amanda_permissions_fix() {
+ local root="$1"
+ [ -z "${root}" ] && die "Failed to pass root argument to amanda_permissions_fix!"
+ local le="/usr/libexec/amanda"
+ for i in /usr/sbin/amcheck "${le}"/calcsize "${le}"/killpgrp \
+ "${le}"/rundump "${le}"/runtar "${le}"/dumper \
+ "${le}"/planner ; do
+ chown root:${AMANDA_GROUP_NAME} "${root}"/${i}
+ chmod u=srwx,g=rx,o= "${root}"/${i}
+ done
+}
diff --git a/app-backup/amanda/amanda-3.3.5.ebuild b/app-backup/amanda/amanda-3.3.5.ebuild
new file mode 100644
index 000000000000..de12f3fb788d
--- /dev/null
+++ b/app-backup/amanda/amanda-3.3.5.ebuild
@@ -0,0 +1,475 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit autotools eutils perl-module user systemd
+
+DESCRIPTION="The Advanced Maryland Automatic Network Disk Archiver"
+HOMEPAGE="http://www.amanda.org/"
+SRC_URI="mirror://sourceforge/amanda/${P}.tar.gz"
+
+LICENSE="HPND BSD BSD-2 GPL-2+ GPL-3+"
+SLOT="0"
+IUSE="curl gnuplot ipv6 kerberos minimal nls readline s3 samba systemd xfs"
+
+KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
+RDEPEND="sys-libs/readline
+ virtual/awk
+ app-arch/tar
+ dev-lang/perl:=
+ app-arch/dump
+ net-misc/openssh
+ >=dev-libs/glib-2.26.0
+ nls? ( virtual/libintl )
+ s3? ( >=net-misc/curl-7.10.0 )
+ !s3? ( curl? ( >=net-misc/curl-7.10.0 ) )
+ samba? ( net-fs/samba )
+ kerberos? ( app-crypt/mit-krb5 )
+ xfs? ( sys-fs/xfsdump )
+ readline? ( sys-libs/readline )
+ !minimal? (
+ dev-perl/XML-Simple
+ virtual/mailx
+ app-arch/mt-st
+ sys-block/mtx
+ gnuplot? ( sci-visualization/gnuplot )
+ app-crypt/aespipe
+ app-crypt/gnupg
+ )"
+
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )
+ >=app-text/docbook-xsl-stylesheets-1.72.0
+ app-text/docbook-xml-dtd
+ dev-libs/libxslt
+ "
+
+MYFILESDIR="${T}/files"
+ENVDIR="/etc/env.d"
+ENVDFILE="97amanda"
+TMPENVFILE="${T}/${ENVDFILE}"
+
+# This is a complete list of Amanda settings that the ebuild takes from the
+# build environment. This allows users to alter the behavior of the package as
+# upstream intended, but keeping with Gentoo style. We store a copy of them in
+# /etc/env.d/97amanda during the install, so that they are preserved for future
+# installed. This variable name must not start with AMANDA_, as we do not want
+# it captured into the env file.
+ENV_SETTINGS_AMANDA="
+AMANDA_GROUP_GID AMANDA_GROUP_NAME
+AMANDA_USER_NAME AMANDA_USER_UID AMANDA_USER_SH AMANDA_USER_HOMEDIR AMANDA_USER_GROUPS
+AMANDA_SERVER AMANDA_SERVER_TAPE AMANDA_SERVER_INDEX
+AMANDA_TAR_LISTDIR AMANDA_TAR
+AMANDA_PORTS_UDP AMANDA_PORTS_TCP AMANDA_PORTS_BOTH AMANDA_PORTS
+AMANDA_CONFIG_NAME AMANDA_TMPDIR"
+
+amanda_variable_setup() {
+
+ # Setting vars
+ local currentamanda
+
+ # Grab the current settings
+ currentamanda="$(set | egrep "^AMANDA_" | grep -v '^AMANDA_ENV_SETTINGS' | xargs)"
+
+ # First we set the defaults
+ [ -z "${AMANDA_GROUP_GID}" ] && AMANDA_GROUP_GID=87
+ [ -z "${AMANDA_GROUP_NAME}" ] && AMANDA_GROUP_NAME=amanda
+ [ -z "${AMANDA_USER_NAME}" ] && AMANDA_USER_NAME=amanda
+ [ -z "${AMANDA_USER_UID}" ] && AMANDA_USER_UID=87
+ [ -z "${AMANDA_USER_SH}" ] && AMANDA_USER_SH=/bin/bash
+ [ -z "${AMANDA_USER_HOMEDIR}" ] && AMANDA_USER_HOMEDIR=/var/spool/amanda
+ [ -z "${AMANDA_USER_GROUPS}" ] && AMANDA_USER_GROUPS="${AMANDA_GROUP_NAME}"
+
+ # This installs Amanda, with the server. However, it could be a client,
+ # just specify an alternate server name in AMANDA_SERVER.
+ [ -z "${AMANDA_SERVER}" ] && AMANDA_SERVER="${HOSTNAME}"
+ [ -z "${AMANDA_SERVER_TAPE}" ] && AMANDA_SERVER_TAPE="${AMANDA_SERVER}"
+ [ -z "${AMANDA_SERVER_INDEX}" ] && AMANDA_SERVER_INDEX="${AMANDA_SERVER}"
+ [ -z "${AMANDA_TAR_LISTDIR}" ] && AMANDA_TAR_LISTDIR=${AMANDA_USER_HOMEDIR}/tar-lists
+ [ -z "${AMANDA_CONFIG_NAME}" ] && AMANDA_CONFIG_NAME=DailySet1
+ [ -z "${AMANDA_TMPDIR}" ] && AMANDA_TMPDIR=/var/tmp/amanda
+ [ -z "${AMANDA_DBGDIR}" ] && AMANDA_DBGDIR="$AMANDA_TMPDIR"
+ # These are left empty by default
+ [ -z "${AMANDA_PORTS_UDP}" ] && AMANDA_PORTS_UDP=
+ [ -z "${AMANDA_PORTS_TCP}" ] && AMANDA_PORTS_TCP=
+ [ -z "${AMANDA_PORTS_BOTH}" ] && AMANDA_PORTS_BOTH=
+ [ -z "${AMANDA_PORTS}" ] && AMANDA_PORTS=
+
+ # What tar to use
+ [ -z "${AMANDA_TAR}" ] && AMANDA_TAR=/bin/tar
+
+ # Now pull in the old stuff
+ if [ -f "${ROOT}${ENVDIR}/${ENVDFILE}" ]; then
+ # We don't just source it as we don't want everything in there.
+ eval $(egrep "^AMANDA_" "${ROOT}${ENVDIR}/${ENVDFILE}" | grep -v '^AMANDA_ENV_SETTINGS')
+ fi
+
+ # Re-apply the new settings if any
+ [ -n "${currentamanda}" ] && eval `echo "${currentamanda}"`
+
+}
+
+pkg_setup() {
+ amanda_variable_setup
+
+ # If USE=minimal, give out a warning, if AMANDA_SERVER is not set to
+ # another host than HOSTNAME.
+ if use minimal && [ "${AMANDA_SERVER}" = "${HOSTNAME}" ] ; then
+ elog "You are installing a client-only version of Amanda."
+ elog "You should set the variable \$AMANDA_SERVER to point at your"
+ elog "Amanda-tape-server, otherwise you will have to specify its name"
+ elog "when using amrecover on the client."
+ elog "For example: Use something like"
+ elog "AMANDA_SERVER=\"myserver\" emerge amanda"
+ elog
+ fi
+
+ enewgroup "${AMANDA_GROUP_NAME}" "${AMANDA_GROUP_GID}"
+ enewuser "${AMANDA_USER_NAME}" "${AMANDA_USER_UID}" "${AMANDA_USER_SH}" "${AMANDA_USER_HOMEDIR}" "${AMANDA_USER_GROUPS}"
+}
+
+src_unpack() {
+ # we do not want the perl src_unpack
+ default_src_unpack
+}
+
+src_prepare() {
+ # gentoo bug #537248
+ epatch "${FILESDIR}/local-amanda-perl5.20.patch"
+
+ # gentoo bug #331111
+ sed -i '/^check-local: check-perl$/d' "${S}"/config/automake/scripts.am
+ sed -i '/^check-local:/s,syntax-check,,g' "${S}"/perl/Makefile.am
+
+ # bug with glibc-2.16.0
+ sed -i -e '/gets is a security/d' "${S}"/gnulib/stdio.in.h
+
+ eautoreconf
+
+ # places for us to work in
+ mkdir -p "${MYFILESDIR}"
+ # Now we store the settings we just created
+ set | egrep "^AMANDA_" | grep -v '^AMANDA_ENV_SETTINGS' > "${TMPENVFILE}"
+
+ # Prepare our custom files
+ einfo "Building custom configuration files"
+ local i # our iterator
+ local sedexpr # var for sed expr
+ sedexpr=''
+ for i in ${ENV_SETTINGS_AMANDA} ; do
+ local val
+ eval "val=\"\${${i}}\""
+ sedexpr="${sedexpr}s|__${i}__|${val}|g;"
+ done
+
+ # now apply the sed expr
+ for i in "${FILESDIR}"/amanda-* ; do
+ sed -re "${sedexpr}" <"${i}" >"${MYFILESDIR}/`basename ${i}`"
+ done
+
+ (
+ cat "${MYFILESDIR}"/amanda-amandahosts-client-2.5.1_p3-r1
+ use minimal || cat "${MYFILESDIR}"/amanda-amandahosts-server-2.5.1_p3-r1
+ ) > "${T}"/amandahosts
+
+ if ! use minimal; then
+ sed -i -e 's:^\(my $amandahomedir\)=.*:\1 = $localstatedir;:' \
+ server-src/am{addclient,serverconfig}.pl || die
+ fi
+}
+
+src_configure() {
+ # fix bug #36316
+ addpredict /var/cache/samba/gencache.tdb
+ # fix bug #376169
+ addpredict /run/blkid
+ addpredict /etc/blkid.tab
+
+ [ ! -f "${TMPENVFILE}" ] && die "Variable setting file (${TMPENVFILE}) should exist!"
+ source "${TMPENVFILE}"
+ local myconf
+
+ einfo "Using ${AMANDA_SERVER_TAPE} for tape server."
+ myconf="${myconf} --with-tape-server=${AMANDA_SERVER_TAPE}"
+ einfo "Using ${AMANDA_SERVER_INDEX} for index server."
+ myconf="${myconf} --with-index-server=${AMANDA_SERVER_INDEX}"
+ einfo "Using ${AMANDA_USER_NAME} for amanda user."
+ myconf="${myconf} --with-user=${AMANDA_USER_NAME}"
+ einfo "Using ${AMANDA_GROUP_NAME} for amanda group."
+ myconf="${myconf} --with-group=${AMANDA_GROUP_NAME}"
+ einfo "Using ${AMANDA_TAR} as Tar implementation."
+ myconf="${myconf} --with-gnutar=${AMANDA_TAR}"
+ einfo "Using ${AMANDA_TAR_LISTDIR} as tar listdir."
+ myconf="${myconf} --with-gnutar-listdir=${AMANDA_TAR_LISTDIR}"
+ einfo "Using ${AMANDA_CONFIG_NAME} as default config name."
+ myconf="${myconf} --with-config=${AMANDA_CONFIG_NAME}"
+ einfo "Using ${AMANDA_TMPDIR} as Amanda temporary directory."
+ myconf="${myconf} --with-tmpdir=${AMANDA_TMPDIR}"
+
+ if [ -n "${AMANDA_PORTS_UDP}" ] && [ -n "${AMANDA_PORTS_TCP}" ] && [ -z "${AMANDA_PORTS_BOTH}" ] ; then
+ eerror "If you want _both_ UDP and TCP ports, please use only the"
+ eerror "AMANDA_PORTS environment variable for identical ports, or set"
+ eerror "AMANDA_PORTS_BOTH."
+ die "Bad port setup!"
+ fi
+ if [ -n "${AMANDA_PORTS_UDP}" ]; then
+ einfo "Using UDP ports ${AMANDA_PORTS_UDP/,/-}"
+ myconf="${myconf} --with-udpportrange=${AMANDA_PORTS_UDP}"
+ fi
+ if [ -n "${AMANDA_PORTS_TCP}" ]; then
+ einfo "Using TCP ports ${AMANDA_PORTS_TCP/,/-}"
+ myconf="${myconf} --with-tcpportrange=${AMANDA_PORTS_TCP}"
+ fi
+ if [ -n "${AMANDA_PORTS}" ]; then
+ einfo "Using ports ${AMANDA_PORTS/,/-}"
+ myconf="${myconf} --with-portrange=${AMANDA_PORTS}"
+ fi
+
+ # Extras
+ # Speed option
+ myconf="${myconf} --with-buffered-dump"
+ # "debugging" in the configuration is NOT debug in the conventional sense.
+ # It is actually just useful output in the application, and should remain
+ # enabled. There are some cases of breakage with MTX tape changers as of
+ # 2.5.1p2 that it exposes when turned off as well.
+ myconf="${myconf} --with-debugging"
+ # Where to put our files
+ myconf="${myconf} --localstatedir=${AMANDA_USER_HOMEDIR}"
+
+ # Samba support
+ myconf="${myconf} `use_with samba smbclient /usr/bin/smbclient`"
+
+ # Support for BSD, SSH, BSDUDP, BSDTCP security methods all compiled in by
+ # default
+ myconf="${myconf} --with-bsd-security"
+ myconf="${myconf} --with-ssh-security"
+ myconf="${myconf} --with-bsdudp-security"
+ myconf="${myconf} --with-bsdtcp-security"
+
+ # kerberos-security mechanism version 5
+ myconf="${myconf} `use_with kerberos krb5-security`"
+
+ # Amazon S3 support
+ myconf="${myconf} `use_enable s3 s3-device`"
+
+ # libcurl is required for S3 but otherwise optional
+ if ! use s3; then
+ myconf="${myconf} $(use_with curl libcurl)"
+ fi
+
+ # Client only, as requested in bug #127725
+ if use minimal ; then
+ myconf="${myconf} --without-server"
+ else
+ # amplot
+ myconf="${myconf} $(use_with gnuplot)"
+ fi
+
+ # IPv6 fun.
+ myconf="${myconf} `use_with ipv6`"
+ # This is to prevent the IPv6-is-working test
+ # As the test fails on binpkg build hosts with no IPv6.
+ use ipv6 && export amanda_cv_working_ipv6=yes
+
+ # I18N
+ myconf="${myconf} `use_enable nls`"
+
+ # Bug #296634: Perl location
+ perl_set_version
+ myconf="${myconf} --with-amperldir=${VENDOR_LIB}"
+
+ # Bug 296633: --disable-syntax-checks
+ # Some tests are not safe for production systems
+ myconf="${myconf} --disable-syntax-checks"
+
+ # build manpages
+ myconf="${myconf} --enable-manpage-build"
+
+ # bug #483120
+ tc-export AR
+
+ econf \
+ $(use_with readline) \
+ ${myconf}
+}
+
+src_compile() {
+ # Again, do not want the perl-module src_compile
+ default_src_compile
+}
+
+src_install() {
+ [ ! -f "${TMPENVFILE}" ] && die "Variable setting file (${TMPENVFILE}) should exist!"
+ source ${TMPENVFILE}
+
+ einfo "Doing stock install"
+ emake DESTDIR="${D}" install || die
+
+ # Build the envdir file
+ # Don't forget this..
+ einfo "Building environment file"
+ (
+ echo "# These settings are what was present in the environment when this"
+ echo "# Amanda was compiled. Changing anything below this comment will"
+ echo "# have no effect on your application, but it merely exists to"
+ echo "# preserve them for your next emerge of Amanda"
+ cat "${TMPENVFILE}" | sed "s,=\$,='',g"
+ ) >> "${MYFILESDIR}/${ENVDFILE}"
+
+ # Env.d
+ einfo "Installing environment config file"
+ doenvd "${MYFILESDIR}/${ENVDFILE}"
+
+ # Lock down next section (up until docs).
+ insopts -m0640
+ # Installing Amanda Xinetd Services Definition
+ einfo "Installing xinetd service file"
+ insinto /etc/xinetd.d
+ if use minimal ; then
+ newins "${MYFILESDIR}"/amanda-xinetd-2.6.1_p1-client amanda
+ else
+ newins "${MYFILESDIR}"/amanda-xinetd-2.6.1_p1-server amanda
+ fi
+
+ if ! use minimal; then
+ einfo "Installing Sample Daily Cron Job for Amanda"
+ insinto /etc/cron.daily
+ newins "${MYFILESDIR}/amanda-cron" amanda
+ fi
+
+ einfo "Installing systemd service and socket files for Amanda"
+ systemd_dounit "${FILESDIR}"/amanda.socket || die
+ systemd_newunit "${FILESDIR}"/amanda.service-r1 'amanda@.service' || die
+
+ insinto /etc/amanda
+ einfo "Installing .amandahosts File for ${AMANDA_USER_NAME} user"
+ doins "${T}/amandahosts"
+ fperms 600 /etc/amanda/amandahosts
+
+ dosym /etc/amanda/amandahosts "${AMANDA_USER_HOMEDIR}/.amandahosts"
+ insinto "${AMANDA_USER_HOMEDIR}"
+ einfo "Installing .profile for ${AMANDA_USER_NAME} user"
+ newins "${MYFILESDIR}/amanda-profile" .profile
+
+ insinto /etc/amanda
+ doins "${S}/example/amanda-client.conf"
+ if ! use minimal ; then
+ insinto "/etc/amanda/${AMANDA_CONFIG_NAME}"
+ doins "${S}/example/amanda.conf"
+ doins "${S}/example/disklist"
+ keepdir "${AMANDA_USER_HOMEDIR}/${AMANDA_CONFIG_NAME}/index"
+ fi
+
+ keepdir "${AMANDA_TAR_LISTDIR}"
+ keepdir "${AMANDA_USER_HOMEDIR}/amanda"
+ keepdir "${AMANDA_TMPDIR}/dumps"
+ # Just make sure it exists for XFS to work...
+ use xfs && keepdir /var/xfsdump/inventory
+
+ local i
+ for i in "${AMANDA_USER_HOMEDIR}" "${AMANDA_TAR_LISTDIR}" \
+ "${AMANDA_TMPDIR}" /etc/amanda; do
+ einfo "Securing directory (${i})"
+ fowners -R ${AMANDA_USER_NAME}:${AMANDA_GROUP_NAME} ${i}
+ done
+ # Do NOT use -R
+ fperms 0700 \
+ "${AMANDA_USER_HOMEDIR}" "${AMANDA_TAR_LISTDIR}" \
+ "${AMANDA_TMPDIR}" "${AMANDA_TMPDIR}/dumps" \
+ "${AMANDA_USER_HOMEDIR}/amanda" \
+ /etc/amanda
+
+ if ! use minimal ; then
+ fperms 0700 \
+ "${AMANDA_USER_HOMEDIR}/${AMANDA_CONFIG_NAME}" \
+ /etc/amanda/${AMANDA_CONFIG_NAME}
+ fi
+
+ einfo "Setting setuid permissions"
+ amanda_permissions_fix "${D}"
+
+ # Relax permissions again
+ insopts -m0644
+
+ # docs
+ einfo "Installing documentation"
+ dodoc AUTHORS ChangeLog DEVELOPING NEWS README ReleaseNotes UPGRADING
+ # our inetd sample
+ einfo "Installing standard inetd sample"
+ newdoc "${MYFILESDIR}/amanda-inetd.amanda.sample-2.6.0_p2-r2" amanda-inetd.amanda.sample
+ # Amanda example configs
+ einfo "Installing example configurations"
+ rm "${D}"/usr/share/amanda/{COPYRIGHT,ChangeLog,NEWS,ReleaseNotes}
+ mv "${D}/usr/share/amanda/example" "${D}/usr/share/doc/${PF}/"
+ docinto example1
+ newdoc "${FILESDIR}/example_amanda.conf" amanda.conf
+ newdoc "${FILESDIR}/example_disklist-2.5.1_p3-r1" disklist
+ newdoc "${FILESDIR}/example_global.conf" global.conf
+
+ einfo "Cleaning up dud .la files"
+ perl_set_version
+ find "${D}"/"${VENDOR_LIB}" -name '*.la' -print0 |xargs -0 rm -f
+}
+
+pkg_postinst() {
+ [ ! -f "${TMPENVFILE}" -a "$MERGE_TYPE" == "binary" ] && \
+ TMPENVFILE="${ROOT}${ENVDIR}/${ENVDFILE}"
+ [ ! -f "${TMPENVFILE}" ] && die "Variable setting file (${TMPENVFILE}) should exist!"
+ source "${TMPENVFILE}"
+
+ # Migration of amandates from /etc to $localstatedir/amanda
+ if [ -f "${ROOT}/etc/amandates" -a \
+ ! -f "${ROOT}/${AMANDA_USER_HOMEDIR}/amanda/amandates" ]; then
+ einfo "Migrating amandates from /etc/ to ${AMANDA_USER_HOMEDIR}/amanda"
+ einfo "A backup is also placed at /etc/amandates.orig"
+ cp -dp "${ROOT}/etc/amandates" "${ROOT}/etc/amandates.orig"
+ mkdir -p "${ROOT}/${AMANDA_USER_HOMEDIR}/amanda/"
+ cp -dp "${ROOT}/etc/amandates" "${ROOT}/${AMANDA_USER_HOMEDIR}/amanda/amandates"
+ fi
+ if [ -f "${ROOT}/etc/amandates" ]; then
+ einfo "If you have migrated safely, please delete /etc/amandates"
+ fi
+
+ einfo "Checking setuid permissions"
+ amanda_permissions_fix "${ROOT}"
+
+ elog "You should configure Amanda in /etc/amanda now."
+ elog
+ elog "If you use xinetd, Don't forget to check /etc/xinetd.d/amanda"
+ elog "and restart xinetd afterwards!"
+ elog
+ elog "Otherwise, please look at /usr/share/doc/${PF}/inetd.amanda.sample"
+ elog "as an example of how to configure your inetd."
+ elog
+ elog "NOTICE: If you need raw access to partitions you need to add the"
+ elog "amanda user to the 'disk' group."
+ elog
+ elog "NOTICE: If you have a tape changer, you need to add the amanda user"
+ elog "to the 'tape' group."
+ elog
+ elog "If you use localhost in your disklist your restores may break."
+ elog "You should replace it with the actual hostname!"
+ elog "Please also see the syntax changes to amandahosts."
+ elog
+ elog "Please note that this package no longer explicitly depends on"
+ elog "virtual/inetd, as it supports modes where an inetd is not needed"
+ elog "(see bug #506028 for details)."
+
+}
+
+# We have had reports of amanda file permissions getting screwed up.
+# Losing setuid, becoming too lax etc.
+# ONLY root and users in the amanda group should be able to run these binaries!
+amanda_permissions_fix() {
+ local root="$1"
+ [ -z "${root}" ] && die "Failed to pass root argument to amanda_permissions_fix!"
+ local le="/usr/libexec/amanda"
+ for i in /usr/sbin/amcheck "${le}"/calcsize "${le}"/killpgrp \
+ "${le}"/rundump "${le}"/runtar "${le}"/dumper \
+ "${le}"/planner ; do
+ chown root:${AMANDA_GROUP_NAME} "${root}"/${i}
+ chmod u=srwx,g=rx,o= "${root}"/${i}
+ done
+}
diff --git a/app-backup/amanda/amanda-3.3.7.ebuild b/app-backup/amanda/amanda-3.3.7.ebuild
new file mode 100644
index 000000000000..3b784f85b03a
--- /dev/null
+++ b/app-backup/amanda/amanda-3.3.7.ebuild
@@ -0,0 +1,472 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+inherit autotools eutils perl-module user systemd
+
+DESCRIPTION="The Advanced Maryland Automatic Network Disk Archiver"
+HOMEPAGE="http://www.amanda.org/"
+SRC_URI="mirror://sourceforge/amanda/${P}.tar.gz"
+
+LICENSE="HPND BSD BSD-2 GPL-2+ GPL-3+"
+SLOT="0"
+IUSE="curl gnuplot ipv6 kerberos minimal nls readline s3 samba systemd xfs"
+
+KEYWORDS="amd64 ~ppc ppc64 ~sparc ~x86"
+RDEPEND="sys-libs/readline
+ virtual/awk
+ app-arch/tar
+ dev-lang/perl:=
+ app-arch/dump
+ net-misc/openssh
+ >=dev-libs/glib-2.26.0
+ nls? ( virtual/libintl )
+ s3? ( >=net-misc/curl-7.10.0 )
+ !s3? ( curl? ( >=net-misc/curl-7.10.0 ) )
+ samba? ( net-fs/samba )
+ kerberos? ( app-crypt/mit-krb5 )
+ xfs? ( sys-fs/xfsdump )
+ readline? ( sys-libs/readline )
+ !minimal? (
+ dev-perl/XML-Simple
+ virtual/mailx
+ app-arch/mt-st
+ sys-block/mtx
+ gnuplot? ( sci-visualization/gnuplot )
+ app-crypt/aespipe
+ app-crypt/gnupg
+ )"
+
+DEPEND="${RDEPEND}
+ virtual/pkgconfig
+ nls? ( sys-devel/gettext )
+ >=app-text/docbook-xsl-stylesheets-1.72.0
+ app-text/docbook-xml-dtd
+ dev-libs/libxslt
+ "
+
+MYFILESDIR="${T}/files"
+ENVDIR="/etc/env.d"
+ENVDFILE="97amanda"
+TMPENVFILE="${T}/${ENVDFILE}"
+
+# This is a complete list of Amanda settings that the ebuild takes from the
+# build environment. This allows users to alter the behavior of the package as
+# upstream intended, but keeping with Gentoo style. We store a copy of them in
+# /etc/env.d/97amanda during the install, so that they are preserved for future
+# installed. This variable name must not start with AMANDA_, as we do not want
+# it captured into the env file.
+ENV_SETTINGS_AMANDA="
+AMANDA_GROUP_GID AMANDA_GROUP_NAME
+AMANDA_USER_NAME AMANDA_USER_UID AMANDA_USER_SH AMANDA_USER_HOMEDIR AMANDA_USER_GROUPS
+AMANDA_SERVER AMANDA_SERVER_TAPE AMANDA_SERVER_INDEX
+AMANDA_TAR_LISTDIR AMANDA_TAR
+AMANDA_PORTS_UDP AMANDA_PORTS_TCP AMANDA_PORTS_BOTH AMANDA_PORTS
+AMANDA_CONFIG_NAME AMANDA_TMPDIR"
+
+amanda_variable_setup() {
+
+ # Setting vars
+ local currentamanda
+
+ # Grab the current settings
+ currentamanda="$(set | egrep "^AMANDA_" | grep -v '^AMANDA_ENV_SETTINGS' | xargs)"
+
+ # First we set the defaults
+ [ -z "${AMANDA_GROUP_GID}" ] && AMANDA_GROUP_GID=87
+ [ -z "${AMANDA_GROUP_NAME}" ] && AMANDA_GROUP_NAME=amanda
+ [ -z "${AMANDA_USER_NAME}" ] && AMANDA_USER_NAME=amanda
+ [ -z "${AMANDA_USER_UID}" ] && AMANDA_USER_UID=87
+ [ -z "${AMANDA_USER_SH}" ] && AMANDA_USER_SH=/bin/bash
+ [ -z "${AMANDA_USER_HOMEDIR}" ] && AMANDA_USER_HOMEDIR=/var/spool/amanda
+ [ -z "${AMANDA_USER_GROUPS}" ] && AMANDA_USER_GROUPS="${AMANDA_GROUP_NAME}"
+
+ # This installs Amanda, with the server. However, it could be a client,
+ # just specify an alternate server name in AMANDA_SERVER.
+ [ -z "${AMANDA_SERVER}" ] && AMANDA_SERVER="${HOSTNAME}"
+ [ -z "${AMANDA_SERVER_TAPE}" ] && AMANDA_SERVER_TAPE="${AMANDA_SERVER}"
+ [ -z "${AMANDA_SERVER_INDEX}" ] && AMANDA_SERVER_INDEX="${AMANDA_SERVER}"
+ [ -z "${AMANDA_TAR_LISTDIR}" ] && AMANDA_TAR_LISTDIR=${AMANDA_USER_HOMEDIR}/tar-lists
+ [ -z "${AMANDA_CONFIG_NAME}" ] && AMANDA_CONFIG_NAME=DailySet1
+ [ -z "${AMANDA_TMPDIR}" ] && AMANDA_TMPDIR=/var/tmp/amanda
+ [ -z "${AMANDA_DBGDIR}" ] && AMANDA_DBGDIR="$AMANDA_TMPDIR"
+ # These are left empty by default
+ [ -z "${AMANDA_PORTS_UDP}" ] && AMANDA_PORTS_UDP=
+ [ -z "${AMANDA_PORTS_TCP}" ] && AMANDA_PORTS_TCP=
+ [ -z "${AMANDA_PORTS_BOTH}" ] && AMANDA_PORTS_BOTH=
+ [ -z "${AMANDA_PORTS}" ] && AMANDA_PORTS=
+
+ # What tar to use
+ [ -z "${AMANDA_TAR}" ] && AMANDA_TAR=/bin/tar
+
+ # Now pull in the old stuff
+ if [ -f "${ROOT}${ENVDIR}/${ENVDFILE}" ]; then
+ # We don't just source it as we don't want everything in there.
+ eval $(egrep "^AMANDA_" "${ROOT}${ENVDIR}/${ENVDFILE}" | grep -v '^AMANDA_ENV_SETTINGS')
+ fi
+
+ # Re-apply the new settings if any
+ [ -n "${currentamanda}" ] && eval `echo "${currentamanda}"`
+
+}
+
+pkg_setup() {
+ amanda_variable_setup
+
+ # If USE=minimal, give out a warning, if AMANDA_SERVER is not set to
+ # another host than HOSTNAME.
+ if use minimal && [ "${AMANDA_SERVER}" = "${HOSTNAME}" ] ; then
+ elog "You are installing a client-only version of Amanda."
+ elog "You should set the variable \$AMANDA_SERVER to point at your"
+ elog "Amanda-tape-server, otherwise you will have to specify its name"
+ elog "when using amrecover on the client."
+ elog "For example: Use something like"
+ elog "AMANDA_SERVER=\"myserver\" emerge amanda"
+ elog
+ fi
+
+ enewgroup "${AMANDA_GROUP_NAME}" "${AMANDA_GROUP_GID}"
+ enewuser "${AMANDA_USER_NAME}" "${AMANDA_USER_UID}" "${AMANDA_USER_SH}" "${AMANDA_USER_HOMEDIR}" "${AMANDA_USER_GROUPS}"
+}
+
+src_unpack() {
+ # we do not want the perl src_unpack
+ default_src_unpack
+}
+
+src_prepare() {
+ # gentoo bug #331111
+ sed -i '/^check-local: check-perl$/d' "${S}"/config/automake/scripts.am
+ sed -i '/^check-local:/s,syntax-check,,g' "${S}"/perl/Makefile.am
+
+ # bug with glibc-2.16.0
+ sed -i -e '/gets is a security/d' "${S}"/gnulib/stdio.in.h
+
+ eautoreconf
+
+ # places for us to work in
+ mkdir -p "${MYFILESDIR}"
+ # Now we store the settings we just created
+ set | egrep "^AMANDA_" | grep -v '^AMANDA_ENV_SETTINGS' > "${TMPENVFILE}"
+
+ # Prepare our custom files
+ einfo "Building custom configuration files"
+ local i # our iterator
+ local sedexpr # var for sed expr
+ sedexpr=''
+ for i in ${ENV_SETTINGS_AMANDA} ; do
+ local val
+ eval "val=\"\${${i}}\""
+ sedexpr="${sedexpr}s|__${i}__|${val}|g;"
+ done
+
+ # now apply the sed expr
+ for i in "${FILESDIR}"/amanda-* ; do
+ sed -re "${sedexpr}" <"${i}" >"${MYFILESDIR}/`basename ${i}`"
+ done
+
+ (
+ cat "${MYFILESDIR}"/amanda-amandahosts-client-2.5.1_p3-r1
+ use minimal || cat "${MYFILESDIR}"/amanda-amandahosts-server-2.5.1_p3-r1
+ ) > "${T}"/amandahosts
+
+ if ! use minimal; then
+ sed -i -e 's:^\(my $amandahomedir\)=.*:\1 = $localstatedir;:' \
+ server-src/am{addclient,serverconfig}.pl || die
+ fi
+}
+
+src_configure() {
+ # fix bug #36316
+ addpredict /var/cache/samba/gencache.tdb
+ # fix bug #376169
+ addpredict /run/blkid
+ addpredict /etc/blkid.tab
+
+ [ ! -f "${TMPENVFILE}" ] && die "Variable setting file (${TMPENVFILE}) should exist!"
+ source "${TMPENVFILE}"
+ local myconf
+
+ einfo "Using ${AMANDA_SERVER_TAPE} for tape server."
+ myconf="${myconf} --with-tape-server=${AMANDA_SERVER_TAPE}"
+ einfo "Using ${AMANDA_SERVER_INDEX} for index server."
+ myconf="${myconf} --with-index-server=${AMANDA_SERVER_INDEX}"
+ einfo "Using ${AMANDA_USER_NAME} for amanda user."
+ myconf="${myconf} --with-user=${AMANDA_USER_NAME}"
+ einfo "Using ${AMANDA_GROUP_NAME} for amanda group."
+ myconf="${myconf} --with-group=${AMANDA_GROUP_NAME}"
+ einfo "Using ${AMANDA_TAR} as Tar implementation."
+ myconf="${myconf} --with-gnutar=${AMANDA_TAR}"
+ einfo "Using ${AMANDA_TAR_LISTDIR} as tar listdir."
+ myconf="${myconf} --with-gnutar-listdir=${AMANDA_TAR_LISTDIR}"
+ einfo "Using ${AMANDA_CONFIG_NAME} as default config name."
+ myconf="${myconf} --with-config=${AMANDA_CONFIG_NAME}"
+ einfo "Using ${AMANDA_TMPDIR} as Amanda temporary directory."
+ myconf="${myconf} --with-tmpdir=${AMANDA_TMPDIR}"
+
+ if [ -n "${AMANDA_PORTS_UDP}" ] && [ -n "${AMANDA_PORTS_TCP}" ] && [ -z "${AMANDA_PORTS_BOTH}" ] ; then
+ eerror "If you want _both_ UDP and TCP ports, please use only the"
+ eerror "AMANDA_PORTS environment variable for identical ports, or set"
+ eerror "AMANDA_PORTS_BOTH."
+ die "Bad port setup!"
+ fi
+ if [ -n "${AMANDA_PORTS_UDP}" ]; then
+ einfo "Using UDP ports ${AMANDA_PORTS_UDP/,/-}"
+ myconf="${myconf} --with-udpportrange=${AMANDA_PORTS_UDP}"
+ fi
+ if [ -n "${AMANDA_PORTS_TCP}" ]; then
+ einfo "Using TCP ports ${AMANDA_PORTS_TCP/,/-}"
+ myconf="${myconf} --with-tcpportrange=${AMANDA_PORTS_TCP}"
+ fi
+ if [ -n "${AMANDA_PORTS}" ]; then
+ einfo "Using ports ${AMANDA_PORTS/,/-}"
+ myconf="${myconf} --with-portrange=${AMANDA_PORTS}"
+ fi
+
+ # Extras
+ # Speed option
+ myconf="${myconf} --with-buffered-dump"
+ # "debugging" in the configuration is NOT debug in the conventional sense.
+ # It is actually just useful output in the application, and should remain
+ # enabled. There are some cases of breakage with MTX tape changers as of
+ # 2.5.1p2 that it exposes when turned off as well.
+ myconf="${myconf} --with-debugging"
+ # Where to put our files
+ myconf="${myconf} --localstatedir=${AMANDA_USER_HOMEDIR}"
+
+ # Samba support
+ myconf="${myconf} `use_with samba smbclient /usr/bin/smbclient`"
+
+ # Support for BSD, SSH, BSDUDP, BSDTCP security methods all compiled in by
+ # default
+ myconf="${myconf} --with-bsd-security"
+ myconf="${myconf} --with-ssh-security"
+ myconf="${myconf} --with-bsdudp-security"
+ myconf="${myconf} --with-bsdtcp-security"
+
+ # kerberos-security mechanism version 5
+ myconf="${myconf} `use_with kerberos krb5-security`"
+
+ # Amazon S3 support
+ myconf="${myconf} `use_enable s3 s3-device`"
+
+ # libcurl is required for S3 but otherwise optional
+ if ! use s3; then
+ myconf="${myconf} $(use_with curl libcurl)"
+ fi
+
+ # Client only, as requested in bug #127725
+ if use minimal ; then
+ myconf="${myconf} --without-server"
+ else
+ # amplot
+ myconf="${myconf} $(use_with gnuplot)"
+ fi
+
+ # IPv6 fun.
+ myconf="${myconf} `use_with ipv6`"
+ # This is to prevent the IPv6-is-working test
+ # As the test fails on binpkg build hosts with no IPv6.
+ use ipv6 && export amanda_cv_working_ipv6=yes
+
+ # I18N
+ myconf="${myconf} `use_enable nls`"
+
+ # Bug #296634: Perl location
+ perl_set_version
+ myconf="${myconf} --with-amperldir=${VENDOR_LIB}"
+
+ # Bug 296633: --disable-syntax-checks
+ # Some tests are not safe for production systems
+ myconf="${myconf} --disable-syntax-checks"
+
+ # build manpages
+ myconf="${myconf} --enable-manpage-build"
+
+ # bug #483120
+ tc-export AR
+
+ econf \
+ $(use_with readline) \
+ ${myconf}
+}
+
+src_compile() {
+ # Again, do not want the perl-module src_compile
+ default_src_compile
+}
+
+src_install() {
+ [ ! -f "${TMPENVFILE}" ] && die "Variable setting file (${TMPENVFILE}) should exist!"
+ source ${TMPENVFILE}
+
+ einfo "Doing stock install"
+ emake DESTDIR="${D}" install || die
+
+ # Build the envdir file
+ # Don't forget this..
+ einfo "Building environment file"
+ (
+ echo "# These settings are what was present in the environment when this"
+ echo "# Amanda was compiled. Changing anything below this comment will"
+ echo "# have no effect on your application, but it merely exists to"
+ echo "# preserve them for your next emerge of Amanda"
+ cat "${TMPENVFILE}" | sed "s,=\$,='',g"
+ ) >> "${MYFILESDIR}/${ENVDFILE}"
+
+ # Env.d
+ einfo "Installing environment config file"
+ doenvd "${MYFILESDIR}/${ENVDFILE}"
+
+ # Lock down next section (up until docs).
+ insopts -m0640
+ # Installing Amanda Xinetd Services Definition
+ einfo "Installing xinetd service file"
+ insinto /etc/xinetd.d
+ if use minimal ; then
+ newins "${MYFILESDIR}"/amanda-xinetd-2.6.1_p1-client amanda
+ else
+ newins "${MYFILESDIR}"/amanda-xinetd-2.6.1_p1-server amanda
+ fi
+
+ if ! use minimal; then
+ einfo "Installing Sample Daily Cron Job for Amanda"
+ insinto /etc/cron.daily
+ newins "${MYFILESDIR}/amanda-cron" amanda
+ fi
+
+ einfo "Installing systemd service and socket files for Amanda"
+ systemd_dounit "${FILESDIR}"/amanda.socket || die
+ systemd_newunit "${FILESDIR}"/amanda.service-r1 'amanda@.service' || die
+
+ insinto /etc/amanda
+ einfo "Installing .amandahosts File for ${AMANDA_USER_NAME} user"
+ doins "${T}/amandahosts"
+ fperms 600 /etc/amanda/amandahosts
+
+ dosym /etc/amanda/amandahosts "${AMANDA_USER_HOMEDIR}/.amandahosts"
+ insinto "${AMANDA_USER_HOMEDIR}"
+ einfo "Installing .profile for ${AMANDA_USER_NAME} user"
+ newins "${MYFILESDIR}/amanda-profile" .profile
+
+ insinto /etc/amanda
+ doins "${S}/example/amanda-client.conf"
+ if ! use minimal ; then
+ insinto "/etc/amanda/${AMANDA_CONFIG_NAME}"
+ doins "${S}/example/amanda.conf"
+ doins "${S}/example/disklist"
+ keepdir "${AMANDA_USER_HOMEDIR}/${AMANDA_CONFIG_NAME}/index"
+ fi
+
+ keepdir "${AMANDA_TAR_LISTDIR}"
+ keepdir "${AMANDA_USER_HOMEDIR}/amanda"
+ keepdir "${AMANDA_TMPDIR}/dumps"
+ # Just make sure it exists for XFS to work...
+ use xfs && keepdir /var/xfsdump/inventory
+
+ local i
+ for i in "${AMANDA_USER_HOMEDIR}" "${AMANDA_TAR_LISTDIR}" \
+ "${AMANDA_TMPDIR}" /etc/amanda; do
+ einfo "Securing directory (${i})"
+ fowners -R ${AMANDA_USER_NAME}:${AMANDA_GROUP_NAME} ${i}
+ done
+ # Do NOT use -R
+ fperms 0700 \
+ "${AMANDA_USER_HOMEDIR}" "${AMANDA_TAR_LISTDIR}" \
+ "${AMANDA_TMPDIR}" "${AMANDA_TMPDIR}/dumps" \
+ "${AMANDA_USER_HOMEDIR}/amanda" \
+ /etc/amanda
+
+ if ! use minimal ; then
+ fperms 0700 \
+ "${AMANDA_USER_HOMEDIR}/${AMANDA_CONFIG_NAME}" \
+ /etc/amanda/${AMANDA_CONFIG_NAME}
+ fi
+
+ einfo "Setting setuid permissions"
+ amanda_permissions_fix "${D}"
+
+ # Relax permissions again
+ insopts -m0644
+
+ # docs
+ einfo "Installing documentation"
+ dodoc AUTHORS ChangeLog DEVELOPING NEWS README ReleaseNotes UPGRADING
+ # our inetd sample
+ einfo "Installing standard inetd sample"
+ newdoc "${MYFILESDIR}/amanda-inetd.amanda.sample-2.6.0_p2-r2" amanda-inetd.amanda.sample
+ # Amanda example configs
+ einfo "Installing example configurations"
+ rm "${D}"/usr/share/amanda/{COPYRIGHT,ChangeLog,NEWS,ReleaseNotes}
+ mv "${D}/usr/share/amanda/example" "${D}/usr/share/doc/${PF}/"
+ docinto example1
+ newdoc "${FILESDIR}/example_amanda.conf" amanda.conf
+ newdoc "${FILESDIR}/example_disklist-2.5.1_p3-r1" disklist
+ newdoc "${FILESDIR}/example_global.conf" global.conf
+
+ einfo "Cleaning up dud .la files"
+ perl_set_version
+ find "${D}"/"${VENDOR_LIB}" -name '*.la' -print0 |xargs -0 rm -f
+}
+
+pkg_postinst() {
+ [ ! -f "${TMPENVFILE}" -a "$MERGE_TYPE" == "binary" ] && \
+ TMPENVFILE="${ROOT}${ENVDIR}/${ENVDFILE}"
+ [ ! -f "${TMPENVFILE}" ] && die "Variable setting file (${TMPENVFILE}) should exist!"
+ source "${TMPENVFILE}"
+
+ # Migration of amandates from /etc to $localstatedir/amanda
+ if [ -f "${ROOT}/etc/amandates" -a \
+ ! -f "${ROOT}/${AMANDA_USER_HOMEDIR}/amanda/amandates" ]; then
+ einfo "Migrating amandates from /etc/ to ${AMANDA_USER_HOMEDIR}/amanda"
+ einfo "A backup is also placed at /etc/amandates.orig"
+ cp -dp "${ROOT}/etc/amandates" "${ROOT}/etc/amandates.orig"
+ mkdir -p "${ROOT}/${AMANDA_USER_HOMEDIR}/amanda/"
+ cp -dp "${ROOT}/etc/amandates" "${ROOT}/${AMANDA_USER_HOMEDIR}/amanda/amandates"
+ fi
+ if [ -f "${ROOT}/etc/amandates" ]; then
+ einfo "If you have migrated safely, please delete /etc/amandates"
+ fi
+
+ einfo "Checking setuid permissions"
+ amanda_permissions_fix "${ROOT}"
+
+ elog "You should configure Amanda in /etc/amanda now."
+ elog
+ elog "If you use xinetd, Don't forget to check /etc/xinetd.d/amanda"
+ elog "and restart xinetd afterwards!"
+ elog
+ elog "Otherwise, please look at /usr/share/doc/${PF}/inetd.amanda.sample"
+ elog "as an example of how to configure your inetd."
+ elog
+ elog "NOTICE: If you need raw access to partitions you need to add the"
+ elog "amanda user to the 'disk' group."
+ elog
+ elog "NOTICE: If you have a tape changer, you need to add the amanda user"
+ elog "to the 'tape' group."
+ elog
+ elog "If you use localhost in your disklist your restores may break."
+ elog "You should replace it with the actual hostname!"
+ elog "Please also see the syntax changes to amandahosts."
+ elog
+ elog "Please note that this package no longer explicitly depends on"
+ elog "virtual/inetd, as it supports modes where an inetd is not needed"
+ elog "(see bug #506028 for details)."
+
+}
+
+# We have had reports of amanda file permissions getting screwed up.
+# Losing setuid, becoming too lax etc.
+# ONLY root and users in the amanda group should be able to run these binaries!
+amanda_permissions_fix() {
+ local root="$1"
+ [ -z "${root}" ] && die "Failed to pass root argument to amanda_permissions_fix!"
+ local le="/usr/libexec/amanda"
+ for i in /usr/sbin/amcheck "${le}"/calcsize "${le}"/killpgrp \
+ "${le}"/rundump "${le}"/runtar "${le}"/dumper \
+ "${le}"/planner ; do
+ chown root:${AMANDA_GROUP_NAME} "${root}"/${i}
+ chmod u=srwx,g=rx,o= "${root}"/${i}
+ done
+}
diff --git a/app-backup/amanda/files/amanda-amandahosts-client-2.5.1_p3-r1 b/app-backup/amanda/files/amanda-amandahosts-client-2.5.1_p3-r1
new file mode 100644
index 000000000000..570a71056b47
--- /dev/null
+++ b/app-backup/amanda/files/amanda-amandahosts-client-2.5.1_p3-r1
@@ -0,0 +1,8 @@
+# vim: ts=4 sts=4 sw=4 noexpandtab:
+# Machine-name for those hosts which are permitted to back up (fully-qualified
+# is best). An entry in /etc/hosts adds fail-safe against DNS death :-)
+# |
+# | permitted user-name
+# | |
+
+__AMANDA_SERVER__ __AMANDA_USER_NAME__ amdump
diff --git a/app-backup/amanda/files/amanda-amandahosts-server-2.5.1_p3-r1 b/app-backup/amanda/files/amanda-amandahosts-server-2.5.1_p3-r1
new file mode 100644
index 000000000000..4951d4a9bf7d
--- /dev/null
+++ b/app-backup/amanda/files/amanda-amandahosts-server-2.5.1_p3-r1
@@ -0,0 +1,8 @@
+# vim: ts=4 sts=4 sw=4 noexpandtab:
+# Machine-name for those hosts which are permitted to back up (fully-qualified
+# is best). An entry in /etc/hosts adds fail-safe against DNS death :-)
+# |
+# | permitted user-name
+# | |
+
+__AMANDA_SERVER__ root amindexd amidxtaped
diff --git a/app-backup/amanda/files/amanda-cron b/app-backup/amanda/files/amanda-cron
new file mode 100644
index 000000000000..a5524dc2e3a1
--- /dev/null
+++ b/app-backup/amanda/files/amanda-cron
@@ -0,0 +1,13 @@
+#!/bin/sh
+
+# This is a sample cron job to kick off backups with amanda.
+
+# Run the tape tests on DailySet first, and if ok, then kick off backups
+# Mail error reports to root
+
+# Ensure TAPE is set to your tape drive for mt to work, ie. TAPE="/dev/st0"
+
+ADMIN_EMAIL="root@localhost"
+
+/usr/sbin/amcheck -t -m -M"${ADMIN_EMAIL}" __AMANDA_CONFIG_NAME__ && \
+( /usr/sbin/amdump __AMANDA_CONFIG_NAME__ ; /usr/sbin/mt eject )
diff --git a/app-backup/amanda/files/amanda-devfs b/app-backup/amanda/files/amanda-devfs
new file mode 100644
index 000000000000..f02eb3ffc477
--- /dev/null
+++ b/app-backup/amanda/files/amanda-devfs
@@ -0,0 +1,7 @@
+# raw access to partitions for amanda
+#REGISTER ^scsi/host.*/bus.*/target.*/lun.*/part[0-9] PERMISSIONS root.disk 660"
+#REGISTER ^ide/host.*/bus.*/target.*/lun.*/part[0-9] PERMISSIONS root.disk 660"
+
+# allow amanda to have access to tape changers
+#REGISTER ^scsi/host.*/bus.*/target.*/lun.*/generic PERMISSIONS root.disk 660
+
diff --git a/app-backup/amanda/files/amanda-inetd.amanda.sample-2.6.0_p2-r2 b/app-backup/amanda/files/amanda-inetd.amanda.sample-2.6.0_p2-r2
new file mode 100644
index 000000000000..e2aa3429d4a4
--- /dev/null
+++ b/app-backup/amanda/files/amanda-inetd.amanda.sample-2.6.0_p2-r2
@@ -0,0 +1,3 @@
+amanda dgram udp wait amanda /usr/libexec/amanda/amandad amandad -auth=bsd amdump amindexd amidxtaped
+amandaidx stream tcp nowait amanda /usr/libexec/amanda/amindexd amindexd -auth=bsd amdump amindexd amidxtaped
+amidxtape stream tcp nowait amanda /usr/libexec/amanda/amidxtaped amidxtaped -auth=bsd amdump amindexd amidxtaped
diff --git a/app-backup/amanda/files/amanda-profile b/app-backup/amanda/files/amanda-profile
new file mode 100644
index 000000000000..d8e132bf10f8
--- /dev/null
+++ b/app-backup/amanda/files/amanda-profile
@@ -0,0 +1 @@
+export PATH=/sbin:/usr/sbin:/usr/libexec:${PATH}
diff --git a/app-backup/amanda/files/amanda-xinetd-2.6.1_p1-client b/app-backup/amanda/files/amanda-xinetd-2.6.1_p1-client
new file mode 100644
index 000000000000..ed73c03cd14f
--- /dev/null
+++ b/app-backup/amanda/files/amanda-xinetd-2.6.1_p1-client
@@ -0,0 +1,19 @@
+# These are the services needed for amanda.
+# Default is to talk to localhost only unless
+# AMANDA_SERVER was specified at build time.
+
+service amanda
+{
+ socket_type = dgram
+ protocol = udp
+ wait = yes
+ user = __AMANDA_USER_NAME__
+ group = __AMANDA_GROUP_NAME__
+ groups = yes
+ server = /usr/libexec/amanda/amandad
+ server_args = -auth=bsd amdump
+ # You need to ensure this points to your Amanda server!
+ # Don't just remove it!
+ only_from = __AMANDA_SERVER__
+ disable = yes
+}
diff --git a/app-backup/amanda/files/amanda-xinetd-2.6.1_p1-server b/app-backup/amanda/files/amanda-xinetd-2.6.1_p1-server
new file mode 100644
index 000000000000..269198e0379b
--- /dev/null
+++ b/app-backup/amanda/files/amanda-xinetd-2.6.1_p1-server
@@ -0,0 +1,19 @@
+# These are the services needed for amanda.
+# Default is to talk to localhost only unless
+# AMANDA_SERVER was specified at build time.
+
+service amanda
+{
+ socket_type = dgram
+ protocol = udp
+ wait = yes
+ user = __AMANDA_USER_NAME__
+ group = __AMANDA_GROUP_NAME__
+ groups = yes
+ server = /usr/libexec/amanda/amandad
+ server_args = -auth=bsd amdump amindexd amidxtaped
+ # You need to ensure this points to your Amanda server!
+ # Don't just remove it!
+ only_from = __AMANDA_SERVER__
+ disable = yes
+}
diff --git a/app-backup/amanda/files/amanda.service b/app-backup/amanda/files/amanda.service
new file mode 100644
index 000000000000..b1f67dbc5d63
--- /dev/null
+++ b/app-backup/amanda/files/amanda.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=Amanda Backup System
+After=local-fs.target
+
+[Service]
+User=amanda
+Group=amanda
+ExecStart=/usr/libexec/amanda/amandad -auth=bsdtcp amdump
+StandardInput=socket
+StandardOutput=socket
diff --git a/app-backup/amanda/files/amanda.service-r1 b/app-backup/amanda/files/amanda.service-r1
new file mode 100644
index 000000000000..a605eb487bf0
--- /dev/null
+++ b/app-backup/amanda/files/amanda.service-r1
@@ -0,0 +1,10 @@
+[Unit]
+Description=Amanda Backup System
+After=local-fs.target
+
+[Service]
+User=amanda
+Group=amanda
+ExecStart=/usr/libexec/amanda/amandad -auth=bsdtcp amdump amindexd amidxtaped
+StandardInput=socket
+StandardOutput=socket
diff --git a/app-backup/amanda/files/amanda.socket b/app-backup/amanda/files/amanda.socket
new file mode 100644
index 000000000000..baf807915c0d
--- /dev/null
+++ b/app-backup/amanda/files/amanda.socket
@@ -0,0 +1,7 @@
+[Unit]
+Description=Amanda Socket
+[Socket]
+ListenStream=10080
+Accept=true
+[Install]
+WantedBy=sockets.target
diff --git a/app-backup/amanda/files/example_amanda.conf b/app-backup/amanda/files/example_amanda.conf
new file mode 100644
index 000000000000..947625e8ebbc
--- /dev/null
+++ b/app-backup/amanda/files/example_amanda.conf
@@ -0,0 +1,44 @@
+# type "man amanda"
+
+org "example"
+mailto "root@localhost"
+
+dumpcycle 7
+runspercycle -1
+tapecycle 7
+
+dumpuser "amanda"
+printer "lp"
+
+#tpchanger "chg-manual"
+tapedev "/dev/nst0"
+
+runtapes 1
+labelstr "^EXAMPLE-[0-9][0-9]*$"
+tapetype DDS4-PRINT
+
+ctimeout 60
+dtimeout 3600
+etimeout 600
+
+netusage 2000
+inparallel 10
+
+dumporder "tttTTTTTTT"
+maxdumps 10
+bumpsize 10
+bumpmult 1.5
+bumpdays 1
+
+diskfile "/etc/amanda/example/disklist"
+infofile "/etc/amanda/example/curinfo"
+logdir "/etc/amanda/example"
+indexdir "/etc/amanda/example/index"
+tapelist "tapelist"
+
+tapebufs 20
+reserve 100
+autoflush off
+
+includefile "/etc/amanda/global.conf"
+
diff --git a/app-backup/amanda/files/example_disklist-2.5.1_p3-r1 b/app-backup/amanda/files/example_disklist-2.5.1_p3-r1
new file mode 100644
index 000000000000..73bf0174ee23
--- /dev/null
+++ b/app-backup/amanda/files/example_disklist-2.5.1_p3-r1
@@ -0,0 +1,4 @@
+# Substitute <HOSTNAME> with the FQDN of your Amanda-client here.
+# The usage of localhost will *break* your restores.
+<HOSTNAME> hda1 normal local
+<HOSTNAME> hda3 normal local
diff --git a/app-backup/amanda/files/example_global.conf b/app-backup/amanda/files/example_global.conf
new file mode 100644
index 000000000000..728739850940
--- /dev/null
+++ b/app-backup/amanda/files/example_global.conf
@@ -0,0 +1,78 @@
+holdingdisk hd1 {
+ comment "main holding disk"
+ directory "/tmp/amanda/dumps"
+ use -1 Gb
+ chunksize 500 Mb
+}
+
+define dumptype normal {
+ auth BSD
+ comment "Normal backup, compression"
+ comprate 0.50, 0.50
+ compress client best
+ index yes
+ priority high
+ program "GNUTAR"
+ record yes
+ strategy STANDARD
+ holdingdisk yes
+}
+
+define dumptype compress-server {
+ auth BSD
+ comment "Normal backup, compression"
+ comprate 0.50, 0.50
+ compress server best
+ index yes
+ priority high
+ program "GNUTAR"
+ record yes
+ strategy STANDARD
+ holdingdisk yes
+}
+
+define dumptype normal-no_hold {
+ normal
+ holdingdisk no
+}
+
+define tapetype DDS4 {
+ comment "Seagate Scorpion 40"
+ length 16432 mbytes
+ filemark 0 kbytes
+ speed 2267 kps
+}
+
+define tapetype DDS4-PRINT {
+ comment "Seagate Scorpion 40 with printer"
+ length 16432 mbytes
+ filemark 0 kbytes
+ speed 2267 kps
+ lbl-templ "/etc/amanda/lbl/DIN-A4.ps"
+}
+
+define tapetype DDS2 {
+ comment "HP DAT C1533A"
+ length 1845 mbytes
+ filemark 0 kbytes
+ speed 480 kps
+}
+
+define tapetype DDS1 {
+ comment "HP DAT HP35480A"
+ length 1845 mbytes
+ filemark 32 kbytes
+ speed 174 kps
+}
+
+define interface local {
+ comment "local disk"
+ use 4000 kbps
+}
+
+define interface eth1 {
+ comment "100 Mbps ethernet"
+ use 1000 kbps
+}
+
+
diff --git a/app-backup/amanda/files/local-amanda-perl5.20.patch b/app-backup/amanda/files/local-amanda-perl5.20.patch
new file mode 100644
index 000000000000..b62df65647a8
--- /dev/null
+++ b/app-backup/amanda/files/local-amanda-perl5.20.patch
@@ -0,0 +1,205 @@
+https://bz-attachments.freebsd.org/attachment.cgi?id=149027&action=diff&collapsed=&context=patch&format=raw&headers=1
+--- perl/Amanda/Application.c.orig 2012-07-25 17:59:54.000000000 +0200
++++ perl/Amanda/Application.c 2014-10-27 08:48:58.000000000 +0100
+@@ -1450,9 +1450,6 @@
+ #ifdef eof
+ #undef eof
+ #endif
+-#ifdef bool
+- #undef bool
+-#endif
+ #ifdef close
+ #undef close
+ #endif
+--- perl/Amanda/Archive.c.orig 2012-07-25 17:59:54.000000000 +0200
++++ perl/Amanda/Archive.c 2014-10-27 08:49:05.000000000 +0100
+@@ -1450,9 +1450,6 @@
+ #ifdef eof
+ #undef eof
+ #endif
+-#ifdef bool
+- #undef bool
+-#endif
+ #ifdef close
+ #undef close
+ #endif
+--- perl/Amanda/Cmdline.c.orig 2012-07-25 17:59:54.000000000 +0200
++++ perl/Amanda/Cmdline.c 2014-10-27 08:49:13.000000000 +0100
+@@ -1450,9 +1450,6 @@
+ #ifdef eof
+ #undef eof
+ #endif
+-#ifdef bool
+- #undef bool
+-#endif
+ #ifdef close
+ #undef close
+ #endif
+--- perl/Amanda/Config.c.orig 2012-07-25 17:59:54.000000000 +0200
++++ perl/Amanda/Config.c 2014-10-27 08:49:19.000000000 +0100
+@@ -1450,9 +1450,6 @@
+ #ifdef eof
+ #undef eof
+ #endif
+-#ifdef bool
+- #undef bool
+-#endif
+ #ifdef close
+ #undef close
+ #endif
+--- perl/Amanda/Debug.c.orig 2012-07-25 17:59:54.000000000 +0200
++++ perl/Amanda/Debug.c 2014-10-27 08:49:25.000000000 +0100
+@@ -1450,9 +1450,6 @@
+ #ifdef eof
+ #undef eof
+ #endif
+-#ifdef bool
+- #undef bool
+-#endif
+ #ifdef close
+ #undef close
+ #endif
+--- perl/Amanda/Device.c.orig 2012-07-25 17:59:54.000000000 +0200
++++ perl/Amanda/Device.c 2014-10-27 08:49:30.000000000 +0100
+@@ -1450,9 +1450,6 @@
+ #ifdef eof
+ #undef eof
+ #endif
+-#ifdef bool
+- #undef bool
+-#endif
+ #ifdef close
+ #undef close
+ #endif
+--- perl/Amanda/Disklist.c.orig 2012-07-25 17:59:54.000000000 +0200
++++ perl/Amanda/Disklist.c 2014-10-27 08:49:36.000000000 +0100
+@@ -1450,9 +1450,6 @@
+ #ifdef eof
+ #undef eof
+ #endif
+-#ifdef bool
+- #undef bool
+-#endif
+ #ifdef close
+ #undef close
+ #endif
+--- perl/Amanda/Feature.c.orig 2012-07-25 17:59:54.000000000 +0200
++++ perl/Amanda/Feature.c 2014-10-27 08:49:41.000000000 +0100
+@@ -1450,9 +1450,6 @@
+ #ifdef eof
+ #undef eof
+ #endif
+-#ifdef bool
+- #undef bool
+-#endif
+ #ifdef close
+ #undef close
+ #endif
+--- perl/Amanda/Header.c.orig 2012-07-25 17:59:54.000000000 +0200
++++ perl/Amanda/Header.c 2014-10-27 08:49:48.000000000 +0100
+@@ -1450,9 +1450,6 @@
+ #ifdef eof
+ #undef eof
+ #endif
+-#ifdef bool
+- #undef bool
+-#endif
+ #ifdef close
+ #undef close
+ #endif
+--- perl/Amanda/Logfile.c.orig 2012-07-25 17:59:54.000000000 +0200
++++ perl/Amanda/Logfile.c 2014-10-27 08:49:53.000000000 +0100
+@@ -1450,9 +1450,6 @@
+ #ifdef eof
+ #undef eof
+ #endif
+-#ifdef bool
+- #undef bool
+-#endif
+ #ifdef close
+ #undef close
+ #endif
+--- perl/Amanda/MainLoop.c.orig 2012-07-25 17:59:54.000000000 +0200
++++ perl/Amanda/MainLoop.c 2014-10-27 08:49:59.000000000 +0100
+@@ -1450,9 +1450,6 @@
+ #ifdef eof
+ #undef eof
+ #endif
+-#ifdef bool
+- #undef bool
+-#endif
+ #ifdef close
+ #undef close
+ #endif
+--- perl/Amanda/NDMP.c.orig 2012-07-25 17:59:54.000000000 +0200
++++ perl/Amanda/NDMP.c 2014-10-27 08:50:19.000000000 +0100
+@@ -1450,9 +1450,6 @@
+ #ifdef eof
+ #undef eof
+ #endif
+-#ifdef bool
+- #undef bool
+-#endif
+ #ifdef close
+ #undef close
+ #endif
+--- perl/Amanda/Tapelist.c.orig 2012-07-25 17:59:54.000000000 +0200
++++ perl/Amanda/Tapelist.c 2014-10-27 08:50:24.000000000 +0100
+@@ -1450,9 +1450,6 @@
+ #ifdef eof
+ #undef eof
+ #endif
+-#ifdef bool
+- #undef bool
+-#endif
+ #ifdef close
+ #undef close
+ #endif
+--- perl/Amanda/Tests.c.orig 2012-07-25 17:59:54.000000000 +0200
++++ perl/Amanda/Tests.c 2014-10-27 09:01:12.000000000 +0100
+@@ -1450,9 +1450,6 @@
+ #ifdef eof
+ #undef eof
+ #endif
+-#ifdef bool
+- #undef bool
+-#endif
+ #ifdef close
+ #undef close
+ #endif
+--- perl/Amanda/Util.c.orig 2012-07-25 17:59:54.000000000 +0200
++++ perl/Amanda/Util.c 2014-10-27 09:01:17.000000000 +0100
+@@ -1450,9 +1450,6 @@
+ #ifdef eof
+ #undef eof
+ #endif
+-#ifdef bool
+- #undef bool
+-#endif
+ #ifdef close
+ #undef close
+ #endif
+--- perl/Amanda/Xfer.c.orig 2012-07-25 17:59:54.000000000 +0200
++++ perl/Amanda/Xfer.c 2014-10-27 09:01:22.000000000 +0100
+@@ -1450,9 +1450,6 @@
+ #ifdef eof
+ #undef eof
+ #endif
+-#ifdef bool
+- #undef bool
+-#endif
+ #ifdef close
+ #undef close
+ #endif
+--- perl/Amanda/XferServer.c.orig 2012-07-25 17:59:55.000000000 +0200
++++ perl/Amanda/XferServer.c 2014-10-27 09:01:29.000000000 +0100
+@@ -1450,9 +1450,6 @@
+ #ifdef eof
+ #undef eof
+ #endif
+-#ifdef bool
+- #undef bool
+-#endif
+ #ifdef close
+ #undef close
+ #endif
diff --git a/app-backup/amanda/metadata.xml b/app-backup/amanda/metadata.xml
new file mode 100644
index 000000000000..694128c76da0
--- /dev/null
+++ b/app-backup/amanda/metadata.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>app-backup</herd>
+ <herd>proxy-maintainers</herd>
+ <maintainer>
+ <email>robbat2@gentoo.org</email>
+ <description>Primary maintainer</description>
+ <name>Robin H. Johnson</name>
+ </maintainer>
+ <maintainer>
+ <email>lists@xunil.at</email>
+ <description>Proxied developer. Please CC on bugs.</description>
+ <name>Stefan G. Weichinger</name>
+ </maintainer>
+ <maintainer>
+ <email>dustin@v.igoro.us</email>
+ <description>Upstream. Please CC on bugs.</description>
+ <name>Dustin J. Mitchell</name>
+ </maintainer>
+ <use>
+ <flag name="xfs">Support for backing up raw XFS filesystems using xfsdump</flag>
+ <flag name="s3">Support for backing up to the Amazon S3 system</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">amanda</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-backup/backintime/Manifest b/app-backup/backintime/Manifest
new file mode 100644
index 000000000000..324695c8b890
--- /dev/null
+++ b/app-backup/backintime/Manifest
@@ -0,0 +1,4 @@
+DIST backintime-1.0.24.tar.gz 507183 SHA256 5d9bac6fd74dd2258786b3481af260beb0f544d0e3560a0db2c8c0a87973384d SHA512 57469409e101207dd0c90f47ac7a709f5c7faab2cd7c60ff014a431912483b87e677bb7d0d2e25609d318f2a7ceb539bac4cc52bf7284d987200d98f2be670a7 WHIRLPOOL 476c158744918510d26d627f9cb833149ef99af85d3d423de2a2e61bc995032131f86df194825876f81ecb756109b328118be741f92cc98f11f7340c1a1e10ca
+DIST backintime-1.0.36.tar.gz 594612 SHA256 40ff1ed81fa4de3302acbc0154f2ec9ee17e77423d35e17c66eb110c2c171666 SHA512 0f78041c90c8242d6e4aabc97c67156e1ecf7d593adb40e417959f0d2dd0432ae95e3dd4c04603b170e7271f82e01ced4e7233794d81333e8b9ab3e9b9721776 WHIRLPOOL 8d9e752bae1000cd9690da095fa382c5deac8af8f107f3b1d39f7bf1d5f59091ccfc0b6f6c9b779f94fedd13e2e2daf7f2d53f5b54cb4050548eeb0345ba878e
+DIST backintime-1.0.40.tar.gz 595494 SHA256 09a79fe95b654e628a9d76d19f110bf5d29c7cf142b2ec5df2f1c8561b5551f2 SHA512 342a842ebac4b886ec8af8d30f0a01594b89cd4345c84c2cda463b7862d00955180a688f6661623502117896e95b63b8d44e5f3d0fc8152cca1ca3d816380e44 WHIRLPOOL 38c51e77d1661e0773ee17dc84cb2f9559c4a0b112db4c3de43a836ca099bfbd391a98846b349ef9e9794fc3befb73eef5400f080122d8e63eebec28bfc7f3c0
+DIST backintime-1.1.4.tar.gz 562964 SHA256 434fc1fb6d9ac20d7b04c791e39bf9e077773c696e18f2bf1aa8f3e7fb59a770 SHA512 a207833c9708166cfbc4e0aa36c6e1b0ee609d5e05a8f23c51c3242f8e32ae25df09255885a812ac32bdec7874266e8a167be076c8938d90ddfe76c5b2736aa7 WHIRLPOOL e3dee1d437657939ce3290d0717f9c6f31a656de8f4642bf7fbcca1dd5b7426ba7f068f8faa96e731c863e4a8e02d1e8d1526fbf466b7ea8ba1b1682fd43ab7f
diff --git a/app-backup/backintime/backintime-1.0.24-r2.ebuild b/app-backup/backintime/backintime-1.0.24-r2.ebuild
new file mode 100644
index 000000000000..c6d232e9aed2
--- /dev/null
+++ b/app-backup/backintime/backintime-1.0.24-r2.ebuild
@@ -0,0 +1,98 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit eutils python-single-r1
+
+DESCRIPTION="A simple backup system inspired by TimeVault and FlyBack, with a GUI for GNOME and KDE4"
+HOMEPAGE="http://backintime.le-web.org/"
+SRC_URI="http://${PN}.le-web.org/wp-content/uploads/2009/03/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="kde gnome"
+
+RDEPEND="${PYTHON_DEPS}
+ dev-python/keyring[${PYTHON_USEDEP}]
+ dev-python/notify-python[${PYTHON_USEDEP}]
+ net-misc/openssh
+ net-misc/rsync[xattr,acl]
+ kde? (
+ >=kde-base/kdelibs-4
+ kde-base/pykde4[${PYTHON_USEDEP}]
+ kde-apps/kompare:4
+ kde-apps/kdesu:4
+ )
+ gnome? (
+ gnome-base/libglade
+ dev-util/meld
+ gnome-base/gnome-session
+ dev-python/gnome-vfs-python
+ dev-python/libgnome-python
+ dev-python/pygobject:2[${PYTHON_USEDEP}]
+ dev-python/pygtk[${PYTHON_USEDEP}]
+ x11-libs/gksu
+ )"
+
+DEPEND="${RDEPEND}"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+S=${WORKDIR}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-dont-install-license.patch
+ epatch "${FILESDIR}"/${PN}-1.0.4-fix-configure-warning.diff
+
+ #fix doc install location
+ sed -i "s:/doc/kde4/HTML/:/doc/HTML/:g" kde4/Makefile.template || die
+ sed -i "s:/doc/backintime:/doc/${PF}:g" common/Makefile.template || die
+
+ cp "${FILESDIR}"/backintime-1.0.4-kde4-root.desktop \
+ kde4/backintime-kde4-root.desktop || die
+
+ #bug 482106
+ epatch "${FILESDIR}"/${P}-wrapper.patch
+ sed -e "s:^python2 :${PYTHON} :" \
+ -e "s:APP_PATH=\"/usr:APP_PATH=\"${EPREFIX}/usr:" \
+ -i kde4/backintime-kde4 gnome/backintime-gnome \
+ common/backintime || die
+
+ backintime_variants="common $(usex gnome gnome '') $(usex kde kde4 '')"
+ backintime_run() {
+ local variant
+ for variant in ${backintime_variants} ; do
+ einfo "$variant: run \"$@\""
+ pushd "${S}"/${variant} || die
+ "${@}" || die
+ popd
+ done
+ }
+
+ if [ -n ${LINGUAS+x} ] ; then
+ cd common/po || die
+ for po in *.po ; do
+ if ! has ${po/.po} ${LINGUAS} ; then
+ rm ${po} || die
+ fi
+ done
+ fi
+}
+
+src_configure() {
+ backintime_run econf
+}
+
+src_compile() {
+ backintime_run emake
+}
+
+src_install() {
+ backintime_run emake DESTDIR="${D}" install
+ python_optimize "${D}"
+}
diff --git a/app-backup/backintime/backintime-1.0.36-r2.ebuild b/app-backup/backintime/backintime-1.0.36-r2.ebuild
new file mode 100644
index 000000000000..0d592ba443cf
--- /dev/null
+++ b/app-backup/backintime/backintime-1.0.36-r2.ebuild
@@ -0,0 +1,98 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit eutils python-single-r1
+
+DESCRIPTION="A simple backup system inspired by TimeVault and FlyBack, with a GUI for GNOME and KDE4"
+HOMEPAGE="http://backintime.le-web.org/"
+SRC_URI="http://${PN}.le-web.org/download/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="kde gnome"
+
+RDEPEND="${PYTHON_DEPS}
+ dev-python/dbus-python[${PYTHON_USEDEP}]
+ dev-python/keyring[${PYTHON_USEDEP}]
+ dev-python/notify-python[${PYTHON_USEDEP}]
+ net-misc/openssh
+ net-misc/rsync[xattr,acl]
+ kde? (
+ >=kde-base/kdelibs-4
+ kde-base/pykde4[${PYTHON_USEDEP}]
+ kde-apps/kompare:4
+ kde-apps/kdesu:4
+ )
+ gnome? (
+ gnome-base/libglade
+ dev-util/meld
+ gnome-base/gnome-session
+ dev-python/gnome-vfs-python
+ dev-python/libgnome-python
+ dev-python/pygobject:2[${PYTHON_USEDEP}]
+ dev-python/pygtk[${PYTHON_USEDEP}]
+ x11-libs/gksu
+ )"
+
+DEPEND="${RDEPEND}"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+S=${WORKDIR}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-1.0.24-dont-install-license.patch
+
+ #fix doc install location
+ sed -i "s:/doc/kde4/HTML/:/doc/HTML/:g" kde4/Makefile.template || die
+ sed -i "s:/doc/backintime:/doc/${PF}:g" common/Makefile.template || die
+
+ cp "${FILESDIR}"/backintime-1.0.4-kde4-root.desktop \
+ kde4/backintime-kde4-root.desktop || die
+
+ #bug 482106
+ epatch "${FILESDIR}"/${P}-wrapper.patch
+ sed -e "s:^python2 :${PYTHON} :" \
+ -e "s:APP_PATH=\"/usr:APP_PATH=\"${EPREFIX}/usr:" \
+ -i kde4/backintime-kde4 gnome/backintime-gnome \
+ common/backintime || die
+
+ backintime_variants="common $(usex gnome gnome '') $(usex kde kde4 '')"
+ backintime_run() {
+ local variant
+ for variant in ${backintime_variants} ; do
+ einfo "$variant: run \"$@\""
+ pushd "${S}"/${variant} || die
+ "${@}" || die
+ popd
+ done
+ }
+
+ if [ -n ${LINGUAS+x} ] ; then
+ cd common/po || die
+ for po in *.po ; do
+ if ! has ${po/.po} ${LINGUAS} ; then
+ rm ${po} || die
+ fi
+ done
+ fi
+}
+
+src_configure() {
+ backintime_run econf
+}
+
+src_compile() {
+ backintime_run emake
+}
+
+src_install() {
+ backintime_run emake DESTDIR="${D}" install
+ python_optimize "${D}"
+}
diff --git a/app-backup/backintime/backintime-1.0.40.ebuild b/app-backup/backintime/backintime-1.0.40.ebuild
new file mode 100644
index 000000000000..c69ef3fcffdd
--- /dev/null
+++ b/app-backup/backintime/backintime-1.0.40.ebuild
@@ -0,0 +1,98 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit eutils python-single-r1
+
+DESCRIPTION="A simple backup system inspired by TimeVault and FlyBack, with a GUI for GNOME and KDE4"
+HOMEPAGE="http://backintime.le-web.org/"
+SRC_URI="http://${PN}.le-web.org/download/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="kde gnome"
+
+RDEPEND="${PYTHON_DEPS}
+ dev-python/dbus-python[${PYTHON_USEDEP}]
+ dev-python/keyring[${PYTHON_USEDEP}]
+ dev-python/notify-python[${PYTHON_USEDEP}]
+ net-misc/openssh
+ net-misc/rsync[xattr,acl]
+ kde? (
+ >=kde-base/kdelibs-4
+ kde-base/pykde4[${PYTHON_USEDEP}]
+ kde-apps/kompare:4
+ kde-apps/kdesu:4
+ )
+ gnome? (
+ gnome-base/libglade
+ dev-util/meld
+ gnome-base/gnome-session
+ dev-python/gnome-vfs-python
+ dev-python/libgnome-python
+ dev-python/pygobject:2[${PYTHON_USEDEP}]
+ dev-python/pygtk[${PYTHON_USEDEP}]
+ x11-libs/gksu
+ )"
+
+DEPEND="${RDEPEND}"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+S=${WORKDIR}
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-1.0.24-dont-install-license.patch
+
+ #fix doc install location
+ sed -i "s:/doc/kde4/HTML/:/doc/HTML/:g" kde4/Makefile.template || die
+ sed -i "s:/doc/backintime:/doc/${PF}:g" common/Makefile.template || die
+
+ cp "${FILESDIR}"/backintime-1.0.4-kde4-root.desktop \
+ kde4/backintime-kde4-root.desktop || die
+
+ #bug 482106
+ epatch "${FILESDIR}"/${PN}-1.0.36-wrapper.patch
+ sed -e "s:^python2 :${PYTHON} :" \
+ -e "s:APP_PATH=\"/usr:APP_PATH=\"${EPREFIX}/usr:" \
+ -i kde4/backintime-kde4 gnome/backintime-gnome \
+ common/backintime || die
+
+ backintime_variants="common $(usex gnome gnome '') $(usex kde kde4 '')"
+ backintime_run() {
+ local variant
+ for variant in ${backintime_variants} ; do
+ einfo "$variant: run \"$@\""
+ pushd "${S}"/${variant} || die
+ "${@}" || die
+ popd
+ done
+ }
+
+ if [ -n ${LINGUAS+x} ] ; then
+ cd common/po || die
+ for po in *.po ; do
+ if ! has ${po/.po} ${LINGUAS} ; then
+ rm ${po} || die
+ fi
+ done
+ fi
+}
+
+src_configure() {
+ backintime_run econf
+}
+
+src_compile() {
+ backintime_run emake
+}
+
+src_install() {
+ backintime_run emake DESTDIR="${D}" install
+ python_optimize "${D}"
+}
diff --git a/app-backup/backintime/backintime-1.1.4.ebuild b/app-backup/backintime/backintime-1.1.4.ebuild
new file mode 100644
index 000000000000..6f7c7847de64
--- /dev/null
+++ b/app-backup/backintime/backintime-1.1.4.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PYTHON_COMPAT=( python3_2 python3_3 python3_4 )
+
+inherit eutils python-single-r1
+
+DESCRIPTION="A simple backup system inspired by TimeVault and FlyBack, with a GUI for GNOME and KDE4"
+HOMEPAGE="http://backintime.le-web.org/"
+SRC_URI="http://${PN}.le-web.org/download/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="qt4"
+
+RDEPEND="${PYTHON_DEPS}
+ dev-python/dbus-python[${PYTHON_USEDEP}]
+ dev-python/keyring[${PYTHON_USEDEP}]
+ net-misc/openssh
+ net-misc/rsync[xattr,acl]"
+
+DEPEND="${RDEPEND}"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+src_prepare() {
+ #fix doc install location
+ sed -e "s:/doc/${PN}-common:/doc/${PF}:g" \
+ -i common/Makefile.template || die
+ sed -e "s:/doc/${PN}-qt4:/doc/${PF}:g" \
+ -i qt4/Makefile.template || die
+ sed -e "/\/VERSION/d" -e "/\/LICENSE/d" -e "/\/copyright/d" \
+ -i {qt4,common}/Makefile.template || die
+
+ if [ -n ${LINGUAS+x} ] ; then
+ cd common/po || die
+ for po in *.po ; do
+ if ! has ${po/.po} ${LINGUAS} ; then
+ rm ${po} || die
+ fi
+ done
+ fi
+}
+
+src_configure() {
+ cd "${S}"/common || die
+ ./configure --python3 --no-fuse-group || die
+ if use qt4 ; then
+ cd "${S}"/qt4 || die
+ ./configure --python3 || die
+ fi
+}
+
+src_compile() {
+ cd "${S}"/common || die
+ emake
+ if use qt4 ; then
+ cd "${S}"/qt4 || die
+ emake
+ fi
+}
+
+src_install() {
+ cd "${S}"/common || die
+ emake DESTDIR="${D}" install
+ if use qt4 ; then
+ cd "${S}"/qt4 || die
+ emake DESTDIR="${D}" install
+ fi
+
+ python_optimize "${D}"
+}
diff --git a/app-backup/backintime/files/backintime-1.0.24-dont-install-license.patch b/app-backup/backintime/files/backintime-1.0.24-dont-install-license.patch
new file mode 100644
index 000000000000..73ba5947e9bf
--- /dev/null
+++ b/app-backup/backintime/files/backintime-1.0.24-dont-install-license.patch
@@ -0,0 +1,49 @@
+--- backintime-1.0.4/common/Makefile.template
++++ backintime-1.0.4/common/Makefile.template
+@@ -17,10 +17,6 @@
+ install -d $(DEST)/share/backintime/plugins
+ install --mode=644 plugins/*.py $(DEST)/share/backintime/plugins
+
+- #install copyright file
+- install -d $(DEST)/share/doc/backintime-common
+- install --mode=644 debian_specific/copyright $(DEST)/share/doc/backintime-common
+-
+ #install doc file(s)
+ install -d $(DEST)/share/doc/backintime
+ install --mode=644 ../AUTHORS $(DEST)/share/doc/backintime
+--- backintime-1.0.24/common/Makefile.template
++++ backintime-1.0.24/common/Makefile.template
+@@ -20,7 +20,6 @@
+ #install doc file(s)
+ install -d $(DEST)/share/doc/backintime
+ install --mode=644 ../AUTHORS $(DEST)/share/doc/backintime
+- install --mode=644 ../LICENSE $(DEST)/share/doc/backintime
+ install --mode=644 ../README $(DEST)/share/doc/backintime
+ install --mode=644 ../TRANSLATIONS $(DEST)/share/doc/backintime
+ install --mode=644 ../VERSION $(DEST)/share/doc/backintime
+--- backintime-1.0.4/gnome/Makefile.template
++++ backintime-1.0.4/gnome/Makefile.template
+@@ -15,10 +15,6 @@
+ install -d $(DEST)/share/backintime/plugins
+ install --mode=644 plugins/*.py $(DEST)/share/backintime/plugins
+
+- #install copyright file
+- install -d $(DEST)/share/doc/backintime-gnome
+- install --mode=644 ../common/debian_specific/copyright $(DEST)/share/doc/backintime-gnome
+-
+ #install man file(s)
+ install -d $(DEST)/share/man/man1
+ install --mode=644 man/C/*.gz $(DEST)/share/man/man1
+--- backintime-1.0.4/kde4/Makefile.template
++++ backintime-1.0.4/kde4/Makefile.template
+@@ -19,10 +19,6 @@
+ install -d $(DEST)/bin
+ install backintime-kde4 $(DEST)/bin
+
+- #install copyright file
+- install -d $(DEST)/share/doc/backintime-kde4
+- install --mode=644 ../common/debian_specific/copyright $(DEST)/share/doc/backintime-kde4
+-
+ #install .desktop file(s)
+ install -d $(DEST)/share/applications/kde4
+ install --mode=644 *.desktop $(DEST)/share/applications/kde4
diff --git a/app-backup/backintime/files/backintime-1.0.24-wrapper.patch b/app-backup/backintime/files/backintime-1.0.24-wrapper.patch
new file mode 100644
index 000000000000..fa65098fff85
--- /dev/null
+++ b/app-backup/backintime/files/backintime-1.0.24-wrapper.patch
@@ -0,0 +1,64 @@
+--- backintime-1.0.24-r2/common/backintime
++++ backintime-1.0.24-r2/common/backintime
+@@ -17,15 +17,14 @@
+ # with this program; if not, write to the Free Software Foundation, Inc.,
+ # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+-if [ -f backintime.py ]; then
+- APP_PATH="."
+-else
+- APP_PATH="/usr/share/backintime/common"
+-fi
++APP_PATH="/usr/share/backintime/common"
+
+ #starting a new ssh-agent all the time is just a workaround for
+ #https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/841672
+ #normally this should only be necessary if run as cronjob
+ #and the user is not logged in
+-ssh-agent python $APP_PATH/backintime.py "$@"
++if [ "x$SSH_AUTH_SOCK" = "x" ]; then
++ eval "$(ssh-agent)"
++fi
+
++python2 $APP_PATH/backintime.py "$@"
+--- backintime-1.0.24-r2/gnome/backintime-gnome
++++ backintime-1.0.24-r2/gnome/backintime-gnome
+@@ -17,14 +17,13 @@
+ # with this program; if not, write to the Free Software Foundation, Inc.,
+ # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+-if [ -f app.py ]; then
+- APP_PATH="."
+-else
+- APP_PATH="/usr/share/backintime/gnome"
+-fi
++APP_PATH="/usr/share/backintime/gnome"
+
+ #starting a new ssh-agent all the time is just a workaround for
+ #https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/841672
+ #normally we don't need to start ssh-agent for backintime-gnome
+-ssh-agent python ${APP_PATH}/app.py "$@"
++if [ "x$SSH_AUTH_SOCK" = "x" ]; then
++ eval "$(ssh-agent)"
++fi
+
++python2 ${APP_PATH}/app.py "$@"
+--- backintime-1.0.24-r2/kde4/backintime-kde4
++++ backintime-1.0.24-r2/kde4/backintime-kde4
+@@ -17,11 +17,10 @@
+ # with this program; if not, write to the Free Software Foundation, Inc.,
+ # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+-if [ -f app.py ]; then
+- APP_PATH="."
+-else
+- APP_PATH="/usr/share/backintime/kde4"
++APP_PATH="/usr/share/backintime/kde4"
++#https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/841672
++if [ "x$SSH_AUTH_SOCK" = "x" ]; then
++ eval "$(ssh-agent)"
+ fi
+
+-python ${APP_PATH}/app.py "$@"
+-
++python2 ${APP_PATH}/app.py "$@"
diff --git a/app-backup/backintime/files/backintime-1.0.36-wrapper.patch b/app-backup/backintime/files/backintime-1.0.36-wrapper.patch
new file mode 100644
index 000000000000..a0b01245fe1f
--- /dev/null
+++ b/app-backup/backintime/files/backintime-1.0.36-wrapper.patch
@@ -0,0 +1,65 @@
+--- backintime-1.0.24-r2/common/backintime
++++ backintime-1.0.24-r2/common/backintime
+@@ -17,15 +17,14 @@
+ # with this program; if not, write to the Free Software Foundation, Inc.,
+ # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+-if [ -f backintime.py ]; then
+- APP_PATH="."
+-else
+- APP_PATH="/usr/share/backintime/common"
+-fi
++APP_PATH="/usr/share/backintime/common"
+
+ #starting a new ssh-agent all the time is just a workaround for
+ #https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/841672
+ #normally this should only be necessary if run as cronjob
+ #and the user is not logged in
+-ssh-agent python $APP_PATH/backintime.py "$@"
++if [ "x$SSH_AUTH_SOCK" = "x" ]; then
++ eval "$(ssh-agent)"
++fi
+
++python2 $APP_PATH/backintime.py "$@"
+--- backintime-1.0.24-r2/gnome/backintime-gnome
++++ backintime-1.0.24-r2/gnome/backintime-gnome
+@@ -17,14 +17,13 @@
+ # with this program; if not, write to the Free Software Foundation, Inc.,
+ # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+-if [ -f app.py ]; then
+- APP_PATH="."
+-else
+- APP_PATH="/usr/share/backintime/gnome"
+-fi
++APP_PATH="/usr/share/backintime/gnome"
+
+ #starting a new ssh-agent all the time is just a workaround for
+ #https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/841672
+ #normally we don't need to start ssh-agent for backintime-gnome
+-ssh-agent python ${APP_PATH}/app.py "$@"
++if [ "x$SSH_AUTH_SOCK" = "x" ]; then
++ eval "$(ssh-agent)"
++fi
+
++python2 ${APP_PATH}/app.py "$@"
+--- backintime-1.0.24-r2/kde4/backintime-kde4
++++ backintime-1.0.24-r2/kde4/backintime-kde4
+@@ -17,15 +17,10 @@
+ # with this program; if not, write to the Free Software Foundation, Inc.,
+ # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+
+-if [ -f app.py ]; then
+- APP_PATH="."
+-else
+- APP_PATH="/usr/share/backintime/kde4"
+-fi
++APP_PATH="/usr/share/backintime/kde4"
+
+ if [ "x$SSH_AUTH_SOCK" = "x" ]; then
+ eval "$(ssh-agent)"
+ fi
+
+-python ${APP_PATH}/app.py "$@"
+-
++python2 ${APP_PATH}/app.py "$@"
diff --git a/app-backup/backintime/files/backintime-1.0.4-fix-configure-warning.diff b/app-backup/backintime/files/backintime-1.0.4-fix-configure-warning.diff
new file mode 100644
index 000000000000..40831b400f7a
--- /dev/null
+++ b/app-backup/backintime/files/backintime-1.0.4-fix-configure-warning.diff
@@ -0,0 +1,17 @@
+diff -Naur backintime-1.0.4.orig/kde4/configure backintime-1.0.4/kde4/configure
+--- backintime-1.0.4.orig/kde4/configure 2010-11-08 14:36:52.000000000 +0100
++++ backintime-1.0.4/kde4/configure 2010-11-08 14:42:18.000000000 +0100
+@@ -16,13 +16,6 @@
+ fi
+ fi
+
+-#check for kdesudo (if not use kdesu)
+-if [ -z `which kdesudo` ]; then
+- mv backintime-kde4-root.desktop.kdesudo backintime-kde4-root.desktop
+-else
+- mv backintime-kde4-root.desktop.kdesu backintime-kde4-root.desktop
+-fi
+-
+ cp Makefile.template Makefile
+
+ echo "All OK. Now run:"
diff --git a/app-backup/backintime/files/backintime-1.0.4-kde4-root.desktop b/app-backup/backintime/files/backintime-1.0.4-kde4-root.desktop
new file mode 100644
index 000000000000..54d340efcd46
--- /dev/null
+++ b/app-backup/backintime/files/backintime-1.0.4-kde4-root.desktop
@@ -0,0 +1,11 @@
+[Desktop Entry]
+Name=Back In Time (root)
+Exec=kdesu -c backintime-kde4
+Icon=document-save
+Terminal=false
+X-MultipleArgs=false
+Type=Application
+StartupNotify=true
+Categories=Qt;KDE;System;
+Comment=Simple backup system
+Comment[sl]=Enostaven sistem ustvarjanja varnostnih kopij
diff --git a/app-backup/backintime/metadata.xml b/app-backup/backintime/metadata.xml
new file mode 100644
index 000000000000..b1f5e35e552f
--- /dev/null
+++ b/app-backup/backintime/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer>
+ <email>xmw@gentoo.org</email>
+ <name>Michael Weber</name>
+</maintainer>
+<longdescription lang="en">
+Back In Time is a simple backup tool for Linux inspired from “flyback project” and “TimeVault”. The backup is done by taking snapshots of a specified set of directories.
+Currently there are two GUI available: Gnome and KDE 4 (>= 4.1).
+
+All you have to do is configure:
+ Where to save snapshot
+ What directories to backup
+ When backup should be done (manual, every hour, every day, every week, every month)
+</longdescription>
+</pkgmetadata>
diff --git a/app-backup/backup-manager/Manifest b/app-backup/backup-manager/Manifest
new file mode 100644
index 000000000000..33784c036aa2
--- /dev/null
+++ b/app-backup/backup-manager/Manifest
@@ -0,0 +1,2 @@
+DIST Backup-Manager-0.7.10.1.tar.gz 150963 SHA256 16994520d3fded41e166d17c946405dd192acf960603044aa6c915465e78d41f SHA512 8c51e8150b0a67c416bcba6291b85f2bb2dfd79521f4e0f8a2de47c5903dafbebde4048224cbecf92fc09b3a6ac431fab51434ccced81cf2fbfdd24482432618 WHIRLPOOL e1fb4913038dd25fc39dd0663cb434b3cadcb855c704fa3825ec2484a965f5b6b6ad1cf4e20132fa487b84c082a5883641fa9ad7d2b01f44f58d2d13003bf5c6
+DIST backup-manager-0.7.5.tar.gz 159855 SHA256 a7aa04ebec5b8a80d5e75d48121092afb969e1efb252b1ffdbcd28b04225e55a SHA512 3101e695d79c429e5a415a174c12b6217495aaefc0b44ee870bb492eea75ce07dacb766a45c60268a0f7da798d51b46f6d91f33b9d545360f09b92b61329bcef WHIRLPOOL 366e205c15084231fad81af9cbcebca34e7d3637476ba7046dc840d3f54c110469588ddc939c112525bac8d4764a7be2097c1b218f59af752af453091ff8299f
diff --git a/app-backup/backup-manager/backup-manager-0.7.10.1-r1.ebuild b/app-backup/backup-manager/backup-manager-0.7.10.1-r1.ebuild
new file mode 100644
index 000000000000..5ee25a3bdea2
--- /dev/null
+++ b/app-backup/backup-manager/backup-manager-0.7.10.1-r1.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit eutils
+
+MY_P=Backup-Manager-${PV}
+DESCRIPTION="Backup Manager is a command line backup tool for GNU/Linux"
+HOMEPAGE="http://www.backup-manager.org/"
+SRC_URI="http://www.backup-manager.org/download/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc s3"
+
+DEPEND="dev-lang/perl
+ sys-devel/gettext"
+
+RDEPEND="${DEPEND}
+ >=sys-apps/findutils-4.3.0
+ s3? ( dev-perl/Net-Amazon-S3
+ dev-perl/File-Slurp )"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ sed -i "/^PERL5DIR/s/sitelib/vendorlib/" Makefile \
+ || die "Makefile sed failed"
+ sed -i '/^prefix=/s/$(PREFIX)/usr/' po/Makefile \
+ || die "po Makefile sed failed"
+ epatch "${FILESDIR}"/${PN}-0.7.9-parallel_install.patch
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ use doc && dodoc doc/user-guide.txt
+}
+
+pkg_postinst() {
+ elog "After installing,"
+ elog "copy ${ROOT%/}/usr/share/backup-manager/backup-manager.conf.tpl to"
+ elog "/etc/backup-manager.conf and customize it for your environment."
+ elog "You could also set-up your cron for daily or weekly backup."
+
+ ewarn "New configuration keys may have been defined."
+ ewarn "Please check the docs for info"
+}
diff --git a/app-backup/backup-manager/backup-manager-0.7.10.1-r2.ebuild b/app-backup/backup-manager/backup-manager-0.7.10.1-r2.ebuild
new file mode 100644
index 000000000000..1ccd1db2a266
--- /dev/null
+++ b/app-backup/backup-manager/backup-manager-0.7.10.1-r2.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils
+
+MY_P=Backup-Manager-${PV}
+DESCRIPTION="Backup Manager is a command line backup tool for GNU/Linux"
+HOMEPAGE="http://www.backup-manager.org/"
+SRC_URI="http://www.backup-manager.org/download/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc s3"
+
+DEPEND="dev-lang/perl
+ sys-devel/gettext"
+
+RDEPEND="${DEPEND}
+ >=sys-apps/findutils-4.3.0
+ s3? ( dev-perl/Net-Amazon-S3
+ dev-perl/File-Slurp )"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ sed -i "/^PERL5DIR/s/sitelib/vendorlib/" Makefile \
+ || die "Makefile sed failed"
+ sed -i '/^prefix=/s/$(PREFIX)/usr/' po/Makefile \
+ || die "po Makefile sed failed"
+ epatch "${FILESDIR}"/${PN}-0.7.9-parallel_install.patch
+ epatch "${FILESDIR}"/${PN}-0.7.10-Fix-POD-syntax.patch
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ use doc && dodoc doc/user-guide.txt
+}
+
+pkg_postinst() {
+ elog "After installing,"
+ elog "copy ${ROOT%/}/usr/share/backup-manager/backup-manager.conf.tpl to"
+ elog "/etc/backup-manager.conf and customize it for your environment."
+ elog "You could also set-up your cron for daily or weekly backup."
+
+ ewarn "New configuration keys may have been defined."
+ ewarn "Please check the docs for info"
+}
diff --git a/app-backup/backup-manager/backup-manager-0.7.5.ebuild b/app-backup/backup-manager/backup-manager-0.7.5.ebuild
new file mode 100644
index 000000000000..8c3b11aad6ce
--- /dev/null
+++ b/app-backup/backup-manager/backup-manager-0.7.5.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit eutils
+
+DESCRIPTION="Backup Manager is a command line backup tool for GNU/Linux"
+HOMEPAGE="http://www.backup-manager.org/"
+SRC_URI="http://www.backup-manager.org/download/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="doc"
+
+DEPEND="dev-lang/perl
+ sys-devel/gettext"
+
+RDEPEND="${DEPEND}
+ >=sys-apps/findutils-4.3.0"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ epatch "${FILESDIR}"/Makefile-fix.diff
+}
+
+src_compile() {
+ # doing nothing, cause a call to make would start make install
+ true
+}
+
+src_install() {
+ make DESTDIR="${D}" install || die "install failed"
+ use doc && dodoc doc/user-guide.txt
+}
+
+pkg_postinst() {
+ elog "After installing,"
+ elog "copy ${ROOT%/}/usr/share/backup-manager/backup-manager.conf.tpl to"
+ elog "/etc/backup-manager.conf and customize it for your environment."
+ elog "You could also set-up your cron for daily or weekly backup."
+ ebeep 3
+ ewarn "New configuration keys have been defined. Please check the docs for info"
+}
diff --git a/app-backup/backup-manager/files/Makefile-fix.diff b/app-backup/backup-manager/files/Makefile-fix.diff
new file mode 100644
index 000000000000..86ebee845d4f
--- /dev/null
+++ b/app-backup/backup-manager/files/Makefile-fix.diff
@@ -0,0 +1,25 @@
+diff -urN backup-manager-0.7.2/Makefile backup-manager-0.7.2-modified/Makefile
+--- backup-manager-0.7.2/Makefile 2006-03-12 20:20:34.000000000 +0900
++++ backup-manager-0.7.2-modified/Makefile 2006-03-18 18:06:49.000000000 +0900
+@@ -78,8 +78,8 @@
+ # Installing the man pages.
+ install_man: man/backup-manager-upload.8
+ @echo -e "\n*** Installing man pages ***\n"
+- install -d /usr/share/man/man8/
+- install --owner=root --group=root --mode=0644 man/*.8 /usr/share/man/man8/
++ install -d $(DESTDIR)/usr/share/man/man8/
++ install --owner=root --group=root --mode=0644 man/*.8 $(DESTDIR)/usr/share/man/man8/
+
+ docs:
+ make -C doc all
+--- backup-manager-0.7.2/Makefile.orig 2006-06-06 15:25:05.000000000 +0100
++++ backup-manager-0.7.2/Makefile 2006-06-06 15:25:25.000000000 +0100
+@@ -1,7 +1,7 @@
+ DESTDIR?=
+
+ # For the backup-manager package
+-PERL5DIR=$(DESTDIR)/usr/share/perl5
++PERL5DIR=$(DESTDIR)/usr/lib/perl5/vendor_perl
+ LIBDIR=$(DESTDIR)/usr/share/backup-manager
+ CONTRIB=$(LIBDIR)/contrib
+ SHAREDIR=$(DESTDIR)/usr/share/backup-manager
diff --git a/app-backup/backup-manager/files/backup-manager-0.7.10-Fix-POD-syntax.patch b/app-backup/backup-manager/files/backup-manager-0.7.10-Fix-POD-syntax.patch
new file mode 100644
index 000000000000..61ac590241e2
--- /dev/null
+++ b/app-backup/backup-manager/files/backup-manager-0.7.10-Fix-POD-syntax.patch
@@ -0,0 +1,30 @@
+From 808f397dbc76d61e6e29c661585afeb6ba9c41a2 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
+Date: Sat, 20 Jul 2013 13:41:25 +0200
+Subject: [PATCH] Fix POD syntax
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+
+Signed-off-by: Petr Písař <ppisar@redhat.com>
+---
+ backup-manager-purge | 2 ++
+ 1 file changed, 2 insertions(+)
+
+diff --git a/backup-manager-purge b/backup-manager-purge
+index ce7a67f..c9a5f1c 100755
+--- a/backup-manager-purge
++++ b/backup-manager-purge
+@@ -53,6 +53,8 @@ than I<ttl> days will be outdated.
+
+ =head1 OPTIONAL ARGS
+
++=over 4
++
+ =item B<--files-from=>file
+
+ A file containing a list of archives to parse, one archive per line.
+--
+1.8.1.4
+
diff --git a/app-backup/backup-manager/files/backup-manager-0.7.9-parallel_install.patch b/app-backup/backup-manager/files/backup-manager-0.7.9-parallel_install.patch
new file mode 100644
index 000000000000..482346b6eb3a
--- /dev/null
+++ b/app-backup/backup-manager/files/backup-manager-0.7.9-parallel_install.patch
@@ -0,0 +1,20 @@
+--- Makefile.orig 2010-09-14 17:24:31.267313414 +0200
++++ Makefile 2010-09-14 17:24:36.395250687 +0200
+@@ -62,7 +62,7 @@
+
+ # Main build rule (we don't buid the docs as we don't know if debiandocs can be
+ # there) so the docs target has to be called manually by vendors.
+-build: manpages
++build: manpages po
+
+ # The backup-manager package
+ install: build install_lib install_bin install_contrib install_man install_po
+@@ -84,6 +84,8 @@
+ install --owner=root --group=root --mode=0644 $(DOCHTMLFILES) $(DOCHTMLDIR)
+
+ # The translation stuff
++po:
++ $(MAKE) -C po
+ install_po:
+ $(MAKE) -C po install
+
diff --git a/app-backup/backup-manager/metadata.xml b/app-backup/backup-manager/metadata.xml
new file mode 100644
index 000000000000..00cb68d43e38
--- /dev/null
+++ b/app-backup/backup-manager/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>voyageur@gentoo.org</email>
+ <name>Bernard Cafarelli</name>
+ </maintainer>
+ <herd>app-backup</herd>
+ <longdescription>command line backup tool, designed to help make daily archives of the file system. It can make archives in lots of open formats (tar, gzip, bzip2, lzma, dar, zip) and provides interesting features (such as network exports or CD/DVD automated-burning)</longdescription>
+ <use>
+ <flag name="s3">Support for backing up to the Amazon S3 system</flag>
+ </use>
+</pkgmetadata>
diff --git a/app-backup/backupninja/Manifest b/app-backup/backupninja/Manifest
new file mode 100644
index 000000000000..c19970b24459
--- /dev/null
+++ b/app-backup/backupninja/Manifest
@@ -0,0 +1 @@
+DIST backupninja-1.0.1.tar.gz 167991 SHA256 10fa5dbcd569a082b8164cd30276dd04a238c7190d836bcba006ea3d1235e525 SHA512 24b898526c1efa91cde6b1a0f0f7c0820c7db5b11ea36f458b45a91e94adfc77636421d7ad2245c196999886a06a3be43253e52654bc07423b1ac5571275c580 WHIRLPOOL 9e501bd6c098ea47bf99c881e63ce3c2c700ea04d3435fc9823716c7dc65f2868252b4740761b5e99892ca20a1ab9597f13d8092ca5e0f45783faa8d24d3b2b3
diff --git a/app-backup/backupninja/backupninja-1.0.1.ebuild b/app-backup/backupninja/backupninja-1.0.1.ebuild
new file mode 100644
index 000000000000..f5dc493eb26f
--- /dev/null
+++ b/app-backup/backupninja/backupninja-1.0.1.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit autotools
+
+# This thing change with every release, how idiotic...
+NODE_NUMBER=275
+
+DESCRIPTION="lightweight, extensible meta-backup system"
+HOMEPAGE="http://riseuplabs.org/backupninja/"
+SRC_URI="https://labs.riseup.net/code/attachments/download/${NODE_NUMBER}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="dev-util/dialog"
+RDEPEND="${DEPEND}"
+
+DOCS=( AUTHORS FAQ TODO README NEWS )
+
+src_prepare() {
+ eautoreconf
+}
diff --git a/app-backup/backupninja/metadata.xml b/app-backup/backupninja/metadata.xml
new file mode 100644
index 000000000000..e7059eab1b95
--- /dev/null
+++ b/app-backup/backupninja/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>proxy-maintainers</herd>
+<maintainer>
+ <email>premek@vohnout.cz</email>
+ <name>Přemysl Vohnout</name>
+</maintainer>
+</pkgmetadata>
diff --git a/app-backup/backuppc/Manifest b/app-backup/backuppc/Manifest
new file mode 100644
index 000000000000..cee779958f30
--- /dev/null
+++ b/app-backup/backuppc/Manifest
@@ -0,0 +1 @@
+DIST BackupPC-3.3.0.tar.gz 554155 SHA256 8a9c1b6faa4502b4c40617be97e806813815d9e22544854d99983c3da7c1f69b SHA512 67ec1ca4d22ab1e81f9c0f409c758347a6c772e3d1aa39c93207f9d328176ac7b4e679d0b03972fc5870c37dde0480d28c61ae19975d54e144235ea0e84e9901 WHIRLPOOL 23a9ce5dd600843cea72354e1afe595e3779f883839f8d3feca7f1355ed20048026090097ddfbcf394632672b42bef4884bc6661203542d6fe2c6bc2e8ad7b96
diff --git a/app-backup/backuppc/backuppc-3.3.0-r1.ebuild b/app-backup/backuppc/backuppc-3.3.0-r1.ebuild
new file mode 100644
index 000000000000..e479b09b5cb8
--- /dev/null
+++ b/app-backup/backuppc/backuppc-3.3.0-r1.ebuild
@@ -0,0 +1,223 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+inherit eutils systemd webapp user
+
+MY_P="BackupPC-${PV}"
+
+DESCRIPTION="A high-performance system for backing up computers to a server's disk"
+HOMEPAGE="http://backuppc.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+KEYWORDS="amd64 x86"
+
+IUSE="rss samba"
+
+DEPEND="dev-lang/perl
+ app-admin/apache-tools
+ app-admin/makepasswd"
+RDEPEND="${DEPEND}
+ virtual/perl-IO-Compress
+ dev-perl/Archive-Zip
+ dev-perl/libwww-perl
+ >=app-arch/tar-1.13.20
+ app-arch/par2cmdline
+ app-arch/gzip
+ app-arch/bzip2
+ virtual/mta
+ www-apache/mod_perl
+ www-servers/apache
+ net-misc/rsync
+ >=dev-perl/File-RsyncP-0.68
+ rss? ( dev-perl/XML-RSS )
+ samba? ( net-fs/samba )"
+
+WEBAPP_MANUAL_SLOT="yes"
+SLOT="0"
+
+S=${WORKDIR}/${MY_P}
+
+CONFDIR="/etc/BackupPC"
+DATADIR="/var/lib/backuppc"
+LOGDIR="/var/log/BackupPC"
+
+pkg_setup() {
+ webapp_pkg_setup
+ enewgroup backuppc
+ enewuser backuppc -1 /bin/bash /var/lib/backuppc backuppc
+}
+
+src_prepare() {
+ epatch "${FILESDIR}/3.3.0/01-fix-configure.pl.patch"
+ epatch "${FILESDIR}/3.3.0/02-fix-config.pl-formatting.patch"
+ epatch "${FILESDIR}/3.3.0/03-reasonable-config.pl-defaults.patch"
+
+ # Fix the documentation location in the CGI interface
+ epatch "${FILESDIR}/3.2.0/04-add-docdir-marker.patch"
+ sed -i "s+__DOCDIR__+/usr/share/doc/${PF}+" "lib/BackupPC/CGI/View.pm"
+
+ epatch "${FILESDIR}/3.2.0/05-nicelevel.patch"
+ sed -i -e 's/--chuid ${USER}//' "${S}"/init.d/src/gentoo-backuppc || die "Failed to fix the init script"
+}
+
+src_test() {
+ true
+}
+
+src_install() {
+ webapp_src_preinst
+
+ local myconf
+ myconf=""
+ if use samba ; then
+ myconf="--bin-path smbclient=$(type -p smbclient)"
+ myconf="${myconf} --bin-path nmblookup=$(type -p nmblookup)"
+ fi
+
+ /usr/bin/env perl ./configure.pl \
+ --batch \
+ --bin-path perl=$(type -p perl) \
+ --bin-path tar=$(type -p tar) \
+ --bin-path rsync=$(type -p rsync) \
+ --bin-path ping=$(type -p ping) \
+ --bin-path df=$(type -p df) \
+ --bin-path ssh=$(type -p ssh) \
+ --bin-path sendmail=$(type -p sendmail) \
+ --bin-path hostname=$(type -p hostname) \
+ --bin-path gzip=$(type -p gzip) \
+ --bin-path bzip2=$(type -p bzip2) \
+ --config-dir ${CONFDIR} \
+ --install-dir /usr \
+ --data-dir ${DATADIR} \
+ --hostname $(hostname) \
+ --uid-ignore \
+ --dest-dir "${D%/}" \
+ --html-dir ${MY_HTDOCSDIR}/image \
+ --html-dir-url /image \
+ --cgi-dir ${MY_HTDOCSDIR} \
+ --fhs \
+ ${myconf} || die "failed the configure.pl script"
+
+ ebegin "Installing documentation"
+
+ pod2man \
+ -errors=none \
+ --section=8 \
+ --center="BackupPC manual" \
+ "${S}"/doc/BackupPC.pod backuppc.8 || die "failed to generate man page"
+
+ doman backuppc.8
+
+ # Place the documentation in the correct location
+ dodoc "${D}/usr/doc/BackupPC.html"
+ dodoc "${D}/usr/doc/BackupPC.pod"
+ rm -rf "${D}/usr/doc"
+
+ eend 0
+
+ # Setup directories
+ dodir ${CONFDIR}/pc
+
+ keepdir ${CONFDIR}
+ keepdir ${CONFDIR}/pc
+ keepdir ${DATADIR}/{trash,pool,pc,cpool}
+ keepdir ${LOGDIR}
+
+ ebegin "Setting up init.d/conf.d/systemd scripts"
+ newinitd "${S}"/init.d/gentoo-backuppc backuppc
+ newconfd "${S}"/init.d/gentoo-backuppc.conf backuppc
+ systemd_dounit "${FILESDIR}/${PN}.service"
+ eend 0
+
+ ebegin "Setting up an apache instance for backuppc"
+
+ cp "${FILESDIR}/apache2-backuppc."{conf,init} "${WORKDIR}/"
+ cp "${FILESDIR}/httpd.conf" "${WORKDIR}/httpd.conf"
+ sed -i -e "s+HTDOCSDIR+${MY_HTDOCSDIR}+g" "${WORKDIR}/httpd.conf"
+ sed -i -e "s+AUTHFILE+${CONFDIR}/users.htpasswd+g" "${WORKDIR}/httpd.conf"
+
+ moduledir="/usr/lib/apache2/modules"
+
+ # Check if the Apache ServerRoot is real.
+ # This is sometimes broken on older amd64 systems.
+ # In this case we just patch our config file appropriately.
+ if [[ ! -d "/usr/lib/apache2" ]]; then
+ if [[ -d "/usr/lib64/apache2" ]]; then
+ sed -i -e "s+/usr/lib/apache2+/usr/lib64/apache2+g" "${WORKDIR}/httpd.conf"
+ sed -i -e "s+/usr/lib/apache2+/usr/lib64/apache2+g" "${WORKDIR}/apache2-backuppc.conf"
+ moduledir="/usr/lib64/apache2/modules"
+ fi
+ fi
+
+ # Check if we're using mod_cgid instead of mod_cgi
+ # This happens if you install apache with USE="threads"
+ if [[ -f "${moduledir}/mod_cgid.so" ]]; then
+ sed -i -e "s+mod_cgi+mod_cgid+g" "${WORKDIR}/httpd.conf"
+ sed -i -e "s+cgi_module+cgid_module+g" "${WORKDIR}/httpd.conf"
+ fi
+
+ # Install conf.d/init.d files for apache2-backuppc
+ if [ -e /etc/init.d/apache2 ]; then
+ newconfd "${WORKDIR}/apache2-backuppc.conf" apache2-backuppc
+ newinitd /etc/init.d/apache2 apache2-backuppc
+ else
+ newconfd "${WORKDIR}/apache2-backuppc.conf" apache2-backuppc
+ newinitd "${WORKDIR}/apache2-backuppc.init" apache2-backuppc
+ fi
+
+ insopts -m 0644
+ insinto ${CONFDIR}
+ doins "${WORKDIR}/httpd.conf"
+
+ eend $?
+
+ webapp_src_install || die "webapp_src_install"
+
+ # Make sure that the ownership is correct
+ chown -R backuppc:backuppc "${D}${CONFDIR}"
+ chown -R backuppc:backuppc "${D}${DATADIR}"
+ chown -R backuppc:backuppc "${D}${LOGDIR}"
+}
+
+pkg_postinst() {
+ # This is disabled since BackupPC doesn't need it
+ # webapp_pkg_postinst
+
+ elog "Installation finished, now may now start using BackupPC."
+ elog ""
+ elog "- Read the documentation in /usr/share/doc/${PF}/BackupPC.html"
+ elog " Please pay special attention to the security section."
+ elog ""
+ elog "- You can launch backuppc and it's apache web interface by running:"
+ elog " # /etc/init.d/backuppc start"
+ elog " # /etc/init.d/apache2-backuppc start"
+
+ if [[ ! -e /etc/runlevels/default/backuppc ]]; then
+ elog ""
+ elog "- You also might want to add these scripts to your default runlevel:"
+ elog " # rc-update add backuppc default"
+ elog " # rc-update add apache2-backuppc default"
+ fi
+
+ # Generate a new password if there's no auth file
+ if [[ ! -f "${CONFDIR}/users.htpasswd" ]]; then
+ adminuser="backuppc"
+ adminpass=$( makepasswd --chars=12 )
+ htpasswd -bc "${CONFDIR}/users.htpasswd" $adminuser $adminpass
+
+ elog ""
+ elog "- Created admin user $adminuser with password $adminpass"
+ elog " To add new users, run: "
+ elog " # htpasswd ${CONFDIR}/users.htpasswd newUser"
+ fi
+
+ if [[ -d "/etc/backuppc" ]]; then
+ ewarn ""
+ ewarn "Detected old config directory in /etc/backuppc"
+ ewarn "Please migrate relevant config files to ${CONFDIR} before starting backuppc"
+ fi
+}
diff --git a/app-backup/backuppc/files/3.2.0/01-fix-configure.pl.patch b/app-backup/backuppc/files/3.2.0/01-fix-configure.pl.patch
new file mode 100644
index 000000000000..060cf953e7a4
--- /dev/null
+++ b/app-backup/backuppc/files/3.2.0/01-fix-configure.pl.patch
@@ -0,0 +1,30 @@
+--- configure.pl.orig 2010-07-31 20:52:58.000000000 +0300
++++ configure.pl 2010-09-03 22:09:46.437788435 +0300
+@@ -158,7 +158,7 @@
+ # config file to get all the defaults.
+ #
+ my $ConfigPath = "";
+-my $ConfigFileOK = 1;
++my $ConfigFileOK = 0;
+ while ( 1 ) {
+ if ( $ConfigFileOK && -f "/etc/BackupPC/config.pl" ) {
+ $ConfigPath = "/etc/BackupPC/config.pl";
+@@ -213,7 +213,8 @@
+ $bpc->{LogDir} = $Conf{LogDir} = "$Conf{TopDir}/log"
+ if ( $Conf{LogDir} eq '' );
+ }
+- $bpc->{ConfDir} = $Conf{ConfDir} = $confDir;
++ # Disable this as it's not really neccessary for this ebuild
++ # $bpc->{ConfDir} = $Conf{ConfDir} = $confDir;
+ my $err = $bpc->ServerConnect($Conf{ServerHost}, $Conf{ServerPort}, 1);
+ if ( $err eq "" ) {
+ print <<EOF;
+@@ -726,7 +727,7 @@
+ if ( $Conf{CgiDir} =~ m{cgi-bin(/.*)} ) {
+ $Conf{CgiURL} = "'http://$Conf{ServerHost}/cgi-bin$1/BackupPC_Admin'";
+ } else {
+- $Conf{CgiURL} = "'http://$Conf{ServerHost}/cgi-bin/BackupPC_Admin'";
++ $Conf{CgiURL} = "'http://$Conf{ServerHost}/BackupPC_Admin'";
+ }
+ }
+
diff --git a/app-backup/backuppc/files/3.2.0/03-reasonable-config.pl-defaults.patch b/app-backup/backuppc/files/3.2.0/03-reasonable-config.pl-defaults.patch
new file mode 100644
index 000000000000..06075f9e17c9
--- /dev/null
+++ b/app-backup/backuppc/files/3.2.0/03-reasonable-config.pl-defaults.patch
@@ -0,0 +1,47 @@
+--- conf/config.pl.formatted 2010-09-03 23:09:13.035788559 +0300
++++ conf/config.pl 2010-09-03 23:10:19.314788450 +0300
+@@ -1319,6 +1319,8 @@
+ '--times',
+ '--block-size=2048',
+ '--recursive',
++ '--specials',
++ '--checksum-seed=32761',
+ ];
+
+ #
+@@ -1385,6 +1387,8 @@
+ '--relative',
+ '--ignore-times',
+ '--recursive',
++ '--specials',
++ '--checksum-seed=32761',
+ ];
+
+ ###########################################################################
+@@ -2015,7 +2019,7 @@
+ # --> administrative users are only craig and celia'.
+ #
+ $Conf{CgiAdminUserGroup} = '';
+-$Conf{CgiAdminUsers} = '';
++$Conf{CgiAdminUsers} = 'backuppc';
+
+ #
+ # URL of the BackupPC_Admin CGI script. Used for email messages.
+@@ -2062,7 +2066,7 @@
+ # dates (MM/DD), a value of 2 uses full YYYY-MM-DD format, and zero
+ # for international dates (DD/MM).
+ #
+-$Conf{CgiDateFormatMMDD} = 1;
++$Conf{CgiDateFormatMMDD} = 2;
+
+ #
+ # If set, the complete list of hosts appears in the left navigation
+@@ -2248,7 +2252,7 @@
+ ClientTimeout => 1,
+ MaxOldPerPCLogFiles => 1,
+ CompressLevel => 1,
+- ClientNameAlias => 1,
++ ClientNameAlias => 0,
+ DumpPreUserCmd => 0,
+ DumpPostUserCmd => 0,
+ RestorePreUserCmd => 0,
diff --git a/app-backup/backuppc/files/3.2.0/04-add-docdir-marker.patch b/app-backup/backuppc/files/3.2.0/04-add-docdir-marker.patch
new file mode 100644
index 000000000000..0355aedf04b7
--- /dev/null
+++ b/app-backup/backuppc/files/3.2.0/04-add-docdir-marker.patch
@@ -0,0 +1,11 @@
+--- lib/BackupPC/CGI/View.pm.orig 2009-09-30 19:08:34.353577546 +0300
++++ lib/BackupPC/CGI/View.pm 2009-09-30 19:16:01.982412712 +0300
+@@ -86,7 +86,7 @@
+ $file = $bpc->ConfDir() . "/hosts";
+ $linkHosts = 1;
+ } elsif ( $type eq "docs" ) {
+- $file = $bpc->InstallDir() . "/doc/BackupPC.html";
++ $file = "__DOCDIR__/BackupPC.html";
+ } elsif ( $host ne "" ) {
+ if ( !defined($In{num}) ) {
+ # get the latest LOG file
diff --git a/app-backup/backuppc/files/3.2.0/05-nicelevel.patch b/app-backup/backuppc/files/3.2.0/05-nicelevel.patch
new file mode 100644
index 000000000000..50938f60bcdc
--- /dev/null
+++ b/app-backup/backuppc/files/3.2.0/05-nicelevel.patch
@@ -0,0 +1,18 @@
+--- init.d/src/gentoo-backuppc.orig 2009-10-18 00:14:44.125346723 +0300
++++ init.d/src/gentoo-backuppc 2009-10-18 00:15:37.101346981 +0300
+@@ -21,7 +21,7 @@
+ start() {
+ checkconfig || return 1
+ ebegin "Starting BackupPC"
+- start-stop-daemon --start --chuid ${USER} --user ${USER} --pidfile ${PID_FILE} --exec ${EXEC} -- ${EXEC_OPTIONS}
++ start-stop-daemon --start --chuid ${USER} --user ${USER} --nicelevel ${NICELEVEL} --pidfile ${PID_FILE} --exec ${EXEC} -- ${EXEC_OPTIONS}
+ eend $?
+ }
+
+--- init.d/src/gentoo-backuppc.conf.orig 2009-10-18 00:14:52.513347638 +0300
++++ init.d/src/gentoo-backuppc.conf 2009-10-18 00:16:03.457346630 +0300
+@@ -3,3 +3,4 @@
+ PID_FILE=__LOGDIR__/BackupPC.pid
+ EXEC=__INSTALLDIR__/bin/BackupPC
+ EXEC_OPTIONS=-d
++NICELEVEL=0
diff --git a/app-backup/backuppc/files/3.3.0/01-fix-configure.pl.patch b/app-backup/backuppc/files/3.3.0/01-fix-configure.pl.patch
new file mode 100644
index 000000000000..c943fdce68b1
--- /dev/null
+++ b/app-backup/backuppc/files/3.3.0/01-fix-configure.pl.patch
@@ -0,0 +1,30 @@
+--- configure.pl.dist 2013-09-23 23:01:19.524743747 +0300
++++ configure.pl 2013-09-23 23:01:37.344567459 +0300
+@@ -158,7 +158,7 @@
+ # config file to get all the defaults.
+ #
+ my $ConfigPath = "";
+-my $ConfigFileOK = 1;
++my $ConfigFileOK = 0;
+ while ( 1 ) {
+ if ( $ConfigFileOK && -f "/etc/BackupPC/config.pl" ) {
+ $ConfigPath = "/etc/BackupPC/config.pl";
+@@ -213,7 +213,8 @@
+ $bpc->{LogDir} = $Conf{LogDir} = "$Conf{TopDir}/log"
+ if ( $Conf{LogDir} eq '' );
+ }
+- $bpc->{ConfDir} = $Conf{ConfDir} = $confDir;
++ # Disable this as it's not really neccessary for this ebuild
++ # $bpc->{ConfDir} = $Conf{ConfDir} = $confDir;
+ my $err = $bpc->ServerConnect($Conf{ServerHost}, $Conf{ServerPort}, 1);
+ if ( $err eq "" ) {
+ print <<EOF;
+@@ -729,7 +730,7 @@
+ if ( $Conf{CgiDir} =~ m{cgi-bin(/.*)} ) {
+ $Conf{CgiURL} = "'http://$Conf{ServerHost}/cgi-bin$1/BackupPC_Admin'";
+ } else {
+- $Conf{CgiURL} = "'http://$Conf{ServerHost}/cgi-bin/BackupPC_Admin'";
++ $Conf{CgiURL} = "'http://$Conf{ServerHost}/BackupPC_Admin'";
+ }
+ }
+
diff --git a/app-backup/backuppc/files/3.3.0/02-fix-config.pl-formatting.patch b/app-backup/backuppc/files/3.3.0/02-fix-config.pl-formatting.patch
new file mode 100644
index 000000000000..ae37cdaf54a3
--- /dev/null
+++ b/app-backup/backuppc/files/3.3.0/02-fix-config.pl-formatting.patch
@@ -0,0 +1,801 @@
+--- conf/config.pl.dist 2013-09-23 23:05:50.332064754 +0300
++++ conf/config.pl 2013-09-23 23:07:44.110943607 +0300
+@@ -87,7 +87,7 @@
+ # Default value prevents any access from group other, and prevents
+ # group write.
+ #
+-$Conf{UmaskMode} = 027;
++$Conf{UmaskMode} = 27;
+
+ #
+ # Times at which we wake up, check all the PCs, and schedule necessary
+@@ -113,7 +113,31 @@
+ # you want BackupPC_nightly to run (eg: when you don't expect a lot
+ # of regular backups to run).
+ #
+-$Conf{WakeupSchedule} = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23];
++$Conf{WakeupSchedule} = [
++ 1,
++ 2,
++ 3,
++ 4,
++ 5,
++ 6,
++ 7,
++ 8,
++ 9,
++ 10,
++ 11,
++ 12,
++ 13,
++ 14,
++ 15,
++ 16,
++ 17,
++ 18,
++ 19,
++ 20,
++ 21,
++ 22,
++ 23
++];
+
+ #
+ # Maximum number of simultaneous backups to run. If there
+@@ -224,9 +248,9 @@
+ # Full path to various commands for archiving
+ #
+ $Conf{SplitPath} = '';
+-$Conf{ParPath} = '';
+-$Conf{CatPath} = '';
+-$Conf{GzipPath} = '';
++$Conf{ParPath} = '';
++$Conf{CatPath} = '';
++$Conf{GzipPath} = '';
+ $Conf{Bzip2Path} = '';
+
+ #
+@@ -302,11 +326,11 @@
+ # a symbolic link to the new location, or mount the new BackupPC
+ # store at the existing $Conf{TopDir} setting.
+ #
+-$Conf{TopDir} = '';
+-$Conf{ConfDir} = '';
+-$Conf{LogDir} = '';
+-$Conf{InstallDir} = '';
+-$Conf{CgiDir} = '';
++$Conf{TopDir} = '';
++$Conf{ConfDir} = '';
++$Conf{LogDir} = '';
++$Conf{InstallDir} = '';
++$Conf{CgiDir} = '';
+
+ #
+ # Whether BackupPC and the CGI script BackupPC_Admin verify that they
+@@ -316,7 +340,7 @@
+ # BackupPC might be accidently started as root or the wrong user,
+ # or if the CGI script is not installed correctly.
+ #
+-$Conf{BackupPCUserVerify} = 1;
++$Conf{BackupPCUserVerify} = '1';
+
+ #
+ # Maximum number of hardlinks supported by the $TopDir file system
+@@ -333,7 +357,7 @@
+ # Advanced option for asking BackupPC to load additional perl modules.
+ # Can be a list (array ref) of module names to load at startup.
+ #
+-$Conf{PerlModuleLoad} = undef;
++$Conf{PerlModuleLoad} = undef;
+
+ #
+ # Path to init.d script and command to use that script to start the
+@@ -355,7 +379,7 @@
+ # needs to be a full path and you can't include shell syntax like
+ # redirection and pipes; put that in a script if you need it.
+ #
+-$Conf{ServerInitdPath} = '';
++$Conf{ServerInitdPath} = undef;
+ $Conf{ServerInitdStartCmd} = '';
+
+
+@@ -373,7 +397,7 @@
+ # time taken for the backup, plus the granularity of $Conf{WakeupSchedule}
+ # will make the actual backup interval a bit longer.
+ #
+-$Conf{FullPeriod} = 6.97;
++$Conf{FullPeriod} = '6.97';
+
+ #
+ # Minimum period in days between incremental backups (a user requested
+@@ -383,7 +407,7 @@
+ # time taken for the backup, plus the granularity of $Conf{WakeupSchedule}
+ # will make the actual backup interval a bit longer.
+ #
+-$Conf{IncrPeriod} = 0.97;
++$Conf{IncrPeriod} = '0.97';
+
+ #
+ # Number of full backups to keep. Must be >= 1.
+@@ -458,7 +482,9 @@
+ # $Conf{FullKeepCnt} = 4;
+ # $Conf{FullKeepCnt} = [4];
+ #
+-$Conf{FullKeepCnt} = 1;
++$Conf{FullKeepCnt} = [
++ 1
++];
+
+ #
+ # Very old full backups are removed after $Conf{FullAgeMax} days. However,
+@@ -470,7 +496,7 @@
+ # full backups to exceed $Conf{FullAgeMax}.
+ #
+ $Conf{FullKeepCntMin} = 1;
+-$Conf{FullAgeMax} = 90;
++$Conf{FullAgeMax} = 90;
+
+ #
+ # Number of incremental backups to keep. Must be >= 1.
+@@ -487,7 +513,7 @@
+ # matter how old they are.
+ #
+ $Conf{IncrKeepCntMin} = 1;
+-$Conf{IncrAgeMax} = 30;
++$Conf{IncrAgeMax} = 30;
+
+ #
+ # Level of each incremental. "Level" follows the terminology
+@@ -565,7 +591,9 @@
+ # meaning each incremental backed up all the files that
+ # changed since the last full.
+ #
+-$Conf{IncrLevels} = [1];
++$Conf{IncrLevels} = [
++ 1
++];
+
+ #
+ # Disable all full and incremental backups. These settings are
+@@ -631,7 +659,7 @@
+ # The default is off. You can turn this on or off at any
+ # time without affecting existing backups.
+ #
+-$Conf{IncrFill} = 0;
++$Conf{IncrFill} = '0';
+
+ #
+ # Number of restore logs to keep. BackupPC remembers information about
+@@ -683,7 +711,7 @@
+ # '*' => ['/myFiles', '/important'], # these are other shares
+ # };
+ #
+-$Conf{BackupFilesOnly} = undef;
++$Conf{BackupFilesOnly} = {};
+
+ #
+ # List of directories or files to exclude from the backup. For Smb,
+@@ -739,7 +767,7 @@
+ # '*' => ['/junk', '/dont_back_this_up'], # these are for other shares
+ # };
+ #
+-$Conf{BackupFilesExclude} = undef;
++$Conf{BackupFilesExclude} = {};
+
+ #
+ # PCs that are always or often on the network can be backed up after
+@@ -770,7 +798,7 @@
+ # to just set $Conf{WakeupSchedule} to a restricted schedule.
+ #
+ $Conf{BlackoutBadPingLimit} = 3;
+-$Conf{BlackoutGoodCnt} = 7;
++$Conf{BlackoutGoodCnt} = 7;
+
+ #
+ # One or more blackout periods can be specified. If a client is
+@@ -813,11 +841,17 @@
+ # Saturday night.
+ #
+ $Conf{BlackoutPeriods} = [
+- {
+- hourBegin => 7.0,
+- hourEnd => 19.5,
+- weekDays => [1, 2, 3, 4, 5],
+- },
++ {
++ 'hourEnd' => '19.5',
++ 'weekDays' => [
++ 1,
++ 2,
++ 3,
++ 4,
++ 5
++ ],
++ 'hourBegin' => 7
++ }
+ ];
+
+ #
+@@ -826,7 +860,7 @@
+ # backed up. If you have shares that might be empty (and therefore an
+ # empty backup is valid) you should set this flag to 0.
+ #
+-$Conf{BackupZeroFilesIsFatal} = 1;
++$Conf{BackupZeroFilesIsFatal} = '1';
+
+ ###########################################################################
+ # How to backup a client
+@@ -922,7 +956,9 @@
+ #
+ # This setting only matters if $Conf{XferMethod} = 'smb'.
+ #
+-$Conf{SmbShareName} = 'C$';
++$Conf{SmbShareName} = [
++ 'C$'
++];
+
+ #
+ # Smbclient share user name. This is passed to smbclient's -U argument.
+@@ -975,9 +1011,7 @@
+ # needs to be a full path and you can't include shell syntax like
+ # redirection and pipes; put that in a script if you need it.
+ #
+-$Conf{SmbClientFullCmd} = '$smbClientPath \\\\$host\\$shareName'
+- . ' $I_option -U $userName -E -d 1'
+- . ' -c tarmode\\ full -Tc$X_option - $fileList';
++$Conf{SmbClientFullCmd} = '$smbClientPath \\\\$host\\$shareName $I_option -U $userName -E -d 1 -c tarmode\\ full -Tc$X_option - $fileList';
+
+ #
+ # Command to run smbclient for an incremental dump.
+@@ -989,9 +1023,7 @@
+ # needs to be a full path and you can't include shell syntax like
+ # redirection and pipes; put that in a script if you need it.
+ #
+-$Conf{SmbClientIncrCmd} = '$smbClientPath \\\\$host\\$shareName'
+- . ' $I_option -U $userName -E -d 1'
+- . ' -c tarmode\\ full -TcN$X_option $timeStampFile - $fileList';
++$Conf{SmbClientIncrCmd} = '$smbClientPath \\\\$host\\$shareName $I_option -U $userName -E -d 1 -c tarmode\\ full -TcN$X_option $timeStampFile - $fileList';
+
+ #
+ # Command to run smbclient for a restore.
+@@ -1007,9 +1039,7 @@
+ # needs to be a full path and you can't include shell syntax like
+ # redirection and pipes; put that in a script if you need it.
+ #
+-$Conf{SmbClientRestoreCmd} = '$smbClientPath \\\\$host\\$shareName'
+- . ' $I_option -U $userName -E -d 1'
+- . ' -c tarmode\\ full -Tx -';
++$Conf{SmbClientRestoreCmd} = '$smbClientPath \\\\$host\\$shareName $I_option -U $userName -E -d 1 -c tarmode\\ full -Tx -';
+
+ ###########################################################################
+ # Tar Configuration
+@@ -1044,7 +1074,9 @@
+ #
+ # This setting only matters if $Conf{XferMethod} = 'tar'.
+ #
+-$Conf{TarShareName} = '/';
++$Conf{TarShareName} = [
++ '/'
++];
+
+ #
+ # Command to run tar on the client. GNU tar is required. You will
+@@ -1088,9 +1120,7 @@
+ # needs to be a full path and you can't include shell syntax like
+ # redirection and pipes; put that in a script if you need it.
+ #
+-$Conf{TarClientCmd} = '$sshPath -q -x -n -l root $host'
+- . ' env LC_ALL=C $tarPath -c -v -f - -C $shareName+'
+- . ' --totals';
++$Conf{TarClientCmd} = '$sshPath -q -x -n -l root $host env LC_ALL=C $tarPath -c -v -f - -C $shareName+ --totals';
+
+ #
+ # Extra tar arguments for full backups. Several variables are substituted at
+@@ -1149,9 +1179,7 @@
+ # needs to be a full path and you can't include shell syntax like
+ # redirection and pipes; put that in a script if you need it.
+ #
+-$Conf{TarClientRestoreCmd} = '$sshPath -q -x -l root $host'
+- . ' env LC_ALL=C $tarPath -x -p --numeric-owner --same-owner'
+- . ' -v -f - -C $shareName+';
++$Conf{TarClientRestoreCmd} = '$sshPath -q -x -l root $host env LC_ALL=C $tarPath -x -p --numeric-owner --same-owner -v -f - -C $shareName+';
+
+ #
+ # Full path for tar on the client. Security caution: normal users should not
+@@ -1223,7 +1251,9 @@
+ #
+ # $Conf{RsyncShareName} = ['/', '/var', '/data', '/boot'];
+ #
+-$Conf{RsyncShareName} = '/';
++$Conf{RsyncShareName} = [
++ '/'
++];
+
+ #
+ # Rsync daemon port on the client, for $Conf{XferMethod} = "rsyncd".
+@@ -1252,7 +1282,7 @@
+ # connect to an rsyncd on the client that is not password protected.
+ # Turn off at your own risk.
+ #
+-$Conf{RsyncdAuthRequired} = 1;
++$Conf{RsyncdAuthRequired} = '1';
+
+ #
+ # When rsync checksum caching is enabled (by adding the
+@@ -1275,35 +1305,23 @@
+ #
+ # This setting has no effect unless checksum caching is turned on.
+ #
+-$Conf{RsyncCsumCacheVerifyProb} = 0.01;
++$Conf{RsyncCsumCacheVerifyProb} = '0.01';
+
+ #
+ # Arguments to rsync for backup. Do not edit the first set unless you
+ # have a thorough understanding of how File::RsyncP works.
+ #
+ $Conf{RsyncArgs} = [
+- #
+- # Do not edit these!
+- #
+- '--numeric-ids',
+- '--perms',
+- '--owner',
+- '--group',
+- '-D',
+- '--links',
+- '--hard-links',
+- '--times',
+- '--block-size=2048',
+- '--recursive',
+-
+- #
+- # Rsync >= 2.6.3 supports the --checksum-seed option
+- # which allows rsync checksum caching on the server.
+- # Uncomment this to enable rsync checksum caching if
+- # you have a recent client rsync version and you want
+- # to enable checksum caching.
+- #
+- #'--checksum-seed=32761',
++ '--numeric-ids',
++ '--perms',
++ '--owner',
++ '--group',
++ '-D',
++ '--links',
++ '--hard-links',
++ '--times',
++ '--block-size=2048',
++ '--recursive',
+ ];
+
+ #
+@@ -1358,34 +1376,18 @@
+ # Note: $Conf{RsyncArgsExtra} doesn't apply to $Conf{RsyncRestoreArgs}.
+ #
+ $Conf{RsyncRestoreArgs} = [
+- #
+- # Do not edit these!
+- #
+- '--numeric-ids',
+- '--perms',
+- '--owner',
+- '--group',
+- '-D',
+- '--links',
+- '--hard-links',
+- '--times',
+- '--block-size=2048',
+- '--relative',
+- '--ignore-times',
+- '--recursive',
+-
+- #
+- # Rsync >= 2.6.3 supports the --checksum-seed option
+- # which allows rsync checksum caching on the server.
+- # Uncomment this to enable rsync checksum caching if
+- # you have a recent client rsync version and you want
+- # to enable checksum caching.
+- #
+- #'--checksum-seed=32761',
+-
+- #
+- # Add additional arguments here
+- #
++ '--numeric-ids',
++ '--perms',
++ '--owner',
++ '--group',
++ '-D',
++ '--links',
++ '--hard-links',
++ '--times',
++ '--block-size=2048',
++ '--relative',
++ '--ignore-times',
++ '--recursive',
+ ];
+
+ ###########################################################################
+@@ -1518,7 +1520,7 @@
+ #
+ # Set to 0 to disable this feature.
+ #
+-$Conf{ArchivePar} = 0;
++$Conf{ArchivePar} = '0';
+
+ #
+ # Archive Size Split
+@@ -1554,9 +1556,7 @@
+ # needs to be a full path and you can't include shell syntax like
+ # redirection and pipes; put that in a script if you need it.
+ #
+-$Conf{ArchiveClientCmd} = '$Installdir/bin/BackupPC_archiveHost'
+- . ' $tarCreatePath $splitpath $parpath $host $backupnumber'
+- . ' $compression $compext $splitsize $archiveloc $parfile *';
++$Conf{ArchiveClientCmd} = '$Installdir/bin/BackupPC_archiveHost $tarCreatePath $splitpath $parpath $host $backupnumber $compression $compext $splitsize $archiveloc $parfile *';
+
+ #
+ # Full path for ssh. Security caution: normal users should not
+@@ -1628,7 +1628,7 @@
+ # setting this flag is a great way to verify that the machines have
+ # their netbios name set correctly before turning on DCHP.
+ #
+-$Conf{FixedIPNetBiosNameCheck} = 0;
++$Conf{FixedIPNetBiosNameCheck} = '0';
+
+ #
+ # Full path to the ping command. Security caution: normal users
+@@ -1805,13 +1805,13 @@
+ # needs to be a full path and you can't include shell syntax like
+ # redirection and pipes; put that in a script if you need it.
+ #
+-$Conf{DumpPreUserCmd} = undef;
+-$Conf{DumpPostUserCmd} = undef;
+-$Conf{DumpPreShareCmd} = undef;
+-$Conf{DumpPostShareCmd} = undef;
+-$Conf{RestorePreUserCmd} = undef;
++$Conf{DumpPreUserCmd} = undef;
++$Conf{DumpPostUserCmd} = undef;
++$Conf{DumpPreShareCmd} = undef;
++$Conf{DumpPostShareCmd} = undef;
++$Conf{RestorePreUserCmd} = undef;
+ $Conf{RestorePostUserCmd} = undef;
+-$Conf{ArchivePreUserCmd} = undef;
++$Conf{ArchivePreUserCmd} = undef;
+ $Conf{ArchivePostUserCmd} = undef;
+
+ #
+@@ -1835,7 +1835,7 @@
+ # that snapshots or dumps a database which fails because
+ # of some database error.
+ #
+-$Conf{UserCmdCheckStatus} = 0;
++$Conf{UserCmdCheckStatus} = '0';
+
+ #
+ # Override the client's host name. This allows multiple clients
+@@ -1873,7 +1873,7 @@
+ # rounded up (ie: 2.5 means a user will never receive email more
+ # than once every 3 days).
+ #
+-$Conf{EMailNotifyMinDays} = 2.5;
++$Conf{EMailNotifyMinDays} = '2.5';
+
+ #
+ # Name to use as the "from" name for email. Depending upon your mail
+@@ -1928,7 +1928,7 @@
+ # When there have been no backups in this number of days the user
+ # is sent an email.
+ #
+-$Conf{EMailNotifyOldBackupDays} = 7.0;
++$Conf{EMailNotifyOldBackupDays} = 7;
+
+ #
+ # This subject and message is sent to a user if their PC has not recently
+@@ -1955,7 +1955,7 @@
+ # How old the most recent backup of Outlook files has to be before
+ # notifying user.
+ #
+-$Conf{EMailNotifyOldOutlookDays} = 5.0;
++$Conf{EMailNotifyOldOutlookDays} = 5;
+
+ #
+ # This subject and message is sent to a user if their Outlook files have
+@@ -1983,10 +1983,9 @@
+ # Additional email headers. This sets to charset to
+ # utf8.
+ #
+-$Conf{EMailHeaders} = <<EOF;
+-MIME-Version: 1.0
++$Conf{EMailHeaders} = 'MIME-Version: 1.0
+ Content-Type: text/plain; charset="utf-8"
+-EOF
++';
+
+ ###########################################################################
+ # CGI user interface configuration settings
+@@ -2059,7 +2058,7 @@
+ # be rendered as a link to http://myhost/users/craig.html.
+ #
+ $Conf{CgiUserHomePageCheck} = '';
+-$Conf{CgiUserUrlCreate} = 'mailto:%s';
++$Conf{CgiUserUrlCreate} = 'mailto:%s';
+
+ #
+ # Date display format for CGI interface. A value of 1 uses US-style
+@@ -2074,12 +2073,12 @@
+ # the user is listed in the host file (as either the user or in moreUsers)
+ # are displayed.
+ #
+-$Conf{CgiNavBarAdminAllHosts} = 1;
++$Conf{CgiNavBarAdminAllHosts} = '1';
+
+ #
+ # Enable/disable the search box in the navigation bar.
+ #
+-$Conf{CgiSearchBoxEnable} = 1;
++$Conf{CgiSearchBoxEnable} = '1';
+
+ #
+ # Additional navigation bar links. These appear for both regular users
+@@ -2089,31 +2088,34 @@
+ # just literally displaying name.
+ #
+ $Conf{CgiNavBarLinks} = [
+- {
+- link => "?action=view&type=docs",
+- lname => "Documentation", # actually displays $Lang->{Documentation}
+- },
+- {
+- link => "http://backuppc.wiki.sourceforge.net",
+- name => "Wiki", # displays literal "Wiki"
+- },
+- {
+- link => "http://backuppc.sourceforge.net",
+- name => "SourceForge", # displays literal "SourceForge"
+- },
++ {
++ 'link' => '?action=view&type=docs',
++ 'lname' => 'Documentation',
++ 'name' => undef
++ },
++ {
++ 'link' => 'http://backuppc.wiki.sourceforge.net',
++ 'lname' => undef,
++ 'name' => 'Wiki'
++ },
++ {
++ 'link' => 'http://backuppc.sourceforge.net',
++ 'lname' => undef,
++ 'name' => 'SourceForge'
++ }
+ ];
+
+ #
+ # Hilight colors based on status that are used in the PC summary page.
+ #
+ $Conf{CgiStatusHilightColor} = {
+- Reason_backup_failed => '#ffcccc',
+- Reason_backup_done => '#ccffcc',
+- Reason_no_ping => '#ffff99',
+- Reason_backup_canceled_by_user => '#ff9900',
+- Status_backup_in_progress => '#66cc99',
+- Disabled_OnlyManualBackups => '#d1d1d1',
+- Disabled_AllBackupsDisabled => '#d1d1d1',
++ 'Reason_backup_failed' => '#ffcccc',
++ 'Reason_backup_done' => '#ccffcc',
++ 'Reason_backup_canceled_by_user' => '#ff9900',
++ 'Reason_no_ping' => '#ffff99',
++ 'Disabled_OnlyManualBackups' => '#d1d1d1',
++ 'Status_backup_in_progress' => '#66cc99',
++ 'Disabled_AllBackupsDisabled' => '#d1d1d1'
+ };
+
+ #
+@@ -2141,7 +2143,7 @@
+ # 'pl' => 'text/plain',
+ # };
+ #
+-$Conf{CgiExt2ContentType} = { };
++$Conf{CgiExt2ContentType} = {};
+
+ #
+ # URL (without the leading http://host) for BackupPC's image directory.
+@@ -2166,7 +2168,7 @@
+ #
+ # Whether the user is allowed to edit their per-PC config.
+ #
+-$Conf{CgiUserConfigEditEnable} = 1;
++$Conf{CgiUserConfigEditEnable} = '1';
+
+ #
+ # Which per-host config variables a non-admin user is allowed
+@@ -2180,96 +2182,96 @@
+ # sorts of bad things.
+ #
+ $Conf{CgiUserConfigEdit} = {
+- FullPeriod => 1,
+- IncrPeriod => 1,
+- FullKeepCnt => 1,
+- FullKeepCntMin => 1,
+- FullAgeMax => 1,
+- IncrKeepCnt => 1,
+- IncrKeepCntMin => 1,
+- IncrAgeMax => 1,
+- IncrLevels => 1,
+- IncrFill => 1,
+- PartialAgeMax => 1,
+- RestoreInfoKeepCnt => 1,
+- ArchiveInfoKeepCnt => 1,
+- BackupFilesOnly => 1,
+- BackupFilesExclude => 1,
+- BackupsDisable => 1,
+- BlackoutBadPingLimit => 1,
+- BlackoutGoodCnt => 1,
+- BlackoutPeriods => 1,
+- BackupZeroFilesIsFatal => 1,
+- ClientCharset => 1,
+- ClientCharsetLegacy => 1,
+- XferMethod => 1,
+- XferLogLevel => 1,
+- SmbShareName => 1,
+- SmbShareUserName => 1,
+- SmbSharePasswd => 1,
+- SmbClientFullCmd => 0,
+- SmbClientIncrCmd => 0,
+- SmbClientRestoreCmd => 0,
+- TarShareName => 1,
+- TarFullArgs => 1,
+- TarIncrArgs => 1,
+- TarClientCmd => 0,
+- TarClientRestoreCmd => 0,
+- TarClientPath => 0,
+- RsyncShareName => 1,
+- RsyncdClientPort => 1,
+- RsyncdPasswd => 1,
+- RsyncdUserName => 1,
+- RsyncdAuthRequired => 1,
+- RsyncCsumCacheVerifyProb => 1,
+- RsyncArgs => 1,
+- RsyncArgsExtra => 1,
+- RsyncRestoreArgs => 1,
+- RsyncClientCmd => 0,
+- RsyncClientRestoreCmd => 0,
+- RsyncClientPath => 0,
+- FtpShareName => 1,
+- FtpUserName => 1,
+- FtpPasswd => 1,
+- FtpBlockSize => 1,
+- FtpPort => 1,
+- FtpTimeout => 1,
+- FtpFollowSymlinks => 1,
+- FtpRestoreEnabled => 1,
+- ArchiveDest => 1,
+- ArchiveComp => 1,
+- ArchivePar => 1,
+- ArchiveSplit => 1,
+- ArchiveClientCmd => 0,
+- FixedIPNetBiosNameCheck => 1,
+- NmbLookupCmd => 0,
+- NmbLookupFindHostCmd => 0,
+- PingMaxMsec => 1,
+- PingCmd => 0,
+- ClientTimeout => 1,
+- MaxOldPerPCLogFiles => 1,
+- CompressLevel => 1,
+- ClientNameAlias => 1,
+- DumpPreUserCmd => 0,
+- DumpPostUserCmd => 0,
+- RestorePreUserCmd => 0,
+- RestorePostUserCmd => 0,
+- ArchivePreUserCmd => 0,
+- ArchivePostUserCmd => 0,
+- DumpPostShareCmd => 0,
+- DumpPreShareCmd => 0,
+- UserCmdCheckStatus => 0,
+- EMailNotifyMinDays => 1,
+- EMailFromUserName => 1,
+- EMailAdminUserName => 1,
+- EMailUserDestDomain => 1,
+- EMailNoBackupEverSubj => 1,
+- EMailNoBackupEverMesg => 1,
+- EMailNotifyOldBackupDays => 1,
+- EMailNoBackupRecentSubj => 1,
+- EMailNoBackupRecentMesg => 1,
+- EMailNotifyOldOutlookDays => 1,
+- EMailOutlookBackupSubj => 1,
+- EMailOutlookBackupMesg => 1,
+- EMailHeaders => 1,
++ FullPeriod => 1,
++ IncrPeriod => 1,
++ FullKeepCnt => 1,
++ FullKeepCntMin => 1,
++ FullAgeMax => 1,
++ IncrKeepCnt => 1,
++ IncrKeepCntMin => 1,
++ IncrAgeMax => 1,
++ IncrLevels => 1,
++ IncrFill => 1,
++ PartialAgeMax => 1,
++ RestoreInfoKeepCnt => 1,
++ ArchiveInfoKeepCnt => 1,
++ BackupFilesOnly => 1,
++ BackupFilesExclude => 1,
++ BackupsDisable => 1,
++ BlackoutBadPingLimit => 1,
++ BlackoutGoodCnt => 1,
++ BlackoutPeriods => 1,
++ BackupZeroFilesIsFatal => 1,
++ ClientCharset => 1,
++ ClientCharsetLegacy => 1,
++ XferMethod => 1,
++ XferLogLevel => 1,
++ SmbShareName => 1,
++ SmbShareUserName => 1,
++ SmbSharePasswd => 1,
++ SmbClientFullCmd => 0,
++ SmbClientIncrCmd => 0,
++ SmbClientRestoreCmd => 0,
++ TarShareName => 1,
++ TarFullArgs => 1,
++ TarIncrArgs => 1,
++ TarClientCmd => 0,
++ TarClientRestoreCmd => 0,
++ TarClientPath => 0,
++ RsyncShareName => 1,
++ RsyncdClientPort => 1,
++ RsyncdPasswd => 1,
++ RsyncdUserName => 1,
++ RsyncdAuthRequired => 1,
++ RsyncCsumCacheVerifyProb => 1,
++ RsyncArgs => 1,
++ RsyncArgsExtra => 1,
++ RsyncRestoreArgs => 1,
++ RsyncClientCmd => 0,
++ RsyncClientRestoreCmd => 0,
++ RsyncClientPath => 0,
++ FtpShareName => 1,
++ FtpUserName => 1,
++ FtpPasswd => 1,
++ FtpBlockSize => 1,
++ FtpPort => 1,
++ FtpTimeout => 1,
++ FtpFollowSymlinks => 1,
++ FtpRestoreEnabled => 1,
++ ArchiveDest => 1,
++ ArchiveComp => 1,
++ ArchivePar => 1,
++ ArchiveSplit => 1,
++ ArchiveClientCmd => 0,
++ FixedIPNetBiosNameCheck => 1,
++ NmbLookupCmd => 0,
++ NmbLookupFindHostCmd => 0,
++ PingMaxMsec => 1,
++ PingCmd => 0,
++ ClientTimeout => 1,
++ MaxOldPerPCLogFiles => 1,
++ CompressLevel => 1,
++ ClientNameAlias => 1,
++ DumpPreUserCmd => 0,
++ DumpPostUserCmd => 0,
++ RestorePreUserCmd => 0,
++ RestorePostUserCmd => 0,
++ ArchivePreUserCmd => 0,
++ ArchivePostUserCmd => 0,
++ DumpPostShareCmd => 0,
++ DumpPreShareCmd => 0,
++ UserCmdCheckStatus => 0,
++ EMailNotifyMinDays => 1,
++ EMailFromUserName => 1,
++ EMailAdminUserName => 1,
++ EMailUserDestDomain => 1,
++ EMailNoBackupEverSubj => 1,
++ EMailNoBackupEverMesg => 1,
++ EMailNotifyOldBackupDays => 1,
++ EMailNoBackupRecentSubj => 1,
++ EMailNoBackupRecentMesg => 1,
++ EMailNotifyOldOutlookDays => 1,
++ EMailOutlookBackupSubj => 1,
++ EMailOutlookBackupMesg => 1,
++ EMailHeaders => 1,
+ };
diff --git a/app-backup/backuppc/files/3.3.0/03-reasonable-config.pl-defaults.patch b/app-backup/backuppc/files/3.3.0/03-reasonable-config.pl-defaults.patch
new file mode 100644
index 000000000000..25d579c309b8
--- /dev/null
+++ b/app-backup/backuppc/files/3.3.0/03-reasonable-config.pl-defaults.patch
@@ -0,0 +1,47 @@
+--- conf/config.pl.formatted 2013-09-23 23:12:30.708129365 +0300
++++ conf/config.pl 2013-09-23 23:12:39.448043656 +0300
+@@ -1322,6 +1322,8 @@
+ '--times',
+ '--block-size=2048',
+ '--recursive',
++ '--specials',
++ '--checksum-seed=32761',
+ ];
+
+ #
+@@ -1388,6 +1390,8 @@
+ '--relative',
+ '--ignore-times',
+ '--recursive',
++ '--specials',
++ '--checksum-seed=32761',
+ ];
+
+ ###########################################################################
+@@ -2018,7 +2022,7 @@
+ # --> administrative users are only craig and celia'.
+ #
+ $Conf{CgiAdminUserGroup} = '';
+-$Conf{CgiAdminUsers} = '';
++$Conf{CgiAdminUsers} = 'backuppc';
+
+ #
+ # URL of the BackupPC_Admin CGI script. Used for email messages.
+@@ -2065,7 +2069,7 @@
+ # dates (MM/DD), a value of 2 uses full YYYY-MM-DD format, and zero
+ # for international dates (DD/MM).
+ #
+-$Conf{CgiDateFormatMMDD} = 1;
++$Conf{CgiDateFormatMMDD} = 2;
+
+ #
+ # If set, the complete list of hosts appears in the left navigation
+@@ -2251,7 +2255,7 @@
+ ClientTimeout => 1,
+ MaxOldPerPCLogFiles => 1,
+ CompressLevel => 1,
+- ClientNameAlias => 1,
++ ClientNameAlias => 0,
+ DumpPreUserCmd => 0,
+ DumpPostUserCmd => 0,
+ RestorePreUserCmd => 0,
diff --git a/app-backup/backuppc/files/BackupPC-2.1.2pl2.diff b/app-backup/backuppc/files/BackupPC-2.1.2pl2.diff
new file mode 100644
index 000000000000..e98ff4f0e9c3
--- /dev/null
+++ b/app-backup/backuppc/files/BackupPC-2.1.2pl2.diff
@@ -0,0 +1,202 @@
+#
+# BackupPC-2.1.2pl2.diff: BackupPC patch file generated
+# on Sun Jun 18 19:36:32 2006.
+#
+# This patch file should be applied to a cleanly unpacked BackupPC
+# version 2.1.2. Do not apply any old patch files; each
+# patch file accumulates all previous changes.
+#
+# Example:
+#
+# # fetch BackupPC-2.1.2.tar.gz
+# # fetch BackupPC-2.1.2pl2.diff
+# tar zxvf BackupPC-2.1.2.tar.gz
+# cd BackupPC-2.1.2
+# patch -p0 < ../BackupPC-2.1.2pl2.diff
+# perl configure.pl
+#
+# ChangeLog:
+#
+# - In conf/config.pl, changed --devices to -D in $Conf{RsyncArgs}
+# and $Conf{RsyncRestoreArgs} to fix "fileListReceive failed" and
+# "Can't open .../f%2f for empty output" errors with rsync 2.6.7+.
+# Fix proposed by Justin Pessa and Vincent Ho, and confirmed by
+# Dan Niles.
+#
+# - Added patch from Michael (mna.news) to ignore "file is unchanged"
+# message from tar 1.15.x during incremental backups.
+#
+# - Fixed creation of .rsrc directories in bin/BackupPC_tarExtract
+# when used with xtar on MacOS. Reported by Samuel Bancal and
+# Matthew Radey, who helped with debugging.
+#
+# - Fixed bug in BackupPC_tarExtract for files >8GB in size whose
+# lengths are multiples of 256. Reported by Jamie Myers and
+# Marko Tukiainen, who both helped debugging the problem.
+#
+# - Fixed bug in lib/BackupPC/Xfer/RsyncFileIO.pm that caused
+# incorrected deleted attributes to be set in directories
+# where one of the files had an rsync phase 1 retry during
+# an incremental. Reported by Tony Nelson.
+#
+--- bin/BackupPC_tarExtract 2005-09-05 16:21:21.000000000 -0700
++++ bin/BackupPC_tarExtract 2006-06-18 19:36:31.995945464 -0700
+@@ -58,7 +58,7 @@
+ exit(1);
+ }
+ my $client = $1;
+-if ( $ARGV[1] !~ /^([\w\s\.\/\$-]+)$/ ) {
++if ( $ARGV[1] !~ /^([\w\s.\/$(){}[\]-]+)$/ ) {
+ print("$0: bad share name '$ARGV[1]'\n");
+ exit(1);
+ }
+@@ -101,7 +101,7 @@
+ # Copyright 1998 Stephen Zander. All rights reserved.
+ #
+ my $tar_unpack_header
+- = 'Z100 A8 A8 A8 A12 A12 A8 A1 Z100 A6 A2 Z32 Z32 A8 A8 A155 x12';
++ = 'Z100 A8 A8 A8 a12 A12 A8 A1 Z100 A6 A2 Z32 Z32 A8 A8 A155 x12';
+ my $tar_header_length = 512;
+
+ my $BufSize = 1048576; # 1MB or 2^20
+@@ -251,7 +251,7 @@
+ $name = $longName if ( defined($longName) );
+ $linkname = $longLink if ( defined($longLink) );
+ $name =~ s{^\./+}{};
+- $name =~ s{/+$}{};
++ $name =~ s{/+\.?$}{};
+ $name =~ s{//+}{/}g;
+ return {
+ name => $name,
+@@ -313,7 +313,7 @@
+ #
+ my($nRead);
+ #print("Reading $f->{name}, $f->{size} bytes, type $f->{type}\n");
+- pathCreate($dir, "$OutDir/$ShareName/$f->{mangleName}", $file, $f);
++ pathCreate($dir, "$OutDir/$ShareName/$f->{mangleName}", $f);
+ my $poolWrite = BackupPC::PoolWrite->new($bpc,
+ "$OutDir/$ShareName/$f->{mangleName}",
+ $f->{size}, $Compress);
+@@ -351,7 +351,7 @@
+ # a plain file.
+ #
+ $f->{size} = length($f->{linkname});
+- pathCreate($dir, "$OutDir/$ShareName/$f->{mangleName}", $file, $f);
++ pathCreate($dir, "$OutDir/$ShareName/$f->{mangleName}", $f);
+ my $poolWrite = BackupPC::PoolWrite->new($bpc,
+ "$OutDir/$ShareName/$f->{mangleName}",
+ $f->{size}, $Compress);
+@@ -369,7 +369,7 @@
+ # contents.
+ #
+ $f->{size} = length($f->{linkname});
+- pathCreate($dir, "$OutDir/$ShareName/$f->{mangleName}", $file, $f);
++ pathCreate($dir, "$OutDir/$ShareName/$f->{mangleName}", $f);
+ my $poolWrite = BackupPC::PoolWrite->new($bpc,
+ "$OutDir/$ShareName/$f->{mangleName}",
+ $f->{size}, $Compress);
+@@ -393,7 +393,7 @@
+ } else {
+ $data = "$f->{devmajor},$f->{devminor}";
+ }
+- pathCreate($dir, "$OutDir/$ShareName/$f->{mangleName}", $file, $f);
++ pathCreate($dir, "$OutDir/$ShareName/$f->{mangleName}", $f);
+ my $poolWrite = BackupPC::PoolWrite->new($bpc,
+ "$OutDir/$ShareName/$f->{mangleName}",
+ length($data), $Compress);
+@@ -487,17 +487,21 @@
+ #
+ sub pathCreate
+ {
+- my($dir, $fullPath, $file, $f) = @_;
++ my($dir, $fullPath, $f) = @_;
+
+ #
+ # Get parent directory of each of $dir and $fullPath
+ #
+- $dir =~ s{/[^/]*$}{};
++ # print("pathCreate: dir = $dir, fullPath = $fullPath\n");
++ $dir =~ s{/([^/]*)$}{};
++ my $file = $bpc->fileNameUnmangle($1);
+ $fullPath =~ s{/[^/]*$}{};
+- return if ( -d $fullPath );
++ return if ( -d $fullPath || $file eq "" );
++ unlink($fullPath) if ( -e $fullPath );
+ mkpath($fullPath, 0, 0777);
+ $Attrib{$dir} = BackupPC::Attrib->new({ compress => $Compress })
+ if ( !defined($Attrib{$dir}) );
++ # print("pathCreate: adding file = $file to dir = $dir\n");
+ $Attrib{$dir}->set($file, {
+ type => BPC_FTYPE_DIR,
+ mode => 0755,
+--- lib/BackupPC/Lib.pm 2005-09-05 16:21:21.000000000 -0700
++++ lib/BackupPC/Lib.pm 2006-06-18 19:36:32.035939384 -0700
+@@ -59,7 +59,7 @@
+ TopDir => $topDir || '__TOPDIR__',
+ BinDir => $installDir || '__INSTALLDIR__',
+ LibDir => $installDir || '__INSTALLDIR__',
+- Version => '2.1.2',
++ Version => '2.1.2pl2',
+ BackupFields => [qw(
+ num type startTime endTime
+ nFiles size nFilesExist sizeExist nFilesNew sizeNew
+--- lib/BackupPC/Xfer/RsyncFileIO.pm 2005-09-05 16:21:21.000000000 -0700
++++ lib/BackupPC/Xfer/RsyncFileIO.pm 2006-06-18 19:36:32.120926464 -0700
+@@ -405,6 +405,11 @@
+ my($fio, $d) = @_;
+ my($poolWrite);
+
++ #
++ # Don't write attributes on 2nd phase - they're already
++ # taken care of during the first phase.
++ #
++ return if ( $fio->{phase} > 0 );
+ if ( !defined($d) ) {
+ #
+ # flush all entries (in reverse order)
+@@ -932,6 +937,7 @@
+
+ close($fio->{rxInFd}) if ( defined($fio->{rxInFd}) );
+ unlink("$fio->{outDirSh}RStmp") if ( -f "$fio->{outDirSh}RStmp" );
++ $fio->{phase} = $phase;
+
+ #
+ # Check the final md4 digest
+--- lib/BackupPC/Xfer/Tar.pm 2005-09-05 16:21:21.000000000 -0700
++++ lib/BackupPC/Xfer/Tar.pm 2006-06-18 19:36:32.110927984 -0700
+@@ -221,8 +221,13 @@
+ $t->{XferLOG}->write(\"$_\n") if ( $t->{logLevel} >= 2 );
+ $t->{fileCnt}++;
+ } else {
+- $t->{XferLOG}->write(\"$_\n") if ( $t->{logLevel} >= 0 );
+- $t->{xferErrCnt}++;
++ #
++ # Ignore annoying log message on incremental for tar 1.15.x
++ #
++ if ( !/: file is unchanged; not dumped$/ ) {
++ $t->{XferLOG}->write(\"$_\n") if ( $t->{logLevel} >= 0 );
++ $t->{xferErrCnt}++;
++ }
+ #
+ # If tar encounters a minor error, it will exit with a non-zero
+ # status. We still consider that ok. Remember if tar prints
+--- conf/config.pl 2005-09-05 16:21:22.000000000 -0700
++++ conf/config.pl 2006-06-18 19:36:31.968949568 -0700
+@@ -1052,7 +1052,7 @@
+ '--perms',
+ '--owner',
+ '--group',
+- '--devices',
++ '-D',
+ '--links',
+ '--times',
+ '--block-size=2048',
+@@ -1086,7 +1086,7 @@
+ '--perms',
+ '--owner',
+ '--group',
+- '--devices',
++ '-D',
+ '--links',
+ '--times',
+ '--block-size=2048',
diff --git a/app-backup/backuppc/files/apache2-backuppc.conf b/app-backup/backuppc/files/apache2-backuppc.conf
new file mode 100644
index 000000000000..1c27c69be46e
--- /dev/null
+++ b/app-backup/backuppc/files/apache2-backuppc.conf
@@ -0,0 +1,73 @@
+# /etc/conf.d/apache2: config file for /etc/init.d/apache2
+
+# When you install a module it is easy to activate or deactivate the modules
+# and other features of apache using the APACHE2_OPTS line. Every module should
+# install a configuration in /etc/apache2/modules.d. In that file will have an
+# <IfDefine NNN> directive where NNN is the option to enable that module.
+#
+# Here are the options available in the default configuration:
+#
+# AUTH_DIGEST Enables mod_auth_digest
+# AUTHNZ_LDAP Enables authentication through mod_ldap (available if USE=ldap)
+# CACHE Enables mod_cache
+# DAV Enables mod_dav
+# ERRORDOCS Enables default error documents for many languages.
+# INFO Enables mod_info, a useful module for debugging
+# LANGUAGE Enables content-negotiation based on language and charset.
+# LDAP Enables mod_ldap (available if USE=ldap)
+# MANUAL Enables /manual/ to be the apache manual (available if USE=docs)
+# MEM_CACHE Enables default configuration mod_mem_cache
+# PROXY Enables mod_proxy
+# SSL Enables SSL (available if USE=ssl)
+# SUEXEC Enables running CGI scripts (in USERDIR) through suexec.
+# USERDIR Enables /~username mapping to /home/username/public_html
+#
+#
+# The following two options provide the default virtual host for the HTTP and
+# HTTPS protocol. YOU NEED TO ENABLE AT LEAST ONE OF THEM, otherwise apache
+# will not listen for incomming connections on the approriate port.
+#
+# DEFAULT_VHOST Enables name-based virtual hosts, with the default
+# virtual host being in /var/www/localhost/htdocs
+# SSL_DEFAULT_VHOST Enables default vhost for SSL (you should enable this
+# when you enable SSL)
+#
+APACHE2_OPTS="-D LANGUAGE -D PERL -D BACKUPPC_VHOST"
+
+# Extended options for advanced uses of Apache ONLY
+# You don't need to edit these unless you are doing crazy Apache stuff
+# As not having them set correctly, or feeding in an incorrect configuration
+# via them will result in Apache failing to start
+# YOU HAVE BEEN WARNED.
+
+# PID file
+PIDFILE=/var/run/apache-backuppc.pid
+
+# timeout for startup/shutdown checks
+#TIMEOUT=10
+
+# ServerRoot setting
+SERVERROOT=/usr/lib/apache2
+
+# Configuration file location
+# - If this does NOT start with a '/', then it is treated relative to
+# $SERVERROOT by Apache
+CONFIGFILE=/etc/BackupPC/httpd.conf
+
+# Location to log startup errors to
+# They are normally dumped to your terminal.
+#STARTUPERRORLOG="/var/log/apache2/startuperror.log"
+
+# A command that outputs a formatted text version of the HTML at the URL
+# of the command line. Designed for lynx, however other programs may work.
+#LYNX="lynx -dump"
+
+# The URL to your server's mod_status status page.
+# Required for status and fullstatus
+#STATUSURL="http://localhost/server-status"
+
+# Method to use when reloading the server
+# Valid options are 'restart' and 'graceful'
+# See http://httpd.apache.org/docs/2.2/stopping.html for information on
+# what they do and how they differ.
+#RELOAD_TYPE="graceful"
diff --git a/app-backup/backuppc/files/apache2-backuppc.init b/app-backup/backuppc/files/apache2-backuppc.init
new file mode 100644
index 000000000000..42e89c6cc6dd
--- /dev/null
+++ b/app-backup/backuppc/files/apache2-backuppc.init
@@ -0,0 +1,170 @@
+#!/sbin/runscript
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+opts="configdump configtest fullstatus graceful gracefulstop modules reload virtualhosts"
+
+depend() {
+ need net
+ use mysql dns logger netmount postgresql
+ after sshd
+}
+
+configtest() {
+ ebegin "Checking ${SVCNAME} configuration"
+ checkconfig
+ eend $?
+}
+
+checkconfd() {
+ PIDFILE="${PIDFILE:-/var/run/apache2-backuppc.pid}"
+ TIMEOUT=${TIMEOUT:-10}
+
+ SERVERROOT="${SERVERROOT:-/usr/lib/apache2}"
+ if [ ! -d ${SERVERROOT} ]; then
+ eerror "SERVERROOT does not exist: ${SERVERROOT}"
+ return 1
+ fi
+
+ CONFIGFILE="${CONFIGFILE:-/etc/BackupPC/httpd.conf}"
+ [ "${CONFIGFILE#/}" = "${CONFIGFILE}" ] && CONFIGFILE="${SERVERROOT}/${CONFIGFILE}"
+ if [ ! -r "${CONFIGFILE}" ]; then
+ eerror "Unable to read configuration file: ${CONFIGFILE}"
+ return 1
+ fi
+
+ APACHE2_OPTS="${APACHE2_OPTS} -d ${SERVERROOT}"
+ APACHE2_OPTS="${APACHE2_OPTS} -f ${CONFIGFILE}"
+ [ -n "${STARTUPERRORLOG}" ] && APACHE2_OPTS="${APACHE2_OPTS} -E ${STARTUPERRORLOG}"
+
+ APACHE2="/usr/sbin/apache2"
+}
+
+checkconfig() {
+ checkconfd || return 1
+
+ ${APACHE2} ${APACHE2_OPTS} -t 1>/dev/null 2>&1
+ ret=$?
+ if [ $ret -ne 0 ]; then
+ eerror "${SVCNAME} has detected a syntax error in your configuration files:"
+ ${APACHE2} ${APACHE2_OPTS} -t
+ fi
+
+ return $ret
+}
+
+start() {
+ checkconfig || return 1
+
+ [ -f /var/log/apache2/ssl_scache ] && rm /var/log/apache2/ssl_scache
+
+ ebegin "Starting ${SVCNAME}"
+ ${APACHE2} ${APACHE2_OPTS} -k start
+
+ let i=0
+ while [ ! -e "${PIDFILE}" ] && [ $i -lt ${TIMEOUT} ]; do
+ sleep 1 && i=$(expr $i + 1)
+ done
+
+ test $i -le ${TIMEOUT}
+ eend $?
+}
+
+stop() {
+ checkconfd || return 1
+
+ ebegin "Stopping ${SVCNAME}"
+ ${APACHE2} ${APACHE2_OPTS} -k stop
+
+ let i=0
+ while pidof "${APACHE2}" >/dev/null && [ $i -lt ${TIMEOUT} ]; do
+ sleep 1 && i=$(expr $i + 1)
+ done
+
+ test $i -le ${TIMEOUT}
+ eend $?
+}
+
+reload() {
+ RELOAD_TYPE="${RELOAD_TYPE:-graceful}"
+
+ checkconfig || return 1
+ service_started "${SVCNAME}" || return
+
+ if [ "${RELOAD_TYPE}" = "restart" ]; then
+ ebegin "Restarting ${SVCNAME}"
+ ${APACHE2} ${APACHE2_OPTS} -k restart
+ eend $?
+ elif [ "${RELOAD_TYPE}" = "graceful" ]; then
+ ebegin "Gracefully restarting ${SVCNAME}"
+ ${APACHE2} ${APACHE2_OPTS} -k graceful
+ eend $?
+ else
+ eerror "${RELOAD_TYPE} is not a valid RELOAD_TYPE. Please edit /etc/conf.d/${SVCNAME}"
+ fi
+}
+
+graceful() {
+ checkconfig || return 1
+ service_started "${SVCNAME}" || return
+ ebegin "Gracefully restarting ${SVCNAME}"
+ ${APACHE2} ${APACHE2_OPTS} -k graceful
+ eend $?
+}
+
+gracefulstop() {
+ checkconfig || return 1
+
+ # zap!
+ if service_started "${SVCNAME}"; then
+ mark_service_stopped "${SVCNAME}"
+ fi
+
+ ebegin "Gracefully stopping ${SVCNAME}"
+ ${APACHE2} ${APACHE2_OPTS} -k graceful-stop
+ eend $?
+}
+
+modules() {
+ checkconfig || return 1
+
+ ${APACHE2} ${APACHE2_OPTS} -M 2>&1
+}
+
+fullstatus() {
+ LYNX="${LYNX:-lynx -dump}"
+ STATUSURL="${STATUSURL:-http://localhost/server-status}"
+
+ if ! service_started "${SVCNAME}"; then
+ eerror "${SVCNAME} not started"
+ elif ! type -p ${LYNX} 2>&1 >/dev/null; then
+ eerror "lynx not found! you need to emerge www-client/lynx"
+ else
+ ${LYNX} ${STATUSURL}
+ fi
+}
+
+virtualhosts() {
+ checkconfd || return 1
+ ${APACHE2} ${APACHE2_OPTS} -S
+}
+
+configdump() {
+ LYNX="${LYNX:-lynx -dump}"
+ INFOURL="${INFOURL:-http://localhost/server-info}"
+
+ checkconfd || return 1
+
+ if ! service_started "${SVCNAME}"; then
+ eerror "${SVCNAME} not started"
+ elif ! type -p ${LYNX} 2>&1 >/dev/null; then
+ eerror "lynx not found! you need to emerge www-client/lynx"
+ else
+ echo "${APACHE2} started with '${APACHE2_OPTS}'"
+ for i in config server list; do
+ ${LYNX} "${INFOURL}/?${i}" | sed '/Apache Server Information/d;/^[[:space:]]\+[_]\+$/Q'
+ done
+ fi
+}
+
+# vim: ts=4 filetype=gentoo-init-d
diff --git a/app-backup/backuppc/files/backuppc.service b/app-backup/backuppc/files/backuppc.service
new file mode 100644
index 000000000000..7c4877a4ee24
--- /dev/null
+++ b/app-backup/backuppc/files/backuppc.service
@@ -0,0 +1,13 @@
+[Unit]
+Description= BackupPC server
+After=syslog.target local-fs.target remote-fs.target
+
+[Service]
+Type=oneshot
+User=backuppc
+Group=backuppc
+ExecStart=/usr/bin/BackupPC -d
+RemainAfterExit=yes
+
+[Install]
+WantedBy=multi-user.target
diff --git a/app-backup/backuppc/files/httpd.conf b/app-backup/backuppc/files/httpd.conf
new file mode 100644
index 000000000000..00493d865acf
--- /dev/null
+++ b/app-backup/backuppc/files/httpd.conf
@@ -0,0 +1,332 @@
+# This is a modification of the default Apache 2.2 configuration file
+# for Gentoo Linux.
+#
+# Support:
+# http://www.gentoo.org/main/en/lists.xml [mailing lists]
+# http://forums.gentoo.org/ [web forums]
+# irc://irc.freenode.net#gentoo-apache [irc chat]
+#
+# Bug Reports:
+# http://bugs.gentoo.org [gentoo related bugs]
+# http://httpd.apache.org/bug_report.html [apache httpd related bugs]
+#
+#
+# This is the main Apache HTTP server configuration file. It contains the
+# configuration directives that give the server its instructions.
+# See <URL:http://httpd.apache.org/docs/2.2> for detailed information.
+# In particular, see
+# <URL:http://httpd.apache.org/docs/2.2/mod/directives.html>
+# for a discussion of each configuration directive.
+#
+# Do NOT simply read the instructions in here without understanding
+# what they do. They're here only as hints or reminders. If you are unsure
+# consult the online docs. You have been warned.
+#
+# Configuration and logfile names: If the filenames you specify for many
+# of the server's control files begin with "/" (or "drive:/" for Win32), the
+# server will use that explicit path. If the filenames do *not* begin
+# with "/", the value of ServerRoot is prepended -- so "var/log/apache2/foo_log"
+# with ServerRoot set to "/usr" will be interpreted by the
+# server as "/usr/var/log/apache2/foo.log".
+
+# ServerRoot: The top of the directory tree under which the server's
+# configuration, error, and log files are kept.
+#
+# Do not add a slash at the end of the directory path. If you point
+# ServerRoot at a non-local disk, be sure to point the LockFile directive
+# at a local disk. If you wish to share the same ServerRoot for multiple
+# httpd daemons, you will need to change at least LockFile and PidFile.
+ServerRoot "/usr/lib/apache2"
+
+# Dynamic Shared Object (DSO) Support
+#
+# To be able to use the functionality of a module which was built as a DSO you
+# have to place corresponding `LoadModule' lines at this location so the
+# directives contained in it are actually available _before_ they are used.
+# Statically compiled modules (those listed by `httpd -l') do not need
+# to be loaded here.
+#
+# Example:
+# LoadModule foo_module modules/mod_foo.so
+#
+# GENTOO: Automatically defined based on APACHE2_MODULES USE_EXPAND variable.
+# Do not change manually, it will be overwritten on upgrade.
+#
+# The following modules are considered as the default configuration.
+# If you wish to disable one of them, you may have to alter other
+# configuration directives.
+#
+# Change these at your own risk!
+
+LoadModule actions_module modules/mod_actions.so
+LoadModule alias_module modules/mod_alias.so
+LoadModule auth_basic_module modules/mod_auth_basic.so
+<IfDefine AUTH_DIGEST>
+LoadModule auth_digest_module modules/mod_auth_digest.so
+</IfDefine>
+LoadModule authn_anon_module modules/mod_authn_anon.so
+LoadModule authn_dbm_module modules/mod_authn_dbm.so
+LoadModule authn_default_module modules/mod_authn_default.so
+LoadModule authn_file_module modules/mod_authn_file.so
+LoadModule authz_dbm_module modules/mod_authz_dbm.so
+LoadModule authz_default_module modules/mod_authz_default.so
+LoadModule authz_groupfile_module modules/mod_authz_groupfile.so
+LoadModule authz_host_module modules/mod_authz_host.so
+LoadModule authz_owner_module modules/mod_authz_owner.so
+LoadModule authz_user_module modules/mod_authz_user.so
+LoadModule autoindex_module modules/mod_autoindex.so
+<IfDefine CACHE>
+LoadModule cache_module modules/mod_cache.so
+</IfDefine>
+LoadModule cgi_module modules/mod_cgi.so
+LoadModule deflate_module modules/mod_deflate.so
+LoadModule dir_module modules/mod_dir.so
+<IfDefine CACHE>
+LoadModule disk_cache_module modules/mod_disk_cache.so
+</IfDefine>
+LoadModule env_module modules/mod_env.so
+LoadModule expires_module modules/mod_expires.so
+LoadModule ext_filter_module modules/mod_ext_filter.so
+<IfDefine CACHE>
+LoadModule file_cache_module modules/mod_file_cache.so
+</IfDefine>
+LoadModule filter_module modules/mod_filter.so
+LoadModule headers_module modules/mod_headers.so
+LoadModule include_module modules/mod_include.so
+<IfDefine INFO>
+LoadModule info_module modules/mod_info.so
+</IfDefine>
+LoadModule log_config_module modules/mod_log_config.so
+LoadModule logio_module modules/mod_logio.so
+<IfDefine CACHE>
+LoadModule mem_cache_module modules/mod_mem_cache.so
+</IfDefine>
+LoadModule mime_module modules/mod_mime.so
+LoadModule mime_magic_module modules/mod_mime_magic.so
+LoadModule negotiation_module modules/mod_negotiation.so
+<IfDefine PROXY>
+LoadModule proxy_module modules/mod_proxy.so
+</IfDefine>
+<IfDefine PROXY>
+LoadModule proxy_ajp_module modules/mod_proxy_ajp.so
+</IfDefine>
+<IfDefine PROXY>
+LoadModule proxy_balancer_module modules/mod_proxy_balancer.so
+</IfDefine>
+<IfDefine PROXY>
+LoadModule proxy_connect_module modules/mod_proxy_connect.so
+</IfDefine>
+<IfDefine PROXY>
+LoadModule proxy_http_module modules/mod_proxy_http.so
+</IfDefine>
+LoadModule rewrite_module modules/mod_rewrite.so
+LoadModule setenvif_module modules/mod_setenvif.so
+LoadModule speling_module modules/mod_speling.so
+<IfDefine SSL>
+LoadModule ssl_module modules/mod_ssl.so
+</IfDefine>
+<IfDefine STATUS>
+LoadModule status_module modules/mod_status.so
+</IfDefine>
+<IfDefine SUEXEC>
+LoadModule suexec_module modules/mod_suexec.so
+</IfDefine>
+LoadModule unique_id_module modules/mod_unique_id.so
+<IfDefine USERDIR>
+LoadModule userdir_module modules/mod_userdir.so
+</IfDefine>
+LoadModule usertrack_module modules/mod_usertrack.so
+LoadModule vhost_alias_module modules/mod_vhost_alias.so
+
+#
+# HostnameLookups: Log the names of clients or just their IP addresses
+# e.g., www.apache.org (on) or 204.62.129.132 (off).
+# The default is off because it'd be overall better for the net if people
+# had to knowingly turn this feature on, since enabling it means that
+# each client request will result in AT LEAST one lookup request to the
+# nameserver.
+#
+HostnameLookups Off
+
+# If you wish httpd to run as a different user or group, you must run
+# httpd as root initially and it will switch.
+#
+# User/Group: The name (or #number) of the user/group to run httpd as.
+# It is usually good practice to create a dedicated user and group for
+# running httpd, as with most system services.
+User backuppc
+Group backuppc
+
+# Supplemental configuration
+#
+# Most of the configuration files in the /etc/apache2/modules.d/ directory can
+# be turned on using APACHE2_OPTS in /etc/conf.d/apache2 to add extra features
+# or to modify the default configuration of the server.
+#
+# To know which flag to add to APACHE2_OPTS, look at the first line of the
+# the file, which will usually be an <IfDefine OPTION> where OPTION is the
+# flag to use.
+
+Include /etc/apache2/modules.d/*.conf
+
+# Unique lock file
+LockFile /var/lock/apache-backuppc.lock
+
+# Very important for init script
+# Unique process ID file
+PidFile /var/run/apache-backuppc.pid
+
+# Unique scoreboard file
+ScoreBoardFile /var/run/apache-backuppc.scoreboard
+
+# Common document root
+<IfDefine BACKUPPC_VHOST>
+
+
+# Common document root
+DocumentRoot HTDOCSDIR
+# see bug #178966 why this is in here
+
+# Listen: Allows you to bind Apache to specific IP addresses and/or
+# ports, instead of the default. See also the <VirtualHost>
+# directive.
+#
+# Change this to Listen on specific IP addresses as shown below to
+# prevent Apache from glomming onto all bound IP addresses.
+#
+#Listen 12.34.56.78:80
+Listen 80
+
+# Use name-based virtual hosting.
+NameVirtualHost *:80
+
+# When virtual hosts are enabled, the main host defined in the default
+# httpd.conf configuration will go away. We redefine it here so that it is
+# still available.
+#
+# If you disable this vhost by removing -D DEFAULT_VHOST from
+# /etc/conf.d/apache2, the first defined virtual host elsewhere will be
+# the default.
+<VirtualHost *:80>
+ ServerName backuppc
+
+ # Redirect requests to "/" to the CGI script
+ RedirectMatch "^/$" /BackupPC_Admin
+
+ <IfDefine SSL>
+ <IfModule ssl_module>
+ RewriteEngine On
+ RewriteCond %{HTTPS} !=on
+ RewriteRule ^/(.*) https://%{SERVER_NAME}/$1 [R,L]
+
+ ## SSL Engine Switch:
+ # Enable/Disable SSL for this virtual host.
+ SSLEngine on
+ SSLOptions +StrictRequire
+
+ ## SSL Cipher Suite:
+ # List the ciphers that the client is permitted to negotiate.
+ # See the mod_ssl documentation for a complete list.
+ SSLCipherSuite ALL:!ADH:!EXPORT56:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP:+eNULL
+
+ ## Server Certificate:
+ # Point SSLCertificateFile at a PEM encoded certificate. If the certificate
+ # is encrypted, then you will be prompted for a pass phrase. Note that a
+ # kill -HUP will prompt again. Keep in mind that if you have both an RSA
+ # and a DSA certificate you can configure both in parallel (to also allow
+ # the use of DSA ciphers, etc.)
+ SSLCertificateFile /etc/ssl/apache2/server.crt
+
+ ## Server Private Key:
+ # If the key is not combined with the certificate, use this directive to
+ # point at the key file. Keep in mind that if you've both a RSA and a DSA
+ # private key you can configure both in parallel (to also allow the use of
+ # DSA ciphers, etc.)
+ SSLCertificateKeyFile /etc/ssl/apache2/server.key
+ <FilesMatch "\.(cgi|shtml|phtml|php)$">
+ SSLOptions +StdEnvVars
+ </FilesMatch>
+
+ ## ssl-accurate-shutdown:
+ # This forces an accurate shutdown when the connection is closed, i.e. a
+ # SSL close notify alert is send and mod_ssl waits for the close notify
+ # alert of the client. This is 100% SSL/TLS standard compliant, but in
+ # practice often causes hanging connections with brain-dead browsers. Use
+ # this only for browsers where you know that their SSL implementation works
+ # correctly.
+ # Notice: Most problems of broken clients are also related to the HTTP
+ # keep-alive facility, so you usually additionally want to disable
+ # keep-alive for those clients, too. Use variable "nokeepalive" for this.
+ # Similarly, one has to force some clients to use HTTP/1.0 to workaround
+ # their broken HTTP/1.1 implementation. Use variables "downgrade-1.0" and
+ # "force-response-1.0" for this.
+ <IfModule setenvif_module>
+ BrowserMatch ".*MSIE.*" \
+ nokeepalive ssl-unclean-shutdown \
+ downgrade-1.0 force-response-1.0
+ </IfModule>
+
+ ## Per-Server Logging:
+ # The home of a custom SSL log file. Use this when you want a compact
+ # non-error SSL logfile on a virtual host basis.
+ <IfModule log_config_module>
+ CustomLog /var/log/apache2/ssl_request_log \
+ "%t %h %{SSL_PROTOCOL}x %{SSL_CIPHER}x \"%r\" %b"
+ </IfModule>
+ </IfModule>
+ </IfDefine>
+
+<Directory "HTDOCSDIR">
+ # Possible values for the Options directive are "None", "All",
+ # or any combination of:
+ # Indexes Includes FollowSymLinks SymLinksifOwnerMatch ExecCGI MultiViews
+ #
+ # Note that "MultiViews" must be named *explicitly* --- "Options All"
+ # doesn't give it to you.
+ #
+ # The Options directive is both complicated and important. Please see
+ # http://httpd.apache.org/docs/2.2/mod/core.html#options
+ # for more information.
+ Options Indexes FollowSymLinks
+
+ # AllowOverride controls what directives may be placed in .htaccess files.
+ # It can be "All", "None", or any combination of the keywords:
+ # Options FileInfo AuthConfig Limit
+ AllowOverride None
+
+ <IfDefine SSL>
+ <IfModule ssl_module>
+ SSLOptions +StdEnvVars
+ </IfModule>
+ </IfDefine>
+
+ SetHandler perl-script
+ PerlResponseHandler ModPerl::Registry
+ PerlOptions +ParseHeaders
+ Options +ExecCGI
+
+ Order allow,deny
+ Allow from all
+
+ AuthName "Backup Admin"
+ AuthType Basic
+ AuthUserFile AUTHFILE
+ Require valid-user
+</Directory>
+
+<Directory "HTDOCSDIR/image">
+ SetHandler None
+ Options Indexes FollowSymLinks
+ Order allow,deny
+ Allow from all
+</Directory>
+
+
+ <IfModule mpm_peruser_module>
+ ServerEnvironment backuppc backuppc
+ </IfModule>
+</VirtualHost>
+</IfDefine>
+
+
+# vim: ts=4 filetype=apache
diff --git a/app-backup/backuppc/files/postinstall-en.txt b/app-backup/backuppc/files/postinstall-en.txt
new file mode 100644
index 000000000000..ec1634b987e8
--- /dev/null
+++ b/app-backup/backuppc/files/postinstall-en.txt
@@ -0,0 +1 @@
+Please make sure to edit /etc/backuppc/config.pl to suit your needs.
diff --git a/app-backup/backuppc/metadata.xml b/app-backup/backuppc/metadata.xml
new file mode 100644
index 000000000000..1d438e3031fe
--- /dev/null
+++ b/app-backup/backuppc/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>app-backup</herd>
+ <upstream>
+ <remote-id type="sourceforge">backuppc</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-backup/bacula/Manifest b/app-backup/bacula/Manifest
new file mode 100644
index 000000000000..1dae12073297
--- /dev/null
+++ b/app-backup/bacula/Manifest
@@ -0,0 +1,3 @@
+DIST bacula-5.0.3.tar.gz 3800556 SHA256 9905598e18bbe94fa871ddcb3f13ef8b754dcb301331b67b5b92a65eb834fdb4 SHA512 feb4a7333b4c898aec175c6e8b45ce5d4eb6e15100a9f27c6010e1a17b44133b7d181d25419e923321d8bd7147d85342bf1e0dca8387d6e9cd269a0e2fec4626 WHIRLPOOL 65a900cc740a300b509a02d953ec5265e3cfbd2ce85d8e40b47e1f1fdd6d77885ec48e68471cc559accd6707fdd9f1cbb34fba22371e806d404abed052a168fb
+DIST bacula-5.2.13.tar.gz 4243395 SHA256 a4bed458bf001889bd06bf31671b5d9908055a1d1e8113fd750ae4d326607ad8 SHA512 dfdff353f5b6ed4d85013dc292526706bbd67066f7057a114012172926c819c8df1eb8779166d5a90db3a49a5584f0a8daf7566cc93cf4fa3f1bdda245b55cf0 WHIRLPOOL f559a3650ae45e149a80cdc74ab84e32c94f492321c2222c18003bacfb6690615befc3a37826055f6c436a4af6ace4b81497181f2ec4f641b0ad3a13817488a7
+DIST bacula-7.0.5.tar.gz 3216406 SHA256 1457849eb33011b43371801b62ffa13d29bebe51be8d5a36da563b87bb094a49 SHA512 df7908769fd13a1cb2e0491d3773577db40c0f1c010b887c6dc6d7e0bc0b408fbfc260e6d5a2a34975e5b424152c7f558b33aeedea45f366636739295641394b WHIRLPOOL 47642c52928d84a50c01adfb8afa49c0c9376cba3b0f709d0c5113cba3380e047ded04980ffad339deeb1ce6d3a8ec59f58cf1968223973def7074a446a09da5
diff --git a/app-backup/bacula/bacula-5.0.3-r4.ebuild b/app-backup/bacula/bacula-5.0.3-r4.ebuild
new file mode 100644
index 000000000000..10565efe0d55
--- /dev/null
+++ b/app-backup/bacula/bacula-5.0.3-r4.ebuild
@@ -0,0 +1,381 @@
+# 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 eutils multilib python-single-r1 qt4-r2 user libtool
+
+MY_PV=${PV/_beta/-b}
+MY_P=${PN}-${MY_PV}
+#DOC_VER="${MY_PV}"
+
+DESCRIPTION="Featureful client/server network backup suite"
+HOMEPAGE="http://www.bacula.org/"
+
+#DOC_SRC_URI="mirror://sourceforge/bacula/${PN}-docs-${DOC_VER}.tar.bz2"
+SRC_URI="mirror://sourceforge/bacula/${MY_P}.tar.gz"
+# doc? ( ${DOC_SRC_URI} )
+
+LICENSE="AGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE="acl bacula-clientonly bacula-nodir bacula-nosd ipv6 logwatch mysql postgres python qt4 readline +sqlite ssl static tcpd vim-syntax X"
+
+# maintainer comment:
+# postgresql-base should have USE=threads (see bug 326333) but fails to build
+# atm with it (see bug #300964)
+DEPEND="
+ >=sys-libs/zlib-1.1.4
+ dev-libs/gmp
+ !bacula-clientonly? (
+ postgres? ( dev-db/postgresql[threads] )
+ mysql? ( virtual/mysql )
+ sqlite? ( dev-db/sqlite:3 )
+ !bacula-nodir? ( virtual/mta )
+ )
+ qt4? (
+ dev-qt/qtsvg:4
+ x11-libs/qwt:5
+ )
+ logwatch? ( sys-apps/logwatch )
+ tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
+ readline? ( >=sys-libs/readline-4.1 )
+ static? (
+ acl? ( virtual/acl[static-libs] )
+ sys-libs/zlib[static-libs]
+ sys-libs/ncurses[static-libs]
+ ssl? ( dev-libs/openssl[static-libs] )
+ )
+ !static? (
+ acl? ( virtual/acl )
+ sys-libs/zlib
+ sys-libs/ncurses
+ ssl? ( dev-libs/openssl )
+ )
+ python? ( ${PYTHON_DEPS} )
+ "
+RDEPEND="${DEPEND}
+ !bacula-clientonly? (
+ !bacula-nosd? (
+ sys-block/mtx
+ app-arch/mt-st
+ )
+ )
+ vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )"
+
+REQUIRED_USE="|| ( ^^ ( mysql postgres sqlite ) bacula-clientonly )
+ static? ( bacula-clientonly )
+ python? ( ${PYTHON_REQUIRED_USE} )"
+
+S=${WORKDIR}/${MY_P}
+
+pkg_setup() {
+ #XOR and !bacula-clientonly controlled by REQUIRED_USE
+ use mysql && export mydbtype="mysql"
+ use postgres && export mydbtype="postgresql"
+ use sqlite && export mydbtype="sqlite3"
+
+ # create the daemon group and user
+ if [ -z "$(egetent group bacula 2>/dev/null)" ]; then
+ enewgroup bacula
+ einfo
+ einfo "The group 'bacula' has been created. Any users you add to this"
+ einfo "group have access to files created by the daemons."
+ einfo
+ fi
+
+ if use bacula-clientonly && use static && use qt4; then
+ ewarn
+ ewarn "Building statically linked 'bat' is not supported. Ignorig 'qt4' useflag."
+ ewarn
+ fi
+
+ if ! use bacula-clientonly; then
+ if [ -z "$(egetent passwd bacula 2>/dev/null)" ]; then
+ enewuser bacula -1 -1 /var/lib/bacula bacula,disk,tape,cdrom,cdrw
+ einfo
+ einfo "The user 'bacula' has been created. Please see the bacula manual"
+ einfo "for information about running bacula as a non-root user."
+ einfo
+ fi
+ fi
+
+ use python && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ # adjusts default configuration files for several binaries
+ # to /etc/bacula/<config> instead of ./<config>
+ pushd src >&/dev/null || die
+ for f in console/console.c dird/dird.c filed/filed.c \
+ stored/bcopy.c stored/bextract.c stored/bls.c \
+ stored/bscan.c stored/btape.c stored/stored.c \
+ qt-console/main.cpp; do
+ sed -i -e 's|^\(#define CONFIG_FILE "\)|\1/etc/bacula/|g' "${f}" \
+ || die "sed on ${f} failed"
+ done
+ popd >&/dev/null || die
+
+ # drop automatic install of unneeded documentation (for bug 356499)
+ epatch "${FILESDIR}"/${PV}/${P}-doc.patch
+
+ # bug #310087
+ epatch "${FILESDIR}"/${PV}/${P}-as-needed.patch
+
+ # bug #311161
+ epatch "${FILESDIR}"/${PV}/${P}-lib-search-path.patch
+
+ # stop build for errors in subdirs
+ epatch "${FILESDIR}"/${PV}/${P}-Makefile.patch
+
+ # bat needs to respect LDFLAGS
+ epatch "${FILESDIR}"/${PV}/${P}-ldflags.patch
+
+ # bug #328701
+ epatch "${FILESDIR}"/${PV}/${P}-openssl-1.patch
+
+ epatch "${FILESDIR}"/${PV}/${P}-fix-static.patch
+
+ # fix CVE-2012-4430
+ epatch "${FILESDIR}"/${PV}/${P}-cve.patch
+
+ # fix bundled libtool (bug 466696)
+ # But first move directory with M4 macros out of the way.
+ # It is only needed by i autoconf and gives errors during elibtoolize.
+ mv autoconf/libtool autoconf/libtool1 || die
+ elibtoolize
+}
+
+src_configure() {
+ local myconf=''
+
+ if use bacula-clientonly; then
+ myconf="${myconf} \
+ $(use_enable bacula-clientonly client-only) \
+ $(use_enable !static libtool) \
+ $(use_enable static static-cons) \
+ $(use_enable static static-fd)"
+ else
+ myconf="${myconf} \
+ $(use_enable !bacula-nodir build-dird) \
+ $(use_enable !bacula-nosd build-stored)"
+ # bug #311099
+ # database support needed by dir-only *and* sd-only
+ # build as well (for building bscan, btape, etc.)
+ myconf="${myconf} \
+ --with-${mydbtype} \
+ --enable-batch-insert"
+ fi
+
+ # do not build bat if 'static' clientonly
+ if ! use bacula-clientonly || ! use static; then
+ myconf="${myconf} \
+ $(use_enable qt4 bat)"
+ fi
+
+ myconf="${myconf} \
+ --disable-tray-monitor \
+ $(use_with X x) \
+ $(use_with python) \
+ $(use_enable !readline conio) \
+ $(use_enable readline) \
+ $(use_with readline readline /usr) \
+ $(use_with ssl openssl) \
+ $(use_enable ipv6) \
+ $(use_enable acl) \
+ $(use_with tcpd tcp-wrappers)"
+
+ econf \
+ --libdir=/usr/$(get_libdir) \
+ --docdir=/usr/share/doc/${PF} \
+ --htmldir=/usr/share/doc/${PF}/html \
+ --with-pid-dir=/var/run \
+ --sysconfdir=/etc/bacula \
+ --with-subsys-dir=/var/lock/subsys \
+ --with-working-dir=/var/lib/bacula \
+ --with-scriptdir=/usr/libexec/bacula \
+ --with-dir-user=bacula \
+ --with-dir-group=bacula \
+ --with-sd-user=root \
+ --with-sd-group=bacula \
+ --with-fd-user=root \
+ --with-fd-group=bacula \
+ --enable-smartalloc \
+ --disable-afs \
+ --host=${CHOST} \
+ ${myconf}
+ # correct configuration for QT based bat
+ if use qt4 ; then
+ pushd src/qt-console
+ eqmake4
+ popd
+ fi
+}
+
+src_compile() {
+ # Make build log verbose (bug #447806)
+ emake NO_ECHO=""
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ doicon scripts/bacula.png
+
+ # install bat when enabled (for some reason ./configure doesn't pick this up)
+ if use qt4 && ! use static ; then
+ dosbin "${S}"/src/qt-console/.libs/bat
+ doicon src/qt-console/images/bat_icon.png
+ domenu scripts/bat.desktop
+ fi
+
+ # remove some scripts we don't need at all
+ rm -f "${D}"/usr/libexec/bacula/{bacula,bacula-ctl-dir,bacula-ctl-fd,bacula-ctl-sd,startmysql,stopmysql}
+
+ # rename statically linked apps
+ if use bacula-clientonly && use static ; then
+ pushd "${D}"/usr/sbin || die
+ mv static-bacula-fd bacula-fd || die
+ mv static-bconsole bconsole || die
+ popd || die
+ fi
+
+ # extra files which 'make install' doesn't cover
+ if ! use bacula-clientonly; then
+ # the database update scripts
+ diropts -m0750
+ insinto /usr/libexec/bacula/updatedb
+ insopts -m0754
+ doins "${S}"/updatedb/*
+ fperms 0640 /usr/libexec/bacula/updatedb/README
+
+ # the logrotate configuration
+ # (now unconditional wrt bug #258187)
+ diropts -m0755
+ insinto /etc/logrotate.d
+ insopts -m0644
+ newins "${S}"/scripts/logrotate bacula
+
+ # the logwatch scripts
+ if use logwatch; then
+ diropts -m0750
+ dodir /etc/log.d/scripts/services
+ dodir /etc/log.d/scripts/shared
+ dodir /etc/log.d/conf/logfiles
+ dodir /etc/log.d/conf/services
+ pushd "${S}"/scripts/logwatch >&/dev/null || die
+ emake DESTDIR="${D}" install
+ popd >&/dev/null || die
+ fi
+ fi
+
+ rm -vf "${D}"/usr/share/man/man1/bacula-bwxconsole.1*
+ if ! use qt4; then
+ rm -vf "${D}"/usr/share/man/man1/bat.1*
+ fi
+ rm -vf "${D}"/usr/share/man/man1/bacula-tray-monitor.1*
+ if use bacula-clientonly || use bacula-nodir; then
+ rm -vf "${D}"/usr/share/man/man8/bacula-dir.8*
+ rm -vf "${D}"/usr/share/man/man8/dbcheck.8*
+ rm -vf "${D}"/usr/share/man/man1/bsmtp.1*
+ rm -vf "${D}"/usr/libexec/bacula/create_*_database
+ rm -vf "${D}"/usr/libexec/bacula/drop_*_database
+ rm -vf "${D}"/usr/libexec/bacula/make_*_tables
+ rm -vf "${D}"/usr/libexec/bacula/update_*_tables
+ rm -vf "${D}"/usr/libexec/bacula/drop_*_tables
+ rm -vf "${D}"/usr/libexec/bacula/grant_*_privileges
+ rm -vf "${D}"/usr/libexec/bacula/*_catalog_backup
+ fi
+ if use bacula-clientonly || use bacula-nosd; then
+ rm -vf "${D}"/usr/share/man/man8/bacula-sd.8*
+ rm -vf "${D}"/usr/share/man/man8/bcopy.8*
+ rm -vf "${D}"/usr/share/man/man8/bextract.8*
+ rm -vf "${D}"/usr/share/man/man8/bls.8*
+ rm -vf "${D}"/usr/share/man/man8/bscan.8*
+ rm -vf "${D}"/usr/share/man/man8/btape.8*
+ rm -vf "${D}"/usr/libexec/bacula/disk-changer
+ rm -vf "${D}"/usr/libexec/bacula/mtx-changer
+ rm -vf "${D}"/usr/libexec/bacula/dvd-handler
+ fi
+
+ # documentation
+ dodoc ChangeLog ReleaseNotes SUPPORT technotes
+
+ # vim-files
+ if use vim-syntax; then
+ insinto /usr/share/vim/vimfiles/syntax
+ doins scripts/bacula.vim
+ insinto /usr/share/vim/vimfiles/ftdetect
+ newins scripts/filetype.vim bacula_ft.vim
+ fi
+
+ # setup init scripts
+ myscripts="bacula-fd"
+ if ! use bacula-clientonly; then
+ if ! use bacula-nodir; then
+ myscripts="${myscripts} bacula-dir"
+ fi
+ if ! use bacula-nosd; then
+ myscripts="${myscripts} bacula-sd"
+ fi
+ fi
+ for script in ${myscripts}; do
+ # copy over init script and config to a temporary location
+ # so we can modify them as needed
+ cp "${FILESDIR}/${script}".confd "${T}/${script}".confd || die "failed to copy ${script}.confd"
+ cp "${FILESDIR}/${script}".initd "${T}/${script}".initd || die "failed to copy ${script}.initd"
+
+ # now set the database dependancy for the director init script
+ case "${script}" in
+ bacula-dir)
+ case "${mydbtype}" in
+ sqlite3)
+ # sqlite databases don't have a daemon
+ sed -i -e 's/need "%database%"/:/g' "${T}/${script}".initd || die
+ ;;
+ *)
+ # all other databases have daemons
+ sed -i -e "s:%database%:${mydbtype}:" "${T}/${script}".initd || die
+ ;;
+ esac
+ ;;
+ *)
+ ;;
+ esac
+
+ # install init script and config
+ newinitd "${T}/${script}".initd "${script}"
+ newconfd "${T}/${script}".confd "${script}"
+ done
+
+ # make sure the working directory exists
+ diropts -m0750
+ keepdir /var/lib/bacula
+
+ # make sure bacula group can execute bacula libexec scripts
+ fowners -R root:bacula /usr/libexec/bacula
+}
+
+pkg_postinst() {
+ if use bacula-clientonly; then
+ fowners root:bacula /var/lib/bacula
+ else
+ fowners bacula:bacula /var/lib/bacula
+ fi
+
+ if ! use bacula-clientonly && ! use bacula-nodir; then
+ einfo
+ einfo "If this is a new install, you must create the ${mydbtype} databases with:"
+ einfo " /usr/libexec/bacula/create_${mydbtype}_database"
+ einfo " /usr/libexec/bacula/make_${mydbtype}_tables"
+ einfo " /usr/libexec/bacula/grant_${mydbtype}_privileges"
+ einfo
+ fi
+
+ einfo "Please note that 'bconsole' will always be installed. To compile 'bat'"
+ einfo "you have to enable 'USE=qt4'."
+ einfo
+}
diff --git a/app-backup/bacula/bacula-5.2.13-r3.ebuild b/app-backup/bacula/bacula-5.2.13-r3.ebuild
new file mode 100644
index 000000000000..933fc9765ebc
--- /dev/null
+++ b/app-backup/bacula/bacula-5.2.13-r3.ebuild
@@ -0,0 +1,410 @@
+# 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 eutils multilib python-single-r1 qt4-r2 systemd user libtool
+
+MY_PV=${PV/_beta/-b}
+MY_P=${PN}-${MY_PV}
+
+DESCRIPTION="Featureful client/server network backup suite"
+HOMEPAGE="http://www.bacula.org/"
+SRC_URI="mirror://sourceforge/bacula/${MY_P}.tar.gz"
+
+LICENSE="AGPL-3"
+SLOT="0"
+KEYWORDS=" ~amd64 ~ppc ~sparc ~x86"
+IUSE="acl bacula-clientonly bacula-nodir bacula-nosd examples ipv6 logwatch mysql postgres python qt4 readline +sqlite ssl static tcpd vim-syntax X"
+
+DEPEND="
+ dev-libs/gmp
+ !bacula-clientonly? (
+ postgres? ( dev-db/postgresql[threads] )
+ mysql? ( virtual/mysql )
+ sqlite? ( dev-db/sqlite:3 )
+ !bacula-nodir? ( virtual/mta )
+ )
+ qt4? (
+ dev-qt/qtsvg:4
+ x11-libs/qwt:5
+ )
+ logwatch? ( sys-apps/logwatch )
+ tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
+ readline? ( >=sys-libs/readline-4.1 )
+ static? (
+ acl? ( virtual/acl[static-libs] )
+ sys-libs/zlib[static-libs]
+ dev-libs/lzo[static-libs]
+ sys-libs/ncurses[static-libs]
+ ssl? ( dev-libs/openssl[static-libs] )
+ )
+ !static? (
+ acl? ( virtual/acl )
+ sys-libs/zlib
+ dev-libs/lzo
+ sys-libs/ncurses
+ ssl? ( dev-libs/openssl )
+ )
+ python? ( ${PYTHON_DEPS} )
+ "
+RDEPEND="${DEPEND}
+ !bacula-clientonly? (
+ !bacula-nosd? (
+ sys-block/mtx
+ app-arch/mt-st
+ )
+ )
+ vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )"
+
+REQUIRED_USE="|| ( ^^ ( mysql postgres sqlite ) bacula-clientonly )
+ static? ( bacula-clientonly )
+ python? ( ${PYTHON_REQUIRED_USE} )"
+
+S=${WORKDIR}/${MY_P}
+
+pkg_setup() {
+ #XOR and !bacula-clientonly controlled by REQUIRED_USE
+ use mysql && export mydbtype="mysql"
+ use postgres && export mydbtype="postgresql"
+ use sqlite && export mydbtype="sqlite3"
+
+ # create the daemon group and user
+ if [ -z "$(egetent group bacula 2>/dev/null)" ]; then
+ enewgroup bacula
+ einfo
+ einfo "The group 'bacula' has been created. Any users you add to this"
+ einfo "group have access to files created by the daemons."
+ einfo
+ fi
+
+ if use bacula-clientonly && use static && use qt4; then
+ ewarn
+ ewarn "Building statically linked 'bat' is not supported. Ignorig 'qt4' useflag."
+ ewarn
+ fi
+
+ if ! use bacula-clientonly; then
+ if [ -z "$(egetent passwd bacula 2>/dev/null)" ]; then
+ enewuser bacula -1 -1 /var/lib/bacula bacula,disk,tape,cdrom,cdrw
+ einfo
+ einfo "The user 'bacula' has been created. Please see the bacula manual"
+ einfo "for information about running bacula as a non-root user."
+ einfo
+ fi
+ fi
+
+ use python && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ # adjusts default configuration files for several binaries
+ # to /etc/bacula/<config> instead of ./<config>
+ pushd src >&/dev/null || die
+ for f in console/console.c dird/dird.c filed/filed.c \
+ stored/bcopy.c stored/bextract.c stored/bls.c \
+ stored/bscan.c stored/btape.c stored/stored.c \
+ qt-console/main.cpp; do
+ sed -i -e 's|^\(#define CONFIG_FILE "\)|\1/etc/bacula/|g' "${f}" \
+ || die "sed on ${f} failed"
+ done
+ popd >&/dev/null || die
+
+ # bug 466688 drop deprecated categories from Desktop file
+ sed -i -e 's/Application;//' scripts/bat.desktop.in || die
+
+ # bug 466690 Use CXXFLAGS instead of CFLAGS
+ sed -i -e 's/@CFLAGS@/@CXXFLAGS@/' autoconf/Make.common.in || die
+
+ # drop automatic install of unneeded documentation (for bug 356499)
+ epatch "${FILESDIR}"/5.2.3/${PN}-5.2.3-doc.patch
+
+ # bug #310087
+ epatch "${FILESDIR}"/5.2.3/${PN}-5.2.3-as-needed.patch
+
+ # bug #311161
+ epatch "${FILESDIR}"/5.2.3/${PN}-5.2.3-lib-search-path.patch
+
+ # stop build for errors in subdirs
+ epatch "${FILESDIR}"/5.2.3/${PN}-5.2.3-Makefile.patch
+
+ # bat needs to respect LDFLAGS
+ epatch "${FILESDIR}"/5.2.3/${PN}-5.2.3-ldflags.patch
+
+ # bug #328701
+ epatch "${FILESDIR}"/5.2.3/${PN}-5.2.3-openssl-1.patch
+
+ epatch "${FILESDIR}"/5.2.10/${PN}-5.2.10-fix-static.patch
+
+ # do not strip binaries
+ sed -i -e "s/strip /# strip /" src/filed/Makefile.in || die
+ sed -i -e "s/strip /# strip /" src/console/Makefile.in || die
+
+ # fix file not found error during make depend
+ epatch "${FILESDIR}"/5.2.12/${PN}-5.2.12-depend.patch
+
+ # Fix systemd unit files:
+ # bug 497748
+ sed -i -e '/Requires/d' platforms/systemd/*.service.in || die
+ sed -i -e '/StandardOutput/d' platforms/systemd/*.service.in || die
+ # bug 504370
+ sed -i -e '/Alias=bacula-dir/d' platforms/systemd/bacula-dir.service.in || die
+
+ # fix bundled libtool (bug 466696)
+ # But first move directory with M4 macros out of the way.
+ # It is only needed by i autoconf and gives errors during elibtoolize.
+ mv autoconf/libtool autoconf/libtool1 || die
+ elibtoolize
+}
+
+src_configure() {
+ local myconf=''
+
+ if use bacula-clientonly; then
+ myconf="${myconf} \
+ $(use_enable bacula-clientonly client-only) \
+ $(use_enable !static libtool) \
+ $(use_enable static static-cons) \
+ $(use_enable static static-fd)"
+ else
+ myconf="${myconf} \
+ $(use_enable !bacula-nodir build-dird) \
+ $(use_enable !bacula-nosd build-stored)"
+ # bug #311099
+ # database support needed by dir-only *and* sd-only
+ # build as well (for building bscan, btape, etc.)
+ myconf="${myconf} \
+ --with-${mydbtype} \
+ --enable-batch-insert"
+ fi
+
+ # do not build bat if 'static' clientonly
+ if ! use bacula-clientonly || ! use static; then
+ myconf="${myconf} \
+ $(use_enable qt4 bat)"
+ fi
+
+ myconf="${myconf} \
+ --disable-tray-monitor \
+ $(use_with X x) \
+ $(use_with python) \
+ $(use_enable !readline conio) \
+ $(use_enable readline) \
+ $(use_with readline readline /usr) \
+ $(use_with ssl openssl) \
+ $(use_enable ipv6) \
+ $(use_enable acl) \
+ $(use_with tcpd tcp-wrappers)"
+
+ econf \
+ --libdir=/usr/$(get_libdir) \
+ --docdir=/usr/share/doc/${PF} \
+ --htmldir=/usr/share/doc/${PF}/html \
+ --with-pid-dir=/var/run \
+ --sysconfdir=/etc/bacula \
+ --with-subsys-dir=/var/lock/subsys \
+ --with-working-dir=/var/lib/bacula \
+ --with-logdir=/var/lib/bacula \
+ --with-scriptdir=/usr/libexec/bacula \
+ --with-systemd=$(systemd_get_unitdir) \
+ --with-dir-user=bacula \
+ --with-dir-group=bacula \
+ --with-sd-user=root \
+ --with-sd-group=bacula \
+ --with-fd-user=root \
+ --with-fd-group=bacula \
+ --enable-smartalloc \
+ --disable-afs \
+ --host=${CHOST} \
+ ${myconf}
+ # correct configuration for QT based bat
+ if use qt4 ; then
+ pushd src/qt-console
+ eqmake4
+ popd
+ fi
+}
+
+src_compile() {
+ # Make build log verbose (bug #447806)
+ emake NO_ECHO=""
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ doicon scripts/bacula.png
+
+ # install bat icon and desktop file when enabled
+ # (for some reason ./configure doesn't pick this up)
+ if use qt4 && ! use static ; then
+ doicon src/qt-console/images/bat_icon.png
+ domenu scripts/bat.desktop
+ fi
+
+ # remove some scripts we don't need at all
+ rm -f "${D}"/usr/libexec/bacula/{bacula,bacula-ctl-dir,bacula-ctl-fd,bacula-ctl-sd,startmysql,stopmysql}
+
+ # rename statically linked apps
+ if use bacula-clientonly && use static ; then
+ pushd "${D}"/usr/sbin || die
+ mv static-bacula-fd bacula-fd || die
+ mv static-bconsole bconsole || die
+ popd || die
+ fi
+
+ # extra files which 'make install' doesn't cover
+ if ! use bacula-clientonly; then
+ # the database update scripts
+ diropts -m0750
+ insinto /usr/libexec/bacula/updatedb
+ insopts -m0754
+ doins "${S}"/updatedb/*
+ fperms 0640 /usr/libexec/bacula/updatedb/README
+
+ # the logrotate configuration
+ # (now unconditional wrt bug #258187)
+ diropts -m0755
+ insinto /etc/logrotate.d
+ insopts -m0644
+ newins "${S}"/scripts/logrotate bacula
+
+ # the logwatch scripts
+ if use logwatch; then
+ diropts -m0750
+ dodir /etc/log.d/scripts/services
+ dodir /etc/log.d/scripts/shared
+ dodir /etc/log.d/conf/logfiles
+ dodir /etc/log.d/conf/services
+ pushd "${S}"/scripts/logwatch >&/dev/null || die
+ emake DESTDIR="${D}" install
+ popd >&/dev/null || die
+ fi
+ fi
+
+ rm -vf "${D}"/usr/share/man/man1/bacula-bwxconsole.1*
+ if ! use qt4; then
+ rm -vf "${D}"/usr/share/man/man1/bat.1*
+ fi
+ rm -vf "${D}"/usr/share/man/man1/bacula-tray-monitor.1*
+ if use bacula-clientonly || use bacula-nodir; then
+ rm -vf "${D}"/usr/share/man/man8/bacula-dir.8*
+ rm -vf "${D}"/usr/share/man/man8/dbcheck.8*
+ rm -vf "${D}"/usr/share/man/man1/bsmtp.1*
+ rm -vf "${D}"/usr/libexec/bacula/create_*_database
+ rm -vf "${D}"/usr/libexec/bacula/drop_*_database
+ rm -vf "${D}"/usr/libexec/bacula/make_*_tables
+ rm -vf "${D}"/usr/libexec/bacula/update_*_tables
+ rm -vf "${D}"/usr/libexec/bacula/drop_*_tables
+ rm -vf "${D}"/usr/libexec/bacula/grant_*_privileges
+ rm -vf "${D}"/usr/libexec/bacula/*_catalog_backup
+ fi
+ if use bacula-clientonly || use bacula-nosd; then
+ rm -vf "${D}"/usr/share/man/man8/bacula-sd.8*
+ rm -vf "${D}"/usr/share/man/man8/bcopy.8*
+ rm -vf "${D}"/usr/share/man/man8/bextract.8*
+ rm -vf "${D}"/usr/share/man/man8/bls.8*
+ rm -vf "${D}"/usr/share/man/man8/bscan.8*
+ rm -vf "${D}"/usr/share/man/man8/btape.8*
+ rm -vf "${D}"/usr/libexec/bacula/disk-changer
+ rm -vf "${D}"/usr/libexec/bacula/mtx-changer
+ rm -vf "${D}"/usr/libexec/bacula/dvd-handler
+ fi
+
+ # documentation
+ dodoc ChangeLog ReleaseNotes SUPPORT technotes
+
+ # install examples (bug #457504)
+ if use examples; then
+ docinto examples/
+ dodoc -r examples/*
+ fi
+
+ # vim-files
+ if use vim-syntax; then
+ insinto /usr/share/vim/vimfiles/syntax
+ doins scripts/bacula.vim
+ insinto /usr/share/vim/vimfiles/ftdetect
+ newins scripts/filetype.vim bacula_ft.vim
+ fi
+
+ # setup init scripts
+ myscripts="bacula-fd"
+ if ! use bacula-clientonly; then
+ if ! use bacula-nodir; then
+ myscripts="${myscripts} bacula-dir"
+ fi
+ if ! use bacula-nosd; then
+ myscripts="${myscripts} bacula-sd"
+ fi
+ fi
+ for script in ${myscripts}; do
+ # copy over init script and config to a temporary location
+ # so we can modify them as needed
+ cp "${FILESDIR}/${script}".confd "${T}/${script}".confd || die "failed to copy ${script}.confd"
+ cp "${FILESDIR}/${script}".initd "${T}/${script}".initd || die "failed to copy ${script}.initd"
+
+ # now set the database dependancy for the director init script
+ case "${script}" in
+ bacula-dir)
+ case "${mydbtype}" in
+ sqlite3)
+ # sqlite databases don't have a daemon
+ sed -i -e 's/need "%database%"/:/g' "${T}/${script}".initd || die
+ ;;
+ *)
+ # all other databases have daemons
+ sed -i -e "s:%database%:${mydbtype}:" "${T}/${script}".initd || die
+ ;;
+ esac
+ ;;
+ *)
+ ;;
+ esac
+
+ # install init script and config
+ newinitd "${T}/${script}".initd "${script}"
+ newconfd "${T}/${script}".confd "${script}"
+ done
+
+ systemd_dounit "${S}"/platforms/systemd/bacula-{dir,fd,sd}.service
+ systemd_dotmpfilesd "${S}"/platforms/systemd/bacula.conf
+
+ # make sure the working directory exists
+ diropts -m0750
+ keepdir /var/lib/bacula
+
+ # make sure bacula group can execute bacula libexec scripts
+ fowners -R root:bacula /usr/libexec/bacula
+}
+
+pkg_postinst() {
+ if use bacula-clientonly; then
+ fowners root:bacula /var/lib/bacula
+ else
+ fowners bacula:bacula /var/lib/bacula
+ fi
+
+ if ! use bacula-clientonly && ! use bacula-nodir; then
+ einfo
+ einfo "If this is a new install, you must create the ${mydbtype} databases with:"
+ einfo " /usr/libexec/bacula/create_${mydbtype}_database"
+ einfo " /usr/libexec/bacula/make_${mydbtype}_tables"
+ einfo " /usr/libexec/bacula/grant_${mydbtype}_privileges"
+ einfo
+ fi
+
+ if use sqlite; then
+ einfo
+ einfo "Be aware that Bacula does not officially support SQLite database anymore."
+ einfo "Best use it only for a client-only installation. See Bug #445540."
+ einfo
+ fi
+
+ einfo "Please note that 'bconsole' will always be installed. To compile 'bat'"
+ einfo "you have to enable 'USE=qt4'."
+ einfo
+}
diff --git a/app-backup/bacula/bacula-7.0.5-r1.ebuild b/app-backup/bacula/bacula-7.0.5-r1.ebuild
new file mode 100644
index 000000000000..e4f77ed0bfb5
--- /dev/null
+++ b/app-backup/bacula/bacula-7.0.5-r1.ebuild
@@ -0,0 +1,403 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+inherit eutils multilib qt4-r2 systemd user libtool
+
+MY_PV=${PV/_beta/-b}
+MY_P=${PN}-${MY_PV}
+
+DESCRIPTION="Featureful client/server network backup suite"
+HOMEPAGE="http://www.bacula.org/"
+SRC_URI="mirror://sourceforge/bacula/${MY_P}.tar.gz"
+
+LICENSE="AGPL-3"
+SLOT="0"
+KEYWORDS="amd64 ppc sparc x86"
+IUSE="acl bacula-clientonly bacula-nodir bacula-nosd examples ipv6 logwatch mysql postgres qt4 readline +sqlite ssl static tcpd vim-syntax X"
+
+DEPEND="
+ dev-libs/gmp
+ !bacula-clientonly? (
+ postgres? ( dev-db/postgresql[threads] )
+ mysql? ( virtual/mysql )
+ sqlite? ( dev-db/sqlite:3 )
+ !bacula-nodir? ( virtual/mta )
+ )
+ qt4? (
+ dev-qt/qtsvg:4
+ x11-libs/qwt:5
+ )
+ logwatch? ( sys-apps/logwatch )
+ tcpd? ( >=sys-apps/tcp-wrappers-7.6 )
+ readline? ( >=sys-libs/readline-4.1 )
+ static? (
+ acl? ( virtual/acl[static-libs] )
+ sys-libs/zlib[static-libs]
+ dev-libs/lzo[static-libs]
+ sys-libs/ncurses[static-libs]
+ ssl? ( dev-libs/openssl[static-libs] )
+ )
+ !static? (
+ acl? ( virtual/acl )
+ sys-libs/zlib
+ dev-libs/lzo
+ sys-libs/ncurses
+ ssl? ( dev-libs/openssl )
+ )"
+RDEPEND="${DEPEND}
+ !bacula-clientonly? (
+ !bacula-nosd? (
+ sys-block/mtx
+ app-arch/mt-st
+ )
+ )
+ vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )"
+
+REQUIRED_USE="|| ( ^^ ( mysql postgres sqlite ) bacula-clientonly )
+ static? ( bacula-clientonly )"
+
+S=${WORKDIR}/${MY_P}
+
+pkg_setup() {
+ #XOR and !bacula-clientonly controlled by REQUIRED_USE
+ use mysql && export mydbtype="mysql"
+ use postgres && export mydbtype="postgresql"
+ use sqlite && export mydbtype="sqlite3"
+
+ # create the daemon group and user
+ if [ -z "$(egetent group bacula 2>/dev/null)" ]; then
+ enewgroup bacula
+ einfo
+ einfo "The group 'bacula' has been created. Any users you add to this"
+ einfo "group have access to files created by the daemons."
+ einfo
+ fi
+
+ if use bacula-clientonly && use static && use qt4; then
+ ewarn
+ ewarn "Building statically linked 'bat' is not supported. Ignorig 'qt4' useflag."
+ ewarn
+ fi
+
+ if ! use bacula-clientonly; then
+ if [ -z "$(egetent passwd bacula 2>/dev/null)" ]; then
+ enewuser bacula -1 -1 /var/lib/bacula bacula,disk,tape,cdrom,cdrw
+ einfo
+ einfo "The user 'bacula' has been created. Please see the bacula manual"
+ einfo "for information about running bacula as a non-root user."
+ einfo
+ fi
+ fi
+}
+
+src_prepare() {
+ # adjusts default configuration files for several binaries
+ # to /etc/bacula/<config> instead of ./<config>
+ pushd src >&/dev/null || die
+ for f in console/console.c dird/dird.c filed/filed.c \
+ stored/bcopy.c stored/bextract.c stored/bls.c \
+ stored/bscan.c stored/btape.c stored/stored.c \
+ qt-console/main.cpp; do
+ sed -i -e 's|^\(#define CONFIG_FILE "\)|\1/etc/bacula/|g' "${f}" \
+ || die "sed on ${f} failed"
+ done
+ popd >&/dev/null || die
+
+ # bug 466688 drop deprecated categories from Desktop file
+ sed -i -e 's/Application;//' scripts/bat.desktop.in || die
+
+ # bug 466690 Use CXXFLAGS instead of CFLAGS
+ sed -i -e 's/@CFLAGS@/@CXXFLAGS@/' autoconf/Make.common.in || die
+
+ # drop automatic install of unneeded documentation (for bug 356499)
+ epatch "${FILESDIR}"/5.2.3/${PN}-5.2.3-doc.patch
+
+ # bug #310087
+ epatch "${FILESDIR}"/5.2.3/${PN}-5.2.3-as-needed.patch
+
+ # bug #311161
+ epatch "${FILESDIR}"/5.2.3/${PN}-5.2.3-lib-search-path.patch
+
+ # bat needs to respect LDFLAGS
+ epatch "${FILESDIR}"/5.2.3/${PN}-5.2.3-ldflags.patch
+
+ # bug #328701
+ epatch "${FILESDIR}"/5.2.3/${PN}-5.2.3-openssl-1.patch
+
+ epatch "${FILESDIR}"/7.0.2/${PN}-7.0.2-fix-static.patch
+
+ # do not strip binaries
+ sed -i -e "s/strip /# strip /" src/filed/Makefile.in || die
+ sed -i -e "s/strip /# strip /" src/console/Makefile.in || die
+
+ # fix file not found error during make depend
+ epatch "${FILESDIR}"/7.0.2/${PN}-7.0.2-depend.patch
+
+ # Fix systemd unit files:
+ # bug 497748
+ sed -i -e '/Requires/d' platforms/systemd/*.service.in || die
+ sed -i -e '/StandardOutput/d' platforms/systemd/*.service.in || die
+ # bug 504370
+ sed -i -e '/Alias=bacula-dir/d' platforms/systemd/bacula-dir.service.in || die
+
+ # Fix tmpfiles config for client-only (no bacula user) install
+ # NOTE: Change only first occurance (user) not second (group)
+ # bug 528398
+ if use bacula-clientonly; then
+ sed -i -e 's/bacula/root/' platforms/systemd/bacula.conf.in || die
+ fi
+
+ # fix bundled libtool (bug 466696)
+ # But first move directory with M4 macros out of the way.
+ # It is only needed by i autoconf and gives errors during elibtoolize.
+ mv autoconf/libtool autoconf/libtool1 || die
+ elibtoolize
+}
+
+src_configure() {
+ local myconf=''
+
+ if use bacula-clientonly; then
+ myconf="${myconf} \
+ $(use_enable bacula-clientonly client-only) \
+ $(use_enable !static libtool) \
+ $(use_enable static static-cons) \
+ $(use_enable static static-fd)"
+ else
+ myconf="${myconf} \
+ $(use_enable !bacula-nodir build-dird) \
+ $(use_enable !bacula-nosd build-stored)"
+ # bug #311099
+ # database support needed by dir-only *and* sd-only
+ # build as well (for building bscan, btape, etc.)
+ myconf="${myconf} \
+ --with-${mydbtype} \
+ --enable-batch-insert"
+ fi
+
+ # do not build bat if 'static' clientonly
+ if ! use bacula-clientonly || ! use static; then
+ myconf="${myconf} \
+ $(use_enable qt4 bat)"
+ fi
+
+ myconf="${myconf} \
+ $(use_with X x) \
+ $(use_enable !readline conio) \
+ $(use_enable readline) \
+ $(use_with readline readline /usr) \
+ $(use_with ssl openssl) \
+ $(use_enable ipv6) \
+ $(use_enable acl) \
+ $(use_with tcpd tcp-wrappers)"
+
+ econf \
+ --libdir=/usr/$(get_libdir) \
+ --docdir=/usr/share/doc/${PF} \
+ --htmldir=/usr/share/doc/${PF}/html \
+ --with-pid-dir=/var/run \
+ --sysconfdir=/etc/bacula \
+ --with-subsys-dir=/var/lock/subsys \
+ --with-working-dir=/var/lib/bacula \
+ --with-logdir=/var/lib/bacula \
+ --with-scriptdir=/usr/libexec/bacula \
+ --with-systemd=$(systemd_get_unitdir) \
+ --with-dir-user=bacula \
+ --with-dir-group=bacula \
+ --with-sd-user=root \
+ --with-sd-group=bacula \
+ --with-fd-user=root \
+ --with-fd-group=bacula \
+ --enable-smartalloc \
+ --disable-afs \
+ --host=${CHOST} \
+ ${myconf}
+ # correct configuration for QT based bat
+ if use qt4 ; then
+ pushd src/qt-console
+ eqmake4
+ popd
+ fi
+}
+
+src_compile() {
+ # Make build log verbose (bug #447806)
+ emake NO_ECHO=""
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ doicon scripts/bacula.png
+
+ # install bat icon and desktop file when enabled
+ # (for some reason ./configure doesn't pick this up)
+ if use qt4 && ! use static ; then
+ doicon src/qt-console/images/bat_icon.png
+ domenu scripts/bat.desktop
+ fi
+
+ # remove some scripts we don't need at all
+ rm -f "${D}"/usr/libexec/bacula/{bacula,bacula-ctl-dir,bacula-ctl-fd,bacula-ctl-sd,startmysql,stopmysql}
+
+ # rename statically linked apps
+ if use bacula-clientonly && use static ; then
+ pushd "${D}"/usr/sbin || die
+ mv static-bacula-fd bacula-fd || die
+ mv static-bconsole bconsole || die
+ popd || die
+ fi
+
+ # extra files which 'make install' doesn't cover
+ if ! use bacula-clientonly; then
+ # the database update scripts
+ diropts -m0750
+ insinto /usr/libexec/bacula/updatedb
+ insopts -m0754
+ doins "${S}"/updatedb/*
+ fperms 0640 /usr/libexec/bacula/updatedb/README
+
+ # the logrotate configuration
+ # (now unconditional wrt bug #258187)
+ diropts -m0755
+ insinto /etc/logrotate.d
+ insopts -m0644
+ newins "${S}"/scripts/logrotate bacula
+
+ # the logwatch scripts
+ if use logwatch; then
+ diropts -m0750
+ dodir /etc/log.d/scripts/services
+ dodir /etc/log.d/scripts/shared
+ dodir /etc/log.d/conf/logfiles
+ dodir /etc/log.d/conf/services
+ pushd "${S}"/scripts/logwatch >&/dev/null || die
+ emake DESTDIR="${D}" install
+ popd >&/dev/null || die
+ fi
+ fi
+
+ if ! use qt4; then
+ rm -vf "${D}"/usr/share/man/man1/bat.1*
+ fi
+ rm -vf "${D}"/usr/share/man/man1/bacula-tray-monitor.1*
+ if use bacula-clientonly || use bacula-nodir; then
+ rm -vf "${D}"/usr/share/man/man8/bacula-dir.8*
+ rm -vf "${D}"/usr/share/man/man8/dbcheck.8*
+ rm -vf "${D}"/usr/share/man/man1/bsmtp.1*
+ rm -vf "${D}"/usr/libexec/bacula/create_*_database
+ rm -vf "${D}"/usr/libexec/bacula/drop_*_database
+ rm -vf "${D}"/usr/libexec/bacula/make_*_tables
+ rm -vf "${D}"/usr/libexec/bacula/update_*_tables
+ rm -vf "${D}"/usr/libexec/bacula/drop_*_tables
+ rm -vf "${D}"/usr/libexec/bacula/grant_*_privileges
+ rm -vf "${D}"/usr/libexec/bacula/*_catalog_backup
+ fi
+ if use bacula-clientonly || use bacula-nosd; then
+ rm -vf "${D}"/usr/share/man/man8/bacula-sd.8*
+ rm -vf "${D}"/usr/share/man/man8/bcopy.8*
+ rm -vf "${D}"/usr/share/man/man8/bextract.8*
+ rm -vf "${D}"/usr/share/man/man8/bls.8*
+ rm -vf "${D}"/usr/share/man/man8/bscan.8*
+ rm -vf "${D}"/usr/share/man/man8/btape.8*
+ rm -vf "${D}"/usr/libexec/bacula/disk-changer
+ rm -vf "${D}"/usr/libexec/bacula/mtx-changer
+ rm -vf "${D}"/usr/libexec/bacula/dvd-handler
+ fi
+
+ # documentation
+ dodoc ChangeLog ReleaseNotes SUPPORT technotes
+
+ # install examples (bug #457504)
+ if use examples; then
+ docinto examples/
+ dodoc -r examples/*
+ fi
+
+ # vim-files
+ if use vim-syntax; then
+ insinto /usr/share/vim/vimfiles/syntax
+ doins scripts/bacula.vim
+ insinto /usr/share/vim/vimfiles/ftdetect
+ newins scripts/filetype.vim bacula_ft.vim
+ fi
+
+ # setup init scripts
+ myscripts="bacula-fd"
+ if ! use bacula-clientonly; then
+ if ! use bacula-nodir; then
+ myscripts="${myscripts} bacula-dir"
+ fi
+ if ! use bacula-nosd; then
+ myscripts="${myscripts} bacula-sd"
+ fi
+ fi
+ for script in ${myscripts}; do
+ # copy over init script and config to a temporary location
+ # so we can modify them as needed
+ cp "${FILESDIR}/${script}".confd "${T}/${script}".confd || die "failed to copy ${script}.confd"
+ cp "${FILESDIR}/${script}".initd "${T}/${script}".initd || die "failed to copy ${script}.initd"
+
+ # now set the database dependancy for the director init script
+ case "${script}" in
+ bacula-dir)
+ case "${mydbtype}" in
+ sqlite3)
+ # sqlite databases don't have a daemon
+ sed -i -e 's/need "%database%"/:/g' "${T}/${script}".initd || die
+ ;;
+ *)
+ # all other databases have daemons
+ sed -i -e "s:%database%:${mydbtype}:" "${T}/${script}".initd || die
+ ;;
+ esac
+ ;;
+ *)
+ ;;
+ esac
+
+ # install init script and config
+ newinitd "${T}/${script}".initd "${script}"
+ newconfd "${T}/${script}".confd "${script}"
+ done
+
+ systemd_dounit "${S}"/platforms/systemd/bacula-{dir,fd,sd}.service
+ systemd_dotmpfilesd "${S}"/platforms/systemd/bacula.conf
+
+ # make sure the working directory exists
+ diropts -m0750
+ keepdir /var/lib/bacula
+
+ # make sure bacula group can execute bacula libexec scripts
+ fowners -R root:bacula /usr/libexec/bacula
+}
+
+pkg_postinst() {
+ if use bacula-clientonly; then
+ fowners root:bacula /var/lib/bacula
+ else
+ fowners bacula:bacula /var/lib/bacula
+ fi
+
+ if ! use bacula-clientonly && ! use bacula-nodir; then
+ einfo
+ einfo "If this is a new install, you must create the ${mydbtype} databases with:"
+ einfo " /usr/libexec/bacula/create_${mydbtype}_database"
+ einfo " /usr/libexec/bacula/make_${mydbtype}_tables"
+ einfo " /usr/libexec/bacula/grant_${mydbtype}_privileges"
+ einfo
+ fi
+
+ if use sqlite; then
+ einfo
+ einfo "Be aware that Bacula does not officially support SQLite database anymore."
+ einfo "Best use it only for a client-only installation. See Bug #445540."
+ einfo
+ fi
+
+ einfo "Please note that 'bconsole' will always be installed. To compile 'bat'"
+ einfo "you have to enable 'USE=qt4'."
+ einfo
+}
diff --git a/app-backup/bacula/files/5.0.3/bacula-5.0.3-Makefile.patch b/app-backup/bacula/files/5.0.3/bacula-5.0.3-Makefile.patch
new file mode 100644
index 000000000000..feab6048812d
--- /dev/null
+++ b/app-backup/bacula/files/5.0.3/bacula-5.0.3-Makefile.patch
@@ -0,0 +1,26 @@
+--- Makefile.in.orig 2010-07-20 16:53:44.000000000 +0000
++++ Makefile.in 2010-07-20 16:55:50.000000000 +0000
+@@ -44,9 +44,8 @@
+
+ all: Makefile
+ @for I in ${all_subdirs}; \
+- do (cd $$I; echo "==>Entering directory `pwd`"; \
+- $(MAKE) DESTDIR=$(DESTDIR) $@ || (echo ""; echo ""; echo " ====== Error in `pwd` ======"; \
+- echo ""; echo ""; exit 1;)); \
++ do \
++ $(MAKE) DESTDIR=$(DESTDIR) -C $$I $@ || exit 1; \
+ done
+
+ depend:
+@@ -55,9 +54,8 @@
+
+ bacula-fd: Makefile
+ @for I in ${fd_subdirs}; \
+- do (cd $$I; echo "==>Entering directory `pwd`"; \
+- $(MAKE) DESTDIR=$(DESTDIR) all || (echo ""; echo ""; echo " ====== Error in `pwd` ======"; \
+- echo ""; echo ""; exit 1;)); \
++ do \
++ $(MAKE) DESTDIR=$(DESTDIR) -C $$I all || exit 1; \
+ done
+
+ #-------------------------------------------------------------------------
diff --git a/app-backup/bacula/files/5.0.3/bacula-5.0.3-as-needed.patch b/app-backup/bacula/files/5.0.3/bacula-5.0.3-as-needed.patch
new file mode 100644
index 000000000000..3603e936bbdc
--- /dev/null
+++ b/app-backup/bacula/files/5.0.3/bacula-5.0.3-as-needed.patch
@@ -0,0 +1,33 @@
+diff -urN bacula-5.0.3.orig/src/findlib/Makefile.in bacula-5.0.3/src/findlib/Makefile.in
+--- bacula-5.0.3.orig/src/findlib/Makefile.in 2010-02-24 16:33:48.000000000 +0100
++++ bacula-5.0.3/src/findlib/Makefile.in 2010-03-22 17:37:43.772805754 +0100
+@@ -59,7 +59,7 @@
+
+ libbacfind.la: Makefile $(LIBBACFIND_LOBJS)
+ @echo "Making $@ ..."
+- $(LIBTOOL_LINK) $(CXX) $(DEFS) $(DEBUG) $(LDFLAGS) -o $@ $(LIBBACFIND_LOBJS) -export-dynamic -rpath $(libdir) -release $(LIBBACFIND_LT_RELEASE)
++ $(LIBTOOL_LINK) $(CXX) $(DEFS) $(DEBUG) $(LDFLAGS) -o $@ $(LIBBACFIND_LOBJS) -export-dynamic -rpath $(libdir) -release $(LIBBACFIND_LT_RELEASE) -L../lib -lbac $(LIBS) $(OPENSSL_LIBS)
+
+ Makefile: $(srcdir)/Makefile.in $(topdir)/config.status
+ cd $(topdir) \
+diff -urN bacula-5.0.1.orig/src/lib/Makefile.in bacula-5.0.1/src/lib/Makefile.in
+--- bacula-5.0.1.orig/src/lib/Makefile.in 2010-02-24 16:33:48.000000000 +0100
++++ bacula-5.0.1/src/lib/Makefile.in 2010-03-22 17:37:05.352226188 +0100
+@@ -126,7 +126,7 @@
+
+ libbac.la: Makefile $(LIBBAC_LOBJS)
+ @echo "Making $@ ..."
+- $(LIBTOOL_LINK) $(CXX) $(DEFS) $(DEBUG) $(LDFLAGS) -o $@ $(LIBBAC_LOBJS) -export-dynamic -rpath $(libdir) -release $(LIBBAC_LT_RELEASE) $(WRAPLIBS) $(CAP_LIBS) $(ZLIBS)
++ $(LIBTOOL_LINK) $(CXX) $(DEFS) $(DEBUG) $(LDFLAGS) -o $@ $(LIBBAC_LOBJS) -export-dynamic -rpath $(libdir) -release $(LIBBAC_LT_RELEASE) $(WRAPLIBS) $(CAP_LIBS) $(ZLIBS) $(LIBS) $(OPENSSL_LIBS)
+
+ libbaccfg.a: $(LIBBACCFG_OBJS)
+ @echo "Making $@ ..."
+@@ -135,7 +135,7 @@
+
+ libbaccfg.la: Makefile $(LIBBACCFG_LOBJS)
+ @echo "Making $@ ..."
+- $(LIBTOOL_LINK) $(CXX) $(DEFS) $(DEBUG) $(LDFLAGS) -o $@ $(LIBBACCFG_LOBJS) -export-dynamic -rpath $(libdir) -release $(LIBBACCFG_LT_RELEASE)
++ $(LIBTOOL_LINK) $(CXX) $(DEFS) $(DEBUG) $(LDFLAGS) -o $@ $(LIBBACCFG_LOBJS) -export-dynamic -rpath $(libdir) -release $(LIBBACCFG_LT_RELEASE) $(LIBS) $(OPENSSL_LIBS)
+
+ libbacpy.a: $(LIBBACPY_OBJS)
+ @echo "Making $@ ..."
diff --git a/app-backup/bacula/files/5.0.3/bacula-5.0.3-cve.patch b/app-backup/bacula/files/5.0.3/bacula-5.0.3-cve.patch
new file mode 100644
index 000000000000..394db6e0ea88
--- /dev/null
+++ b/app-backup/bacula/files/5.0.3/bacula-5.0.3-cve.patch
@@ -0,0 +1,125 @@
+From 67debcecd3d530c429e817e1d778e79dcd1db905 Mon Sep 17 00:00:00 2001
+From: Kern Sibbald <kern@sibbald.com>
+Date: Sat, 18 Aug 2012 13:46:03 +0000
+Subject: Make dump_resource respect console ACL's
+
+---
+diff --git a/bacula/src/dird/dird_conf.c b/bacula/src/dird/dird_conf.c
+index 7dcf591..2f2eb00 100644
+--- a/bacula/src/dird/dird_conf.c
++++ b/bacula/src/dird/dird_conf.c
+@@ -554,6 +554,7 @@ void dump_resource(int type, RES *reshdr, void sendit(void *sock, const char *fm
+ bool recurse = true;
+ char ed1[100], ed2[100], ed3[100];
+ DEVICE *dev;
++ UAContext *ua = (UAContext *)sock;
+
+ if (res == NULL) {
+ sendit(sock, _("No %s resource defined\n"), res_to_str(type));
+@@ -599,6 +600,9 @@ void dump_resource(int type, RES *reshdr, void sendit(void *sock, const char *fm
+ break;
+
+ case R_CLIENT:
++ if (!acl_access_ok(ua, Client_ACL, res->res_client.hdr.name)) {
++ break;
++ }
+ sendit(sock, _("Client: name=%s address=%s FDport=%d MaxJobs=%u\n"),
+ res->res_client.hdr.name, res->res_client.address, res->res_client.FDport,
+ res->res_client.MaxConcurrentJobs);
+@@ -626,6 +630,9 @@ void dump_resource(int type, RES *reshdr, void sendit(void *sock, const char *fm
+ break;
+
+ case R_STORAGE:
++ if (!acl_access_ok(ua, Storage_ACL, res->res_store.hdr.name)) {
++ break;
++ }
+ sendit(sock, _("Storage: name=%s address=%s SDport=%d MaxJobs=%u\n"
+ " DeviceName=%s MediaType=%s StorageId=%s\n"),
+ res->res_store.hdr.name, res->res_store.address, res->res_store.SDport,
+@@ -636,6 +643,9 @@ void dump_resource(int type, RES *reshdr, void sendit(void *sock, const char *fm
+ break;
+
+ case R_CATALOG:
++ if (!acl_access_ok(ua, Catalog_ACL, res->res_cat.hdr.name)) {
++ break;
++ }
+ sendit(sock, _("Catalog: name=%s address=%s DBport=%d db_name=%s\n"
+ " db_driver=%s db_user=%s MutliDBConn=%d\n"),
+ res->res_cat.hdr.name, NPRT(res->res_cat.db_address),
+@@ -646,6 +656,9 @@ void dump_resource(int type, RES *reshdr, void sendit(void *sock, const char *fm
+
+ case R_JOB:
+ case R_JOBDEFS:
++ if (!acl_access_ok(ua, Job_ACL, res->res_job.hdr.name)) {
++ break;
++ }
+ sendit(sock, _("%s: name=%s JobType=%d level=%s Priority=%d Enabled=%d\n"),
+ type == R_JOB ? _("Job") : _("JobDefs"),
+ res->res_job.hdr.name, res->res_job.JobType,
+@@ -767,6 +780,9 @@ void dump_resource(int type, RES *reshdr, void sendit(void *sock, const char *fm
+ case R_FILESET:
+ {
+ int i, j, k;
++ if (!acl_access_ok(ua, FileSet_ACL, res->res_fs.hdr.name)) {
++ break;
++ }
+ sendit(sock, _("FileSet: name=%s\n"), res->res_fs.hdr.name);
+ for (i=0; i<res->res_fs.num_includes; i++) {
+ INCEXE *incexe = res->res_fs.include_items[i];
+@@ -854,6 +870,9 @@ void dump_resource(int type, RES *reshdr, void sendit(void *sock, const char *fm
+ }
+
+ case R_SCHEDULE:
++ if (!acl_access_ok(ua, Schedule_ACL, res->res_sch.hdr.name)) {
++ break;
++ }
+ if (res->res_sch.run) {
+ int i;
+ RUN *run = res->res_sch.run;
+@@ -942,6 +961,9 @@ next_run:
+ break;
+
+ case R_POOL:
++ if (!acl_access_ok(ua, Pool_ACL, res->res_pool.hdr.name)) {
++ break;
++ }
+ sendit(sock, _("Pool: name=%s PoolType=%s\n"), res->res_pool.hdr.name,
+ res->res_pool.pool_type);
+ sendit(sock, _(" use_cat=%d use_once=%d cat_files=%d\n"),
+--
+From 2be20d549211f7984156674116f9239acf6d79bd Mon Sep 17 00:00:00 2001
+From: Kern Sibbald <kern@sibbald.com>
+Date: Sun, 19 Aug 2012 06:33:15 +0000
+Subject: Fix Makefile.in so that testfind builds with acl dependency
+
+---
+diff --git a/bacula/src/tools/Makefile.in b/bacula/src/tools/Makefile.in
+index 0c3f305..5731140 100644
+--- a/bacula/src/tools/Makefile.in
++++ b/bacula/src/tools/Makefile.in
+@@ -29,12 +29,12 @@ dummy:
+
+ GETTEXT_LIBS = @LIBINTL@
+
+-FINDOBJS = testfind.o ../dird/dird_conf.o ../dird/inc_conf.o ../dird/run_conf.o
++FINDOBJS = testfind.o ../dird/dird_conf.o ../dird/inc_conf.o ../dird/ua_acl.o ../dird/run_conf.o
+
+ # these are the objects that are changed by the .configure process
+ EXTRAOBJS = @OBJLIST@
+
+-DIRCONFOBJS = ../dird/dird_conf.o ../dird/run_conf.o ../dird/inc_conf.o
++DIRCONFOBJS = ../dird/dird_conf.o ../dird/ua_acl.o ../dird/run_conf.o ../dird/inc_conf.o
+
+ NODIRTOOLS = bsmtp
+ DIRTOOLS = bsmtp dbcheck drivetype fstype testfind testls bregex bwild bbatch bregtest bvfs_test ing_test
+@@ -79,6 +79,9 @@ drivetype: Makefile drivetype.o ../lib/libbac$(DEFAULT_ARCHIVE_TYPE) ../findlib/
+ dird_conf.o: ../dird/dird_conf.c
+ $(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) $(PYTHON_INC) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) $<
+
++ua_acl.o: ../dird/ua_acl.c
++ $(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) $(PYTHON_INC) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) $<
++
+ run_conf.o: ../dird/run_conf.c
+ $(CXX) $(DEFS) $(DEBUG) -c $(CPPFLAGS) $(PYTHON_INC) -I$(srcdir) -I$(basedir) $(DINCLUDE) $(CFLAGS) $<
+
+--
diff --git a/app-backup/bacula/files/5.0.3/bacula-5.0.3-doc.patch b/app-backup/bacula/files/5.0.3/bacula-5.0.3-doc.patch
new file mode 100644
index 000000000000..98c6e6ce34be
--- /dev/null
+++ b/app-backup/bacula/files/5.0.3/bacula-5.0.3-doc.patch
@@ -0,0 +1,13 @@
+# drop automatic installation of doc files
+--- Makefile.in.orig 2011-02-26 09:05:21.000000000 +0000
++++ Makefile.in 2011-02-26 09:06:01.000000000 +0000
+@@ -34,8 +34,7 @@
+ autoconf/config.h.in autoconf/acconfig.h autoconf/Make.common.in \
+ autoconf/install-sh autoconf/mkinstalldirs
+
+-doc_files = VERIFYING technotes ChangeLog README ReleaseNotes LICENSE \
+- INSTALL
++doc_files =
+
+ MKDIR = $(srcdir)/autoconf/mkinstalldirs
+ LIBTOOL_DEPS = @LIBTOOL_DEPS@
diff --git a/app-backup/bacula/files/5.0.3/bacula-5.0.3-fix-static.patch b/app-backup/bacula/files/5.0.3/bacula-5.0.3-fix-static.patch
new file mode 100644
index 000000000000..d33a618ad835
--- /dev/null
+++ b/app-backup/bacula/files/5.0.3/bacula-5.0.3-fix-static.patch
@@ -0,0 +1,47 @@
+--- src/console/Makefile.in.orig 2010-12-28 16:01:28.000000000 +0000
++++ src/console/Makefile.in 2010-12-28 16:02:19.000000000 +0000
+@@ -31,6 +31,7 @@
+ CONS_INC=@CONS_INC@
+ CONS_LIBS=@CONS_LIBS@
+ CONS_LDFLAGS=@CONS_LDFLAGS@
++ZLIBS=@ZLIBS@
+
+ .SUFFIXES: .c .o
+ .PHONY:
+@@ -48,13 +48,12 @@
+
+ bconsole: Makefile $(CONSOBJS) ../lib/libbac$(DEFAULT_ARCHIVE_TYPE) ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE)
+ $(LIBTOOL_LINK) $(CXX) -L../lib -L../cats $(LDFLAGS) $(CONS_LDFLAGS) -o $@ $(CONSOBJS) \
+- $(DLIB) $(CONS_LIBS) -lbaccfg -lbac -lm $(LIBS) $(GETTEXT_LIBS) \
+- $(OPENSSL_LIBS)
++ $(DLIB) $(CONS_LIBS) -lbaccfg -lbac -lm $(ZLIBS) $(GETTEXT_LIBS) \
++ $(OPENSSL_LIBS) $(LIBS)
+
+ static-bconsole: Makefile $(CONSOBJS) ../lib/libbac.a ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE)
+ $(LIBTOOL_LINK) $(CXX) -static $(LDFLAGS) $(CONS_LDFLAGS) -L../lib -L../cats -o $@ $(CONSOBJS) \
+- $(DLIB) $(CONS_LIBS) -lbaccfg -lbac -lm $(LIBS) $(GETTEXT_LIBS) \
+- $(OPENSSL_LIBS)
+- strip $@
++ $(DLIB) $(CONS_LIBS) -lbaccfg -lbac -lm $(ZLIBS) $(GETTEXT_LIBS) \
++ $(OPENSSL_LIBS) $(LIBS)
+
+
+--- src/filed/Makefile.in.orig 2010-12-28 16:19:34.000000000 +0000
++++ src/filed/Makefile.in 2010-12-28 16:26:28.000000000 +0000
+@@ -94,13 +94,12 @@
+ bacula-fd: Makefile $(SVROBJS) ../findlib/libbacfind$(DEFAULT_ARCHIVE_TYPE) ../lib/libbacpy$(DEFAULT_ARCHIVE_TYPE) ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE) ../lib/libbac$(DEFAULT_ARCHIVE_TYPE) @WIN32@
+ @echo "Linking $@ ..."
+ $(LIBTOOL_LINK) $(CXX) $(WLDFLAGS) $(LDFLAGS) -L../lib -L../findlib -o $@ $(SVROBJS) \
+- $(WIN32LIBS) $(FDLIBS) $(ZLIBS) -lbacfind -lbacpy -lbaccfg -lbac -lm $(PYTHON_LIBS) $(LIBS) \
+- $(DLIB) $(WRAPLIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) $(CAP_LIBS) $(AFS_LIBS)
++ $(WIN32LIBS) $(FDLIBS) $(ZLIBS) -lbacfind -lbacpy -lbaccfg -lbac -lm $(PYTHON_LIBS) \
++ $(DLIB) $(WRAPLIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) $(LIBS) $(CAP_LIBS) $(AFS_LIBS)
+
+ static-bacula-fd: Makefile $(SVROBJS) ../findlib/libbacfind.a ../lib/libbacpy$(DEFAULT_ARCHIVE_TYPE) ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE) ../lib/libbac$(DEFAULT_ARCHIVE_TYPE) @WIN32@
+ $(LIBTOOL_LINK) $(CXX) $(WLDFLAGS) $(LDFLAGS) -static -L../lib -L../findlib -o $@ $(SVROBJS) \
+- $(WIN32LIBS) $(FDLIBS) $(ZLIBS) -lbacfind -lbacpy -lbaccfg -lbac -lm $(PYTHON_LIBS) $(LIBS) \
+- $(DLIB) $(WRAPLIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) $(CAP_LIBS) $(AFS_LIBS)
+- strip $@
++ $(WIN32LIBS) $(FDLIBS) $(ZLIBS) -lbacfind -lbacpy -lbaccfg -lbac -lm $(PYTHON_LIBS) \
++ $(DLIB) $(WRAPLIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) $(LIBS) $(CAP_LIBS) $(AFS_LIBS)
+
diff --git a/app-backup/bacula/files/5.0.3/bacula-5.0.3-ldflags.patch b/app-backup/bacula/files/5.0.3/bacula-5.0.3-ldflags.patch
new file mode 100644
index 000000000000..1ff3e684baba
--- /dev/null
+++ b/app-backup/bacula/files/5.0.3/bacula-5.0.3-ldflags.patch
@@ -0,0 +1,10 @@
+--- src/qt-console/bat.pro.in.orig 2010-07-20 18:28:50.000000000 +0000
++++ src/qt-console/bat.pro.in 2010-07-20 18:29:25.000000000 +0000
+@@ -26,6 +26,7 @@
+ QMAKE_LINK = $${LIBTOOL_LINK} $(CXX)
+ QMAKE_INSTALL_PROGRAM = $${LIBTOOL_INSTALL} install -m @SBINPERM@ -p
+ QMAKE_CLEAN += .libs/* bat
++QMAKE_LFLAGS += @LDFLAGS@
+
+ qwt {
+ INCLUDEPATH += @QWT_INC@
diff --git a/app-backup/bacula/files/5.0.3/bacula-5.0.3-lib-search-path.patch b/app-backup/bacula/files/5.0.3/bacula-5.0.3-lib-search-path.patch
new file mode 100644
index 000000000000..c3bded40ad03
--- /dev/null
+++ b/app-backup/bacula/files/5.0.3/bacula-5.0.3-lib-search-path.patch
@@ -0,0 +1,12 @@
+# If upgrading the old libraries gets linked first. So fix order of lib search path.
+--- src/console/Makefile.in.orig 2010-03-29 11:35:00.000000000 +0000
++++ src/console/Makefile.in 2010-03-29 11:45:14.000000000 +0000
+@@ -47,7 +47,7 @@
+
+
+ bconsole: Makefile $(CONSOBJS) ../lib/libbac$(DEFAULT_ARCHIVE_TYPE) ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE)
+- $(LIBTOOL_LINK) $(CXX) $(LDFLAGS) $(CONS_LDFLAGS) -L../lib -L../cats -o $@ $(CONSOBJS) \
++ $(LIBTOOL_LINK) $(CXX) -L../lib -L../cats $(LDFLAGS) $(CONS_LDFLAGS) -o $@ $(CONSOBJS) \
+ $(DLIB) $(CONS_LIBS) -lbaccfg -lbac -lm $(LIBS) $(GETTEXT_LIBS) \
+ $(OPENSSL_LIBS)
+
diff --git a/app-backup/bacula/files/5.0.3/bacula-5.0.3-openssl-1.patch b/app-backup/bacula/files/5.0.3/bacula-5.0.3-openssl-1.patch
new file mode 100644
index 000000000000..58d26316ca7d
--- /dev/null
+++ b/app-backup/bacula/files/5.0.3/bacula-5.0.3-openssl-1.patch
@@ -0,0 +1,25 @@
+http://bugs.gentoo.org/328701
+http://cvs.fedoraproject.org/viewvc/rpms/bacula/devel/bacula-5.0.2-openssl.patch?revision=1.3&view=markup
+
+--- src/lib/crypto.c
++++ src/lib/crypto.c
+@@ -51,7 +51,7 @@
+ * For OpenSSL version 1.x, EVP_PKEY_encrypt no longer
+ * exists. It was not an official API.
+ */
+-#ifdef HAVE_OPENSSLv1
++#if (OPENSSL_VERSION_NUMBER >= 0x10000000L)
+ #define EVP_PKEY_encrypt EVP_PKEY_encrypt_old
+ #define EVP_PKEY_decrypt EVP_PKEY_decrypt_old
+ #endif
+--- src/lib/tls.c
++++ src/lib/tls.c
+@@ -315,7 +315,7 @@ bool tls_postconnect_verify_host(JCR *jc
+ extname = OBJ_nid2sn(OBJ_obj2nid(X509_EXTENSION_get_object(ext)));
+
+ if (strcmp(extname, "subjectAltName") == 0) {
+-#ifdef HAVE_OPENSSLv1
++#if (OPENSSL_VERSION_NUMBER >= 0x10000000L)
+ const X509V3_EXT_METHOD *method;
+ #else
+ X509V3_EXT_METHOD *method;
diff --git a/app-backup/bacula/files/5.2.10/bacula-5.2.10-fix-static.patch b/app-backup/bacula/files/5.2.10/bacula-5.2.10-fix-static.patch
new file mode 100644
index 000000000000..458c188733a4
--- /dev/null
+++ b/app-backup/bacula/files/5.2.10/bacula-5.2.10-fix-static.patch
@@ -0,0 +1,56 @@
+--- src/console/Makefile.in.orig 2011-10-30 14:10:41.100802721 -0400
++++ src/console/Makefile.in 2011-10-30 14:14:42.330488174 -0400
+@@ -29,10 +29,11 @@
+ GETTEXT_LIBS = @LIBINTL@
+
+ CONS_INC=@CONS_INC@
+ CONS_LIBS=@CONS_LIBS@
+ CONS_LDFLAGS=@CONS_LDFLAGS@
++ZLIBS=@ZLIBS@
+
+ .SUFFIXES: .c .o
+ .PHONY:
+ .DONTCARE:
+
+@@ -46,17 +47,17 @@
+ @echo " "
+
+
+ bconsole: Makefile $(CONSOBJS) ../lib/libbac$(DEFAULT_ARCHIVE_TYPE) ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE)
+ $(LIBTOOL_LINK) $(CXX) -L../lib -L../cats $(LDFLAGS) $(CONS_LDFLAGS) -o $@ $(CONSOBJS) \
+- $(DLIB) $(CONS_LIBS) -lbaccfg -lbac -lm $(LIBS) $(GETTEXT_LIBS) \
+- $(OPENSSL_LIBS)
++ $(DLIB) $(CONS_LIBS) -lbaccfg -lbac -lm $(ZLIBS) $(GETTEXT_LIBS) \
++ $(OPENSSL_LIBS) $(LIBS)
+
+ static-bconsole: Makefile $(CONSOBJS) ../lib/libbac.a ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE)
+ $(LIBTOOL_LINK) $(CXX) -static $(LDFLAGS) $(CONS_LDFLAGS) -L../lib -L../cats -o $@ $(CONSOBJS) \
+- $(DLIB) $(CONS_LIBS) -lbaccfg -lbac -lm $(LIBS) $(GETTEXT_LIBS) \
+- $(OPENSSL_LIBS)
++ $(DLIB) $(CONS_LIBS) -lbaccfg -lbac -lm $(ZLIBS) $(GETTEXT_LIBS) \
++ $(OPENSSL_LIBS) $(LIBS) $(ZLIBS)
+ strip $@
+
+
+ Makefile: $(srcdir)/Makefile.in $(topdir)/config.status
+ cd $(topdir) \
+--- src/filed/Makefile.in.orig 2012-06-28 16:52:03.000000000 +0200
++++ src/filed/Makefile.in 2012-08-16 11:08:09.000000000 +0200
+@@ -96,13 +96,13 @@
+ bacula-fd: Makefile $(SVROBJS) ../findlib/libbacfind$(DEFAULT_ARCHIVE_TYPE) ../lib/libbacpy$(DEFAULT_ARCHIVE_TYPE) ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE) ../lib/libbac$(DEFAULT_ARCHIVE_TYPE) @WIN32@
+ @echo "Linking $@ ..."
+ $(LIBTOOL_LINK) $(CXX) $(WLDFLAGS) $(LDFLAGS) -L../lib -L../findlib -o $@ $(SVROBJS) \
+- $(WIN32LIBS) $(FDLIBS) $(ZLIBS) -lbacfind -lbacpy -lbaccfg -lbac -lm $(PYTHON_LIBS) $(LIBS) \
+- $(DLIB) $(WRAPLIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) $(CAP_LIBS) $(AFS_LIBS) $(LZOLIBS)
++ $(WIN32LIBS) $(FDLIBS) $(ZLIBS) -lbacfind -lbacpy -lbaccfg -lbac -lm $(PYTHON_LIBS) \
++ $(DLIB) $(WRAPLIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) $(LIBS) $(CAP_LIBS) $(AFS_LIBS) $(LZOLIBS)
+
+ static-bacula-fd: Makefile $(SVROBJS) ../findlib/libbacfind.a ../lib/libbacpy$(DEFAULT_ARCHIVE_TYPE) ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE) ../lib/libbac$(DEFAULT_ARCHIVE_TYPE) @WIN32@
+ $(LIBTOOL_LINK) $(CXX) $(WLDFLAGS) $(LDFLAGS) -static -L../lib -L../findlib -o $@ $(SVROBJS) \
+- $(WIN32LIBS) $(FDLIBS) $(ZLIBS) -lbacfind -lbacpy -lbaccfg -lbac -lm $(PYTHON_LIBS) $(LIBS) \
+- $(DLIB) $(WRAPLIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) $(CAP_LIBS) $(AFS_LIBS) $(LZOLIBS)
++ $(WIN32LIBS) $(FDLIBS) $(ZLIBS) -lbacfind -lbacpy -lbaccfg -lbac -lm $(PYTHON_LIBS) \
++ $(DLIB) $(WRAPLIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) $(LIBS) $(CAP_LIBS) $(AFS_LIBS) $(LZOLIBS)
+ strip $@
+
+ Makefile: $(srcdir)/Makefile.in $(topdir)/config.status
diff --git a/app-backup/bacula/files/5.2.12/bacula-5.2.12-depend.patch b/app-backup/bacula/files/5.2.12/bacula-5.2.12-depend.patch
new file mode 100644
index 000000000000..8c419a3bdfac
--- /dev/null
+++ b/app-backup/bacula/files/5.2.12/bacula-5.2.12-depend.patch
@@ -0,0 +1,12 @@
+# fix file not found error during make depend
+--- src/tools/Makefile.in.orig 2012-09-20 20:42:54.000000000 +0200
++++ src/tools/Makefile.in 2012-09-20 20:35:46.000000000 +0200
+@@ -194,7 +194,7 @@
+ @$(MV) Makefile Makefile.bak
+ @$(SED) "/^# DO NOT DELETE:/,$$ d" Makefile.bak > Makefile
+ @$(ECHO) "# DO NOT DELETE: nice dependency list follows" >> Makefile
+- @$(CXX) -S -M $(CPPFLAGS) $(PYTHON_INC) -I$(srcdir) -I$(basedir) *.c >> Makefile
++ @$(CXX) -S -M $(CPPFLAGS) $(PYTHON_INC) -I$(srcdir) -I$(basedir) -I../filed -I../dird -I../stored *.c >> Makefile
+ @if test -f Makefile ; then \
+ $(RMF) Makefile.bak; \
+ else \
diff --git a/app-backup/bacula/files/5.2.3/bacula-5.2.3-Makefile.patch b/app-backup/bacula/files/5.2.3/bacula-5.2.3-Makefile.patch
new file mode 100644
index 000000000000..3cdee15d4db7
--- /dev/null
+++ b/app-backup/bacula/files/5.2.3/bacula-5.2.3-Makefile.patch
@@ -0,0 +1,27 @@
+# stop build if there are errors in subdirs
+--- Makefile.in.orig 2010-07-20 16:53:44.000000000 +0000
++++ Makefile.in 2010-07-20 16:55:50.000000000 +0000
+@@ -44,9 +44,8 @@
+
+ all: Makefile
+ @for I in ${all_subdirs}; \
+- do (cd $$I; echo "==>Entering directory `pwd`"; \
+- $(MAKE) DESTDIR=$(DESTDIR) $@ || (echo ""; echo ""; echo " ====== Error in `pwd` ======"; \
+- echo ""; echo ""; exit 1;)); \
++ do \
++ $(MAKE) DESTDIR=$(DESTDIR) -C $$I $@ || exit 1; \
+ done
+
+ depend:
+@@ -55,9 +54,8 @@
+
+ bacula-fd: Makefile
+ @for I in ${fd_subdirs}; \
+- do (cd $$I; echo "==>Entering directory `pwd`"; \
+- $(MAKE) DESTDIR=$(DESTDIR) all || (echo ""; echo ""; echo " ====== Error in `pwd` ======"; \
+- echo ""; echo ""; exit 1;)); \
++ do \
++ $(MAKE) DESTDIR=$(DESTDIR) -C $$I all || exit 1; \
+ done
+
+ #-------------------------------------------------------------------------
diff --git a/app-backup/bacula/files/5.2.3/bacula-5.2.3-as-needed.patch b/app-backup/bacula/files/5.2.3/bacula-5.2.3-as-needed.patch
new file mode 100644
index 000000000000..4b52d214cf76
--- /dev/null
+++ b/app-backup/bacula/files/5.2.3/bacula-5.2.3-as-needed.patch
@@ -0,0 +1,14 @@
+# see bug #310087
+diff -urN bacula-5.2.1.orig/src/findlib/Makefile.in bacula-5.2.1/src/findlib/Makefile.in
+--- bacula-5.2.1.orig/src/findlib/Makefile.in 2010-02-24 16:33:48.000000000 +0100
++++ bacula-5.2.1/src/findlib/Makefile.in 2010-03-22 17:37:43.772805754 +0100
+@@ -59,7 +59,7 @@
+
+ libbacfind.la: Makefile $(LIBBACFIND_LOBJS)
+ @echo "Making $@ ..."
+- $(LIBTOOL_LINK) $(CXX) $(DEFS) $(DEBUG) $(LDFLAGS) -o $@ $(LIBBACFIND_LOBJS) -export-dynamic -rpath $(libdir) -release $(LIBBACFIND_LT_RELEASE)
++ $(LIBTOOL_LINK) $(CXX) $(DEFS) $(DEBUG) $(LDFLAGS) -o $@ $(LIBBACFIND_LOBJS) -export-dynamic -rpath $(libdir) -release $(LIBBACFIND_LT_RELEASE) -L../lib -lbac $(LIBS) $(OPENSSL_LIBS)
+
+ Makefile: $(srcdir)/Makefile.in $(topdir)/config.status
+ cd $(topdir) \
+
diff --git a/app-backup/bacula/files/5.2.3/bacula-5.2.3-doc.patch b/app-backup/bacula/files/5.2.3/bacula-5.2.3-doc.patch
new file mode 100644
index 000000000000..98c6e6ce34be
--- /dev/null
+++ b/app-backup/bacula/files/5.2.3/bacula-5.2.3-doc.patch
@@ -0,0 +1,13 @@
+# drop automatic installation of doc files
+--- Makefile.in.orig 2011-02-26 09:05:21.000000000 +0000
++++ Makefile.in 2011-02-26 09:06:01.000000000 +0000
+@@ -34,8 +34,7 @@
+ autoconf/config.h.in autoconf/acconfig.h autoconf/Make.common.in \
+ autoconf/install-sh autoconf/mkinstalldirs
+
+-doc_files = VERIFYING technotes ChangeLog README ReleaseNotes LICENSE \
+- INSTALL
++doc_files =
+
+ MKDIR = $(srcdir)/autoconf/mkinstalldirs
+ LIBTOOL_DEPS = @LIBTOOL_DEPS@
diff --git a/app-backup/bacula/files/5.2.3/bacula-5.2.3-fix-static.patch b/app-backup/bacula/files/5.2.3/bacula-5.2.3-fix-static.patch
new file mode 100644
index 000000000000..c875c40eced3
--- /dev/null
+++ b/app-backup/bacula/files/5.2.3/bacula-5.2.3-fix-static.patch
@@ -0,0 +1,60 @@
+--- src/console/Makefile.in.orig 2011-10-30 14:10:41.100802721 -0400
++++ src/console/Makefile.in 2011-10-30 14:14:42.330488174 -0400
+@@ -29,10 +29,11 @@
+ GETTEXT_LIBS = @LIBINTL@
+
+ CONS_INC=@CONS_INC@
+ CONS_LIBS=@CONS_LIBS@
+ CONS_LDFLAGS=@CONS_LDFLAGS@
++ZLIBS=@ZLIBS@
+
+ .SUFFIXES: .c .o
+ .PHONY:
+ .DONTCARE:
+
+@@ -46,17 +47,17 @@
+ @echo " "
+
+
+ bconsole: Makefile $(CONSOBJS) ../lib/libbac$(DEFAULT_ARCHIVE_TYPE) ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE)
+ $(LIBTOOL_LINK) $(CXX) -L../lib -L../cats $(LDFLAGS) $(CONS_LDFLAGS) -o $@ $(CONSOBJS) \
+- $(DLIB) $(CONS_LIBS) -lbaccfg -lbac -lm $(LIBS) $(GETTEXT_LIBS) \
+- $(OPENSSL_LIBS)
++ $(DLIB) $(CONS_LIBS) -lbaccfg -lbac -lm $(ZLIBS) $(GETTEXT_LIBS) \
++ $(OPENSSL_LIBS) $(LIBS)
+
+ static-bconsole: Makefile $(CONSOBJS) ../lib/libbac.a ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE)
+ $(LIBTOOL_LINK) $(CXX) -static $(LDFLAGS) $(CONS_LDFLAGS) -L../lib -L../cats -o $@ $(CONSOBJS) \
+- $(DLIB) $(CONS_LIBS) -lbaccfg -lbac -lm $(LIBS) $(GETTEXT_LIBS) \
+- $(OPENSSL_LIBS)
++ $(DLIB) $(CONS_LIBS) -lbaccfg -lbac -lm $(ZLIBS) $(GETTEXT_LIBS) \
++ $(OPENSSL_LIBS) $(LIBS)
+ strip $@
+
+
+ Makefile: $(srcdir)/Makefile.in $(topdir)/config.status
+ cd $(topdir) \
+--- src/filed/Makefile.in.orig 2011-10-30 08:03:42.000000000 -0400
++++ src/filed/Makefile.in 2011-10-30 14:15:28.018102837 -0400
+@@ -92,17 +92,17 @@
+ @rm -f bacula-fd.exe
+
+ bacula-fd: Makefile $(SVROBJS) ../findlib/libbacfind$(DEFAULT_ARCHIVE_TYPE) ../lib/libbacpy$(DEFAULT_ARCHIVE_TYPE) ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE) ../lib/libbac$(DEFAULT_ARCHIVE_TYPE) @WIN32@
+ @echo "Linking $@ ..."
+ $(LIBTOOL_LINK) $(CXX) $(WLDFLAGS) $(LDFLAGS) -L../lib -L../findlib -o $@ $(SVROBJS) \
+- $(WIN32LIBS) $(FDLIBS) $(ZLIBS) $(LZOLIBS) -lbacfind -lbacpy -lbaccfg -lbac -lm $(PYTHON_LIBS) $(LIBS) \
+- $(DLIB) $(WRAPLIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) $(CAP_LIBS)
++ $(WIN32LIBS) $(FDLIBS) $(ZLIBS) $(LZOLIBS) -lbacfind -lbacpy -lbaccfg -lbac -lm $(PYTHON_LIBS) \
++ $(DLIB) $(WRAPLIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) $(LIBS) $(CAP_LIBS)
+
+ static-bacula-fd: Makefile $(SVROBJS) ../findlib/libbacfind.a ../lib/libbacpy$(DEFAULT_ARCHIVE_TYPE) ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE) ../lib/libbac$(DEFAULT_ARCHIVE_TYPE) @WIN32@
+ $(LIBTOOL_LINK) $(CXX) $(WLDFLAGS) $(LDFLAGS) -static -L../lib -L../findlib -o $@ $(SVROBJS) \
+- $(WIN32LIBS) $(FDLIBS) $(ZLIBS) $(LZOLIBS) -lbacfind -lbacpy -lbaccfg -lbac -lm $(PYTHON_LIBS) $(LIBS) \
+- $(DLIB) $(WRAPLIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) $(CAP_LIBS)
++ $(WIN32LIBS) $(FDLIBS) $(ZLIBS) $(LZOLIBS) -lbacfind -lbacpy -lbaccfg -lbac -lm $(PYTHON_LIBS) \
++ $(DLIB) $(WRAPLIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) $(LIBS) $(CAP_LIBS)
+ strip $@
+
+ Makefile: $(srcdir)/Makefile.in $(topdir)/config.status
+ cd $(topdir) \
+ && CONFIG_FILES=$(thisdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
diff --git a/app-backup/bacula/files/5.2.3/bacula-5.2.3-ldflags.patch b/app-backup/bacula/files/5.2.3/bacula-5.2.3-ldflags.patch
new file mode 100644
index 000000000000..94d8fb60120e
--- /dev/null
+++ b/app-backup/bacula/files/5.2.3/bacula-5.2.3-ldflags.patch
@@ -0,0 +1,11 @@
+# bat needs to respect LDFLAGS
+--- src/qt-console/bat.pro.in.orig 2010-07-20 18:28:50.000000000 +0000
++++ src/qt-console/bat.pro.in 2010-07-20 18:29:25.000000000 +0000
+@@ -26,6 +26,7 @@
+ QMAKE_LINK = $${LIBTOOL_LINK} $(CXX)
+ QMAKE_INSTALL_PROGRAM = $${LIBTOOL_INSTALL} install -m @SBINPERM@ -p
+ QMAKE_CLEAN += .libs/* bat
++QMAKE_LFLAGS += @LDFLAGS@
+
+ qwt {
+ INCLUDEPATH += @QWT_INC@
diff --git a/app-backup/bacula/files/5.2.3/bacula-5.2.3-lib-search-path.patch b/app-backup/bacula/files/5.2.3/bacula-5.2.3-lib-search-path.patch
new file mode 100644
index 000000000000..c3bded40ad03
--- /dev/null
+++ b/app-backup/bacula/files/5.2.3/bacula-5.2.3-lib-search-path.patch
@@ -0,0 +1,12 @@
+# If upgrading the old libraries gets linked first. So fix order of lib search path.
+--- src/console/Makefile.in.orig 2010-03-29 11:35:00.000000000 +0000
++++ src/console/Makefile.in 2010-03-29 11:45:14.000000000 +0000
+@@ -47,7 +47,7 @@
+
+
+ bconsole: Makefile $(CONSOBJS) ../lib/libbac$(DEFAULT_ARCHIVE_TYPE) ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE)
+- $(LIBTOOL_LINK) $(CXX) $(LDFLAGS) $(CONS_LDFLAGS) -L../lib -L../cats -o $@ $(CONSOBJS) \
++ $(LIBTOOL_LINK) $(CXX) -L../lib -L../cats $(LDFLAGS) $(CONS_LDFLAGS) -o $@ $(CONSOBJS) \
+ $(DLIB) $(CONS_LIBS) -lbaccfg -lbac -lm $(LIBS) $(GETTEXT_LIBS) \
+ $(OPENSSL_LIBS)
+
diff --git a/app-backup/bacula/files/5.2.3/bacula-5.2.3-openssl-1.patch b/app-backup/bacula/files/5.2.3/bacula-5.2.3-openssl-1.patch
new file mode 100644
index 000000000000..58d26316ca7d
--- /dev/null
+++ b/app-backup/bacula/files/5.2.3/bacula-5.2.3-openssl-1.patch
@@ -0,0 +1,25 @@
+http://bugs.gentoo.org/328701
+http://cvs.fedoraproject.org/viewvc/rpms/bacula/devel/bacula-5.0.2-openssl.patch?revision=1.3&view=markup
+
+--- src/lib/crypto.c
++++ src/lib/crypto.c
+@@ -51,7 +51,7 @@
+ * For OpenSSL version 1.x, EVP_PKEY_encrypt no longer
+ * exists. It was not an official API.
+ */
+-#ifdef HAVE_OPENSSLv1
++#if (OPENSSL_VERSION_NUMBER >= 0x10000000L)
+ #define EVP_PKEY_encrypt EVP_PKEY_encrypt_old
+ #define EVP_PKEY_decrypt EVP_PKEY_decrypt_old
+ #endif
+--- src/lib/tls.c
++++ src/lib/tls.c
+@@ -315,7 +315,7 @@ bool tls_postconnect_verify_host(JCR *jc
+ extname = OBJ_nid2sn(OBJ_obj2nid(X509_EXTENSION_get_object(ext)));
+
+ if (strcmp(extname, "subjectAltName") == 0) {
+-#ifdef HAVE_OPENSSLv1
++#if (OPENSSL_VERSION_NUMBER >= 0x10000000L)
+ const X509V3_EXT_METHOD *method;
+ #else
+ X509V3_EXT_METHOD *method;
diff --git a/app-backup/bacula/files/7.0.2/bacula-7.0.2-depend.patch b/app-backup/bacula/files/7.0.2/bacula-7.0.2-depend.patch
new file mode 100644
index 000000000000..e076cd6478cc
--- /dev/null
+++ b/app-backup/bacula/files/7.0.2/bacula-7.0.2-depend.patch
@@ -0,0 +1,12 @@
+# fix file not found error during make depend
+--- src/tools/Makefile.in.orig 2012-09-20 20:42:54.000000000 +0200
++++ src/tools/Makefile.in 2012-09-20 20:35:46.000000000 +0200
+@@ -194,7 +194,7 @@
+ @$(MV) Makefile Makefile.bak
+ @$(SED) "/^# DO NOT DELETE:/,$$ d" Makefile.bak > Makefile
+ @$(ECHO) "# DO NOT DELETE: nice dependency list follows" >> Makefile
+- @$(CXX) -S -M $(CPPFLAGS) -I$(srcdir) -I$(basedir) *.c >> Makefile
++ @$(CXX) -S -M $(CPPFLAGS) -I$(srcdir) -I$(basedir) -I../filed -I../dird -I../stored *.c >> Makefile
+ @if test -f Makefile ; then \
+ $(RMF) Makefile.bak; \
+ else \
diff --git a/app-backup/bacula/files/7.0.2/bacula-7.0.2-fix-static.patch b/app-backup/bacula/files/7.0.2/bacula-7.0.2-fix-static.patch
new file mode 100644
index 000000000000..0f1b2afd0579
--- /dev/null
+++ b/app-backup/bacula/files/7.0.2/bacula-7.0.2-fix-static.patch
@@ -0,0 +1,56 @@
+--- src/console/Makefile.in.orig 2011-10-30 14:10:41.100802721 -0400
++++ src/console/Makefile.in 2011-10-30 14:14:42.330488174 -0400
+@@ -29,10 +29,11 @@
+ GETTEXT_LIBS = @LIBINTL@
+
+ CONS_INC=@CONS_INC@
+ CONS_LIBS=@CONS_LIBS@
+ CONS_LDFLAGS=@CONS_LDFLAGS@
++ZLIBS=@ZLIBS@
+
+ .SUFFIXES: .c .o
+ .PHONY:
+ .DONTCARE:
+
+@@ -46,17 +47,17 @@
+ @echo " "
+
+
+ bconsole: Makefile $(CONSOBJS) ../lib/libbac$(DEFAULT_ARCHIVE_TYPE) ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE)
+ $(LIBTOOL_LINK) $(CXX) -L../lib -L../cats $(LDFLAGS) $(CONS_LDFLAGS) -o $@ $(CONSOBJS) \
+- $(DLIB) $(CONS_LIBS) -lbaccfg -lbac -lm $(LIBS) $(GETTEXT_LIBS) \
+- $(OPENSSL_LIBS)
++ $(DLIB) $(CONS_LIBS) -lbaccfg -lbac -lm $(ZLIBS) $(GETTEXT_LIBS) \
++ $(OPENSSL_LIBS) $(LIBS)
+
+ static-bconsole: Makefile $(CONSOBJS) ../lib/libbac.a ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE)
+ $(LIBTOOL_LINK) $(CXX) -static $(LDFLAGS) $(CONS_LDFLAGS) -L../lib -L../cats -o $@ $(CONSOBJS) \
+- $(DLIB) $(CONS_LIBS) -lbaccfg -lbac -lm $(LIBS) $(GETTEXT_LIBS) \
+- $(OPENSSL_LIBS)
++ $(DLIB) $(CONS_LIBS) -lbaccfg -lbac -lm $(ZLIBS) $(GETTEXT_LIBS) \
++ $(OPENSSL_LIBS) $(LIBS) $(ZLIBS)
+ strip $@
+
+
+ Makefile: $(srcdir)/Makefile.in $(topdir)/config.status
+ cd $(topdir) \
+--- src/filed/Makefile.in.orig 2012-06-28 16:52:03.000000000 +0200
++++ src/filed/Makefile.in 2012-08-16 11:08:09.000000000 +0200
+@@ -89,13 +89,13 @@
+ bacula-fd: Makefile $(SVROBJS) ../findlib/libbacfind$(DEFAULT_ARCHIVE_TYPE) ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE) ../lib/libbac$(DEFAULT_ARCHIVE_TYPE)
+ @echo "Linking $@ ..."
+ $(LIBTOOL_LINK) $(CXX) $(WLDFLAGS) $(LDFLAGS) -L../lib -L../findlib -o $@ $(SVROBJS) \
+- $(WIN32LIBS) $(FDLIBS) $(ZLIBS) -lbacfind -lbaccfg -lbac -lm $(LIBS) \
+- $(DLIB) $(WRAPLIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) $(CAP_LIBS) $(AFS_LIBS) $(LZO_LIBS)
++ $(WIN32LIBS) $(FDLIBS) $(ZLIBS) -lbacfind -lbaccfg -lbac -lm \
++ $(DLIB) $(WRAPLIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) $(LIBS) $(CAP_LIBS) $(AFS_LIBS) $(LZO_LIBS)
+
+ static-bacula-fd: Makefile $(SVROBJS) ../findlib/libbacfind.a ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE) ../lib/libbac$(DEFAULT_ARCHIVE_TYPE)
+ $(LIBTOOL_LINK) $(CXX) $(WLDFLAGS) $(LDFLAGS) -static -L../lib -L../findlib -o $@ $(SVROBJS) \
+- $(WIN32LIBS) $(FDLIBS) $(ZLIBS) -lbacfind -lbaccfg -lbac -lm $(LIBS) \
+- $(DLIB) $(WRAPLIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) $(CAP_LIBS) $(AFS_LIBS) $(LZO_LIBS)
++ $(WIN32LIBS) $(FDLIBS) $(ZLIBS) -lbacfind -lbaccfg -lbac -lm \
++ $(DLIB) $(WRAPLIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) $(LIBS) $(CAP_LIBS) $(AFS_LIBS) $(LZO_LIBS)
+ strip $@
+
+ Makefile: $(srcdir)/Makefile.in $(topdir)/config.status
diff --git a/app-backup/bacula/files/bacula-dir.confd b/app-backup/bacula/files/bacula-dir.confd
new file mode 100644
index 000000000000..b27b75f2c7ba
--- /dev/null
+++ b/app-backup/bacula/files/bacula-dir.confd
@@ -0,0 +1,17 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+# Config file for /etc/init.d/bacula-dir
+
+# If the database server where you store your bacula catalog
+# is on a different machine, please set this to 0.
+# Setting it to 1 makes bacula-dir depend on the corresponding
+# database service selected at package compile time.
+LOCAL_DB=1
+
+# Options for the director daemon.
+# The director can be run as a non-root user, however
+# please ensure that this user has proper permissions to
+# access your backup devices.
+DIR_OPTIONS="-u root -g bacula -c /etc/bacula/bacula-dir.conf"
diff --git a/app-backup/bacula/files/bacula-dir.initd b/app-backup/bacula/files/bacula-dir.initd
new file mode 100644
index 000000000000..b097e977c0da
--- /dev/null
+++ b/app-backup/bacula/files/bacula-dir.initd
@@ -0,0 +1,25 @@
+#!/sbin/runscript
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+depend() {
+ need net
+ if [ "${LOCAL_DB}" -eq 1 ]; then
+ need "%database%"
+ fi
+ use dns bacula-fd bacula-sd
+}
+
+start() {
+ ebegin "Starting bacula director"
+ start-stop-daemon --start --quiet --exec /usr/sbin/bacula-dir \
+ -- ${DIR_OPTIONS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping bacula director"
+ start-stop-daemon --stop --quiet --pidfile /var/run/bacula-dir.*.pid
+ eend $?
+}
diff --git a/app-backup/bacula/files/bacula-fd.confd b/app-backup/bacula/files/bacula-fd.confd
new file mode 100644
index 000000000000..53ba48c09d3a
--- /dev/null
+++ b/app-backup/bacula/files/bacula-fd.confd
@@ -0,0 +1,8 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+# Config file for /etc/init.d/bacula-fd
+
+# Options for the file daemon.
+FD_OPTIONS="-u root -g bacula -c /etc/bacula/bacula-fd.conf"
diff --git a/app-backup/bacula/files/bacula-fd.initd b/app-backup/bacula/files/bacula-fd.initd
new file mode 100644
index 000000000000..8d5ebe852c3b
--- /dev/null
+++ b/app-backup/bacula/files/bacula-fd.initd
@@ -0,0 +1,22 @@
+#!/sbin/runscript
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+depend() {
+ need net
+ use dns
+}
+
+start() {
+ ebegin "Starting bacula file daemon"
+ start-stop-daemon --start --quiet --exec /usr/sbin/bacula-fd \
+ -- ${FD_OPTIONS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping bacula file daemon"
+ start-stop-daemon --stop --quiet --pidfile /var/run/bacula-fd.*.pid
+ eend $?
+}
diff --git a/app-backup/bacula/files/bacula-sd.confd b/app-backup/bacula/files/bacula-sd.confd
new file mode 100644
index 000000000000..55ee1ff82182
--- /dev/null
+++ b/app-backup/bacula/files/bacula-sd.confd
@@ -0,0 +1,11 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+# Config file for /etc/init.d/bacula-sd
+
+# Options for the storage daemon.
+# The storage daemon can be run as a non-root user, however
+# please ensure that this user has proper permissions to
+# access your backup devices.
+SD_OPTIONS="-u root -g bacula -c /etc/bacula/bacula-sd.conf"
diff --git a/app-backup/bacula/files/bacula-sd.initd b/app-backup/bacula/files/bacula-sd.initd
new file mode 100644
index 000000000000..463a383187d5
--- /dev/null
+++ b/app-backup/bacula/files/bacula-sd.initd
@@ -0,0 +1,22 @@
+#!/sbin/runscript
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+depend() {
+ need net
+ use dns
+}
+
+start() {
+ ebegin "Starting bacula storage daemon"
+ start-stop-daemon --start --quiet --exec /usr/sbin/bacula-sd \
+ -- ${SD_OPTIONS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping bacula storage daemon"
+ start-stop-daemon --stop --quiet --pidfile /var/run/bacula-sd.*.pid
+ eend $?
+}
diff --git a/app-backup/bacula/metadata.xml b/app-backup/bacula/metadata.xml
new file mode 100644
index 000000000000..ee8e4ede21a2
--- /dev/null
+++ b/app-backup/bacula/metadata.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>app-backup</herd>
+ <maintainer>
+ <email>tomjbe@gentoo.org</email>
+ <name>Thomas Beierlein</name>
+ </maintainer>
+ <use>
+ <flag name="bacula-clientonly">Disable DB support, and just build a
+ client</flag>
+ <flag name="bacula-nodir">Disable building of director</flag>
+ <flag name="bacula-nosd">Disable building of storage daemon</flag>
+ <flag name="logwatch">Install support files for logwatch</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">bacula</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-backup/bareos/Manifest b/app-backup/bareos/Manifest
new file mode 100644
index 000000000000..fe7cd78a9497
--- /dev/null
+++ b/app-backup/bareos/Manifest
@@ -0,0 +1,3 @@
+DIST bareos-12.4.5.tar.gz 3496881 SHA256 7e3eb7bf294b26ea97807f642d6cc7ac17f0c2eecc133c40db50ce810fd3dede SHA512 e91ddc89766c7a5339d4cae6924c302d7e7c340f1cfa36c598ad3d2cec70a131b4c9c57b9ae5f9006e96acb460e838d38da577f794f567acb07e1137dbae9b11 WHIRLPOOL dd893d45f7cd7a5df486f54e68c53217b4d506fcbc7697e968441595ed7f485dc5f5f7c9e7fe11d98b704d7174a56e2ac90ce05f94be8b71c8b8fc41ece87414
+DIST bareos-13.2.4.tar.gz 3467542 SHA256 def68891d074438e55d7a3e570cfaae1c1a8c9479d089815ba0f8f31e1d6eefc SHA512 d7e4bc016993f68521f4438b56adf51e88685195693d00d34103259c3c24d1d7c03cc2b7aecbb55ff88a00d5f169e9e42accd23b17bcd3c837ca78079a9f394f WHIRLPOOL 54b5ee5094be6569c1a7857ebcc98f1e24ee272485327397f1ab0833433a6b46e8b7e3f2cd927668600ba63f2d36a920dc64cb9dfc2f0dd69adb57a70b862848
+DIST bareos-14.2.1.tar.gz 3741825 SHA256 a4a6227dbfadfdf973c1e80a2279e6775511d10255e55c4af25e4ffec94c93bd SHA512 2e7215be8b85258c9ebddb65c639c437b1c3b1397ca03a6277a130f4b4b6ba5d14eeae0dc675022e3b387bb0f9ceb25950997c6734c5c3242048ade7e80b8928 WHIRLPOOL 3353ac795a2ab6c7e5eb7433a10016fd6fa9403d5161d09ee1b1b868ab5d23f8e1d99b73f0d470054c883ff66fba60938afec9e83b2d1688d2d3b29d9d8d8f9b
diff --git a/app-backup/bareos/bareos-12.4.5-r1.ebuild b/app-backup/bareos/bareos-12.4.5-r1.ebuild
new file mode 100644
index 000000000000..f5e9f82a5a65
--- /dev/null
+++ b/app-backup/bareos/bareos-12.4.5-r1.ebuild
@@ -0,0 +1,402 @@
+# 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 eutils multilib python-single-r1 qt4-r2 user
+
+DESCRIPTION="Featureful client/server network backup suite"
+HOMEPAGE="http://www.bareos.org/"
+SRC_URI="https://github.com/${PN}/${PN}/archive/Release/${PV}.tar.gz -> ${P}.tar.gz"
+RESTRICT="mirror"
+
+LICENSE="AGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="acl clientonly +director examples ipv6 logwatch mysql ndmp postgres python qt4
+ readline scsi-crypto sql-pooling +sqlite ssl static +storage-daemon tcpd
+ vim-syntax X"
+
+DEPEND="
+ !app-backup/bacula
+ dev-libs/gmp:0
+ !clientonly? (
+ postgres? ( dev-db/postgresql:*[threads] )
+ mysql? ( virtual/mysql )
+ sqlite? ( dev-db/sqlite:3 )
+ director? ( virtual/mta )
+ )
+ qt4? (
+ dev-qt/qtsvg:4
+ x11-libs/qwt:5
+ )
+ logwatch? ( sys-apps/logwatch )
+ tcpd? ( sys-apps/tcp-wrappers )
+ readline? ( sys-libs/readline:0 )
+ static? (
+ acl? ( virtual/acl[static-libs] )
+ sys-libs/zlib[static-libs]
+ dev-libs/lzo[static-libs]
+ sys-libs/ncurses[static-libs]
+ ssl? ( dev-libs/openssl:0[static-libs] )
+ )
+ !static? (
+ acl? ( virtual/acl )
+ sys-libs/zlib
+ dev-libs/lzo
+ sys-libs/ncurses
+ ssl? ( dev-libs/openssl:0 )
+ )
+ python? ( ${PYTHON_DEPS} )
+ "
+RDEPEND="${DEPEND}
+ !clientonly? (
+ storage-daemon? (
+ sys-block/mtx
+ app-arch/mt-st
+ )
+ )
+ vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )"
+
+REQUIRED_USE="static? ( clientonly )
+ python? ( ${PYTHON_REQUIRED_USE} )"
+
+S=${WORKDIR}/${PN}-Release-${PV}
+
+pkg_setup() {
+ use mysql && export mydbtypes+="mysql"
+ use postgres && export mydbtypes+=" postgresql"
+ use sqlite && export mydbtypes+=" sqlite"
+
+ # create the daemon group and user
+ if [ -z "$(egetent group bareos 2>/dev/null)" ]; then
+ enewgroup bareos
+ einfo
+ einfo "The group 'bareos' has been created. Any users you add to this"
+ einfo "group have access to files created by the daemons."
+ einfo
+ fi
+
+ if use clientonly && use static && use qt4; then
+ ewarn
+ ewarn "Building statically linked 'bat' is not supported. Ignorig 'qt4' useflag."
+ ewarn
+ fi
+
+ if ! use clientonly; then
+ if [ -z "$(egetent passwd bareos 2>/dev/null)" ]; then
+ enewuser bareos -1 -1 /var/lib/bareos bareos,disk,tape,cdrom,cdrw
+ einfo
+ einfo "The user 'bareos' has been created. Please see the bareos manual"
+ einfo "for information about running bareos as a non-root user."
+ einfo
+ fi
+ fi
+
+ use python && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ # adjusts default configuration files for several binaries
+ # to /etc/bareos/<config> instead of ./<config>
+ pushd src >&/dev/null || die
+ for f in console/console.c dird/dird.c filed/filed.c \
+ stored/bcopy.c stored/bextract.c stored/bls.c \
+ stored/bscan.c stored/btape.c stored/stored.c \
+ qt-console/main.cpp; do
+ sed -i -e 's|^\(#define CONFIG_FILE "\)|\1/etc/bareos/|g' "${f}" \
+ || die "sed on ${f} failed"
+ done
+ popd >&/dev/null || die
+
+ # bug 466690 Use CXXFLAGS instead of CFLAGS
+ sed -i -e 's/@CFLAGS@/@CXXFLAGS@/' autoconf/Make.common.in || die
+
+ # stop build for errors in subdirs
+ epatch "${FILESDIR}"/${PN}-12.4.5-Makefile.patch
+
+ # bat needs to respect LDFLAGS
+ epatch "${FILESDIR}"/${PN}-12.4.5-bat-ldflags.patch
+
+ # do not strip binaries
+ for d in filed console dird stored; do
+ sed -i -e "s/strip /# strip /" src/$d/Makefile.in || die
+ done
+}
+
+src_configure() {
+ local myconf=''
+
+ if use clientonly; then
+ myconf="${myconf} \
+ $(use_enable clientonly client-only) \
+ $(use_enable !static libtool) \
+ $(use_enable static static-cons) \
+ $(use_enable static static-fd)"
+ fi
+
+ # do not build bat and traymonitor if 'static' clientonly
+ if ! use clientonly || ! use static; then
+ myconf="${myconf} \
+ $(use_enable qt4 bat) \
+ $(use_enable qt4 traymonitor)"
+ fi
+
+ myconf="${myconf} \
+ $(use_with X x) \
+ $(use_enable acl) \
+ $(use_enable ipv6) \
+ $(use_enable ndmp) \
+ $(use_enable readline) \
+ $(use_enable !readline conio) \
+ $(use_enable scsi-crypto) \
+ $(use_enable sql-pooling) \
+ $(use_with mysql) \
+ $(use_with postgres postgresql) \
+ $(use_with python) \
+ $(use_with readline readline /usr) \
+ $(use_with sqlite sqlite3) \
+ $(use sqlite || echo "--without-sqlite3") \
+ $(use_with ssl openssl) \
+ $(use_with tcpd tcp-wrappers) \
+ "
+
+ econf \
+ --libdir=/usr/$(get_libdir) \
+ --docdir=/usr/share/doc/${PF} \
+ --htmldir=/usr/share/doc/${PF}/html \
+ --with-pid-dir=/run \
+ --sysconfdir=/etc/bareos \
+ --with-subsys-dir=/run/lock/subsys \
+ --with-working-dir=/var/lib/bareos \
+ --with-logdir=/var/log/bareos \
+ --with-scriptdir=/usr/libexec/bareos \
+ --with-plugindir=/usr/$(get_libdir)/${PN}/plugin \
+ --with-dir-user=bareos \
+ --with-dir-group=bareos \
+ --with-sd-user=root \
+ --with-sd-group=bareos \
+ --with-fd-user=root \
+ --with-fd-group=bareos \
+ --with-sbin-perm=0755 \
+ --enable-smartalloc \
+ --enable-dynamic-cats-backends \
+ --enable-batch-insert \
+ --disable-afs \
+ --host=${CHOST} \
+ ${myconf}
+ # correct configuration for QT based bat
+ if use qt4 ; then
+ pushd src/qt-console
+ eqmake4
+ popd
+ pushd src/qt-tray-monitor
+ eqmake4
+ popd
+ fi
+}
+
+src_compile() {
+ # workaround for build failing with high -j values
+ # if ndmp is enabled
+ use ndmp && MAKEOPTS="$MAKEOPTS -j1"
+
+ # Make build log verbose (bug #447806)
+ emake NO_ECHO=""
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ doicon scripts/bareos.png
+
+ # install bat icon and desktop file when enabled
+ # (for some reason ./configure doesn't pick this up)
+ if use qt4 && ! use static ; then
+ doicon src/images/bat.png
+ domenu scripts/bat.desktop
+ fi
+
+ # remove some scripts we don't need at all
+ rm -f "${D}"/usr/libexec/bareos/{bareos,bareos-ctl-dir,bareos-ctl-fd,bareos-ctl-sd,startmysql,stopmysql}
+ rm -f "${D}"/usr/sbin/bareos
+
+ # remove upstream init scripts
+ rm -f "${D}"/etc/init.d/bareos-*
+
+ # rename statically linked apps
+ if use clientonly && use static ; then
+ pushd "${D}"/usr/sbin || die
+ mv static-bareos-fd bareos-fd || die
+ mv static-bconsole bconsole || die
+ popd || die
+ fi
+
+ # extra files which 'make install' doesn't cover
+ if ! use clientonly; then
+ # the logrotate configuration
+ # (now unconditional wrt bug #258187)
+ diropts -m0755
+ insinto /etc/logrotate.d
+ insopts -m0644
+ newins "${S}"/scripts/logrotate bareos
+
+ # the logwatch scripts
+ if use logwatch; then
+ diropts -m0750
+ dodir /etc/log.d/scripts/services
+ dodir /etc/log.d/scripts/shared
+ dodir /etc/log.d/conf/logfiles
+ dodir /etc/log.d/conf/services
+ pushd "${S}"/scripts/logwatch >&/dev/null || die
+ emake DESTDIR="${D}" install
+ popd >&/dev/null || die
+ fi
+ fi
+
+ rm -vf "${D}"/usr/share/man/man1/bareos-bwxconsole.1*
+ if ! use qt4; then
+ rm -vf "${D}"/usr/share/man/man1/bat.1*
+ fi
+ if use clientonly || ! use director; then
+ rm -vf "${D}"/usr/share/man/man8/bareos-dir.8*
+ rm -vf "${D}"/usr/share/man/man8/bareos-dbcheck.8*
+ rm -vf "${D}"/usr/share/man/man1/bsmtp.1*
+ rm -vf "${D}"/usr/share/man/man8/bwild.8*
+ rm -vf "${D}"/usr/share/man/man8/bregex.8*
+ rm -vf "${D}"/usr/share/man/man8/bpluginfo.8*
+ rm -vf "${D}"/usr/libexec/bareos/create_*_database
+ rm -vf "${D}"/usr/libexec/bareos/drop_*_database
+ rm -vf "${D}"/usr/libexec/bareos/make_*_tables
+ rm -vf "${D}"/usr/libexec/bareos/update_*_tables
+ rm -vf "${D}"/usr/libexec/bareos/drop_*_tables
+ rm -vf "${D}"/usr/libexec/bareos/grant_*_privileges
+ rm -vf "${D}"/usr/libexec/bareos/*_catalog_backup
+ fi
+ if use clientonly || ! use storage-daemon; then
+ rm -vf "${D}"/usr/share/man/man8/bareos-sd.8*
+ rm -vf "${D}"/usr/share/man/man8/bcopy.8*
+ rm -vf "${D}"/usr/share/man/man8/bextract.8*
+ rm -vf "${D}"/usr/share/man/man8/bls.8*
+ rm -vf "${D}"/usr/share/man/man8/bscan.8*
+ rm -vf "${D}"/usr/share/man/man8/btape.8*
+ rm -vf "${D}"/usr/libexec/bareos/disk-changer
+ rm -vf "${D}"/usr/libexec/bareos/mtx-changer
+ rm -vf "${D}"/usr/libexec/bareos/dvd-handler
+ rm -vf "${D}"/etc/bareos/mtx-changer.conf
+ fi
+ if ! use scsi-crypto; then
+ rm -vf "${D}"/usr/share/man/man8/bscrypto.8*
+ fi
+ if ! use qt4; then
+ rm -vf "${D}"/usr/share/man/man1/bareos-tray-monitor.1*
+ fi
+
+ # documentation
+ dodoc README.md
+ use ndmp && dodoc README.NDMP
+ use scsi-crypto && dodoc README.scsicrypto
+
+ # install examples (bug #457504)
+ if use examples; then
+ docinto examples/
+ dodoc -r examples/*
+ fi
+
+ # vim-files
+ if use vim-syntax; then
+ insinto /usr/share/vim/vimfiles/syntax
+ doins scripts/bareos.vim
+ insinto /usr/share/vim/vimfiles/ftdetect
+ newins scripts/filetype.vim bareos_ft.vim
+ fi
+
+ # setup init scripts
+ myscripts="bareos-fd"
+ if ! use clientonly; then
+ if use director; then
+ myscripts="${myscripts} bareos-dir"
+ fi
+ if use storage-daemon; then
+ myscripts="${myscripts} bareos-sd"
+ fi
+ fi
+ for script in ${myscripts}; do
+ # copy over init script and config to a temporary location
+ # so we can modify them as needed
+ cp "${FILESDIR}/${script}".confd "${T}/${script}".confd || die "failed to copy ${script}.confd"
+ cp "${FILESDIR}/${script}".initd "${T}/${script}".initd || die "failed to copy ${script}.initd"
+
+ # now set the database dependency for the director init script
+ case "${script}" in
+ bareos-dir)
+ sed -i -e "s:%databasetypes%:${mydbtypes}:" "${T}/${script}".confd || die
+ ;;
+ *)
+ ;;
+ esac
+
+ # install init script and config
+ newinitd "${T}/${script}".initd "${script}"
+ newconfd "${T}/${script}".confd "${script}"
+ done
+
+ # make sure the working directory exists
+ diropts -m0750
+ keepdir /var/lib/bareos
+
+ # make sure bareos group can execute bareos libexec scripts
+ fowners -R root:bareos /usr/libexec/bareos
+}
+
+pkg_postinst() {
+ if use clientonly; then
+ fowners root:bareos /var/lib/bareos
+ else
+ fowners bareos:bareos /var/lib/bareos
+ fi
+
+ if ! use clientonly && use director; then
+ einfo
+ einfo "If this is a new install, you must create the databases with:"
+ if use postgres; then
+ einfo
+ einfo "For postgresql:"
+ einfo " su postgres -c '/usr/libexec/bareos/create_bareos_database postgresql'"
+ einfo " su postgres -c '/usr/libexec/bareos/make_bareos_tables postgresql'"
+ einfo " su postgres -c '/usr/libexec/bareos/grant_bareos_privileges postgresql'"
+ fi
+ if use mysql; then
+ einfo
+ einfo "For mysql:"
+ einfo
+ einfo " Make sure root has direct access to your mysql server. You may want to"
+ einfo " create a /root/.my.cnf file with"
+ einfo " [client]"
+ einfo " user=root"
+ einfo " password=YourPasswordForAccessingMysqlAsRoot"
+ einfo " before running:"
+ einfo " /usr/libexec/bareos/create_bareos_database mysql"
+ einfo " /usr/libexec/bareos/make_bareos_tables mysql"
+ einfo " /usr/libexec/bareos/grant_bareos_privileges mysql"
+ fi
+ einfo
+ fi
+
+ if use sqlite; then
+ einfo
+ einfo "Be aware that Bareos does not officially support SQLite database."
+ einfo "Best use it only for a client-only installation. See Bug #445540."
+ einfo
+ einfo "It is strongly recommended to use either postgresql or mysql as"
+ einfo "catalog database backend."
+ einfo
+ fi
+
+ einfo "Please note that 'bconsole' will always be installed. To compile 'bat'"
+ einfo "you have to enable 'USE=qt4'."
+ einfo
+}
diff --git a/app-backup/bareos/bareos-13.2.4-r1.ebuild b/app-backup/bareos/bareos-13.2.4-r1.ebuild
new file mode 100644
index 000000000000..09b471847b15
--- /dev/null
+++ b/app-backup/bareos/bareos-13.2.4-r1.ebuild
@@ -0,0 +1,398 @@
+# 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 eutils multilib python-single-r1 qt4-r2 user
+
+DESCRIPTION="Featureful client/server network backup suite"
+HOMEPAGE="http://www.bareos.org/"
+SRC_URI="https://github.com/${PN}/${PN}/archive/Release/${PV}.tar.gz -> ${P}.tar.gz"
+RESTRICT="mirror"
+
+LICENSE="AGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="acl clientonly +director fastlz ipv6 logwatch mysql ndmp postgres python qt4
+ readline scsi-crypto sql-pooling +sqlite ssl static +storage-daemon tcpd
+ vim-syntax X"
+
+DEPEND="
+ !app-backup/bacula
+ dev-libs/gmp:0
+ !clientonly? (
+ postgres? ( dev-db/postgresql:*[threads] )
+ mysql? ( virtual/mysql )
+ sqlite? ( dev-db/sqlite:3 )
+ director? ( virtual/mta )
+ )
+ qt4? (
+ dev-qt/qtsvg:4
+ x11-libs/qwt:5
+ )
+ fastlz? ( dev-libs/bareos-fastlzlib )
+ logwatch? ( sys-apps/logwatch )
+ tcpd? ( sys-apps/tcp-wrappers )
+ readline? ( sys-libs/readline:0 )
+ static? (
+ acl? ( virtual/acl[static-libs] )
+ sys-libs/zlib[static-libs]
+ dev-libs/lzo[static-libs]
+ sys-libs/ncurses[static-libs]
+ ssl? ( dev-libs/openssl:0[static-libs] )
+ )
+ !static? (
+ acl? ( virtual/acl )
+ dev-libs/lzo
+ ssl? ( dev-libs/openssl:0 )
+ sys-libs/ncurses
+ sys-libs/zlib
+ )
+ python? ( ${PYTHON_DEPS} )
+ "
+RDEPEND="${DEPEND}
+ !clientonly? (
+ storage-daemon? (
+ sys-block/mtx
+ app-arch/mt-st
+ )
+ )
+ vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )"
+
+REQUIRED_USE="static? ( clientonly )
+ python? ( ${PYTHON_REQUIRED_USE} )"
+
+S=${WORKDIR}/${PN}-Release-${PV}
+
+pkg_setup() {
+ use mysql && export mydbtypes+="mysql"
+ use postgres && export mydbtypes+=" postgresql"
+ use sqlite && export mydbtypes+=" sqlite"
+
+ # create the daemon group and user
+ if [ -z "$(egetent group bareos 2>/dev/null)" ]; then
+ enewgroup bareos
+ einfo
+ einfo "The group 'bareos' has been created. Any users you add to this"
+ einfo "group have access to files created by the daemons."
+ einfo
+ fi
+
+ if use clientonly && use static && use qt4; then
+ ewarn
+ ewarn "Building statically linked 'bat' is not supported. Ignorig 'qt4' useflag."
+ ewarn
+ fi
+
+ if ! use clientonly; then
+ if [ -z "$(egetent passwd bareos 2>/dev/null)" ]; then
+ enewuser bareos -1 -1 /var/lib/bareos bareos,disk,tape,cdrom,cdrw
+ einfo
+ einfo "The user 'bareos' has been created. Please see the bareos manual"
+ einfo "for information about running bareos as a non-root user."
+ einfo
+ fi
+ fi
+
+ use python && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ # adjusts default configuration files for several binaries
+ # to /etc/bareos/<config> instead of ./<config>
+ pushd src >&/dev/null || die
+ for f in console/console.c dird/dird.c filed/filed.c \
+ stored/bcopy.c stored/bextract.c stored/bls.c \
+ stored/bscan.c stored/btape.c stored/stored.c \
+ qt-console/main.cpp; do
+ sed -i -e 's|^\(#define CONFIG_FILE "\)|\1/etc/bareos/|g' "${f}" \
+ || die "sed on ${f} failed"
+ done
+ popd >&/dev/null || die
+
+ # bug 466690 Use CXXFLAGS instead of CFLAGS
+ sed -i -e 's/@CFLAGS@/@CXXFLAGS@/' autoconf/Make.common.in || die
+
+ # stop build for errors in subdirs
+ epatch "${FILESDIR}"/${PN}-12.4.5-Makefile.patch
+
+ # bat needs to respect LDFLAGS
+ epatch "${FILESDIR}"/${PN}-12.4.5-bat-ldflags.patch
+
+ # do not strip binaries
+ for d in filed console dird stored; do
+ sed -i -e "s/strip /# strip /" src/$d/Makefile.in || die
+ done
+}
+
+src_configure() {
+ local myconf=''
+
+ if use clientonly; then
+ myconf="${myconf} \
+ $(use_enable clientonly client-only) \
+ $(use_enable !static libtool) \
+ $(use_enable static static-cons) \
+ $(use_enable static static-fd)"
+ fi
+
+ # do not build bat and traymonitor if 'static' clientonly
+ if ! use clientonly || ! use static; then
+ myconf="${myconf} \
+ $(use_enable qt4 bat) \
+ $(use_enable qt4 traymonitor)"
+ fi
+
+ myconf="${myconf} \
+ $(use_with X x) \
+ $(use_enable acl) \
+ $(use_enable ipv6) \
+ $(use_enable ndmp) \
+ $(use_enable readline) \
+ $(use_enable !readline conio) \
+ $(use_enable scsi-crypto) \
+ $(use_enable sql-pooling) \
+ $(use_with fastlz) \
+ $(use_with mysql) \
+ $(use_with postgres postgresql) \
+ $(use_with python) \
+ $(use_with readline) \
+ $(use_with sqlite sqlite3) \
+ $(use sqlite || echo "--without-sqlite3") \
+ $(use_with ssl openssl) \
+ $(use_with tcpd tcp-wrappers) \
+ "
+
+ econf \
+ --libdir=/usr/$(get_libdir) \
+ --docdir=/usr/share/doc/${PF} \
+ --htmldir=/usr/share/doc/${PF}/html \
+ --with-pid-dir=/run/bareos \
+ --sysconfdir=/etc/bareos \
+ --with-subsys-dir=/run/lock/subsys \
+ --with-working-dir=/var/lib/bareos \
+ --with-logdir=/var/log/bareos \
+ --with-scriptdir=/usr/libexec/bareos \
+ --with-plugindir=/usr/$(get_libdir)/${PN}/plugin \
+ --with-dir-user=bareos \
+ --with-dir-group=bareos \
+ --with-sd-user=root \
+ --with-sd-group=bareos \
+ --with-fd-user=root \
+ --with-fd-group=bareos \
+ --with-sbin-perm=0755 \
+ --enable-smartalloc \
+ --enable-dynamic-cats-backends \
+ --enable-batch-insert \
+ --disable-afs \
+ --host=${CHOST} \
+ ${myconf}
+ # correct configuration for QT based bat
+ if use qt4 ; then
+ pushd src/qt-console
+ eqmake4
+ popd
+ pushd src/qt-tray-monitor
+ eqmake4
+ popd
+ fi
+}
+
+src_compile() {
+ # workaround for build failing with high -j values
+ # if ndmp is enabled
+ use ndmp && MAKEOPTS="$MAKEOPTS -j1"
+
+ # Make build log verbose (bug #447806)
+ emake NO_ECHO=""
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ doicon scripts/bareos.png
+
+ # install bat icon and desktop file when enabled
+ # (for some reason ./configure doesn't pick this up)
+ if use qt4 && ! use static ; then
+ doicon src/images/bat.png
+ domenu scripts/bat.desktop
+ fi
+
+ # remove some scripts we don't need at all
+ rm -f "${D}"/usr/libexec/bareos/{bareos,bareos-ctl-dir,bareos-ctl-fd,bareos-ctl-sd,startmysql,stopmysql}
+ rm -f "${D}"/usr/sbin/bareos
+
+ # remove upstream init scripts
+ rm -f "${D}"/etc/init.d/bareos-*
+
+ # rename statically linked apps
+ if use clientonly && use static ; then
+ pushd "${D}"/usr/sbin || die
+ mv static-bareos-fd bareos-fd || die
+ mv static-bconsole bconsole || die
+ popd || die
+ fi
+
+ # extra files which 'make install' doesn't cover
+ if ! use clientonly; then
+ # the logrotate configuration
+ # (now unconditional wrt bug #258187)
+ diropts -m0755
+ insinto /etc/logrotate.d
+ insopts -m0644
+ newins "${S}"/scripts/logrotate bareos
+
+ # the logwatch scripts
+ if use logwatch; then
+ diropts -m0750
+ dodir /etc/log.d/scripts/services
+ dodir /etc/log.d/scripts/shared
+ dodir /etc/log.d/conf/logfiles
+ dodir /etc/log.d/conf/services
+ pushd "${S}"/scripts/logwatch >&/dev/null || die
+ emake DESTDIR="${D}" install
+ popd >&/dev/null || die
+ fi
+ fi
+
+ rm -vf "${D}"/usr/share/man/man1/bareos-bwxconsole.1*
+ if ! use qt4; then
+ rm -vf "${D}"/usr/share/man/man1/bat.1*
+ fi
+ if use clientonly || ! use director; then
+ rm -vf "${D}"/usr/share/man/man8/bareos-dir.8*
+ rm -vf "${D}"/usr/share/man/man8/bareos-dbcheck.8*
+ rm -vf "${D}"/usr/share/man/man1/bsmtp.1*
+ rm -vf "${D}"/usr/share/man/man8/bwild.8*
+ rm -vf "${D}"/usr/share/man/man8/bregex.8*
+ rm -vf "${D}"/usr/share/man/man8/bpluginfo.8*
+ rm -vf "${D}"/usr/libexec/bareos/create_*_database
+ rm -vf "${D}"/usr/libexec/bareos/drop_*_database
+ rm -vf "${D}"/usr/libexec/bareos/make_*_tables
+ rm -vf "${D}"/usr/libexec/bareos/update_*_tables
+ rm -vf "${D}"/usr/libexec/bareos/drop_*_tables
+ rm -vf "${D}"/usr/libexec/bareos/grant_*_privileges
+ rm -vf "${D}"/usr/libexec/bareos/*_catalog_backup
+ fi
+ if use clientonly || ! use storage-daemon; then
+ rm -vf "${D}"/usr/share/man/man8/bareos-sd.8*
+ rm -vf "${D}"/usr/share/man/man8/bcopy.8*
+ rm -vf "${D}"/usr/share/man/man8/bextract.8*
+ rm -vf "${D}"/usr/share/man/man8/bls.8*
+ rm -vf "${D}"/usr/share/man/man8/bscan.8*
+ rm -vf "${D}"/usr/share/man/man8/btape.8*
+ rm -vf "${D}"/usr/libexec/bareos/disk-changer
+ rm -vf "${D}"/usr/libexec/bareos/mtx-changer
+ rm -vf "${D}"/usr/libexec/bareos/dvd-handler
+ rm -vf "${D}"/etc/bareos/mtx-changer.conf
+ fi
+ if ! use scsi-crypto; then
+ rm -vf "${D}"/usr/share/man/man8/bscrypto.8*
+ fi
+ if ! use qt4; then
+ rm -vf "${D}"/usr/share/man/man1/bareos-tray-monitor.1*
+ fi
+
+ # documentation
+ dodoc README.md
+ use ndmp && dodoc README.NDMP
+ use scsi-crypto && dodoc README.scsicrypto
+
+ # vim-files
+ if use vim-syntax; then
+ insinto /usr/share/vim/vimfiles/syntax
+ doins scripts/bareos.vim
+ insinto /usr/share/vim/vimfiles/ftdetect
+ newins scripts/filetype.vim bareos_ft.vim
+ fi
+
+ # setup init scripts
+ myscripts="bareos-fd"
+ if ! use clientonly; then
+ if use director; then
+ myscripts="${myscripts} bareos-dir"
+ fi
+ if use storage-daemon; then
+ myscripts="${myscripts} bareos-sd"
+ fi
+ fi
+ for script in ${myscripts}; do
+ # copy over init script and config to a temporary location
+ # so we can modify them as needed
+ cp "${FILESDIR}/${script}".confd "${T}/${script}".confd || die "failed to copy ${script}.confd"
+ cp "${FILESDIR}/${script}".initd "${T}/${script}".initd || die "failed to copy ${script}.initd"
+
+ # now set the database dependency for the director init script
+ case "${script}" in
+ bareos-dir)
+ sed -i -e "s:%databasetypes%:${mydbtypes}:" "${T}/${script}".confd || die
+ ;;
+ *)
+ ;;
+ esac
+
+ # install init script and config
+ newinitd "${T}/${script}".initd "${script}"
+ newconfd "${T}/${script}".confd "${script}"
+ done
+
+ # make sure the working directory exists
+ diropts -m0750
+ keepdir /var/lib/bareos
+
+ # make sure bareos group can execute bareos libexec scripts
+ fowners -R root:bareos /usr/libexec/bareos
+}
+
+pkg_postinst() {
+ if use clientonly; then
+ fowners root:bareos /var/lib/bareos
+ else
+ fowners bareos:bareos /var/lib/bareos
+ fi
+
+ if ! use clientonly && use director; then
+ einfo
+ einfo "If this is a new install, you must create the databases with:"
+ if use postgres; then
+ einfo
+ einfo "For postgresql:"
+ einfo " su postgres -c '/usr/libexec/bareos/create_bareos_database postgresql'"
+ einfo " su postgres -c '/usr/libexec/bareos/make_bareos_tables postgresql'"
+ einfo " su postgres -c '/usr/libexec/bareos/grant_bareos_privileges postgresql'"
+ fi
+ if use mysql; then
+ einfo
+ einfo "For mysql:"
+ einfo
+ einfo " Make sure root has direct access to your mysql server. You may want to"
+ einfo " create a /root/.my.cnf file with"
+ einfo " [client]"
+ einfo " user=root"
+ einfo " password=YourPasswordForAccessingMysqlAsRoot"
+ einfo " before running:"
+ einfo " /usr/libexec/bareos/create_bareos_database mysql"
+ einfo " /usr/libexec/bareos/make_bareos_tables mysql"
+ einfo " /usr/libexec/bareos/grant_bareos_privileges mysql"
+ fi
+ einfo
+ fi
+
+ if use sqlite; then
+ einfo
+ einfo "Be aware that Bareos does not officially support SQLite database."
+ einfo "Best use it only for a client-only installation. See Bug #445540."
+ einfo
+ einfo "It is strongly recommended to use either postgresql or mysql as"
+ einfo "catalog database backend."
+ einfo
+ fi
+
+ einfo "Please note that 'bconsole' will always be installed. To compile 'bat'"
+ einfo "you have to enable 'USE=qt4'."
+ einfo
+}
diff --git a/app-backup/bareos/bareos-14.2.1.ebuild b/app-backup/bareos/bareos-14.2.1.ebuild
new file mode 100644
index 000000000000..c9ff71bd55d1
--- /dev/null
+++ b/app-backup/bareos/bareos-14.2.1.ebuild
@@ -0,0 +1,409 @@
+# 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 eutils multilib python-single-r1 qt4-r2 user
+
+DESCRIPTION="Featureful client/server network backup suite"
+HOMEPAGE="http://www.bareos.org/"
+SRC_URI="https://github.com/${PN}/${PN}/archive/Release/${PV}.tar.gz -> ${P}.tar.gz"
+RESTRICT="mirror"
+
+LICENSE="AGPL-3"
+SLOT="0"
+KEYWORDS=""
+IUSE="acl clientonly +director fastlz ipv6 logwatch mysql ndmp postgres python qt4
+ readline scsi-crypto sql-pooling +sqlite ssl static +storage-daemon tcpd
+ vim-syntax X cephfs glusterfs lmdb rados"
+
+DEPEND="
+ !app-backup/bacula
+ cephfs? ( sys-cluster/ceph )
+ rados? ( sys-cluster/ceph )
+ glusterfs? ( sys-cluster/glusterfs )
+ lmdb? ( dev-db/lmdb )
+ dev-libs/gmp:0
+ !clientonly? (
+ postgres? ( dev-db/postgresql:*[threads] )
+ mysql? ( virtual/mysql )
+ sqlite? ( dev-db/sqlite:3 )
+ director? ( virtual/mta )
+ )
+ qt4? (
+ dev-qt/qtsvg:4
+ x11-libs/qwt:5
+ )
+ fastlz? ( dev-libs/bareos-fastlzlib )
+ logwatch? ( sys-apps/logwatch )
+ tcpd? ( sys-apps/tcp-wrappers )
+ readline? ( sys-libs/readline:0 )
+ static? (
+ acl? ( virtual/acl[static-libs] )
+ sys-libs/zlib[static-libs]
+ dev-libs/lzo[static-libs]
+ sys-libs/ncurses[static-libs]
+ ssl? ( dev-libs/openssl:0[static-libs] )
+ )
+ !static? (
+ acl? ( virtual/acl )
+ dev-libs/lzo
+ ssl? ( dev-libs/openssl:0 )
+ sys-libs/ncurses
+ sys-libs/zlib
+ )
+ python? ( ${PYTHON_DEPS} )
+ "
+RDEPEND="${DEPEND}
+ !clientonly? (
+ storage-daemon? (
+ sys-block/mtx
+ app-arch/mt-st
+ )
+ )
+ vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )"
+
+REQUIRED_USE="static? ( clientonly )
+ python? ( ${PYTHON_REQUIRED_USE} )"
+
+S=${WORKDIR}/${PN}-Release-${PV}
+
+pkg_setup() {
+ use mysql && export mydbtypes+="mysql"
+ use postgres && export mydbtypes+=" postgresql"
+ use sqlite && export mydbtypes+=" sqlite"
+
+ # create the daemon group and user
+ if [ -z "$(egetent group bareos 2>/dev/null)" ]; then
+ enewgroup bareos
+ einfo
+ einfo "The group 'bareos' has been created. Any users you add to this"
+ einfo "group have access to files created by the daemons."
+ einfo
+ fi
+
+ if use clientonly && use static && use qt4; then
+ ewarn
+ ewarn "Building statically linked 'bat' is not supported. Ignorig 'qt4' useflag."
+ ewarn
+ fi
+
+ if ! use clientonly; then
+ if [ -z "$(egetent passwd bareos 2>/dev/null)" ]; then
+ enewuser bareos -1 -1 /var/lib/bareos bareos,disk,tape,cdrom,cdrw
+ einfo
+ einfo "The user 'bareos' has been created. Please see the bareos manual"
+ einfo "for information about running bareos as a non-root user."
+ einfo
+ fi
+ fi
+
+ use python && python-single-r1_pkg_setup
+}
+
+src_prepare() {
+ # adjusts default configuration files for several binaries
+ # to /etc/bareos/<config> instead of ./<config>
+ pushd src >&/dev/null || die
+ for f in console/console.c dird/dird.c filed/filed.c \
+ stored/bcopy.c stored/bextract.c stored/bls.c \
+ stored/bscan.c stored/btape.c stored/stored.c \
+ qt-console/main.cpp; do
+ sed -i -e 's|^\(#define CONFIG_FILE "\)|\1/etc/bareos/|g' "${f}" \
+ || die "sed on ${f} failed"
+ done
+ popd >&/dev/null || die
+
+ # bug 466690 Use CXXFLAGS instead of CFLAGS
+ sed -i -e 's/@CFLAGS@/@CXXFLAGS@/' autoconf/Make.common.in || die
+
+ # stop build for errors in subdirs
+ epatch "${FILESDIR}"/${PN}-12.4.5-Makefile.patch
+
+ # bat needs to respect LDFLAGS
+ epatch "${FILESDIR}"/${PN}-12.4.5-bat-ldflags.patch
+
+ # do not strip binaries
+ for d in filed console dird stored; do
+ sed -i -e "s/strip /# strip /" src/$d/Makefile.in || die
+ done
+}
+
+src_configure() {
+ local myconf=''
+
+ if use clientonly; then
+ myconf="${myconf} \
+ $(use_enable clientonly client-only) \
+ $(use_enable !static libtool) \
+ $(use_enable static static-cons) \
+ $(use_enable static static-fd)"
+ fi
+
+ # do not build bat and traymonitor if 'static' clientonly
+ if ! use clientonly || ! use static; then
+ myconf="${myconf} \
+ $(use_enable qt4 bat) \
+ $(use_enable qt4 traymonitor)"
+ fi
+
+ myconf="${myconf} \
+ $(use_with X x) \
+ $(use_enable acl) \
+ $(use_enable ipv6) \
+ $(use_enable ndmp) \
+ $(use_enable readline) \
+ $(use_enable !readline conio) \
+ $(use_enable scsi-crypto) \
+ $(use_enable sql-pooling) \
+ $(use_with fastlz) \
+ $(use_with mysql) \
+ $(use_with postgres postgresql) \
+ $(use_with python) \
+ $(use_with readline) \
+ $(use_with sqlite sqlite3) \
+ $(use sqlite || echo "--without-sqlite3") \
+ $(use_with ssl openssl) \
+ $(use_with tcpd tcp-wrappers) \
+ $(use_enable lmdb) \
+ $(use_with glusterfs) \
+ $(use_with rados) \
+ $(use_with cephfs) \
+ "
+
+ econf \
+ --libdir=/usr/$(get_libdir) \
+ --docdir=/usr/share/doc/${PF} \
+ --htmldir=/usr/share/doc/${PF}/html \
+ --with-pid-dir=/run/bareos \
+ --sysconfdir=/etc/bareos \
+ --with-subsys-dir=/run/lock/subsys \
+ --with-working-dir=/var/lib/bareos \
+ --with-logdir=/var/log/bareos \
+ --with-scriptdir=/usr/libexec/bareos \
+ --with-plugindir=/usr/$(get_libdir)/${PN}/plugin \
+ --with-backenddir=/usr/$(get_libdir)/${PN}/backend \
+ --with-dir-user=bareos \
+ --with-dir-group=bareos \
+ --with-sd-user=root \
+ --with-sd-group=bareos \
+ --with-fd-user=root \
+ --with-fd-group=bareos \
+ --with-sbin-perm=0755 \
+ --with-systemd \
+ --enable-smartalloc \
+ --enable-dynamic-cats-backends \
+ --enable-dynamic-storage-backends \
+ --enable-batch-insert \
+ --disable-afs \
+ --host=${CHOST} \
+ ${myconf}
+ # correct configuration for QT based bat
+ if use qt4 ; then
+ pushd src/qt-console
+ eqmake4
+ popd
+ pushd src/qt-tray-monitor
+ eqmake4
+ popd
+ fi
+}
+
+src_compile() {
+ # workaround for build failing with high -j values
+ # if ndmp is enabled
+ use ndmp && MAKEOPTS="$MAKEOPTS -j1"
+
+ # Make build log verbose (bug #447806)
+ emake NO_ECHO=""
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+ doicon scripts/bareos.png
+
+ # install bat icon and desktop file when enabled
+ # (for some reason ./configure doesn't pick this up)
+ if use qt4 && ! use static ; then
+ doicon src/images/bat.png
+ domenu scripts/bat.desktop
+ fi
+
+ # remove some scripts we don't need at all
+ rm -f "${D}"/usr/libexec/bareos/{bareos,bareos-ctl-dir,bareos-ctl-fd,bareos-ctl-sd,startmysql,stopmysql}
+ rm -f "${D}"/usr/sbin/bareos
+
+ # remove upstream init scripts
+ rm -f "${D}"/etc/init.d/bareos-*
+
+ # rename statically linked apps
+ if use clientonly && use static ; then
+ pushd "${D}"/usr/sbin || die
+ mv static-bareos-fd bareos-fd || die
+ mv static-bconsole bconsole || die
+ popd || die
+ fi
+
+ # extra files which 'make install' doesn't cover
+ if ! use clientonly; then
+ # the logrotate configuration
+ # (now unconditional wrt bug #258187)
+ diropts -m0755
+ insinto /etc/logrotate.d
+ insopts -m0644
+ newins "${S}"/scripts/logrotate bareos
+
+ # the logwatch scripts
+ if use logwatch; then
+ diropts -m0750
+ dodir /etc/log.d/scripts/services
+ dodir /etc/log.d/scripts/shared
+ dodir /etc/log.d/conf/logfiles
+ dodir /etc/log.d/conf/services
+ pushd "${S}"/scripts/logwatch >&/dev/null || die
+ emake DESTDIR="${D}" install
+ popd >&/dev/null || die
+ fi
+ fi
+
+ rm -vf "${D}"/usr/share/man/man1/bareos-bwxconsole.1*
+ if ! use qt4; then
+ rm -vf "${D}"/usr/share/man/man1/bat.1*
+ fi
+ if use clientonly || ! use director; then
+ rm -vf "${D}"/usr/share/man/man8/bareos-dir.8*
+ rm -vf "${D}"/usr/share/man/man8/bareos-dbcheck.8*
+ rm -vf "${D}"/usr/share/man/man1/bsmtp.1*
+ rm -vf "${D}"/usr/share/man/man8/bwild.8*
+ rm -vf "${D}"/usr/share/man/man8/bregex.8*
+ rm -vf "${D}"/usr/share/man/man8/bpluginfo.8*
+ rm -vf "${D}"/usr/libexec/bareos/create_*_database
+ rm -vf "${D}"/usr/libexec/bareos/drop_*_database
+ rm -vf "${D}"/usr/libexec/bareos/make_*_tables
+ rm -vf "${D}"/usr/libexec/bareos/update_*_tables
+ rm -vf "${D}"/usr/libexec/bareos/drop_*_tables
+ rm -vf "${D}"/usr/libexec/bareos/grant_*_privileges
+ rm -vf "${D}"/usr/libexec/bareos/*_catalog_backup
+ fi
+ if use clientonly || ! use storage-daemon; then
+ rm -vf "${D}"/usr/share/man/man8/bareos-sd.8*
+ rm -vf "${D}"/usr/share/man/man8/bcopy.8*
+ rm -vf "${D}"/usr/share/man/man8/bextract.8*
+ rm -vf "${D}"/usr/share/man/man8/bls.8*
+ rm -vf "${D}"/usr/share/man/man8/bscan.8*
+ rm -vf "${D}"/usr/share/man/man8/btape.8*
+ rm -vf "${D}"/usr/libexec/bareos/disk-changer
+ rm -vf "${D}"/usr/libexec/bareos/mtx-changer
+ rm -vf "${D}"/usr/libexec/bareos/dvd-handler
+ rm -vf "${D}"/etc/bareos/mtx-changer.conf
+ fi
+ if ! use scsi-crypto; then
+ rm -vf "${D}"/usr/share/man/man8/bscrypto.8*
+ fi
+ if ! use qt4; then
+ rm -vf "${D}"/usr/share/man/man1/bareos-tray-monitor.1*
+ fi
+
+ # documentation
+ dodoc README.md
+ use ndmp && dodoc README.NDMP
+ use scsi-crypto && dodoc README.scsicrypto
+
+ # vim-files
+ if use vim-syntax; then
+ insinto /usr/share/vim/vimfiles/syntax
+ doins scripts/bareos.vim
+ insinto /usr/share/vim/vimfiles/ftdetect
+ newins scripts/filetype.vim bareos_ft.vim
+ fi
+
+ # setup init scripts
+ myscripts="bareos-fd"
+ if ! use clientonly; then
+ if use director; then
+ myscripts="${myscripts} bareos-dir"
+ fi
+ if use storage-daemon; then
+ myscripts="${myscripts} bareos-sd"
+ fi
+ fi
+ for script in ${myscripts}; do
+ # copy over init script and config to a temporary location
+ # so we can modify them as needed
+ cp "${FILESDIR}/${script}".confd "${T}/${script}".confd || die "failed to copy ${script}.confd"
+ cp "${FILESDIR}/${script}".initd "${T}/${script}".initd || die "failed to copy ${script}.initd"
+
+ # now set the database dependency for the director init script
+ case "${script}" in
+ bareos-dir)
+ sed -i -e "s:%databasetypes%:${mydbtypes}:" "${T}/${script}".confd || die
+ ;;
+ *)
+ ;;
+ esac
+
+ # install init script and config
+ newinitd "${T}/${script}".initd "${script}"
+ newconfd "${T}/${script}".confd "${script}"
+ done
+
+ # make sure the working directory exists
+ diropts -m0750
+ keepdir /var/lib/bareos
+
+ # make sure bareos group can execute bareos libexec scripts
+ fowners -R root:bareos /usr/libexec/bareos
+}
+
+pkg_postinst() {
+ if use clientonly; then
+ fowners root:bareos /var/lib/bareos
+ else
+ fowners bareos:bareos /var/lib/bareos
+ fi
+
+ if ! use clientonly && use director; then
+ einfo
+ einfo "If this is a new install, you must create the databases with:"
+ if use postgres; then
+ einfo
+ einfo "For postgresql:"
+ einfo " su postgres -c '/usr/libexec/bareos/create_bareos_database postgresql'"
+ einfo " su postgres -c '/usr/libexec/bareos/make_bareos_tables postgresql'"
+ einfo " su postgres -c '/usr/libexec/bareos/grant_bareos_privileges postgresql'"
+ fi
+ if use mysql; then
+ einfo
+ einfo "For mysql:"
+ einfo
+ einfo " Make sure root has direct access to your mysql server. You may want to"
+ einfo " create a /root/.my.cnf file with"
+ einfo " [client]"
+ einfo " user=root"
+ einfo " password=YourPasswordForAccessingMysqlAsRoot"
+ einfo " before running:"
+ einfo " /usr/libexec/bareos/create_bareos_database mysql"
+ einfo " /usr/libexec/bareos/make_bareos_tables mysql"
+ einfo " /usr/libexec/bareos/grant_bareos_privileges mysql"
+ fi
+ einfo
+ fi
+
+ if use sqlite; then
+ einfo
+ einfo "Be aware that Bareos does not officially support SQLite database."
+ einfo "Best use it only for a client-only installation. See Bug #445540."
+ einfo
+ einfo "It is strongly recommended to use either postgresql or mysql as"
+ einfo "catalog database backend."
+ einfo
+ fi
+
+ einfo "Please note that 'bconsole' will always be installed. To compile 'bat'"
+ einfo "you have to enable 'USE=qt4'."
+ einfo
+}
diff --git a/app-backup/bareos/files/bareos-12.4.5-Makefile.patch b/app-backup/bareos/files/bareos-12.4.5-Makefile.patch
new file mode 100644
index 000000000000..3cdee15d4db7
--- /dev/null
+++ b/app-backup/bareos/files/bareos-12.4.5-Makefile.patch
@@ -0,0 +1,27 @@
+# stop build if there are errors in subdirs
+--- Makefile.in.orig 2010-07-20 16:53:44.000000000 +0000
++++ Makefile.in 2010-07-20 16:55:50.000000000 +0000
+@@ -44,9 +44,8 @@
+
+ all: Makefile
+ @for I in ${all_subdirs}; \
+- do (cd $$I; echo "==>Entering directory `pwd`"; \
+- $(MAKE) DESTDIR=$(DESTDIR) $@ || (echo ""; echo ""; echo " ====== Error in `pwd` ======"; \
+- echo ""; echo ""; exit 1;)); \
++ do \
++ $(MAKE) DESTDIR=$(DESTDIR) -C $$I $@ || exit 1; \
+ done
+
+ depend:
+@@ -55,9 +54,8 @@
+
+ bacula-fd: Makefile
+ @for I in ${fd_subdirs}; \
+- do (cd $$I; echo "==>Entering directory `pwd`"; \
+- $(MAKE) DESTDIR=$(DESTDIR) all || (echo ""; echo ""; echo " ====== Error in `pwd` ======"; \
+- echo ""; echo ""; exit 1;)); \
++ do \
++ $(MAKE) DESTDIR=$(DESTDIR) -C $$I all || exit 1; \
+ done
+
+ #-------------------------------------------------------------------------
diff --git a/app-backup/bareos/files/bareos-12.4.5-bat-ldflags.patch b/app-backup/bareos/files/bareos-12.4.5-bat-ldflags.patch
new file mode 100644
index 000000000000..94d8fb60120e
--- /dev/null
+++ b/app-backup/bareos/files/bareos-12.4.5-bat-ldflags.patch
@@ -0,0 +1,11 @@
+# bat needs to respect LDFLAGS
+--- src/qt-console/bat.pro.in.orig 2010-07-20 18:28:50.000000000 +0000
++++ src/qt-console/bat.pro.in 2010-07-20 18:29:25.000000000 +0000
+@@ -26,6 +26,7 @@
+ QMAKE_LINK = $${LIBTOOL_LINK} $(CXX)
+ QMAKE_INSTALL_PROGRAM = $${LIBTOOL_INSTALL} install -m @SBINPERM@ -p
+ QMAKE_CLEAN += .libs/* bat
++QMAKE_LFLAGS += @LDFLAGS@
+
+ qwt {
+ INCLUDEPATH += @QWT_INC@
diff --git a/app-backup/bareos/files/bareos-dir.confd b/app-backup/bareos/files/bareos-dir.confd
new file mode 100644
index 000000000000..441cf4cbefdb
--- /dev/null
+++ b/app-backup/bareos/files/bareos-dir.confd
@@ -0,0 +1,18 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+# Config file for /etc/init.d/bareos-dir
+
+# Bareos can use more than one catalog database and each one can
+# be of any supported type.
+# If a database server where you store a bareos catalog
+# is on a different machine, you might want to remove the corresponding
+# type from the rc_need variable.
+rc_need="%databasetypes%"
+
+# Options for the director daemon.
+# The director can be run as a non-root user, however
+# please ensure that this user has proper permissions to
+# access your backup devices.
+DIR_OPTIONS="-u root -g bareos -c /etc/bareos/bareos-dir.conf"
diff --git a/app-backup/bareos/files/bareos-dir.initd b/app-backup/bareos/files/bareos-dir.initd
new file mode 100644
index 000000000000..5e508f9fce43
--- /dev/null
+++ b/app-backup/bareos/files/bareos-dir.initd
@@ -0,0 +1,22 @@
+#!/sbin/runscript
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+depend() {
+ use dns bareos-fd bareos-sd
+}
+
+start() {
+ ebegin "Starting bareos director"
+ checkpath -d -m 0750 -o bareos:bareos /run/bareos
+ start-stop-daemon --start --quiet --exec /usr/sbin/bareos-dir \
+ -- ${DIR_OPTIONS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping bareos director"
+ start-stop-daemon --stop --quiet --pidfile /run/bareos/bareos-dir.*.pid
+ eend $?
+}
diff --git a/app-backup/bareos/files/bareos-fd.confd b/app-backup/bareos/files/bareos-fd.confd
new file mode 100644
index 000000000000..05bc77742a84
--- /dev/null
+++ b/app-backup/bareos/files/bareos-fd.confd
@@ -0,0 +1,8 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+# Config file for /etc/init.d/bareos-fd
+
+# Options for the file daemon.
+FD_OPTIONS="-u root -g bareos -c /etc/bareos/bareos-fd.conf"
diff --git a/app-backup/bareos/files/bareos-fd.initd b/app-backup/bareos/files/bareos-fd.initd
new file mode 100644
index 000000000000..7f2491599c5e
--- /dev/null
+++ b/app-backup/bareos/files/bareos-fd.initd
@@ -0,0 +1,22 @@
+#!/sbin/runscript
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+depend() {
+ use dns
+}
+
+start() {
+ ebegin "Starting bareos file daemon"
+ checkpath -d -m 0750 /run/bareos
+ start-stop-daemon --start --quiet --exec /usr/sbin/bareos-fd \
+ -- ${FD_OPTIONS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping bareos file daemon"
+ start-stop-daemon --stop --quiet --pidfile /run/bareos/bareos-fd.*.pid
+ eend $?
+}
diff --git a/app-backup/bareos/files/bareos-sd.confd b/app-backup/bareos/files/bareos-sd.confd
new file mode 100644
index 000000000000..3a688ffb5d15
--- /dev/null
+++ b/app-backup/bareos/files/bareos-sd.confd
@@ -0,0 +1,11 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+# Config file for /etc/init.d/bareos-sd
+
+# Options for the storage daemon.
+# The storage daemon can be run as a non-root user, however
+# please ensure that this user has proper permissions to
+# access your backup devices.
+SD_OPTIONS="-u root -g bareos -c /etc/bareos/bareos-sd.conf"
diff --git a/app-backup/bareos/files/bareos-sd.initd b/app-backup/bareos/files/bareos-sd.initd
new file mode 100644
index 000000000000..e37df1af6afd
--- /dev/null
+++ b/app-backup/bareos/files/bareos-sd.initd
@@ -0,0 +1,22 @@
+#!/sbin/runscript
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+depend() {
+ use dns
+}
+
+start() {
+ ebegin "Starting bareos storage daemon"
+ checkpath -d -m 0750 -o bareos:bareos /run/bareos
+ start-stop-daemon --start --quiet --exec /usr/sbin/bareos-sd \
+ -- ${SD_OPTIONS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping bareos storage daemon"
+ start-stop-daemon --stop --quiet --pidfile /run/bareos/bareos-sd.*.pid
+ eend $?
+}
diff --git a/app-backup/bareos/metadata.xml b/app-backup/bareos/metadata.xml
new file mode 100644
index 000000000000..f7f835f420b1
--- /dev/null
+++ b/app-backup/bareos/metadata.xml
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>mschiff@gentoo.org</email>
+ <name>Marc Schiffbauer</name>
+ </maintainer>
+ <use>
+ <flag name="cephfs">Enable cephfs storage backend</flag>
+ <flag name="clientonly">Only install file-daemon (client)</flag>
+ <flag name="director">Install director</flag>
+ <flag name="fastlz">Enable support vor lz4, lz4hc and lzfast using dev-libs/bareos-fastlzlib</flag>
+ <flag name="glusterfs">Enable glusterfs storage backend</flag>
+ <flag name="lmdb">enable build of LMDB support for faster accurate backup</flag>
+ <flag name="logwatch">Install support files for logwatch</flag>
+ <flag name="ndmp">Enable support for NDMP (Network Data Management Protocol)</flag>
+ <flag name="rados">Enable rados storage backend</flag>
+ <flag name="scsi-crypto">Enable low level SCSI crypto support</flag>
+ <flag name="sql-pooling">Enable SQL pooling support</flag>
+ <flag name="storage-daemon">Install storage daemon (bareos-sd)</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">bareos/bareos</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-backup/boxbackup/Manifest b/app-backup/boxbackup/Manifest
new file mode 100644
index 000000000000..6870363bd54c
--- /dev/null
+++ b/app-backup/boxbackup/Manifest
@@ -0,0 +1 @@
+DIST boxbackup-0.11.1.tgz 1863270 SHA256 1328b010477259c4767276dbfebab6580e883336cc9d25696c39991b09cc6d32 SHA512 15ceceae3659f14254f422136805a8b3ed3c39d14f8a1ffd0c96efb05b7acb5be310e13144ed86fe4afd24a3c0b86ec771b7d3a9f08b2789bb98e18468ca97f8 WHIRLPOOL 9abcae4e907d526e6df0ebfee813cd374e8f981e5f25e0a2cbc2e958e0bf4d0ce10a455d71e036dc13aa31c01c422349cdbb1f1a36a0ea8ae16cf2b14f0f97fc
diff --git a/app-backup/boxbackup/boxbackup-0.11.1.ebuild b/app-backup/boxbackup/boxbackup-0.11.1.ebuild
new file mode 100644
index 000000000000..55bf9cb51035
--- /dev/null
+++ b/app-backup/boxbackup/boxbackup-0.11.1.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="2"
+
+inherit eutils user
+
+DESCRIPTION="A completely automatic on-line backup system"
+HOMEPAGE="http://boxbackup.org/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tgz"
+SRC_URI="http://boxbackup.org/svn/box/packages/${P/_/}.tgz"
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="amd64 x86 ~ppc-macos ~x86-macos"
+IUSE="client-only"
+DEPEND="sys-libs/zlib
+ sys-libs/db
+ >=dev-libs/openssl-0.9.7
+ >=dev-lang/perl-5.6"
+RDEPEND="${DEPEND}
+ virtual/mta"
+
+S="${WORKDIR}/${P/_/}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PN}-0.11_rc8-testbbackupd.patch
+}
+
+src_compile() {
+ # bug #299411
+ emake -j1 || die
+}
+
+src_install() {
+ emake -j1 DESTDIR="${D}" install || die "install failed"
+ emake -j1 DESTDIR="${D}" install-backup-client || die "client install failed"
+ use client-only || \
+ emake -j1 DESTDIR="${D}" install-backup-server || die "server install failed"
+
+ dodoc *.txt
+ newinitd "${FILESDIR}"/bbackupd.rc bbackupd
+ use client-only || \
+ newinitd "${FILESDIR}"/bbstored.rc bbstored
+
+ keepdir /etc/boxbackup
+
+ # apparently new versions have the files in the right location, so this is redundant
+ # move executables from /usr/bin to /usr/sbin, as configuration of
+ # this is unfortunately not optimal
+ #mv "${D%/}${EPREFIX}/usr/bin" "${D%/}${EPREFIX}/usr/sbin" || die "could not move files from bin to sbin"
+}
+
+pkg_preinst() {
+ if ! use client-only;
+ then
+ enewgroup bbstored
+ enewuser bbstored -1 -1 -1 bbstored
+ fi
+}
+
+pkg_postinst() {
+ while read line; do elog "${line}"; done <<EOF
+After configuring the Box Backup client and/or server, you can start
+the daemon using the init scripts /etc/init.d/bbackupd and
+/etc/init.d/bbstored.
+The configuration files can be found in /etc/boxbackup
+
+More information about configuring the client can be found at
+${HOMEPAGE}client.html,
+and more information about configuring the server can be found at
+${HOMEPAGE}server.html.
+EOF
+ echo
+}
diff --git a/app-backup/boxbackup/files/bbackupd.rc b/app-backup/boxbackup/files/bbackupd.rc
new file mode 100644
index 000000000000..a1a9ae2de771
--- /dev/null
+++ b/app-backup/boxbackup/files/bbackupd.rc
@@ -0,0 +1,21 @@
+#!/sbin/runscript
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+depend() {
+ need localmount
+ use net
+}
+
+start() {
+ ebegin "Starting box backup daemon"
+ start-stop-daemon --start --exec /usr/sbin/bbackupd > /dev/null
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping box backup daemon"
+ start-stop-daemon --stop --exec /usr/sbin/bbackupd
+ eend $?
+}
diff --git a/app-backup/boxbackup/files/bbstored.rc b/app-backup/boxbackup/files/bbstored.rc
new file mode 100644
index 000000000000..8d54fdb5f72e
--- /dev/null
+++ b/app-backup/boxbackup/files/bbstored.rc
@@ -0,0 +1,21 @@
+#!/sbin/runscript
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+depend() {
+ need localmount
+ use net
+}
+
+start() {
+ ebegin "Starting box backup store daemon"
+ start-stop-daemon --start --exec /usr/sbin/bbstored > /dev/null
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping box backup store daemon"
+ start-stop-daemon --stop --exec /usr/sbin/bbstored
+ eend $?
+}
diff --git a/app-backup/boxbackup/files/boxbackup-0.11_rc8-testbbackupd.patch b/app-backup/boxbackup/files/boxbackup-0.11_rc8-testbbackupd.patch
new file mode 100644
index 000000000000..12a6825cc759
--- /dev/null
+++ b/app-backup/boxbackup/files/boxbackup-0.11_rc8-testbbackupd.patch
@@ -0,0 +1,11 @@
+--- a/test/bbackupd/testbbackupd.cpp 2010-05-01 15:52:27.000000000 +0200
++++ b/test/bbackupd/testbbackupd.cpp 2010-05-07 07:12:42.000000000 +0200
+@@ -1176,7 +1176,7 @@
+ std::string touchfile =
+ "testfiles/TestDir1/spacetest/d1/touch-me";
+
+- fd = open(touchfile.c_str(), O_CREAT | O_WRONLY);
++ fd = open(touchfile.c_str(), O_CREAT | O_WRONLY, 700);
+ TEST_THAT(fd > 0);
+ // write again, to update the file's timestamp
+ TEST_EQUAL_LINE(sizeof(buffer),
diff --git a/app-backup/boxbackup/metadata.xml b/app-backup/boxbackup/metadata.xml
new file mode 100644
index 000000000000..939fd5533c18
--- /dev/null
+++ b/app-backup/boxbackup/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>app-backup</herd>
+ <longdescription>An open source, completely automatic on-line backup
+ system for UNIX.</longdescription>
+ <use>
+ <flag name='client-only'>Disable server support, and just build a
+ client</flag>
+ </use>
+</pkgmetadata>
diff --git a/app-backup/burp/Manifest b/app-backup/burp/Manifest
new file mode 100644
index 000000000000..402fa3a901ae
--- /dev/null
+++ b/app-backup/burp/Manifest
@@ -0,0 +1,4 @@
+DIST burp-1.3.48.tar.bz2 683509 SHA256 bb456c208998d2f5806828357934e794cd9675448cb6545473364fd9e6d73509 SHA512 08de252f25ff7aa448dd6768272a9a14622902347445313b570c857b4e690374e92956379d5b388f446a88427fc4924f9c0df83cba390aa15fd040b8e92f1946 WHIRLPOOL ac99abddd74bcc753037841afc78c74c7af23ad550334f0585540f056ce93243b8958cbdc37cae15cb98a02c2884c928dd65ac03820e1ef53ea031128a831a44
+DIST burp-1.3.8.tar.bz2 796082 SHA256 ed1546d97e902d0b3974a32ef3f543b5d9ec0a5448f3caca2373383192169656 SHA512 49f4fa43bcbd2aa54b8cee840dfb2f1b7e396048c609d7303fdef08d13dbaf7b0c7016da39620fc5a15cd9dfb8577f82e8446512887aff1ce1b6ce31e7a60e57 WHIRLPOOL 957cdf4b75ec5a79b7c259786b099cf5c001ebc1684df0a1028dda7ec90a2710c1cfcd4f2a8a2fb349466bc5405672350f01f989a4f6a5302eae4fa466af3056
+DIST burp-1.4.26.tar.bz2 710273 SHA256 04111dd0d41277b6b257d7551333f394a3b6da12ffefc8222ba99777ed9448ff SHA512 d42249ac837a642ad0ca980060053d58685c2a5aa61d790ad67a72828fe632f99346886d29e175f6f533267608e55d784db86d5f0ee946519b937ef2825d4530 WHIRLPOOL f724d0a91d4447c5a2ce7920662078a845ae300966bc9425632f80f81cfd19b223c8f0c108c7e6e636a4503837b7202b643bc3c933d3e894d3a0f7a0358d4458
+DIST burp-1.4.34.tar.bz2 712409 SHA256 547d84a03d84a5ece0562b75f785180846c8f0525c212f66316650187c9cbad2 SHA512 c65d7fab80d24fbf73c5bed1381709ad00c43372e26cebffb2847be57f3c32ec5e6ab060707766a06689a9ab7b490ce10acc93b4c229b336d1791b9dd82e025d WHIRLPOOL fa15dbdae7efd7c9736f40f06555b83b4a4b6cb932ce205eccf3e0606276aa0723c083ef0cf6e006d1cbca814265e6280572a17483d5631ac3928e6967cbcc8a
diff --git a/app-backup/burp/burp-1.3.48.ebuild b/app-backup/burp/burp-1.3.48.ebuild
new file mode 100644
index 000000000000..423b28ce1644
--- /dev/null
+++ b/app-backup/burp/burp-1.3.48.ebuild
@@ -0,0 +1,96 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit autotools eutils user
+
+DESCRIPTION="Network backup and restore client and server for Unix and Windows"
+HOMEPAGE="http://burp.grke.org/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
+
+LICENSE="AGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="acl afs ipv6 nls ssl tcpd xattr"
+
+DEPEND="
+ dev-libs/uthash
+ sys-libs/libcap
+ net-libs/librsync
+ sys-libs/ncurses
+ sys-libs/zlib
+ acl? ( sys-apps/acl )
+ afs? ( net-fs/openafs )
+ nls? ( sys-devel/gettext )
+ ssl? ( dev-libs/openssl:0 )
+ tcpd? ( sys-apps/tcp-wrappers )
+ xattr? ( sys-apps/attr )
+ "
+RDEPEND="${DEPEND}
+ virtual/logger
+ "
+
+DOCS=( CONTRIBUTORS DONATIONS UPGRADING )
+PATCHES=(
+ "${FILESDIR}/${PV}-bedup-conf-path.patch"
+ "${FILESDIR}/${PV}-tinfo.patch"
+ )
+S="${WORKDIR}/burp"
+
+pkg_setup() {
+ enewgroup "${PN}"
+ enewuser "${PN}" -1 "" "" "${PN}"
+}
+
+src_prepare() {
+ epatch "${PATCHES[@]}"
+ eautoreconf
+}
+
+src_configure() {
+ local myeconfargs=(
+ --sbindir=/usr/sbin
+ --sysconfdir=/etc/burp
+ --enable-largefile
+ $(use_with ssl openssl)
+ $(use_enable acl)
+ $(use_enable afs)
+ $(use_enable ipv6)
+ $(use_enable nls)
+ $(use_enable xattr)
+ $(use_with tcpd tcp-wrappers)
+ )
+ econf "${myeconfargs[@]}"
+}
+
+src_install() {
+ default
+
+ fowners root:burp /etc/burp /var/spool/burp
+ fperms 0775 /etc/burp /var/spool/burp
+ fowners root:burp /etc/burp/clientconfdir
+ fperms 0750 /etc/burp/clientconfdir
+ fowners root:burp /etc/burp/burp-server.conf
+ fperms 0640 /etc/burp/burp-server.conf
+
+ newinitd "${FILESDIR}"/${PN}.initd ${PN}
+ dodoc docs/*
+
+ sed -e 's|^# user=graham|user = burp|' \
+ -e 's|^# group=nogroup|group = burp|' \
+ -e 's|^pidfile = .*|lockfile = /run/lock/burp/server.lock|' \
+ -i "${D}"/etc/burp/burp-server.conf || die
+}
+
+pkg_postinst() {
+ if use ssl && [ ! -e /etc/burp/CA/index.txt ]; then
+ elog "At first run burp server will generate DH parameters and SSL"
+ elog "certificates. You should adjust configuration before."
+ elog "Server configuration is located at"
+ elog ""
+ elog " /etc/burp/burp-server.conf"
+ elog ""
+ fi
+}
diff --git a/app-backup/burp/burp-1.3.8.ebuild b/app-backup/burp/burp-1.3.8.ebuild
new file mode 100644
index 000000000000..5b49eb747f4a
--- /dev/null
+++ b/app-backup/burp/burp-1.3.8.ebuild
@@ -0,0 +1,91 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils user
+
+DESCRIPTION="Network backup and restore client and server for Unix and Windows"
+HOMEPAGE="http://burp.grke.org/"
+SRC_URI="http://burp.grke.org/downloads/${P}/${P}.tar.bz2"
+
+LICENSE="AGPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="acl afs nls ssl tcpd xattr"
+
+DEPEND="
+ dev-libs/uthash
+ sys-libs/libcap
+ net-libs/librsync
+ sys-libs/ncurses
+ sys-libs/zlib
+ acl? ( sys-apps/acl )
+ afs? ( net-fs/openafs )
+ nls? ( sys-devel/gettext )
+ ssl? ( dev-libs/openssl:0 )
+ tcpd? ( sys-apps/tcp-wrappers )
+ xattr? ( sys-apps/attr )
+ "
+RDEPEND="${DEPEND}
+ virtual/logger
+ "
+
+DOCS=( CONTRIBUTORS DONATIONS UPGRADING )
+PATCHES=( "${FILESDIR}/${PV}-bedup-conf-path.patch" )
+S="${WORKDIR}/burp"
+
+pkg_setup() {
+ enewgroup "${PN}"
+ enewuser "${PN}" -1 "" "" "${PN}"
+}
+
+src_prepare() {
+ epatch "${PATCHES[@]}"
+}
+
+src_configure() {
+ local myeconfargs=(
+ --sbindir=/usr/sbin
+ --sysconfdir=/etc/burp
+ --enable-largefile
+ $(use_with ssl openssl)
+ $(use_enable acl)
+ $(use_enable afs)
+ $(use_enable nls)
+ $(use_enable xattr)
+ $(use_with tcpd tcp-wrappers)
+ )
+ econf "${myeconfargs[@]}"
+}
+
+src_install() {
+ default
+
+ fowners root:burp /etc/burp /var/spool/burp
+ fperms 0775 /etc/burp /var/spool/burp
+ fowners root:burp /etc/burp/clientconfdir
+ fperms 0750 /etc/burp/clientconfdir
+ fowners root:burp /etc/burp/burp-server.conf
+ fperms 0640 /etc/burp/burp-server.conf
+
+ newinitd "${FILESDIR}"/${PN}.initd ${PN}
+ dodoc docs/*
+
+ sed -e 's|^# user=graham|user = burp|' \
+ -e 's|^# group=nogroup|group = burp|' \
+ -e 's|^pidfile = .*|lockfile = /run/lock/burp/server.lock|' \
+ -i "${D}"/etc/burp/burp-server.conf || die
+}
+
+pkg_postinst() {
+ if use ssl && [ ! -e /etc/burp/CA/index.txt ]; then
+ elog "At first run burp server will generate DH parameters and SSL"
+ elog "certificates. You should adjust configuration before."
+ elog "Server configuration is located at"
+ elog ""
+ elog " /etc/burp/burp-server.conf"
+ elog ""
+ fi
+}
diff --git a/app-backup/burp/burp-1.4.26.ebuild b/app-backup/burp/burp-1.4.26.ebuild
new file mode 100644
index 000000000000..47b354576f7e
--- /dev/null
+++ b/app-backup/burp/burp-1.4.26.ebuild
@@ -0,0 +1,96 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit autotools eutils user
+
+DESCRIPTION="Network backup and restore client and server for Unix and Windows"
+HOMEPAGE="http://burp.grke.org/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
+
+LICENSE="AGPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="acl afs ipv6 nls ssl tcpd xattr"
+
+DEPEND="
+ dev-libs/uthash
+ sys-libs/libcap
+ net-libs/librsync
+ sys-libs/ncurses
+ sys-libs/zlib
+ acl? ( sys-apps/acl )
+ afs? ( net-fs/openafs )
+ nls? ( sys-devel/gettext )
+ ssl? ( dev-libs/openssl:0 )
+ tcpd? ( sys-apps/tcp-wrappers )
+ xattr? ( sys-apps/attr )
+ "
+RDEPEND="${DEPEND}
+ virtual/logger
+ "
+
+DOCS=( CONTRIBUTORS DONATIONS UPGRADING )
+PATCHES=(
+ "${FILESDIR}/${PV}-bedup-conf-path.patch"
+ "${FILESDIR}/${PV}-tinfo.patch"
+ )
+S="${WORKDIR}/burp"
+
+pkg_setup() {
+ enewgroup "${PN}"
+ enewuser "${PN}" -1 "" "" "${PN}"
+}
+
+src_prepare() {
+ epatch "${PATCHES[@]}"
+ eautoreconf
+}
+
+src_configure() {
+ local myeconfargs=(
+ --sbindir=/usr/sbin
+ --sysconfdir=/etc/burp
+ --enable-largefile
+ $(use_with ssl openssl)
+ $(use_enable acl)
+ $(use_enable afs)
+ $(use_enable ipv6)
+ $(use_enable nls)
+ $(use_enable xattr)
+ $(use_with tcpd tcp-wrappers)
+ )
+ econf "${myeconfargs[@]}"
+}
+
+src_install() {
+ default
+
+ fowners root:burp /etc/burp /var/spool/burp
+ fperms 0775 /etc/burp /var/spool/burp
+ fowners root:burp /etc/burp/clientconfdir
+ fperms 0750 /etc/burp/clientconfdir
+ fowners root:burp /etc/burp/burp-server.conf
+ fperms 0640 /etc/burp/burp-server.conf
+
+ newinitd "${FILESDIR}"/${PN}.initd ${PN}
+ dodoc docs/*
+
+ sed -e 's|^# user=graham|user = burp|' \
+ -e 's|^# group=nogroup|group = burp|' \
+ -e 's|^pidfile = .*|lockfile = /run/lock/burp/server.lock|' \
+ -i "${D}"/etc/burp/burp-server.conf || die
+}
+
+pkg_postinst() {
+ if use ssl && [ ! -e /etc/burp/CA/index.txt ]; then
+ elog "At first run burp server will generate DH parameters and SSL"
+ elog "certificates. You should adjust configuration before."
+ elog "Server configuration is located at"
+ elog ""
+ elog " /etc/burp/burp-server.conf"
+ elog ""
+ fi
+}
diff --git a/app-backup/burp/burp-1.4.34.ebuild b/app-backup/burp/burp-1.4.34.ebuild
new file mode 100644
index 000000000000..f43007d138cb
--- /dev/null
+++ b/app-backup/burp/burp-1.4.34.ebuild
@@ -0,0 +1,95 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit autotools eutils user
+
+DESCRIPTION="Network backup and restore client and server for Unix and Windows"
+HOMEPAGE="http://burp.grke.org/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
+
+LICENSE="AGPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="acl afs ipv6 nls ssl tcpd xattr"
+
+DEPEND="
+ dev-libs/uthash
+ sys-libs/libcap
+ net-libs/librsync
+ sys-libs/ncurses
+ sys-libs/zlib
+ acl? ( sys-apps/acl )
+ afs? ( net-fs/openafs )
+ nls? ( sys-devel/gettext )
+ ssl? ( dev-libs/openssl:0 )
+ tcpd? ( sys-apps/tcp-wrappers )
+ xattr? ( sys-apps/attr )
+ "
+RDEPEND="${DEPEND}
+ virtual/logger
+ "
+
+DOCS=( CONTRIBUTORS DONATIONS UPGRADING )
+PATCHES=(
+ "${FILESDIR}/${PV}-bedup-conf-path.patch"
+ "${FILESDIR}/${PV}-tinfo.patch"
+ )
+
+pkg_setup() {
+ enewgroup "${PN}"
+ enewuser "${PN}" -1 "" "" "${PN}"
+}
+
+src_prepare() {
+ epatch "${PATCHES[@]}"
+ eautoreconf
+}
+
+src_configure() {
+ local myeconfargs=(
+ --sbindir=/usr/sbin
+ --sysconfdir=/etc/burp
+ --enable-largefile
+ $(use_with ssl openssl)
+ $(use_enable acl)
+ $(use_enable afs)
+ $(use_enable ipv6)
+ $(use_enable nls)
+ $(use_enable xattr)
+ $(use_with tcpd tcp-wrappers)
+ )
+ econf "${myeconfargs[@]}"
+}
+
+src_install() {
+ default
+
+ fowners root:burp /etc/burp /var/spool/burp
+ fperms 0775 /etc/burp /var/spool/burp
+ fowners root:burp /etc/burp/clientconfdir
+ fperms 0750 /etc/burp/clientconfdir
+ fowners root:burp /etc/burp/burp-server.conf
+ fperms 0640 /etc/burp/burp-server.conf
+
+ newinitd "${FILESDIR}"/${PN}.initd ${PN}
+ dodoc docs/*
+
+ sed -e 's|^# user=graham|user = burp|' \
+ -e 's|^# group=nogroup|group = burp|' \
+ -e 's|^pidfile = .*|lockfile = /run/lock/burp/server.lock|' \
+ -i "${D}"/etc/burp/burp-server.conf || die
+}
+
+pkg_postinst() {
+ if use ssl && [ ! -e /etc/burp/CA/index.txt ]; then
+ elog "At first run burp server will generate DH parameters and SSL"
+ elog "certificates. You should adjust configuration before."
+ elog "Server configuration is located at"
+ elog ""
+ elog " /etc/burp/burp-server.conf"
+ elog ""
+ fi
+}
diff --git a/app-backup/burp/files/1.3.48-bedup-conf-path.patch b/app-backup/burp/files/1.3.48-bedup-conf-path.patch
new file mode 100644
index 000000000000..a9bed192d96c
--- /dev/null
+++ b/app-backup/burp/files/1.3.48-bedup-conf-path.patch
@@ -0,0 +1,33 @@
+diff -Naur burp-1.3.48/manpages/bedup.8 burp-1.3.48.new/manpages/bedup.8
+--- burp-1.3.48/manpages/bedup.8 2014-01-27 11:55:47.000000000 +0100
++++ burp-1.3.48.new/manpages/bedup.8 2014-11-22 12:57:20.241299376 +0100
+@@ -16,7 +16,7 @@
+ .SH OPTIONS
+ .TP
+ \fB\-c\fR \fBpath\fR
+-Path to config file (default: /etc/burp/burp.conf).
++Path to config file (default: /etc/burp/burp-server.conf).
+ .TP
+ \fB\-g\fR \fB<list of group names>\fR
+ Only run on the directories of clients that are in one of the groups specified. The list is comma-separated. To put a client in a group, use the 'dedup_group' option in the client configuration file on the server.
+@@ -42,7 +42,7 @@
+ \fB\-V\fR \fB\fR
+ Print version and exit.\fR
+ .TP
+-By default, bedup will read /etc/burp/burp.conf and deduplicate client storage directories using special knowledge of the structure.\fR
++By default, bedup will read /etc/burp/burp-server.conf and deduplicate client storage directories using special knowledge of the structure.\fR
+ .TP
+ With '\-n', this knowledge is turned off and you have to specify the directories to deduplicate on the command line. Running with '\-n' is therefore dangerous if you are deduplicating burp storage directories.
+
+diff -Naur burp-1.3.48/src/bedup.c burp-1.3.48.new/src/bedup.c
+--- burp-1.3.48/src/bedup.c 2014-01-27 11:55:47.000000000 +0100
++++ burp-1.3.48.new/src/bedup.c 2014-11-22 12:57:20.241299376 +0100
+@@ -734,7 +734,7 @@
+ static char *get_config_path(void)
+ {
+ static char path[256]="";
+- snprintf(path, sizeof(path), "%s", SYSCONFDIR "/burp.conf");
++ snprintf(path, sizeof(path), "%s", SYSCONFDIR "/burp-server.conf");
+ return path;
+ }
+
diff --git a/app-backup/burp/files/1.3.48-tinfo.patch b/app-backup/burp/files/1.3.48-tinfo.patch
new file mode 100644
index 000000000000..30b5cb88d6e8
--- /dev/null
+++ b/app-backup/burp/files/1.3.48-tinfo.patch
@@ -0,0 +1,22 @@
+diff -Naur burp-1.3.48/configure.in burp-1.3.48.new/configure.in
+--- burp-1.3.48/configure.in 2014-01-27 11:55:47.000000000 +0100
++++ burp-1.3.48.new/configure.in 2014-11-22 13:01:01.192403673 +0100
+@@ -1203,13 +1203,12 @@
+ fi
+
+ AC_CHECK_HEADERS(ncurses.h)
+-AC_CHECK_LIB(ncurses, curs_set, [NCURSES_LIBS="-lncurses"])
+ have_ncurses=no
+-if test x$NCURSES_LIBS = x-lncurses; then
+- AC_DEFINE(HAVE_NCURSES, 1, [Defined to 1 if libncurses was found])
+- have_ncurses=yes
+-fi
+-AC_SUBST(NCURSES_LIBS)
++AC_CHECK_LIB(ncurses, endwin,
++ [NCURSES_LIBS="-lncurses"; have_ncurses=yes]
++ AC_SEARCH_LIBS(curs_set, tinfo, [NCURSES_LIBS="$NCURSES_LIBS $ac_res"]),
++ AC_DEFINE(HAVE_NCURSES, 1, [Defined to 1 if libncurses was found])
++ AC_SUBST(NCURSES_LIBS))
+
+ dnl
+ dnl Check if we have AFS on this system
diff --git a/app-backup/burp/files/1.3.8-bedup-conf-path.patch b/app-backup/burp/files/1.3.8-bedup-conf-path.patch
new file mode 100644
index 000000000000..a9bed192d96c
--- /dev/null
+++ b/app-backup/burp/files/1.3.8-bedup-conf-path.patch
@@ -0,0 +1,33 @@
+diff -Naur burp-1.3.48/manpages/bedup.8 burp-1.3.48.new/manpages/bedup.8
+--- burp-1.3.48/manpages/bedup.8 2014-01-27 11:55:47.000000000 +0100
++++ burp-1.3.48.new/manpages/bedup.8 2014-11-22 12:57:20.241299376 +0100
+@@ -16,7 +16,7 @@
+ .SH OPTIONS
+ .TP
+ \fB\-c\fR \fBpath\fR
+-Path to config file (default: /etc/burp/burp.conf).
++Path to config file (default: /etc/burp/burp-server.conf).
+ .TP
+ \fB\-g\fR \fB<list of group names>\fR
+ Only run on the directories of clients that are in one of the groups specified. The list is comma-separated. To put a client in a group, use the 'dedup_group' option in the client configuration file on the server.
+@@ -42,7 +42,7 @@
+ \fB\-V\fR \fB\fR
+ Print version and exit.\fR
+ .TP
+-By default, bedup will read /etc/burp/burp.conf and deduplicate client storage directories using special knowledge of the structure.\fR
++By default, bedup will read /etc/burp/burp-server.conf and deduplicate client storage directories using special knowledge of the structure.\fR
+ .TP
+ With '\-n', this knowledge is turned off and you have to specify the directories to deduplicate on the command line. Running with '\-n' is therefore dangerous if you are deduplicating burp storage directories.
+
+diff -Naur burp-1.3.48/src/bedup.c burp-1.3.48.new/src/bedup.c
+--- burp-1.3.48/src/bedup.c 2014-01-27 11:55:47.000000000 +0100
++++ burp-1.3.48.new/src/bedup.c 2014-11-22 12:57:20.241299376 +0100
+@@ -734,7 +734,7 @@
+ static char *get_config_path(void)
+ {
+ static char path[256]="";
+- snprintf(path, sizeof(path), "%s", SYSCONFDIR "/burp.conf");
++ snprintf(path, sizeof(path), "%s", SYSCONFDIR "/burp-server.conf");
+ return path;
+ }
+
diff --git a/app-backup/burp/files/1.4.26-bedup-conf-path.patch b/app-backup/burp/files/1.4.26-bedup-conf-path.patch
new file mode 100644
index 000000000000..30346d466148
--- /dev/null
+++ b/app-backup/burp/files/1.4.26-bedup-conf-path.patch
@@ -0,0 +1,33 @@
+diff -Naur burp/manpages/bedup.8 burp.new/manpages/bedup.8
+--- burp/manpages/bedup.8 2014-10-28 12:45:26.000000000 +0100
++++ burp.new/manpages/bedup.8 2014-11-21 09:49:57.705796144 +0100
+@@ -16,7 +16,7 @@
+ .SH OPTIONS
+ .TP
+ \fB\-c\fR \fBpath\fR
+-Path to config file (default: /etc/burp/burp.conf).
++Path to config file (default: /etc/burp/burp-server.conf).
+ .TP
+ \fB\-g\fR \fB<list of group names>\fR
+ Only run on the directories of clients that are in one of the groups specified. The list is comma-separated. To put a client in a group, use the 'dedup_group' option in the client configuration file on the server.
+@@ -42,7 +42,7 @@
+ \fB\-V\fR \fB\fR
+ Print version and exit.\fR
+ .TP
+-By default, bedup will read /etc/burp/burp.conf and deduplicate client storage directories using special knowledge of the structure.\fR
++By default, bedup will read /etc/burp/burp-server.conf and deduplicate client storage directories using special knowledge of the structure.\fR
+ .TP
+ With '\-n', this knowledge is turned off and you have to specify the directories to deduplicate on the command line. Running with '\-n' is therefore dangerous if you are deduplicating burp storage directories.
+
+diff -Naur burp/src/bedup.c burp.new/src/bedup.c
+--- burp/src/bedup.c 2014-10-28 12:45:56.000000000 +0100
++++ burp.new/src/bedup.c 2014-11-20 21:39:28.728206536 +0100
+@@ -740,7 +740,7 @@
+ static char *get_config_path(void)
+ {
+ static char path[256]="";
+- snprintf(path, sizeof(path), "%s", SYSCONFDIR "/burp.conf");
++ snprintf(path, sizeof(path), "%s", SYSCONFDIR "/burp-server.conf");
+ return path;
+ }
+
diff --git a/app-backup/burp/files/1.4.26-tinfo.patch b/app-backup/burp/files/1.4.26-tinfo.patch
new file mode 100644
index 000000000000..081492261685
--- /dev/null
+++ b/app-backup/burp/files/1.4.26-tinfo.patch
@@ -0,0 +1,22 @@
+diff -Naur burp/configure.ac burp-new/configure.ac
+--- burp/configure.ac 2014-10-28 12:45:56.000000000 +0100
++++ burp-new/configure.ac 2014-11-10 17:40:50.996955441 +0100
+@@ -1203,13 +1203,12 @@
+ fi
+
+ AC_CHECK_HEADERS(ncurses.h)
+-AC_CHECK_LIB(ncurses, curs_set, [NCURSES_LIBS="-lncurses"])
+ have_ncurses=no
+-if test x$NCURSES_LIBS = x-lncurses; then
+- AC_DEFINE(HAVE_NCURSES, 1, [Defined to 1 if libncurses was found])
+- have_ncurses=yes
+-fi
+-AC_SUBST(NCURSES_LIBS)
++AC_CHECK_LIB(ncurses, endwin,
++ [NCURSES_LIBS="-lncurses"; have_ncurses=yes]
++ AC_SEARCH_LIBS(curs_set, tinfo, [NCURSES_LIBS="$NCURSES_LIBS $ac_res"]),
++ AC_DEFINE(HAVE_NCURSES, 1, [Defined to 1 if libncurses was found])
++ AC_SUBST(NCURSES_LIBS))
+
+ dnl
+ dnl Check if we have AFS on this system
diff --git a/app-backup/burp/files/1.4.34-bedup-conf-path.patch b/app-backup/burp/files/1.4.34-bedup-conf-path.patch
new file mode 100644
index 000000000000..30346d466148
--- /dev/null
+++ b/app-backup/burp/files/1.4.34-bedup-conf-path.patch
@@ -0,0 +1,33 @@
+diff -Naur burp/manpages/bedup.8 burp.new/manpages/bedup.8
+--- burp/manpages/bedup.8 2014-10-28 12:45:26.000000000 +0100
++++ burp.new/manpages/bedup.8 2014-11-21 09:49:57.705796144 +0100
+@@ -16,7 +16,7 @@
+ .SH OPTIONS
+ .TP
+ \fB\-c\fR \fBpath\fR
+-Path to config file (default: /etc/burp/burp.conf).
++Path to config file (default: /etc/burp/burp-server.conf).
+ .TP
+ \fB\-g\fR \fB<list of group names>\fR
+ Only run on the directories of clients that are in one of the groups specified. The list is comma-separated. To put a client in a group, use the 'dedup_group' option in the client configuration file on the server.
+@@ -42,7 +42,7 @@
+ \fB\-V\fR \fB\fR
+ Print version and exit.\fR
+ .TP
+-By default, bedup will read /etc/burp/burp.conf and deduplicate client storage directories using special knowledge of the structure.\fR
++By default, bedup will read /etc/burp/burp-server.conf and deduplicate client storage directories using special knowledge of the structure.\fR
+ .TP
+ With '\-n', this knowledge is turned off and you have to specify the directories to deduplicate on the command line. Running with '\-n' is therefore dangerous if you are deduplicating burp storage directories.
+
+diff -Naur burp/src/bedup.c burp.new/src/bedup.c
+--- burp/src/bedup.c 2014-10-28 12:45:56.000000000 +0100
++++ burp.new/src/bedup.c 2014-11-20 21:39:28.728206536 +0100
+@@ -740,7 +740,7 @@
+ static char *get_config_path(void)
+ {
+ static char path[256]="";
+- snprintf(path, sizeof(path), "%s", SYSCONFDIR "/burp.conf");
++ snprintf(path, sizeof(path), "%s", SYSCONFDIR "/burp-server.conf");
+ return path;
+ }
+
diff --git a/app-backup/burp/files/1.4.34-tinfo.patch b/app-backup/burp/files/1.4.34-tinfo.patch
new file mode 100644
index 000000000000..081492261685
--- /dev/null
+++ b/app-backup/burp/files/1.4.34-tinfo.patch
@@ -0,0 +1,22 @@
+diff -Naur burp/configure.ac burp-new/configure.ac
+--- burp/configure.ac 2014-10-28 12:45:56.000000000 +0100
++++ burp-new/configure.ac 2014-11-10 17:40:50.996955441 +0100
+@@ -1203,13 +1203,12 @@
+ fi
+
+ AC_CHECK_HEADERS(ncurses.h)
+-AC_CHECK_LIB(ncurses, curs_set, [NCURSES_LIBS="-lncurses"])
+ have_ncurses=no
+-if test x$NCURSES_LIBS = x-lncurses; then
+- AC_DEFINE(HAVE_NCURSES, 1, [Defined to 1 if libncurses was found])
+- have_ncurses=yes
+-fi
+-AC_SUBST(NCURSES_LIBS)
++AC_CHECK_LIB(ncurses, endwin,
++ [NCURSES_LIBS="-lncurses"; have_ncurses=yes]
++ AC_SEARCH_LIBS(curs_set, tinfo, [NCURSES_LIBS="$NCURSES_LIBS $ac_res"]),
++ AC_DEFINE(HAVE_NCURSES, 1, [Defined to 1 if libncurses was found])
++ AC_SUBST(NCURSES_LIBS))
+
+ dnl
+ dnl Check if we have AFS on this system
diff --git a/app-backup/burp/files/burp.initd b/app-backup/burp/files/burp.initd
new file mode 100644
index 000000000000..8457a2b20aff
--- /dev/null
+++ b/app-backup/burp/files/burp.initd
@@ -0,0 +1,41 @@
+#!/sbin/runscript
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+BURP_CONFIG="/etc/burp/burp-server.conf"
+
+description="Burp is a network backup and restore program"
+
+command="/usr/sbin/burp"
+command_args="-c '${BURP_CONFIG}' -F"
+command_background="yes"
+pidfile="/run/burp-server.pid"
+start_stop_daemon_arg="--make-pidfile --wait 500"
+
+extra_started_commands="reload summary"
+description_reload="Reloads configuration"
+description_summary="Displays main status monitor summary"
+
+depend() {
+ need localmount
+ after bootmisc
+ use net
+}
+
+start_pre() {
+ checkpath -o burp:burp -m 0775 -d /run/lock/burp
+ checkpath -o root:burp -m 0775 -d /etc/burp
+ checkpath -o root:burp -m 0750 -d /etc/burp/clientconfdir
+ checkpath -o root:burp -m 0640 -f /etc/burp/burp-server.conf
+}
+
+reload() {
+ ebegin "Reloading ${SVCNAME} configuration"
+ start-stop-daemon --exec ${command} --signal HUP
+ eend $?
+}
+
+summary() {
+ "${command}" -c "${BURP_CONFIG}" -a S
+}
diff --git a/app-backup/burp/metadata.xml b/app-backup/burp/metadata.xml
new file mode 100644
index 000000000000..9ab9895c52aa
--- /dev/null
+++ b/app-backup/burp/metadata.xml
@@ -0,0 +1,17 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>aidecoe@gentoo.org</email>
+ <name>Amadeusz Żołnowski</name>
+ </maintainer>
+ <longdescription lang="en">
+ Burp is a network backup and restore program. It uses librsync in order
+ to save network traffic and to save on the amount of space that is used
+ by each backup. It also uses VSS (Volume Shadow Copy Service) to make
+ snapshots when backing up Windows computers.
+ </longdescription>
+ <upstream>
+ <remote-id type="sourceforge">burp</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-backup/ccollect/Manifest b/app-backup/ccollect/Manifest
new file mode 100644
index 000000000000..d85c285f945c
--- /dev/null
+++ b/app-backup/ccollect/Manifest
@@ -0,0 +1,3 @@
+DIST ccollect-0.5.1.tar.bz2 37397 SHA256 c3748b3aa52f8696b4cc5c6e760f5d94647c025348824303eef826aa9e7fe5e9 SHA512 93409ff0652575897fd63535daa32bd14baac329eafcbcb6f89d18a9686053360ae7a7953e39f67d68b5ceccd8c8e475132641ae1db2d1d289a91cb5054471eb WHIRLPOOL 049602daba95e3c3939e2d75d3094e74e18712d216a96c81ca32c722f7e40c5dc0b27e9ea5ee2a89c931ff096660f978d112d0a79441eaba4579fb71c16635b7
+DIST ccollect-0.7.1.tar.bz2 38054 SHA256 f1914a53954367a0110acc7e187298f5a0f7e40dd847baa328fa357aa3ea8640 SHA512 b436c7210c30b05c476a518b624c75f45a81eafe308bc6c8a16991910a85e02ee87b306511b8aaaf00bfe0cc05b0ba740eb8d839751cf8967e3f24a943460f10 WHIRLPOOL 837029c6c5ed933621a72c22193b2de567145254aaa0fcd5899b5bd74d3be3a4f4ee62cac88535c417d4a04d41f493e95f5862216d17942cca3f5657f3b2955e
+DIST ccollect-0.8.tar.bz2 60376 SHA256 d0b82b9b4fcd1601d8ea5fd2dae1fb22b1aaf23f12b5cfbf8b27b767e847929a SHA512 dc4b2a8687c636938154f8a4a4048c3f0ef13f6d6e3f6e66d8dcc8f544f3a390a98a8dbfb3ba2ba9019decbec5d628f07461dd3f803e14b2203972936ebf96f3 WHIRLPOOL fe2aaa405ab9f9038a5371170df86cbef2066d87ab948c59ddd2d55311af6a5a14d5bc0b6021c07d3123fb5f7ca5a59eff6f59c552db64f7f80999b31f6f9f9b
diff --git a/app-backup/ccollect/ccollect-0.5.1.ebuild b/app-backup/ccollect/ccollect-0.5.1.ebuild
new file mode 100644
index 000000000000..aacc1e12c101
--- /dev/null
+++ b/app-backup/ccollect/ccollect-0.5.1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+DESCRIPTION="(pseudo) incremental backup with different exclude lists using
+hardlinks and rsync"
+HOMEPAGE="http://unix.schottelius.org/ccollect/"
+SRC_URI="http://unix.schottelius.org/ccollect/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 hppa ppc x86"
+IUSE="doc"
+
+DEPEND="doc? ( >=app-text/asciidoc-7.0.2 )"
+RDEPEND="net-misc/rsync"
+
+src_compile() {
+ if use doc; then
+ make documentation
+ else
+ einfo 'Nothing to compile'
+ fi
+}
+
+src_install() {
+ dobin ccollect.sh
+
+ insinto /usr/share/${PN}/tools
+ doins tools/*
+
+ if use doc; then
+ dodoc doc/*
+
+ # dodoc is not recursive. So do a workaround.
+ insinto /usr/share/doc/${PF}/examples/
+ doins -r "${S}"/conf
+ fi
+}
+
+pkg_postinst() {
+ ewarn "If you're upgrading from 0.3.X or less, please run"
+ ewarn "/usr/share/ccollect/tools/config-pre-0.4-to-0.4.sh"
+ ewarn "because the old configuration is no longer compatible."
+}
diff --git a/app-backup/ccollect/ccollect-0.7.1.ebuild b/app-backup/ccollect/ccollect-0.7.1.ebuild
new file mode 100644
index 000000000000..736d9e036ce5
--- /dev/null
+++ b/app-backup/ccollect/ccollect-0.7.1.ebuild
@@ -0,0 +1,73 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="2"
+
+DESCRIPTION="(pseudo) incremental backup with different exclude lists using hardlinks and rsync"
+HOMEPAGE="http://unix.schottelius.org/ccollect/"
+SRC_URI="http://unix.schottelius.org/ccollect/${P}.tar.bz2"
+
+LICENSE="LGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~hppa ~ppc ~x86"
+IUSE="doc examples"
+
+DEPEND="doc? ( >=app-text/asciidoc-8.1.0
+ app-text/docbook-xsl-stylesheets
+ app-text/docbook-xml-dtd:4.2
+ dev-libs/libxslt )"
+RDEPEND="net-misc/rsync"
+
+src_compile() {
+ if use doc; then
+ emake XSL=/usr/share/sgml/docbook/xsl-stylesheets/html/docbook.xsl documentation || die "building docs failed"
+ fi
+}
+
+src_install() {
+ dobin ccollect.sh
+ dosym ccollect.sh /usr/bin/ccollect
+
+ local tools="add_source analyse_logs check_config delete_source list_intervals logwrapper stats"
+ for t in ${tools} ; do
+ newbin tools/ccollect_${t}.sh ccollect_${t}
+ done
+
+ insinto /usr/share/${PN}/tools
+ doins tools/config-pre* tools/{gnu-du-backup-size-compare,report_success}.sh
+
+ dodoc CREDITS README
+ pushd doc/changes
+ for n in * ; do
+ newdoc ${n} NEWS-${n}
+ done
+ popd
+
+ if use doc; then
+ dohtml doc/*.htm doc/*.html
+ dohtml -r doc/man
+ doman doc/man/*.1
+ fi
+
+ if use examples ; then
+ # dodoc is not recursive. So do a workaround.
+ insinto /usr/share/doc/${PF}/examples/
+ cp -Rdp "${S}/conf" "${D}/usr/share/doc/${PF}/examples/"
+ fi
+}
+
+pkg_postinst() {
+ ewarn "If you're upgrading from 0.6.x or less, you'll have to"
+ ewarn "upgrade your existing configuration as follows:"
+ ewarn "1. Make the scripts in /usr/share/ccollect/scripts executable"
+ ewarn "2. Run all config-pre-\$VER-to-\$VER.sh in /usr/share/ccollect/scripts"
+ ewarn " ascending order, where \$VER is greater or equal than the version"
+ ewarn " you upgraded from."
+ ewarn "Example:"
+ ewarn " You upgraded from 0.5, thus you have to run:"
+ ewarn " /usr/share/ccollect/tools/config-pre-0.6-to-0.6.sh"
+ ewarn " /usr/share/ccollect/tools/config-pre-0.7-to-0.7.sh"
+ elog "Please note that many tools are now installed directly to /usr/bin"
+ elog "as recommended by upstream."
+}
diff --git a/app-backup/ccollect/ccollect-0.8.ebuild b/app-backup/ccollect/ccollect-0.8.ebuild
new file mode 100644
index 000000000000..3909db756728
--- /dev/null
+++ b/app-backup/ccollect/ccollect-0.8.ebuild
@@ -0,0 +1,76 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="2"
+
+DESCRIPTION="(pseudo) incremental backup with different exclude lists using hardlinks and rsync"
+HOMEPAGE="http://www.nico.schottelius.org/software/ccollect/"
+SRC_URI="http://www.nico.schottelius.org/software/${PN}/download/${P}.tar.bz2"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 hppa ppc ~sparc x86"
+IUSE="doc examples"
+
+DEPEND="doc? ( >=app-text/asciidoc-8.1.0
+ app-text/docbook-xsl-stylesheets
+ app-text/docbook-xml-dtd:4.2
+ dev-libs/libxslt )"
+RDEPEND="net-misc/rsync"
+
+# tests need ssh-access
+RESTRICT="test"
+
+src_compile() {
+ if use doc; then
+ emake XSL=/usr/share/sgml/docbook/xsl-stylesheets/html/docbook.xsl documentation || die "building docs failed"
+ fi
+}
+
+src_install() {
+ dobin ccollect.sh
+ dosym ccollect.sh /usr/bin/ccollect
+
+ local tools="add_source analyse_logs archive_config check_config delete_source list_intervals logwrapper stats"
+ for t in ${tools} ; do
+ newbin tools/ccollect_${t}.sh ccollect_${t}
+ done
+
+ insinto /usr/share/${PN}/tools
+ doins tools/config-pre* tools/{gnu-du-backup-size-compare,report_success}.sh
+
+ dodoc CREDITS README
+ pushd doc/changes
+ for n in * ; do
+ newdoc ${n} NEWS-${n}
+ done
+ popd
+
+ if use doc; then
+ dohtml doc/*.htm doc/*.html
+ dohtml -r doc/man
+ doman doc/man/*.1
+ fi
+
+ if use examples ; then
+ # dodoc is not recursive. So do a workaround.
+ insinto /usr/share/doc/${PF}/examples/
+ doins -r conf/*
+ fi
+}
+
+pkg_postinst() {
+ ewarn "If you're upgrading from 0.6.x or less, you'll have to"
+ ewarn "upgrade your existing configuration as follows:"
+ ewarn "1. Make the scripts in /usr/share/ccollect/scripts executable"
+ ewarn "2. Run all config-pre-\$VER-to-\$VER.sh in /usr/share/ccollect/scripts"
+ ewarn " ascending order, where \$VER is greater or equal than the version"
+ ewarn " you upgraded from."
+ ewarn "Example:"
+ ewarn " You upgraded from 0.5, thus you have to run:"
+ ewarn " /usr/share/ccollect/tools/config-pre-0.6-to-0.6.sh"
+ ewarn " /usr/share/ccollect/tools/config-pre-0.7-to-0.7.sh"
+ elog "Please note that many tools are now installed directly to /usr/bin"
+ elog "as recommended by upstream."
+}
diff --git a/app-backup/ccollect/metadata.xml b/app-backup/ccollect/metadata.xml
new file mode 100644
index 000000000000..12de470c180a
--- /dev/null
+++ b/app-backup/ccollect/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>dev-zero@gentoo.org</email>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-backup/cdbackup/Manifest b/app-backup/cdbackup/Manifest
new file mode 100644
index 000000000000..a325475cef67
--- /dev/null
+++ b/app-backup/cdbackup/Manifest
@@ -0,0 +1,2 @@
+DIST cdbackup-0.7.0.tar.gz 22004 SHA256 d960bd67cc06e972c099aca8139b3b2aa35e54d32fda1a6d58f354fb82892a5c SHA512 c64f5c9c4541384a6281ded526fe6b4e47a7912f4b6356474d89a715e8ba42eae7208a4d22f9ff1a7c1b2ce4e91cf0936b14cefba33652563a1c8236959d5ba8 WHIRLPOOL 457a1ca3efa801104b8248196b58c3873b311d3a0ac4e166238dd47017cbc18d01f000536f6c57f65934175bd4083c3fc3ad12f99232fe5a9e42a71c4e92530b
+DIST cdbackup-0.7.1.tar.gz 22710 SHA256 b9d94acd0065c243b2a9d5a47af768ddae003f81a181a61155065a11bb59449c SHA512 9246295090a7d52ff452d5d24a429f2a21179e4d8deb4e9d6f2ab607dd04230830e3524f25d0180e36f62c7f7f87dec11cb3c1c01cde51708d467d6e0a4afc8f WHIRLPOOL 4267f0b48c6835efc8ac4ee2851febdc149985fc466321c25a840a6539348941baf6c43c4e4425a4eb004c5cdf312e10a560a0e3a8ddceb4fa8442c485ec606e
diff --git a/app-backup/cdbackup/cdbackup-0.7.0.ebuild b/app-backup/cdbackup/cdbackup-0.7.0.ebuild
new file mode 100644
index 000000000000..542f40f1a389
--- /dev/null
+++ b/app-backup/cdbackup/cdbackup-0.7.0.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit toolchain-funcs
+
+DESCRIPTION="Allows streaming backup utilities to dump/restore from CD-R(W)s or DVD(+/-RW)s"
+HOMEPAGE="http://www.muempf.de/index.html"
+SRC_URI="http://www.muempf.de/down/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=">=app-cdr/cdrtools-1.11.28"
+DEPEND=""
+
+src_unpack() {
+ unpack ${A}
+
+ sed -i -e '/cd\(backup\|restore\)/,+1 s:CFLAGS:LDFLAGS:' \
+ "${S}"/Makefile || die "sed Makefile failed"
+}
+
+src_compile() {
+ emake CFLAGS="${CFLAGS}" CC="$(tc-getCC)" || die "make failed"
+}
+
+src_install() {
+ dobin cdbackup cdrestore || die "dobin failed"
+ doman cdbackup.1 cdrestore.1 || die "doman failed"
+ dodoc CHANGES CREDITS README || die "dodoc failed"
+}
diff --git a/app-backup/cdbackup/cdbackup-0.7.1.ebuild b/app-backup/cdbackup/cdbackup-0.7.1.ebuild
new file mode 100644
index 000000000000..a01f7997009b
--- /dev/null
+++ b/app-backup/cdbackup/cdbackup-0.7.1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit toolchain-funcs
+
+DESCRIPTION="Allows streaming backup utilities to dump/restore from CD-R(W)s or DVD(+/-RW)s"
+HOMEPAGE="http://www.muempf.de/index.html"
+SRC_URI="http://www.muempf.de/down/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND=">=app-cdr/cdrtools-1.11.28"
+DEPEND=""
+
+src_unpack() {
+ unpack ${A}
+
+ sed -i -e '/cd\(backup\|restore\)/,+1 s:CFLAGS:LDFLAGS:' \
+ "${S}"/Makefile || die "sed Makefile failed"
+}
+
+src_compile() {
+ emake CFLAGS="${CFLAGS}" CC="$(tc-getCC)" || die "make failed"
+}
+
+src_install() {
+ dobin cdbackup cdrestore || die "dobin failed"
+ doman cdbackup.1 cdrestore.1 || die "doman failed"
+ dodoc CHANGES CREDITS README || die "dodoc failed"
+}
diff --git a/app-backup/cdbackup/metadata.xml b/app-backup/cdbackup/metadata.xml
new file mode 100644
index 000000000000..e94d7236906d
--- /dev/null
+++ b/app-backup/cdbackup/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>app-backup</herd>
+</pkgmetadata>
diff --git a/app-backup/cdbkup/Manifest b/app-backup/cdbkup/Manifest
new file mode 100644
index 000000000000..c4e8c84b2241
--- /dev/null
+++ b/app-backup/cdbkup/Manifest
@@ -0,0 +1 @@
+DIST cdbkup-1.0.tar.gz 38252 SHA256 15443e6b72208ccf696d36dd46ce8181696c75bac8eb8c6201842da0d9db5084 SHA512 f95a7540704c16a01e65397fb63b5b97011685c62d3c9a9b2e303470fed5a31f909cb700035466e89ccd181401fd3c19d427fa32c40ece1ba77c1dba9322969d WHIRLPOOL b11fad17c0f850ef05fe4302227348a07475831266b889e58571051ddeca5f438d273ad1219b0477a9158348bf49bcd3315767cd0553dc5fca97fbb56717f1db
diff --git a/app-backup/cdbkup/cdbkup-1.0-r1.ebuild b/app-backup/cdbkup/cdbkup-1.0-r1.ebuild
new file mode 100644
index 000000000000..a5e367dd3707
--- /dev/null
+++ b/app-backup/cdbkup/cdbkup-1.0-r1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit eutils
+
+DESCRIPTION="performs full/incremental backups of local/remote filesystems onto CD-R(W)s"
+HOMEPAGE="http://cdbkup.sourceforge.net/"
+SRC_URI="mirror://sourceforge/cdbkup/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~ppc ~amd64"
+IUSE=""
+
+DEPEND="virtual/cdrtools
+ virtual/eject"
+RDEPEND="${DEPEND}
+ !app-misc/cdcat"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ sed -i -e "s:doc/cdbkup:doc/${P}:" Makefile.in || die
+}
+
+src_compile() {
+ econf --with-snardir=/etc/cdbkup --with-dumpgrp=users
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+ dodoc COMPLIANCE ChangeLog README TODO
+}
diff --git a/app-backup/cdbkup/cdbkup-1.0.ebuild b/app-backup/cdbkup/cdbkup-1.0.ebuild
new file mode 100644
index 000000000000..b37a20045088
--- /dev/null
+++ b/app-backup/cdbkup/cdbkup-1.0.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit eutils
+
+DESCRIPTION="performs full/incremental backups of local/remote filesystems onto CD-R(W)s"
+HOMEPAGE="http://cdbkup.sourceforge.net/"
+SRC_URI="mirror://sourceforge/cdbkup/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="x86 ppc"
+IUSE=""
+
+RDEPEND="virtual/cdrtools
+ virtual/eject
+ !app-misc/cdcat"
+DEPEND="${RDEPEND}
+ >=sys-apps/sed-4"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ sed -i -e "s:doc/cdbkup:doc/${P}:" Makefile.in || die
+ epatch "${S}"/linuxtar_13.patch
+}
+
+src_compile() {
+ econf --with-snardir=/etc/cdbkup --with-dumpgrp=users
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+ dodoc COMPLIANCE ChangeLog README TODO
+}
diff --git a/app-backup/cdbkup/metadata.xml b/app-backup/cdbkup/metadata.xml
new file mode 100644
index 000000000000..a41124469c09
--- /dev/null
+++ b/app-backup/cdbkup/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>app-backup</herd>
+ <longdescription>A backup application capable of full/incremental backups on
+ local and remote systems onto cd-r and cd-rw discs.</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">cdbkup</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-backup/cpdup/Manifest b/app-backup/cpdup/Manifest
new file mode 100644
index 000000000000..bd75b7fc18eb
--- /dev/null
+++ b/app-backup/cpdup/Manifest
@@ -0,0 +1 @@
+DIST cpdup-1.18.tgz 42841 SHA256 3893de9a8ebe5543b9b11c4b575075e59509ddb0f26e6229b2554ee625d25687 SHA512 5c57be20951005d731866629a601b6dae91e112067f103d6cfc3f668fbd88b3b7b65990d9fad55f18c0e8238c2642a7b85aea543a0787f21084bda35e0da0e26 WHIRLPOOL 66b8b3ae3bbb5c6dbae52e4de7e107728733ab429bbd61d658599de74355bbd0889c283f58548873b12b97b662ee9d565182291f19d3b998d3b014b27448a5c4
diff --git a/app-backup/cpdup/cpdup-1.18.ebuild b/app-backup/cpdup/cpdup-1.18.ebuild
new file mode 100644
index 000000000000..629aede8ee1e
--- /dev/null
+++ b/app-backup/cpdup/cpdup-1.18.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="A comprehensive filesystem mirroring program"
+HOMEPAGE="http://apollo.backplane.com/FreeSrc/"
+SRC_URI="http://apollo.backplane.com/FreeSrc/${P}.tgz"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~x86-fbsd ~amd64"
+IUSE="userland_GNU threads"
+
+DEPEND=""
+RDEPEND=""
+
+S="${WORKDIR}/${PN}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}"/${PN}-1.11-unused.patch
+
+ if use userland_GNU; then
+ cp "${FILESDIR}"/Makefile.linux Makefile
+ # bits/stat.h has __unused too
+ sed -i 's/__unused/__cpdup_unused/' *.c
+ echo "#define strlcpy(a,b,c) strncpy(a,b,c)" >> cpdup.h
+ fi
+}
+
+src_compile() {
+ tc-export CC
+ use threads || MAKEOPTS="$MAKEOPTS NOPTHREADS=1"
+ MAKE=make emake || die "emake failed"
+}
+
+src_install() {
+ dobin cpdup || die "cannot install cpdup"
+ doman cpdup.1
+ docinto scripts
+ dodoc scripts/*
+}
diff --git a/app-backup/cpdup/files/Makefile.linux b/app-backup/cpdup/files/Makefile.linux
new file mode 100644
index 000000000000..3e18e4e0b218
--- /dev/null
+++ b/app-backup/cpdup/files/Makefile.linux
@@ -0,0 +1,13 @@
+OBJS = cpdup.o fsmid.o hclink.o hcproto.o misc.o
+
+CFLAGS += -D__cpdup_unused="__attribute__ ((unused))" -D_GNU_SOURCE -D__USE_FILE_OFFSET64 -DNOMD5
+
+ifndef NOPTHREADS
+CFLAGS += -DUSE_PTHREADS=1 -pthread
+endif
+
+all: $(OBJS)
+ $(CC) $(CFLAGS) $(LDFLAGS) $(OBJS) -o cpdup
+
+.c.o:
+ $(CC) $(CFLAGS) -c -o $@ $<
diff --git a/app-backup/cpdup/files/cpdup-1.11-unused.patch b/app-backup/cpdup/files/cpdup-1.11-unused.patch
new file mode 100644
index 000000000000..1757cb441adc
--- /dev/null
+++ b/app-backup/cpdup/files/cpdup-1.11-unused.patch
@@ -0,0 +1,14 @@
+--- cpdup.c.orig 2009-02-05 12:22:10.000000000 +0100
++++ cpdup.c 2009-02-05 12:23:23.000000000 +0100
+@@ -1543,7 +1543,11 @@
+ */
+
+ static int
++#ifdef _ST_FLAGS_PRESENT_
+ xrename(const char *src, const char *dst, u_long flags)
++#else
++xrename(const char *src, const char *dst, u_long flags __unused)
++#endif
+ {
+ int r;
+
diff --git a/app-backup/cpdup/metadata.xml b/app-backup/cpdup/metadata.xml
new file mode 100644
index 000000000000..ecedda4aa2cc
--- /dev/null
+++ b/app-backup/cpdup/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>bsd</herd>
+</pkgmetadata>
diff --git a/app-backup/dar/Manifest b/app-backup/dar/Manifest
new file mode 100644
index 000000000000..749b3d6ab4e2
--- /dev/null
+++ b/app-backup/dar/Manifest
@@ -0,0 +1,8 @@
+DIST dar-2.3.8.tar.gz 1195944 SHA256 ae0b03440a218e674cbfdd0c3b3c419b5a628db616c8d3a06e70ef496dda25d3 SHA512 7815e587898973b6360a788c1851d6c66617bbc88f615f0575a39e737486218b11c44662332e24305a40e2f4dd33794c3aa77691a27c25c0ec50043cc4fc3a18 WHIRLPOOL fc9a4fcc7cf5c61d708109e708845db244ebcd01d084cb5d1dc50d42a039d66178cdcfeb41ca5005f16d5eff48fc2cacb8bb811c3dcbe3a7d66b7002a8f30e9d
+DIST dar-2.4.10.tar.gz 1760827 SHA256 c00111b60264d9ae957c8a2b80fe889ec8803b62b98510c38cd8f9e74be0a15c SHA512 d5fb8dacc813027aded4e2ad9b84506bf18bd89b8412704170d655b1f1249f0f7404696c577532e140b0fd3026a1a285abc0c4ccad0618c7d02c052498aa4be6 WHIRLPOOL 818fe0d20ff88caec5428e4895ca2bd4a0ea2665a76a00f26af8bfd3011710c11fc07c848435a1e78feef372a14c1647bfbd78163b9e00aa2b497cee92463d63
+DIST dar-2.4.11.tar.gz 1760715 SHA256 c15fd11cc339363c25cbf24594eaa571235e00de60b6034a7a58d299ed864a5f SHA512 b1fc364083158f235610cc1860eb63f7147b3f268f2c2d6ec3a36e3d2c1e2cbe21ea7fa4d7ee7a9bc5d6b0c5dacaa9a0fa448225be67edda7f04cb364a374d50 WHIRLPOOL 9f9c57b34ec82cea37d6dd64bc4ee23f7b221dd2e6e52bdd5ffe78f75834b069b9033b2716391fe3453505224af5c49514c989685c3ae8730e67c7cf57b541ab
+DIST dar-2.4.12.tar.gz 1799320 SHA256 6bc4bec5692f970d58a649905afeabc0b4a8e10c9604cd6d16e7205ef343cf55 SHA512 3d0123ae51c275daae1a13a6a1ebc51bf4587fbd95bf99615b9563e00762c6437a438f7a76124ea2f4990386acf6231f42e52a428fa052b144b91690d6943429 WHIRLPOOL 221d51b4125da1f005e962b33a6d685cc929af56e379327554a8254e34f57d25acd0cd3bf49514e704000062b514756be1a516704a11560149a2856bd776431d
+DIST dar-2.4.13.tar.gz 1799774 SHA256 f3b2c3c7ad615b76683f8cdb6d025576f4373c75b9e37a9f340536054350c97a SHA512 28308101f5d73b7bb7ea181fc1df129ea2be888404d301b156938f8cfc47ed1ed2819be058ce910795c937c8bc267305e7e080c2b80f81a18df95ab9cfb7ad07 WHIRLPOOL 6a4b67d6da717e98c3f55df1589055435c92b5849e5f2b337beae96f0c2651a8b99db2c745b6bd739232c156ed04b83d3fa6e208836081a77681bd02e14bc1d6
+DIST dar-2.4.17.tar.gz 1800050 SHA256 5d861c39698b77124680914741e1e40e7e9bedb3fcedc6df8d468e619479833c SHA512 9f991c2801948ca52cbd78222f0a7e807e157efba8f32349ab802b40e8fef10e01e39a5ee581ce5c770e50d69562800c5bfbd0229e2d5d679823d08a5ee31afe WHIRLPOOL cb65f558d70307335b7337154a0fa840935f740bab02ebb91c6904db8b33ac30af97f68befa979bf447aeb54ee4cc53bf49d996fef05d9233f7cdda405beb884
+DIST dar-2.4.2.tar.gz 1741695 SHA256 38fe1b324550d856fb58684a7e471d00afabeee54cf97ed7ae9c3cc67af26c33 SHA512 9c5c1dd7b562571744f3ebdf13d951053b9122679b9f82b5c424d6978cc45993d23304fb79a044063e3d711a4db46c804873cc3d92702c542fbe804d246cb896 WHIRLPOOL ec4d3097d41f7207df94889f4d2b46d7e716e24540942372008fbab6e01dd6617385cccef34e71665d710751b52a8da783ed17d616f86fd2a5597e79b36927d0
+DIST dar-2.4.9.tar.gz 1751738 SHA256 3d11159a290886dde968e16d36f32fa8640029708457bc87cc0da6d0eac71643 SHA512 9a9b972599747493694fd838bafaa690e70490b5c500f084f0d0225e93a54ce40d61bc495827519c88f6a94542b88a1be5d11e5a98e672abe8659364d1b4c51f WHIRLPOOL f700bf7bd393e6dc2cce11e7bc56af0f130ea3fb714de04617a940ec15d6174c06b7a1051eb9c6ffa7a0ec686b1f13c288af1b541d49b332932743d0d617b56b
diff --git a/app-backup/dar/dar-2.3.8.ebuild b/app-backup/dar/dar-2.3.8.ebuild
new file mode 100644
index 000000000000..f416f631c7d7
--- /dev/null
+++ b/app-backup/dar/dar-2.3.8.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit flag-o-matic
+
+DESCRIPTION="A full featured backup tool, aimed for disks (floppy,CDR(W),DVDR(W),zip,jazz etc.)"
+HOMEPAGE="http://dar.linux.free.fr/"
+SRC_URI="mirror://sourceforge/dar/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc sparc x86"
+IUSE="acl dar32 dar64 doc nls ssl"
+
+RDEPEND=">=sys-libs/zlib-1.2.3
+ >=app-arch/bzip2-1.0.2
+ acl? ( sys-apps/attr )
+ nls? ( virtual/libintl )
+ ssl? ( dev-libs/openssl )"
+DEPEND="${RDEPEND}
+ nls? ( sys-devel/gettext )
+ doc? ( app-doc/doxygen )"
+
+pkg_setup() {
+ if use dar32 && use dar64 ; then
+ eerror "dar32 and dar64 cannot be enabled together."
+ eerror "Please remove one of them and try the emerge again."
+ die "Please remove dar32 or dar64."
+ fi
+}
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ sed -i -e '/^dist_noinst_DATA/s/$/ macro_tools.hpp/' \
+ -e '/^noinst_HEADERS/s/macro_tools.hpp//' \
+ src/libdar/Makefile* || die
+}
+
+src_compile() {
+ local myconf="--disable-upx"
+
+ # Bug 103741
+ filter-flags -fomit-frame-pointer
+
+ use acl || myconf="${myconf} --disable-ea-support"
+ use dar32 && myconf="${myconf} --enable-mode=32"
+ use dar64 && myconf="${myconf} --enable-mode=64"
+ use doc || myconf="${myconf} --disable-build-html"
+ # use examples && myconf="${myconf} --enable-examples"
+ use nls || myconf="${myconf} --disable-nls"
+ use ssl || myconf="${myconf} --disable-libcrypto-linking"
+
+ econf ${myconf} || die
+ emake || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" pkgdatadir=/usr/share/doc/${PF}/html install || die
+
+ dodoc AUTHORS ChangeLog NEWS README THANKS TODO
+}
diff --git a/app-backup/dar/dar-2.4.10.ebuild b/app-backup/dar/dar-2.4.10.ebuild
new file mode 100644
index 000000000000..a369c6ec6c1b
--- /dev/null
+++ b/app-backup/dar/dar-2.4.10.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+inherit confutils eutils flag-o-matic
+
+DESCRIPTION="A full featured backup tool, aimed for disks (floppy,CDR(W),DVDR(W),zip,jazz etc.)"
+HOMEPAGE="http://dar.linux.free.fr/"
+SRC_URI="mirror://sourceforge/dar/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~amd64-linux"
+IUSE="acl dar32 dar64 doc gcrypt lzo nls static static-libs"
+
+RESTRICT="test" # need to be run as root
+
+RDEPEND=">=sys-libs/zlib-1.2.3:=
+ !static? ( app-arch/bzip2:= )
+ acl? ( !static? ( sys-apps/attr:= ) )
+ gcrypt? ( dev-libs/libgcrypt:0= )
+ lzo? ( !static? ( dev-libs/lzo:= ) )
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ static? ( app-arch/bzip2[static-libs] )
+ static? ( sys-libs/zlib[static-libs] )
+ acl? ( static? ( sys-apps/attr[static-libs] ) )
+ lzo? ( static? ( dev-libs/lzo[static-libs] ) )
+ nls? ( sys-devel/gettext )
+ doc? ( app-doc/doxygen )"
+
+pkg_setup() {
+ confutils_use_conflict dar32 dar64
+}
+
+src_configure() {
+ local myconf="--disable-upx"
+
+ # Bug 103741
+ filter-flags -fomit-frame-pointer
+
+ use acl || myconf="${myconf} --disable-ea-support"
+ use dar32 && myconf="${myconf} --enable-mode=32"
+ use dar64 && myconf="${myconf} --enable-mode=64"
+ use doc || myconf="${myconf} --disable-build-html"
+ # use examples && myconf="${myconf} --enable-examples"
+ use gcrypt || myconf="${myconf} --disable-libgcrypt-linking"
+ use lzo || myconf="${myconf} --disable-liblzo2-linking"
+ use nls || myconf="${myconf} --disable-nls"
+ if ! use static ; then
+ myconf="${myconf} --disable-dar-static"
+ if ! use static-libs ; then
+ myconf="${myconf} --disable-static"
+ fi
+ fi
+
+ econf ${myconf} || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" pkgdatadir="${EPREFIX}"/usr/share/doc/${PF}/html install || die
+
+ if ! use static-libs ; then
+ find "${ED}" "(" -name '*.la' -o -name '*.a' ")" -delete || die
+ fi
+
+ dodoc AUTHORS ChangeLog NEWS README THANKS TODO || die
+}
diff --git a/app-backup/dar/dar-2.4.11.ebuild b/app-backup/dar/dar-2.4.11.ebuild
new file mode 100644
index 000000000000..a369c6ec6c1b
--- /dev/null
+++ b/app-backup/dar/dar-2.4.11.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+inherit confutils eutils flag-o-matic
+
+DESCRIPTION="A full featured backup tool, aimed for disks (floppy,CDR(W),DVDR(W),zip,jazz etc.)"
+HOMEPAGE="http://dar.linux.free.fr/"
+SRC_URI="mirror://sourceforge/dar/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~amd64-linux"
+IUSE="acl dar32 dar64 doc gcrypt lzo nls static static-libs"
+
+RESTRICT="test" # need to be run as root
+
+RDEPEND=">=sys-libs/zlib-1.2.3:=
+ !static? ( app-arch/bzip2:= )
+ acl? ( !static? ( sys-apps/attr:= ) )
+ gcrypt? ( dev-libs/libgcrypt:0= )
+ lzo? ( !static? ( dev-libs/lzo:= ) )
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ static? ( app-arch/bzip2[static-libs] )
+ static? ( sys-libs/zlib[static-libs] )
+ acl? ( static? ( sys-apps/attr[static-libs] ) )
+ lzo? ( static? ( dev-libs/lzo[static-libs] ) )
+ nls? ( sys-devel/gettext )
+ doc? ( app-doc/doxygen )"
+
+pkg_setup() {
+ confutils_use_conflict dar32 dar64
+}
+
+src_configure() {
+ local myconf="--disable-upx"
+
+ # Bug 103741
+ filter-flags -fomit-frame-pointer
+
+ use acl || myconf="${myconf} --disable-ea-support"
+ use dar32 && myconf="${myconf} --enable-mode=32"
+ use dar64 && myconf="${myconf} --enable-mode=64"
+ use doc || myconf="${myconf} --disable-build-html"
+ # use examples && myconf="${myconf} --enable-examples"
+ use gcrypt || myconf="${myconf} --disable-libgcrypt-linking"
+ use lzo || myconf="${myconf} --disable-liblzo2-linking"
+ use nls || myconf="${myconf} --disable-nls"
+ if ! use static ; then
+ myconf="${myconf} --disable-dar-static"
+ if ! use static-libs ; then
+ myconf="${myconf} --disable-static"
+ fi
+ fi
+
+ econf ${myconf} || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" pkgdatadir="${EPREFIX}"/usr/share/doc/${PF}/html install || die
+
+ if ! use static-libs ; then
+ find "${ED}" "(" -name '*.la' -o -name '*.a' ")" -delete || die
+ fi
+
+ dodoc AUTHORS ChangeLog NEWS README THANKS TODO || die
+}
diff --git a/app-backup/dar/dar-2.4.12.ebuild b/app-backup/dar/dar-2.4.12.ebuild
new file mode 100644
index 000000000000..a369c6ec6c1b
--- /dev/null
+++ b/app-backup/dar/dar-2.4.12.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+inherit confutils eutils flag-o-matic
+
+DESCRIPTION="A full featured backup tool, aimed for disks (floppy,CDR(W),DVDR(W),zip,jazz etc.)"
+HOMEPAGE="http://dar.linux.free.fr/"
+SRC_URI="mirror://sourceforge/dar/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~amd64-linux"
+IUSE="acl dar32 dar64 doc gcrypt lzo nls static static-libs"
+
+RESTRICT="test" # need to be run as root
+
+RDEPEND=">=sys-libs/zlib-1.2.3:=
+ !static? ( app-arch/bzip2:= )
+ acl? ( !static? ( sys-apps/attr:= ) )
+ gcrypt? ( dev-libs/libgcrypt:0= )
+ lzo? ( !static? ( dev-libs/lzo:= ) )
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ static? ( app-arch/bzip2[static-libs] )
+ static? ( sys-libs/zlib[static-libs] )
+ acl? ( static? ( sys-apps/attr[static-libs] ) )
+ lzo? ( static? ( dev-libs/lzo[static-libs] ) )
+ nls? ( sys-devel/gettext )
+ doc? ( app-doc/doxygen )"
+
+pkg_setup() {
+ confutils_use_conflict dar32 dar64
+}
+
+src_configure() {
+ local myconf="--disable-upx"
+
+ # Bug 103741
+ filter-flags -fomit-frame-pointer
+
+ use acl || myconf="${myconf} --disable-ea-support"
+ use dar32 && myconf="${myconf} --enable-mode=32"
+ use dar64 && myconf="${myconf} --enable-mode=64"
+ use doc || myconf="${myconf} --disable-build-html"
+ # use examples && myconf="${myconf} --enable-examples"
+ use gcrypt || myconf="${myconf} --disable-libgcrypt-linking"
+ use lzo || myconf="${myconf} --disable-liblzo2-linking"
+ use nls || myconf="${myconf} --disable-nls"
+ if ! use static ; then
+ myconf="${myconf} --disable-dar-static"
+ if ! use static-libs ; then
+ myconf="${myconf} --disable-static"
+ fi
+ fi
+
+ econf ${myconf} || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" pkgdatadir="${EPREFIX}"/usr/share/doc/${PF}/html install || die
+
+ if ! use static-libs ; then
+ find "${ED}" "(" -name '*.la' -o -name '*.a' ")" -delete || die
+ fi
+
+ dodoc AUTHORS ChangeLog NEWS README THANKS TODO || die
+}
diff --git a/app-backup/dar/dar-2.4.13.ebuild b/app-backup/dar/dar-2.4.13.ebuild
new file mode 100644
index 000000000000..a369c6ec6c1b
--- /dev/null
+++ b/app-backup/dar/dar-2.4.13.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+inherit confutils eutils flag-o-matic
+
+DESCRIPTION="A full featured backup tool, aimed for disks (floppy,CDR(W),DVDR(W),zip,jazz etc.)"
+HOMEPAGE="http://dar.linux.free.fr/"
+SRC_URI="mirror://sourceforge/dar/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~amd64-linux"
+IUSE="acl dar32 dar64 doc gcrypt lzo nls static static-libs"
+
+RESTRICT="test" # need to be run as root
+
+RDEPEND=">=sys-libs/zlib-1.2.3:=
+ !static? ( app-arch/bzip2:= )
+ acl? ( !static? ( sys-apps/attr:= ) )
+ gcrypt? ( dev-libs/libgcrypt:0= )
+ lzo? ( !static? ( dev-libs/lzo:= ) )
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ static? ( app-arch/bzip2[static-libs] )
+ static? ( sys-libs/zlib[static-libs] )
+ acl? ( static? ( sys-apps/attr[static-libs] ) )
+ lzo? ( static? ( dev-libs/lzo[static-libs] ) )
+ nls? ( sys-devel/gettext )
+ doc? ( app-doc/doxygen )"
+
+pkg_setup() {
+ confutils_use_conflict dar32 dar64
+}
+
+src_configure() {
+ local myconf="--disable-upx"
+
+ # Bug 103741
+ filter-flags -fomit-frame-pointer
+
+ use acl || myconf="${myconf} --disable-ea-support"
+ use dar32 && myconf="${myconf} --enable-mode=32"
+ use dar64 && myconf="${myconf} --enable-mode=64"
+ use doc || myconf="${myconf} --disable-build-html"
+ # use examples && myconf="${myconf} --enable-examples"
+ use gcrypt || myconf="${myconf} --disable-libgcrypt-linking"
+ use lzo || myconf="${myconf} --disable-liblzo2-linking"
+ use nls || myconf="${myconf} --disable-nls"
+ if ! use static ; then
+ myconf="${myconf} --disable-dar-static"
+ if ! use static-libs ; then
+ myconf="${myconf} --disable-static"
+ fi
+ fi
+
+ econf ${myconf} || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" pkgdatadir="${EPREFIX}"/usr/share/doc/${PF}/html install || die
+
+ if ! use static-libs ; then
+ find "${ED}" "(" -name '*.la' -o -name '*.a' ")" -delete || die
+ fi
+
+ dodoc AUTHORS ChangeLog NEWS README THANKS TODO || die
+}
diff --git a/app-backup/dar/dar-2.4.17.ebuild b/app-backup/dar/dar-2.4.17.ebuild
new file mode 100644
index 000000000000..a607128215ed
--- /dev/null
+++ b/app-backup/dar/dar-2.4.17.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+inherit confutils eutils flag-o-matic
+
+DESCRIPTION="A full featured backup tool, aimed for disks (floppy,CDR(W),DVDR(W),zip,jazz etc.)"
+HOMEPAGE="http://dar.linux.free.fr/"
+SRC_URI="mirror://sourceforge/dar/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~amd64-linux"
+IUSE="acl dar32 dar64 doc gcrypt lzo nls static static-libs"
+
+RESTRICT="test" # need to be run as root
+
+RDEPEND=">=sys-libs/zlib-1.2.3:=
+ !static? ( app-arch/bzip2:= )
+ acl? ( !static? ( sys-apps/attr:= ) )
+ gcrypt? ( dev-libs/libgcrypt:0= )
+ lzo? ( !static? ( dev-libs/lzo:= ) )
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ static? ( app-arch/bzip2[static-libs] )
+ static? ( sys-libs/zlib[static-libs] )
+ acl? ( static? ( sys-apps/attr[static-libs] ) )
+ lzo? ( static? ( dev-libs/lzo[static-libs] ) )
+ nls? ( sys-devel/gettext )
+ doc? ( app-doc/doxygen )"
+
+pkg_setup() {
+ confutils_use_conflict dar32 dar64
+}
+
+src_configure() {
+ local myconf="--disable-upx"
+
+ # Bug 103741
+ filter-flags -fomit-frame-pointer
+
+ use acl || myconf="${myconf} --disable-ea-support"
+ use dar32 && myconf="${myconf} --enable-mode=32"
+ use dar64 && myconf="${myconf} --enable-mode=64"
+ use doc || myconf="${myconf} --disable-build-html"
+ # use examples && myconf="${myconf} --enable-examples"
+ use gcrypt || myconf="${myconf} --disable-libgcrypt-linking"
+ use lzo || myconf="${myconf} --disable-liblzo2-linking"
+ use nls || myconf="${myconf} --disable-nls"
+ if ! use static ; then
+ myconf="${myconf} --disable-dar-static"
+ if ! use static-libs ; then
+ myconf="${myconf} --disable-static"
+ fi
+ fi
+
+ econf ${myconf} || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" pkgdatadir="${EPREFIX}"/usr/share/doc/${PF}/html install || die
+
+ if ! use static-libs ; then
+ find "${ED}" "(" -name '*.la' -o -name '*.a' ")" -delete || die
+ fi
+
+ dodoc AUTHORS ChangeLog NEWS README THANKS TODO || die
+}
diff --git a/app-backup/dar/dar-2.4.2.ebuild b/app-backup/dar/dar-2.4.2.ebuild
new file mode 100644
index 000000000000..8e61b803ca8c
--- /dev/null
+++ b/app-backup/dar/dar-2.4.2.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="3"
+inherit confutils eutils flag-o-matic
+
+DESCRIPTION="A full featured backup tool, aimed for disks (floppy,CDR(W),DVDR(W),zip,jazz etc.)"
+HOMEPAGE="http://dar.linux.free.fr/"
+SRC_URI="mirror://sourceforge/dar/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~amd64-linux"
+IUSE="acl dar32 dar64 doc gcrypt lzo nls static static-libs"
+
+RESTRICT="test" # need to be run as root
+
+RDEPEND=">=sys-libs/zlib-1.2.3
+ >=app-arch/bzip2-1.0.2
+ acl? (
+ static? ( sys-apps/attr[static-libs] )
+ !static? ( sys-apps/attr )
+ )
+ gcrypt? ( dev-libs/libgcrypt:0 )
+ lzo? ( dev-libs/lzo )
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ nls? ( sys-devel/gettext )
+ doc? ( app-doc/doxygen )"
+
+pkg_setup() {
+ confutils_use_conflict dar32 dar64
+}
+
+src_configure() {
+ local myconf="--disable-upx"
+
+ # Bug 103741
+ filter-flags -fomit-frame-pointer
+
+ use acl || myconf="${myconf} --disable-ea-support"
+ use dar32 && myconf="${myconf} --enable-mode=32"
+ use dar64 && myconf="${myconf} --enable-mode=64"
+ use doc || myconf="${myconf} --disable-build-html"
+ # use examples && myconf="${myconf} --enable-examples"
+ use gcrypt || myconf="${myconf} --disable-libgcrypt-linking"
+ use lzo || myconf="${myconf} --disable-liblzo2-linking"
+ use nls || myconf="${myconf} --disable-nls"
+ if ! use static ; then
+ myconf="${myconf} --disable-dar-static"
+ if ! use static-libs ; then
+ myconf="${myconf} --disable-static"
+ fi
+ fi
+
+ econf ${myconf} || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" pkgdatadir="${EPREFIX}"/usr/share/doc/${PF}/html install || die
+
+ if ! use static-libs ; then
+ find "${ED}" "(" -name '*.la' -o -name '*.a' ")" -delete || die
+ fi
+
+ dodoc AUTHORS ChangeLog NEWS README THANKS TODO || die
+}
diff --git a/app-backup/dar/dar-2.4.9.ebuild b/app-backup/dar/dar-2.4.9.ebuild
new file mode 100644
index 000000000000..2a7dabbeff19
--- /dev/null
+++ b/app-backup/dar/dar-2.4.9.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="3"
+inherit confutils eutils flag-o-matic
+
+DESCRIPTION="A full featured backup tool, aimed for disks (floppy,CDR(W),DVDR(W),zip,jazz etc.)"
+HOMEPAGE="http://dar.linux.free.fr/"
+SRC_URI="mirror://sourceforge/dar/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc sparc x86 ~amd64-linux"
+IUSE="acl dar32 dar64 doc gcrypt lzo nls static static-libs"
+
+RESTRICT="test" # need to be run as root
+
+RDEPEND=">=sys-libs/zlib-1.2.3
+ !static? ( app-arch/bzip2 )
+ acl? ( !static? ( sys-apps/attr ) )
+ gcrypt? ( dev-libs/libgcrypt:0 )
+ lzo? ( !static? ( dev-libs/lzo ) )
+ nls? ( virtual/libintl )"
+DEPEND="${RDEPEND}
+ static? ( app-arch/bzip2[static-libs] )
+ static? ( sys-libs/zlib[static-libs] )
+ acl? ( static? ( sys-apps/attr[static-libs] ) )
+ lzo? ( static? ( dev-libs/lzo[static-libs] ) )
+ nls? ( sys-devel/gettext )
+ doc? ( app-doc/doxygen )"
+
+pkg_setup() {
+ confutils_use_conflict dar32 dar64
+}
+
+src_configure() {
+ local myconf="--disable-upx"
+
+ # Bug 103741
+ filter-flags -fomit-frame-pointer
+
+ use acl || myconf="${myconf} --disable-ea-support"
+ use dar32 && myconf="${myconf} --enable-mode=32"
+ use dar64 && myconf="${myconf} --enable-mode=64"
+ use doc || myconf="${myconf} --disable-build-html"
+ # use examples && myconf="${myconf} --enable-examples"
+ use gcrypt || myconf="${myconf} --disable-libgcrypt-linking"
+ use lzo || myconf="${myconf} --disable-liblzo2-linking"
+ use nls || myconf="${myconf} --disable-nls"
+ if ! use static ; then
+ myconf="${myconf} --disable-dar-static"
+ if ! use static-libs ; then
+ myconf="${myconf} --disable-static"
+ fi
+ fi
+
+ econf ${myconf} || die
+}
+
+src_install() {
+ emake DESTDIR="${D}" pkgdatadir="${EPREFIX}"/usr/share/doc/${PF}/html install || die
+
+ if ! use static-libs ; then
+ find "${ED}" "(" -name '*.la' -o -name '*.a' ")" -delete || die
+ fi
+
+ dodoc AUTHORS ChangeLog NEWS README THANKS TODO || die
+}
diff --git a/app-backup/dar/metadata.xml b/app-backup/dar/metadata.xml
new file mode 100644
index 000000000000..3d9d2a28397b
--- /dev/null
+++ b/app-backup/dar/metadata.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>rich0@gentoo.org</email>
+ </maintainer>
+ <longdescription>
+Backup directory tree and files.
+Full featured archiver with support for differential backups, slices,
+compression, ATTR/ACL support. DAR also supports Pipes for remote
+operations, including with ssh.
+</longdescription>
+ <use>
+ <flag name="dar32">Enables --enable-mode=32 option, which replace infinite
+ by 32 bit integers</flag>
+ <flag name="dar64">Enables --enable-mode=64 option, which replace infinite
+ by 64 bit integers</flag>
+ <flag name="gcrypt">Enables strong encryption support</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">dar</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-backup/deja-dup/Manifest b/app-backup/deja-dup/Manifest
new file mode 100644
index 000000000000..ccdd2c24ca6e
--- /dev/null
+++ b/app-backup/deja-dup/Manifest
@@ -0,0 +1,2 @@
+DIST deja-dup-32.0.tar.xz 690424 SHA256 3ed3da64e6ce7d1f45816a6e490fdcaef1d3796d1e478e2bab6186b0090a109b SHA512 ad8ee1066539ffc55e3ce1d167641d7dc14dfaa6508d41c7003a2571db63a6ae2e84b6055e9df559ff42e7fd9ac647bd851168ed84edac31562d01e4e1f619cf WHIRLPOOL 2d941ac4c4cd78be822e9a4b331ada883796f93c49b4f3c6a4362b4012d82f69c33c8546fa64dea72a9cd49bdb76927256459368b0c2b9418af014676f2eb2cf
+DIST deja-dup-34.0.tar.xz 670644 SHA256 a12da41c989c1fdf43e430965efe8934b0ed9919aab29b372ef7edcedd9fd468 SHA512 70e1b7bb9490acba2b3f2656bc3210a6278a28be3cb8fa4a05feb4b9a88bf8f3728a25d09023bae6203124a38dd71c931d245eaa8302fa0ebf3322151b9f79ba WHIRLPOOL 3661ff7f63049f816f606cb7b11303fed6cb48fb1ec2e78a0dc9260ddb6b267526ef06e658794578a8bccb9d5db370d485f33ae9411aa07efb8accb8e3ae720b
diff --git a/app-backup/deja-dup/deja-dup-32.0-r1.ebuild b/app-backup/deja-dup/deja-dup-32.0-r1.ebuild
new file mode 100644
index 000000000000..d2c3114fafde
--- /dev/null
+++ b/app-backup/deja-dup/deja-dup-32.0-r1.ebuild
@@ -0,0 +1,79 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+GNOME2_LA_PUNT="yes"
+
+VALA_MIN_API_VERSION="0.22" # for >=gtk+-3.10
+VALA_MAX_API_VERSION="0.24"
+
+inherit cmake-utils eutils gnome2 vala
+
+DESCRIPTION="Simple backup tool using duplicity back-end"
+HOMEPAGE="https://launchpad.net/deja-dup/"
+SRC_URI="http://launchpad.net/${PN}/32/${PV}/+download/${P}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="nautilus test"
+
+RESTRICT="test"
+
+COMMON_DEPEND="
+ app-crypt/libsecret[vala]
+ >=dev-libs/glib-2.34:2
+ >=dev-libs/libpeas-1.0
+ >=x11-libs/gtk+-3.10:3
+ >=x11-libs/libnotify-0.7
+
+ >=app-backup/duplicity-0.6.23
+ dev-libs/dbus-glib
+
+ nautilus? ( gnome-base/nautilus )"
+RDEPEND="${COMMON_DEPEND}
+ gnome-base/dconf
+ gnome-base/gvfs[fuse]"
+DEPEND="${COMMON_DEPEND}
+ app-text/yelp-tools
+ $(vala_depend)
+ dev-perl/Locale-gettext
+ virtual/pkgconfig
+ dev-util/intltool
+ sys-devel/gettext"
+
+PATCHES=(
+ "${FILESDIR}"/${P}-duplicity-0.6.25.patch
+)
+
+src_prepare() {
+ sed \
+ -e '/RPATH/s:PKG_LIBEXECDIR:PKG_LIBDIR:g' \
+ -i CMakeLists.txt || die
+ vala_src_prepare
+ gnome2_src_prepare
+ cmake-utils_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DVALA_EXECUTABLE="${VALAC}"
+ -DENABLE_CCPANEL=OFF
+ -DENABLE_UNITY=OFF
+ -DENABLE_UNITY_CCPANEL=OFF
+ -DCMAKE_INSTALL_SYSCONFDIR="${EPREFIX}"/etc
+ $(cmake-utils_use_enable nautilus)
+ $(cmake-utils_use_enable test TESTING)
+ )
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+}
+
+src_install() {
+ cmake-utils_src_install
+}
diff --git a/app-backup/deja-dup/deja-dup-34.0.ebuild b/app-backup/deja-dup/deja-dup-34.0.ebuild
new file mode 100644
index 000000000000..804305cd9154
--- /dev/null
+++ b/app-backup/deja-dup/deja-dup-34.0.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+GNOME2_LA_PUNT="yes"
+
+VALA_MIN_API_VERSION="0.22" # for >=gtk+-3.10
+
+inherit cmake-utils eutils gnome2 vala
+
+DESCRIPTION="Simple backup tool using duplicity back-end"
+HOMEPAGE="https://launchpad.net/deja-dup/"
+SRC_URI="http://launchpad.net/${PN}/34/${PV}/+download/${P}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="nautilus test"
+
+RESTRICT="test"
+
+COMMON_DEPEND="
+ app-crypt/libsecret[vala]
+ >=dev-libs/glib-2.34:2
+ >=dev-libs/libpeas-1.0
+ >=x11-libs/gtk+-3.10:3
+ >=x11-libs/libnotify-0.7
+
+ >=app-backup/duplicity-0.6.23
+ dev-libs/dbus-glib
+
+ nautilus? ( gnome-base/nautilus )"
+RDEPEND="${COMMON_DEPEND}
+ gnome-base/dconf
+ gnome-base/gvfs[fuse]"
+DEPEND="${COMMON_DEPEND}
+ app-text/yelp-tools
+ $(vala_depend)
+ dev-perl/Locale-gettext
+ virtual/pkgconfig
+ dev-util/intltool
+ sys-devel/gettext"
+
+src_prepare() {
+ sed \
+ -e '/RPATH/s:PKG_LIBEXECDIR:PKG_LIBDIR:g' \
+ -i CMakeLists.txt || die
+ vala_src_prepare
+ gnome2_src_prepare
+ cmake-utils_src_prepare
+}
+
+src_configure() {
+ local mycmakeargs=(
+ -DVALA_EXECUTABLE="${VALAC}"
+ -DENABLE_CCPANEL=OFF
+ -DENABLE_UNITY=OFF
+ -DENABLE_UNITY_CCPANEL=OFF
+ -DCMAKE_INSTALL_SYSCONFDIR="${EPREFIX}"/etc
+ $(cmake-utils_use_enable nautilus)
+ $(cmake-utils_use_enable test TESTING)
+ )
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+}
+
+src_install() {
+ cmake-utils_src_install
+}
diff --git a/app-backup/deja-dup/files/deja-dup-29.1-cmake-backport-1.patch b/app-backup/deja-dup/files/deja-dup-29.1-cmake-backport-1.patch
new file mode 100644
index 000000000000..1c122d1723d0
--- /dev/null
+++ b/app-backup/deja-dup/files/deja-dup-29.1-cmake-backport-1.patch
@@ -0,0 +1,11 @@
+=== modified file 'deja-dup/nautilus/CMakeLists.txt'
+--- deja-dup/nautilus/CMakeLists.txt 2013-10-11 19:57:03 +0000
++++ deja-dup/nautilus/CMakeLists.txt 2013-11-08 03:32:53 +0000
+@@ -23,5 +23,6 @@
+ OUTPUT_NAME deja-dup
+ INCLUDE_DIRECTORIES "${CMAKE_BINARY_DIR}/libdeja"
+ COMPILE_FLAGS "${GLIB_CFLAGS} ${NAUTILUS_CFLAGS} ${COMMON_CFLAGS}")
++add_dependencies(deja-dup-nautilus deja) # needs DirHandling.c
+ install(TARGETS deja-dup-nautilus DESTINATION "${NAUTILUS_EXTENSIONDIR}")
+ endif()
+
diff --git a/app-backup/deja-dup/files/deja-dup-29.1-cmake-backport-2.patch b/app-backup/deja-dup/files/deja-dup-29.1-cmake-backport-2.patch
new file mode 100644
index 000000000000..7411d1927ff5
--- /dev/null
+++ b/app-backup/deja-dup/files/deja-dup-29.1-cmake-backport-2.patch
@@ -0,0 +1,32 @@
+=== modified file 'cmake/DejaDupMacros.cmake'
+--- cmake/DejaDupMacros.cmake 2013-10-11 19:57:03 +0000
++++ cmake/DejaDupMacros.cmake 2013-11-09 05:59:00 +0000
+@@ -34,19 +34,15 @@
+ endmacro()
+
+ macro(deja_enable_option)
+- if(NOT ENABLE_${ARGV0})
+- return() # nothing to do
+- endif()
+-
+- deja_check_modules(${ARGV})
+-
+- if(NOT ${ARGV0}_FOUND)
+- if(ENABLE_${ARGV0} STREQUAL "CHECK")
+- set(ENABLE_${ARGV0} OFF)
+- else()
+- message(FATAL_ERROR "You enabled ${ARGV0}, but required dependencies could not be found")
++ if(ENABLE_${ARGV0})
++ deja_check_modules(${ARGV})
++ if(NOT ${ARGV0}_FOUND)
++ if(ENABLE_${ARGV0} STREQUAL "CHECK")
++ set(ENABLE_${ARGV0} OFF)
++ else()
++ message(FATAL_ERROR "You enabled ${ARGV0}, but required dependencies could not be found")
++ endif()
+ endif()
+- return()
+ endif()
+ endmacro()
+
+
diff --git a/app-backup/deja-dup/files/deja-dup-29.5-cmake.patch b/app-backup/deja-dup/files/deja-dup-29.5-cmake.patch
new file mode 100644
index 000000000000..6b364d4ef736
--- /dev/null
+++ b/app-backup/deja-dup/files/deja-dup-29.5-cmake.patch
@@ -0,0 +1,16 @@
+ deja-dup/widgets/CMakeLists.txt | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/deja-dup/widgets/CMakeLists.txt b/deja-dup/widgets/CMakeLists.txt
+index 78f0e21..e885ac8 100644
+--- a/deja-dup/widgets/CMakeLists.txt
++++ b/deja-dup/widgets/CMakeLists.txt
+@@ -52,7 +52,7 @@ vala_precompile(VALA_C ConfigBool.vala
+ GENERATE_VAPI widgets
+ GENERATE_HEADER widgets)
+ add_library(widgets SHARED ${VALA_C})
+-target_link_libraries(widgets deja "${GTK_LDFLAGS} ${NOTIFY_LDFLAGS} ${PEAS_LDFLAGS} ${SECRET_LDFLAGS} ${UNITY_LDFLAGS}")
++target_link_libraries(widgets deja ${GTK_LDFLAGS} ${NOTIFY_LDFLAGS} ${PEAS_LDFLAGS} ${SECRET_LDFLAGS} ${UNITY_LDFLAGS})
+ set_target_properties(widgets PROPERTIES
+ INCLUDE_DIRECTORIES "${CMAKE_BINARY_DIR}/libdeja;${CMAKE_SOURCE_DIR}/libdeja"
+ COMPILE_FLAGS "${GTK_CFLAGS} ${NOTIFY_CFLAGS} ${PEAS_CFLAGS} ${SECRET_CFLAGS} ${UNITY_CFLAGS} ${COMMON_CFLAGS}")
diff --git a/app-backup/deja-dup/files/deja-dup-32.0-duplicity-0.6.25.patch b/app-backup/deja-dup/files/deja-dup-32.0-duplicity-0.6.25.patch
new file mode 100644
index 000000000000..016e67829fd5
--- /dev/null
+++ b/app-backup/deja-dup/files/deja-dup-32.0-duplicity-0.6.25.patch
@@ -0,0 +1,41 @@
+=== modified file 'AUTHORS'
+--- AUTHORS 2014-04-29 02:38:47 +0000
++++ AUTHORS 2014-10-23 06:41:44 +0000
+@@ -12,6 +12,10 @@
+ Comment: For specific author information, see the bzr logs
+ License: GPL-3+
+
++Files: libdeja/tools/duplicity/DuplicityPlugin.vala
++Copyright: 2014 Adrien Bak <adrien.bak@gmail.com>
++Licence: GPL-3+
++
+ Files: po/*.po
+ Copyright: 2008–2013 Rosetta Contributors and Canonical Ltd
+ License: GPL-3+
+
+=== modified file 'libdeja/tools/duplicity/DuplicityPlugin.vala'
+--- libdeja/tools/duplicity/DuplicityPlugin.vala 2014-01-24 16:07:59 +0000
++++ libdeja/tools/duplicity/DuplicityPlugin.vala 2014-10-23 06:41:44 +0000
+@@ -35,13 +35,17 @@
+ {
+ string output;
+ Process.spawn_command_line_sync("duplicity --version", out output, null, null);
++ var tokens = output.split(" ");
+
+- var tokens = output.split(" ", 2);
+- if (tokens == null || tokens[0] == null || tokens[1] == null)
++ if (tokens == null || tokens.length < 2 )
+ throw new SpawnError.FAILED(_("Could not understand duplicity version."));
+
+- // First token is 'duplicity' and is ignorable. Second looks like '0.5.03'
+- var version_string = tokens[1].strip();
++ // in version 0.6.25, the output fro duplicity --version changed and the string
++ // "duplicity major.minor.micro" is not preceded by a deprecation warning
++ // as a consequence, the substring "major.minor.micro" is now
++ // always the penultimate token (the last one always being null)
++
++ var version_string = tokens[tokens.length - 1].strip();
+ int major, minor, micro;
+ if (!DejaDup.parse_version(version_string, out major, out minor, out micro))
+ throw new SpawnError.FAILED(_("Could not understand duplicity version ‘%s’.").printf(version_string));
+
diff --git a/app-backup/deja-dup/metadata.xml b/app-backup/deja-dup/metadata.xml
new file mode 100644
index 000000000000..d9dd1919780e
--- /dev/null
+++ b/app-backup/deja-dup/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>gnome</herd>
+ <maintainer>
+ <email>jlec@gentoo.org</email>
+ </maintainer>
+ <use>
+ <flag name="nautilus">Build gnome-base/nautilus extension</flag>
+ </use>
+ <upstream>
+ <remote-id type="launchpad">deja-dup</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-backup/dirvish/Manifest b/app-backup/dirvish/Manifest
new file mode 100644
index 000000000000..6ac59c2b637d
--- /dev/null
+++ b/app-backup/dirvish/Manifest
@@ -0,0 +1 @@
+DIST dirvish-1.2.1.tgz 49132 SHA256 d6068b0644f9302fb1ec676928f60145877ac316b5aa29d5a5a0204c59935527 SHA512 3618d4e73a19ed9bffa1d68561292f8d61948ab914cf0503771fe6f058af52d02707caaf73ef8b06ddbbeef72817712ab0312c3ab086f8da036c02c1fa22d0a4 WHIRLPOOL 0b82535d5aaf7893308e25af1be07c55c8b2edabe8828d4c2396ef9ca0e7e9b6a568cee6eec31dcc18703a2db7eac22cdf8bbd177605b0e410adf51d1a9bf315
diff --git a/app-backup/dirvish/dirvish-1.2.1.ebuild b/app-backup/dirvish/dirvish-1.2.1.ebuild
new file mode 100644
index 000000000000..b9b053177ff7
--- /dev/null
+++ b/app-backup/dirvish/dirvish-1.2.1.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+DESCRIPTION="Dirvish is a fast, disk based, rotating network backup system"
+HOMEPAGE="http://www.dirvish.org/"
+SRC_URI="http://dirvish.org/${P}.tgz"
+
+LICENSE="OSL-2.0"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE=""
+
+DEPEND="app-arch/tar"
+RDEPEND="dev-perl/Time-modules
+ dev-perl/Period
+ >=net-misc/rsync-2.5.7"
+
+src_compile() {
+ for f in dirvish dirvish-runall dirvish-expire dirvish-locate ; do
+ cat > $f <<-EOF
+ #!/usr/bin/perl
+
+ \$CONFDIR = "/etc/dirvish";
+
+ EOF
+ cat $f.pl >> $f
+ cat loadconfig.pl >> $f
+ done
+}
+
+src_install() {
+ dosbin dirvish dirvish-runall dirvish-expire dirvish-locate
+ doman dirvish.8 dirvish-runall.8 dirvish-expire.8 dirvish-locate.8 dirvish.conf.5
+ dohtml FAQ.html INSTALL RELEASE.html TODO.html
+ dodoc CHANGELOG
+
+ insinto /etc/dirvish; doins "${FILESDIR}"/master.conf.example
+}
diff --git a/app-backup/dirvish/files/master.conf.example b/app-backup/dirvish/files/master.conf.example
new file mode 100644
index 000000000000..8264b88b8321
--- /dev/null
+++ b/app-backup/dirvish/files/master.conf.example
@@ -0,0 +1,33 @@
+bank:
+ /backup/dirvish/server
+ /backup/dirvish/laptop
+ /backup/dirvish/firewall
+exclude:
+ lost+found/
+ proc/
+ core
+Runall:
+ serverroot 03:00
+ serverboot 03:00
+ serverhome 03:00
+ serveropt 03:00
+ serverspare 03:00
+ laptoproot 03:00
+ laptopboot 03:00
+ laptopopt 03:00
+ laptopspare 03:00
+ firewallroot 03:00
+ firewallboot 03:00
+
+expire-default: never
+
+# keep the sunday backups forever, the dailies for 3 months
+expire-rule:
+# MIN HR DOM MON DOW STRFTIME_FMT
+ * * * * * +3 months
+ * * * * 1 never
+
+pre-server: /usr/local/sbin/dirvish-pre
+
+post-server: /usr/local/sbin/dirvish-post
+
diff --git a/app-backup/dirvish/metadata.xml b/app-backup/dirvish/metadata.xml
new file mode 100644
index 000000000000..aa871bad3b06
--- /dev/null
+++ b/app-backup/dirvish/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>app-backup</herd>
+ <longdescription lang="en">Dirvish is a fast, disk based, rotating network
+ backup system. With dirvish you can maintain a set of complete images
+ of your filesystems with unattended creation and expiration. A dirvish
+ backup vault is like a time machine for your data.
+ </longdescription>
+</pkgmetadata>
diff --git a/app-backup/duplicity/Manifest b/app-backup/duplicity/Manifest
new file mode 100644
index 000000000000..abd55be70ed2
--- /dev/null
+++ b/app-backup/duplicity/Manifest
@@ -0,0 +1,4 @@
+DIST duplicity-0.6.22.tar.gz 1257082 SHA256 6f489b0445681f0697488f3d4097b4c56a7fe8a5fea5fadd2e431724039c5a12 SHA512 0fe838707c91e2933f0edc4b9258edd081a2e0b8ed0cd31bf229f08883b60ca9cb8d44f70b00632a926548d375417e3a5f9747a0c3eeef15bfa541a27062dfd5 WHIRLPOOL 63732f177e30dde1bc7bf74063dd56bc22654b4f2b787ea47e6d44364ee98fafe418954d0c80a152e25f7c1016abc5507350ac929de2a67eee1d1d30cc47856d
+DIST duplicity-0.6.23.tar.gz 1260261 SHA256 7a17f1e10395dedcf3204bc53925bb9dcbbf2a7552c9b096ebe727eceb9c0c60 SHA512 35c3facf9f44e117c74d880bef3f50c2f6a778fac31b38398934007befbe5dedb3f56ccdd592c231c0835baaba905ca942a889e0a1358c1b79570db08376385a WHIRLPOOL 6edffb363c48a90a6c3dc9d7a8ccdb22a6390e422255deca7a84b5e87e13a865fa325313f50bea52cdea7b3ae6b880e939c6cd58d605d4cc5df0e7f191523145
+DIST duplicity-0.6.24.tar.gz 1268175 SHA256 1d41d756638f55106f9501c3db94ccbc6568aa856ba531e07ed2cfb760b62450 SHA512 5bb783ef6ddbfa6672279287b01f44e33256829971e7b8bbe26d648d2c78d438018bddd977281b8a1ff7e5c1505a3b60fe03ecb5ba8022a597f9f952b2815273 WHIRLPOOL f42120cc403a987a9e5f747e1f7502059772f9c2fdb1afb92caa354676b7089736cd9524d08ef6677872a5019e17d2092513cc5544beed5fb0d80158742e1ebf
+DIST duplicity-0.6.25.tar.gz 1269583 SHA256 ac44f44abc1c5fe775a49b77e722d238c0b3bbb105e083fd505e2dca8e2c1725 SHA512 17304e38990e0a34aa4bae9f2d12a99ece031ac048667fba27afbcc32e1fb8455a2672426e49edb543bd7e345dc74f784f34c26ec2e1651eb10ba479868e04a0 WHIRLPOOL 8af905551078e30529dd31bd7de8f783ec0875c57e9f4d93388c5e407e9aecd19c0d151d3eb4d718cb5ea4dd649bb835611604f5ee5ad33f04355846a406d39d
diff --git a/app-backup/duplicity/duplicity-0.6.22.ebuild b/app-backup/duplicity/duplicity-0.6.22.ebuild
new file mode 100644
index 000000000000..02ccc6a4080e
--- /dev/null
+++ b/app-backup/duplicity/duplicity-0.6.22.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1
+
+DESCRIPTION="Secure backup system using gnupg to encrypt data"
+HOMEPAGE="http://www.nongnu.org/duplicity/"
+SRC_URI="http://code.launchpad.net/${PN}/0.6-series/${PV}/+download/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 ppc ~sparc x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos"
+IUSE="s3"
+
+DEPEND="
+ net-libs/librsync
+ app-crypt/gnupg
+"
+RDEPEND="${DEPEND}
+ dev-python/paramiko[${PYTHON_USEDEP}]
+ s3? ( dev-python/boto[${PYTHON_USEDEP}] )
+"
+
+python_prepare_all() {
+ distutils-r1_python_prepare_all
+
+ sed -i "s/'COPYING',//" setup.py || die "Couldn't remove unnecessary COPYING file."
+}
+
+pkg_postinst() {
+ einfo "Duplicity has many optional dependencies to support various backends."
+ einfo "Currently it's up to you to install them as necessary."
+}
diff --git a/app-backup/duplicity/duplicity-0.6.23-r1.ebuild b/app-backup/duplicity/duplicity-0.6.23-r1.ebuild
new file mode 100644
index 000000000000..b89e6d835b12
--- /dev/null
+++ b/app-backup/duplicity/duplicity-0.6.23-r1.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1
+
+DESCRIPTION="Secure backup system using gnupg to encrypt data"
+HOMEPAGE="http://www.nongnu.org/duplicity/"
+SRC_URI="http://code.launchpad.net/${PN}/0.6-series/${PV}/+download/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 ppc ~sparc x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos"
+IUSE="s3"
+
+DEPEND="
+ net-libs/librsync
+ app-crypt/gnupg
+ dev-python/lockfile
+"
+RDEPEND="${DEPEND}
+ dev-python/paramiko[${PYTHON_USEDEP}]
+ s3? ( dev-python/boto[${PYTHON_USEDEP}] )
+"
+
+python_prepare_all() {
+ distutils-r1_python_prepare_all
+
+ sed -i "s/'COPYING',//" setup.py || die "Couldn't remove unnecessary COPYING file."
+}
+
+pkg_postinst() {
+ einfo "Duplicity has many optional dependencies to support various backends."
+ einfo "Currently it's up to you to install them as necessary."
+}
diff --git a/app-backup/duplicity/duplicity-0.6.24.ebuild b/app-backup/duplicity/duplicity-0.6.24.ebuild
new file mode 100644
index 000000000000..cf6ff8c44d61
--- /dev/null
+++ b/app-backup/duplicity/duplicity-0.6.24.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1
+
+DESCRIPTION="Secure backup system using gnupg to encrypt data"
+HOMEPAGE="http://www.nongnu.org/duplicity/"
+SRC_URI="http://code.launchpad.net/${PN}/0.6-series/${PV}/+download/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos"
+IUSE="s3 test"
+
+CDEPEND="
+ net-libs/librsync
+ app-crypt/gnupg
+ dev-python/lockfile
+"
+DEPEND="${CDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ test? ( dev-python/mock[${PYTHON_USEDEP}] )
+"
+RDEPEND="${CDEPEND}
+ dev-python/paramiko[${PYTHON_USEDEP}]
+ s3? ( dev-python/boto[${PYTHON_USEDEP}] )
+"
+
+# workaround until failing test is fixed
+PATCHES=( "${FILESDIR}"/${P}-skip-test.patch )
+
+python_prepare_all() {
+ distutils-r1_python_prepare_all
+
+ sed -i "s/'COPYING',//" setup.py || die "Couldn't remove unnecessary COPYING file."
+}
+
+python_test() {
+ esetup.py test
+}
+
+pkg_postinst() {
+ einfo "Duplicity has many optional dependencies to support various backends."
+ einfo "Currently it's up to you to install them as necessary."
+}
diff --git a/app-backup/duplicity/duplicity-0.6.25.ebuild b/app-backup/duplicity/duplicity-0.6.25.ebuild
new file mode 100644
index 000000000000..f6c05879100e
--- /dev/null
+++ b/app-backup/duplicity/duplicity-0.6.25.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1
+
+DESCRIPTION="Secure backup system using gnupg to encrypt data"
+HOMEPAGE="http://www.nongnu.org/duplicity/"
+SRC_URI="http://code.launchpad.net/${PN}/0.6-series/${PV}/+download/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos"
+IUSE="s3 test"
+
+CDEPEND="
+ net-libs/librsync
+ app-crypt/gnupg
+ dev-python/lockfile
+"
+DEPEND="${CDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ test? ( dev-python/mock[${PYTHON_USEDEP}] )
+"
+RDEPEND="${CDEPEND}
+ dev-python/paramiko[${PYTHON_USEDEP}]
+ s3? ( dev-python/boto[${PYTHON_USEDEP}] )
+"
+
+# workaround until failing test is fixed
+PATCHES=( "${FILESDIR}"/${PN}-0.6.24-skip-test.patch )
+
+python_prepare_all() {
+ distutils-r1_python_prepare_all
+
+ sed -i "s/'COPYING',//" setup.py || die "Couldn't remove unnecessary COPYING file."
+}
+
+python_test() {
+ esetup.py test
+}
+
+pkg_postinst() {
+ einfo "Duplicity has many optional dependencies to support various backends."
+ einfo "Currently it's up to you to install them as necessary."
+}
diff --git a/app-backup/duplicity/files/duplicity-0.6.24-skip-test.patch b/app-backup/duplicity/files/duplicity-0.6.24-skip-test.patch
new file mode 100644
index 000000000000..ef6d959685be
--- /dev/null
+++ b/app-backup/duplicity/files/duplicity-0.6.24-skip-test.patch
@@ -0,0 +1,10 @@
+--- duplicity-0.6.24/testing/functional/test_final.py
++++ duplicity-0.6.24/testing/functional/test_final.py
+@@ -156,6 +156,7 @@
+ self.run_duplicity(options=["remove-older-than", "50000", "--force", self.backend_url])
+ self.assertEqual(self.get_backend_files(), second_chain)
+
++ @unittest.skip('skip failing test')
+ def test_piped_password(self):
+ """Make sure that prompting for a password works"""
+ self.set_environ("PASSPHRASE", None)
diff --git a/app-backup/duplicity/metadata.xml b/app-backup/duplicity/metadata.xml
new file mode 100644
index 000000000000..5052c4e13097
--- /dev/null
+++ b/app-backup/duplicity/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>radhermit@gentoo.org</email>
+ <name>Tim Harder</name>
+ </maintainer>
+ <use>
+ <flag name="s3">Support for backing up to the Amazon S3 system</flag>
+ </use>
+</pkgmetadata>
diff --git a/app-backup/duply/Manifest b/app-backup/duply/Manifest
new file mode 100644
index 000000000000..b74a763175cd
--- /dev/null
+++ b/app-backup/duply/Manifest
@@ -0,0 +1,2 @@
+DIST duply_1.10.tgz 36075 SHA256 62286bddd6efee67fb20c790e63bf25847ad65c06a4969b275e9abdb6253f6cc SHA512 10af8208d14bbb23bccc03cba5db7fbdccd8cacc0ada18cc07ad268966200884c280486ce5019385bfa8d1e61b1aecee5e38704332b45d97b47419eca995641c WHIRLPOOL dc96ba35644a88f9929ce93216b0b44901b9c7d1b5c2f58439888066ae64f7fd254e3496f12f08159ad905e4d7a06f07e09a7c9dab1318ce1e29fe101fc1c4b2
+DIST duply_1.9.2.tgz 36222 SHA256 2bfc0964ebc0bae5752e0b4a12eb8fb6f78a27739f32c9acb4ac81947506c5ab SHA512 9ef5e22f43a6854e413ed1c2b88b10d0ae75cff7b2bcd927d20a588234555e9b7eff25d094f688f9d4f8510eba6bc20f7635c0de9ab9b402966075595922333e WHIRLPOOL 6a3e79c87e0b28386f0ed6fd8eb7973659477ad278e80e292a3e6cea944fd512baffc9a455e148faeadb687a46a8e274ce86668c29f30244b5b63f1f850a9c00
diff --git a/app-backup/duply/duply-1.10.ebuild b/app-backup/duply/duply-1.10.ebuild
new file mode 100644
index 000000000000..c09fc50adc24
--- /dev/null
+++ b/app-backup/duply/duply-1.10.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit readme.gentoo
+
+DESCRIPTION="A shell frontend for duplicity"
+HOMEPAGE="http://duply.net"
+SRC_URI="mirror://sourceforge/ftplicity/${PN}_${PV}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="app-text/txt2man"
+RDEPEND="app-backup/duplicity"
+
+S=${WORKDIR}/${PN}_${PV}
+
+src_install() {
+ dobin ${PN}
+ ./${PN} txt2man > ${PN}.1 || die
+ doman ${PN}.1
+ readme.gentoo_create_doc
+}
diff --git a/app-backup/duply/duply-1.9.2.ebuild b/app-backup/duply/duply-1.9.2.ebuild
new file mode 100644
index 000000000000..eab3a69c7663
--- /dev/null
+++ b/app-backup/duply/duply-1.9.2.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit readme.gentoo
+
+DESCRIPTION="A shell frontend for duplicity"
+HOMEPAGE="http://duply.net"
+SRC_URI="mirror://sourceforge/ftplicity/${PN}_${PV}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND="app-text/txt2man"
+RDEPEND="app-backup/duplicity"
+
+S=${WORKDIR}/${PN}_${PV}
+
+src_install() {
+ dobin ${PN}
+ ./${PN} txt2man > ${PN}.1 || die
+ doman ${PN}.1
+ readme.gentoo_create_doc
+}
diff --git a/app-backup/duply/files/README.gentoo b/app-backup/duply/files/README.gentoo
new file mode 100644
index 000000000000..99d9a1320473
--- /dev/null
+++ b/app-backup/duply/files/README.gentoo
@@ -0,0 +1,4 @@
+If you use duply at the first time please have a
+look at the the usage help text "duply usage"
+for further information."
+
diff --git a/app-backup/duply/metadata.xml b/app-backup/duply/metadata.xml
new file mode 100644
index 000000000000..3d57caf5180a
--- /dev/null
+++ b/app-backup/duply/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>proxy-maintainers</herd>
+ <maintainer>
+ <email>gentoo@pennewiss.de</email>
+ <name>Marcel Pennewiß</name>
+ <description>Proxy-maintainer. Assign bugs to him</description>
+ </maintainer>
+ <maintainer>
+ <email>jlec@gentoo.org</email>
+ </maintainer>
+ <longdescription lang="en">
+</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">ftplicity</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-backup/flexbackup/Manifest b/app-backup/flexbackup/Manifest
new file mode 100644
index 000000000000..ee6efa3d7e8b
--- /dev/null
+++ b/app-backup/flexbackup/Manifest
@@ -0,0 +1 @@
+DIST flexbackup-1.2.1.tar.gz 80158 SHA256 58282b21985be75f1219c5ff4906d217055ed8627ea3e2ffdfe7a2393bc9d2c3 SHA512 17630bc46657becdf5d5bde4852fd6cebe189fe54d381bda6471aa2e1db1ff082ba24461e2c22ba5805c2d93ac7f9805ffbdc4904da017f1b163cc21b5a3974b WHIRLPOOL 0beb123986579b5f5c9add2e1ccc02b11e687dfce7a093d550239aec50cf5a35cf15da066a6b0f23819a001dce222d5167874527411bb31bca405b55c8f2d171
diff --git a/app-backup/flexbackup/files/flexbackup-1.2.1-afio-large-files.patch b/app-backup/flexbackup/files/flexbackup-1.2.1-afio-large-files.patch
new file mode 100644
index 000000000000..bf5ea230c85c
--- /dev/null
+++ b/app-backup/flexbackup/files/flexbackup-1.2.1-afio-large-files.patch
@@ -0,0 +1,13 @@
+Index: flexbackup
+===================================================================
+--- flexbackup (revision 808)
++++ flexbackup (working copy)
+@@ -1155,7 +1155,7 @@
+ $cmd .= "$::path{afio} -o ";
+ $cmd .= "$no_compress ";
+ $cmd .= "-z ";
+- $cmd .= "-1 m ";
++ $cmd .= "-1 mC ";
+ $cmd .= "$::afio_z_flag ";
+ $cmd .= "$::afio_verb_flag ";
+ $cmd .= "$::afio_sparse_flag ";
diff --git a/app-backup/flexbackup/files/flexbackup-1.2.1-bash.patch b/app-backup/flexbackup/files/flexbackup-1.2.1-bash.patch
new file mode 100644
index 000000000000..a9da86a8e135
--- /dev/null
+++ b/app-backup/flexbackup/files/flexbackup-1.2.1-bash.patch
@@ -0,0 +1,18 @@
+--- flexbackup 2005-06-16 20:28:04.577086588 -0700
++++ flexbackup 2005-06-16 22:21:14.787322560 -0700
+@@ -5396,10 +5396,10 @@
+ my $shell = $1;
+ my $ver = $2;
+ if ($shell eq 'bash') {
+- if ($ver =~ m/^2/) {
+- $::shelltype{$host} = 'bash2';
+- } else {
++ if ($ver =~ m/^1/) {
+ $::shelltype{$host} = 'bash1';
++ } else {
++ $::shelltype{$host} = 'bash2';
+ }
+ } else {
+ $::shelltype{$host} = $shell;
+
+
diff --git a/app-backup/flexbackup/files/flexbackup-1.2.1-lzma.patch b/app-backup/flexbackup/files/flexbackup-1.2.1-lzma.patch
new file mode 100644
index 000000000000..95fa79ba606d
--- /dev/null
+++ b/app-backup/flexbackup/files/flexbackup-1.2.1-lzma.patch
@@ -0,0 +1,114 @@
+--- flexbackup 2003-10-10 15:12:09.000000000 +0100
++++ flexbackup 2007-01-15 01:08:18.000000000 +0000
+@@ -687,6 +687,8 @@
+ $filename .= ".zip";
+ } elsif ($cfg::compress eq "compress") {
+ $filename .= ".Z";
++ } elsif ($cfg::compress eq "lzma") {
++ $filename .= ".lzma";
+ }
+ } elsif ($cfg::type eq "afio") {
+ # tag these a little different, the archive file itself isn't a
+@@ -701,6 +703,8 @@
+ $filename .= "-zip";
+ } elsif ($cfg::compress eq "compress") {
+ $filename .= "-Z";
++ } elsif ($cfg::compress eq "lzma") {
++ $filename .= "-lzma";
+ }
+ }
+
+@@ -2700,7 +2704,7 @@
+ # First check if things are defined in the config file
+ # Checks exist, true/false, or one of options
+ &checkvar(\$cfg::type,'type','dump afio cpio tar star pax zip ar shar lha copy rsync filelist','tar');
+- &checkvar(\$cfg::compress,'compress','gzip bzip2 lzop compress zip false hardware','gzip');
++ &checkvar(\$cfg::compress,'compress','gzip bzip2 lzop compress zip false hardware lzma','gzip');
+ &checkvar(\$cfg::compr_level,'compr_level','exist','4');
+ &checkvar(\$cfg::verbose,'verbose','bool','true');
+ &checkvar(\$cfg::sparse,'sparse','bool','true');
+@@ -3001,6 +3005,16 @@
+ $::z = " | $::path{zip} -$cfg::compr_level - -";
+ $::unz = "$::path{funzip} | ";
+ }
++ } elsif ($cfg::compress eq "lzma") {
++ $::path{'lzma'} = &checkinpath($cfg::compress);
++ push(@::remoteprogs, $::path{$cfg::compress});
++ if ($cfg::compr_level !~ m/^[123456789]$/) {
++ push(@::errors,"\$compr_level must be set to 1-9");
++ } else {
++ $::z = " | $::path{$cfg::compress} -$cfg::compr_level ";
++ }
++ $::unz = "$::path{$cfg::compress} -d | ";
++
+ } else {
+ $::z = "";
+ $::unz = "";
+@@ -3252,6 +3266,10 @@
+ $::afio_z_flag = "-P $::path{$cfg::compress} -Q -c -Z";
+ $::afio_unz_flag = "-P $::path{$cfg::compress} -Q -d -Q -c -Z";
+
++ } elsif ($cfg::compress eq "lzma") {
++ $::afio_z_flag = "-P $::path{$cfg::compress} -Q -$cfg::compr_level -Z";
++ $::afio_unz_flag = "-P $::path{$cfg::compress} -Q -d -Z";
++
+ }
+ $::unz = ""; # Reset & just use this for reading the archive file.
+
+@@ -3415,7 +3433,7 @@
+ $::path{'lha'} = &checkinpath('lha');
+ push(@::remoteprogs, $::path{'lha'});
+
+- if ($cfg::compress =~ /^(gzip|bzip2|lzop|compress|zip)$/) {
++ if ($cfg::compress =~ /^(gzip|bzip2|lzop|compress|zip|lzma)$/) {
+ warn("Using type \"lha\" with compress=$cfg::compress makes no sense");
+ warn("Setting compression to false");
+ $::unz = "";
+@@ -3781,7 +3799,7 @@
+
+ # Try and guess file types and commpression scheme
+ # might as well since we are reading from a file in this case
+- if ($file =~ m/\.(dump|cpio|tar|star|pax|a|shar|filelist)\.(gz|bz2|lzo|Z|zip)$/) {
++ if ($file =~ m/\.(dump|cpio|tar|star|pax|a|shar|filelist)\.(gz|bz2|lzo|Z|zip|lzma)$/) {
+ $cfg::type = $1;
+ $cfg::compress = $2;
+ $cfg::type =~ s/^a$/ar/;
+@@ -3789,16 +3807,18 @@
+ $cfg::compress =~ s/bz2/bzip2/;
+ $cfg::compress =~ s/lzo/lzop/;
+ $cfg::compress =~ s/Z/compress/;
++ $cfg::compress =~ s/lzma/lzma/;
+ &log("| Auto-set to type=$cfg::type compress=$cfg::compress");
+ &optioncheck(); # redo to set a few variables over
+
+- } elsif ($file =~ m/\.afio-(gz|bz2|lzo|Z|zip)$/) {
++ } elsif ($file =~ m/\.afio-(gz|bz2|lzo|Z|zip|lzma)$/) {
+ $cfg::type = "afio";
+ $cfg::compress = $1;
+ $cfg::compress =~ s/gz/gzip/;
+ $cfg::compress =~ s/bz2/bzip2/;
+ $cfg::compress =~ s/lzo/lzop/;
+ $cfg::compress =~ s/Z/compress/;
++ $cfg::compress =~ s/lzma/lzma/;
+ &log("| Auto-set to type=$cfg::type compress=$cfg::compress");
+ &optioncheck(); # redo to set a few variables over
+
+@@ -5686,3 +5706,5 @@
+
+ return($spinner[$index]);
+ }
++
++
+--- flexbackup.conf 2007-01-15 01:11:36.000000000 +0000
++++ flexbackup.conf.new 2007-01-15 01:21:46.000000000 +0000
+@@ -33,8 +33,8 @@
+ $prune{'/'} = "tmp proc";
+
+ # Compression
+-$compress = 'gzip'; # one of false/gzip/bzip2/lzop/zip/compress/hardware
+-$compr_level = '4'; # compression level (1-9) (for gzip/bzip2/lzop/zip)
++$compress = 'gzip'; # one of false/gzip/bzip2/lzop/zip/compress/hardware/lzma
++$compr_level = '4'; # compression level (1-9) (for gzip/bzip2/lzop/zip/lzma)
+
+ # Buffering program - to help streaming
+ $buffer = 'false'; # one of false/buffer/mbuffer
diff --git a/app-backup/flexbackup/files/flexbackup-1.2.1-mbuffer-switch.patch b/app-backup/flexbackup/files/flexbackup-1.2.1-mbuffer-switch.patch
new file mode 100644
index 000000000000..d22e40f24c26
--- /dev/null
+++ b/app-backup/flexbackup/files/flexbackup-1.2.1-mbuffer-switch.patch
@@ -0,0 +1,130 @@
+Common subdirectories: flexbackup-1.2.1-r3/contrib and flexbackup-1.2.1-r4/contrib
+diff -ubB flexbackup-1.2.1-r3/flexbackup flexbackup-1.2.1-r4/flexbackup
+--- flexbackup-1.2.1-r3/flexbackup 2007-04-14 17:03:34.000000000 -0400
++++ flexbackup-1.2.1-r4/flexbackup 2007-04-14 17:09:48.000000000 -0400
+@@ -442,7 +442,7 @@
+ # Get rid of trailing /
+ $dir = &nuke_trailing_slash($dir);
+
+- # If level is icremental for the set, each dir might
++ # If level is incremental for the set, each dir might
+ # have a different numeric level
+ if (!defined($::set_incremental)) {
+ $level = $::level;
+@@ -3090,7 +3090,7 @@
+ push(@::remoteprogs, $::path{'mbuffer'});
+
+ my $megs = $cfg::buffer_megs . "M";
+- my $bufcmd = "$::path{mbuffer} -q -m $megs -p $cfg::buffer_fill_pct $mbuffer_blk_flag ";
++ my $bufcmd = "$::path{mbuffer} -q -m $megs -P $cfg::buffer_fill_pct $mbuffer_blk_flag ";
+
+ $::buffer_cmd = " | $bufcmd";
+ $::write_cmd = "$bufcmd -f -o ";
+@@ -4884,18 +4884,24 @@
+ }
+
+ if (defined(%{$::prune{$prunekey}})) {
++ my $rex;
+ # FreeBSD needs -E (above) and no backslashes around the (|) chars
+ if ($::uname =~ /FreeBSD/) {
+- $cmd .= '-regex "\./(';
+- $cmd .= join('|', keys %{$::prune{$prunekey}});
+- $cmd .= ')/.*" ';
+- } else {
+- $cmd .= '-regex "\./\(';
+- $cmd .= join('\|', keys %{$::prune{$prunekey}});
+- $cmd .= '\)/.*" ';
+- }
++ $rex = '-regex "\./(';
++ $rex .= join('|', keys %{$::prune{$prunekey}});
++ $rex .= ')/.*" ';
++ } else {
++ $rex = '-regex "\./\(';
++ $rex .= join('\|', keys %{$::prune{$prunekey}});
++ $rex .= '\)/.*" ';
++ }
++ # Show what the darn thing is constructing for prune expressions.
++ &log("| \"find\" regex for pruning is: $rex");
++ $cmd .= $rex;
+ $cmd .= '-prune -o ';
+ } else {
++ # Show what the darn thing is constructing for prune expressions.
++ &log("| No pruning defined for this tree.");
+ # Can't use find -depth with -prune (see single unix spec etc)
+ # (not toally required anyway, only if you are archiving dirs you
+ # don't have permissions on and are running as non-root)
+diff -ubB flexbackup-1.2.1-r3/flexbackup.conf flexbackup-1.2.1-r4/flexbackup.conf
+--- flexbackup-1.2.1-r3/flexbackup.conf 2007-04-14 17:03:35.000000000 -0400
++++ flexbackup-1.2.1-r4/flexbackup.conf 2007-04-14 17:09:48.000000000 -0400
+@@ -30,6 +30,45 @@
+ # A space-separated list of directories to prune from each backup.
+ # Key is a filesystem or host:dir spec as outlined above
+ # regular expressions allowed (not shell-type wildcards!)
++#
++# Note: These directories are actually regular expressions and must
++# match "find" output relative to the path of the current backup set. This
++# means that different exclusions are needed for different backup sets.
++# This is a little tricky, so, read on.
++#
++# The regular expressions are processed by "find" but, before "find" is run,
++# FlexBackup changes into the base directory of the backup set in progress.
++# FlexBackup then runs "find" with a path of "." which means all output lines
++# start with "./". To be helpful, FlexBackup packages each space-separated
++# prune directory as follows. If you have a prune list like this
++#
++# $prune{'/somedir'} = "one two three";
++#
++# then, the constructed -regex argument to "find" looks like this
++#
++# -regex "\./\(one\|two\|three\)/.*"
++#
++# The last thing you need to know is that FlexBackup only uses the prune
++# terms that match the current base directory in the set you're backing
++# up. For example, if your backup set definition looks like this
++#
++# $set{'daily'} = "/home /root /var /usr";
++#
++# and you want to do some exclusions in "/home" and "/var" (but not the other
++# directories), you must set up a prune list for those two directories
++# separately. For example, to exclude bert's and ernie's home directories plus
++# /var/tmp, you would need the following:
++#
++# $prune{'/home'} = "bert ernie";
++# $prune{'/var'} = "tmp";
++#
++# In particular, combining these *does not* work. For example, this
++#
++# $prune{'/'} = "home/bert home/ernie var/tmp";
++#
++# does not work, unless, of course, your backup set is backing up "/",
++# which our example is not.
++#
+ $prune{'/'} = "tmp proc";
+
+ # Compression
+@@ -84,7 +123,8 @@
+ # True to try and preserve file access times during backup, if the selected
+ # archive program can do so. Note that if this is true, -cnewer checks (file
+ # permission/status changes only, not content) are turned off when deciding
+-# which files to archive on the local system.
++# which files to archive on the local system. This is because preserving the
++# access time changes the permission/status change time in the filesystem.
+ $atime_preserve = 'false';
+
+ # Span across filesytems? ("dump" will ignore this option)
+@@ -97,8 +137,13 @@
+ # leading directories (the filesystem specs above or the "-dir" flag).
+ # Matches paths, not filenames, so put .* on the front/back as needed.
+ # Comment these out to exclude nothing.
+-$exclude_expr[0] = '.*/[Cc]ache/.*';
+-$exclude_expr[1] = '.*~$';
++#
++# Note: The first example line breaks portage in a restored backup because
++# "/usr/lib/portage/pym/cache" is not backed up. Way too general! The moral
++# of this story is, be very careful with global excludes. The second example
++# is probably okay.
++# $exclude_expr[0] = '.*/[Cc]ache/.*';
++# $exclude_expr[1] = '.*~$';
+
+ # If true (default), and using a tape device, level zero "set" backups
+ # assume you want to erase and use a new tape for each set. If false, level
diff --git a/app-backup/flexbackup/files/flexbackup-1.2.1-perl-5.12-deprecation-warning.patch b/app-backup/flexbackup/files/flexbackup-1.2.1-perl-5.12-deprecation-warning.patch
new file mode 100644
index 000000000000..2976eab916f1
--- /dev/null
+++ b/app-backup/flexbackup/files/flexbackup-1.2.1-perl-5.12-deprecation-warning.patch
@@ -0,0 +1,29 @@
+--- flexbackup.~1~ 2010-10-09 13:19:27.633694860 +0200
++++ flexbackup 2010-10-09 13:21:52.396818511 +0200
+@@ -133,6 +133,9 @@
+ # tar has a limit of this many chars in its volume label
+ $::tar_max_label = 99;
+
++# Define the prune hash to avoid warnings with perl 5.12
++use vars qw( %prune );
++
+ # Get commandline flags
+ %::opt = ();
+ if (! &::GetOptions(\%::opt,
+@@ -1050,6 +1053,6 @@
+ } else {
+ $prunekey = $dir;
+ }
+- if (defined(%{$::prune{$prunekey}})) {
++ if (defined($prune{$prunekey})) {
+ &log("| NOTE: \$prune is ignored for type=dump");
+ }
+@@ -4885,7 +4885,7 @@
+ $prunekey = $dir;
+ }
+
+- if (defined(%{$::prune{$prunekey}})) {
++ if (defined($prune{$prunekey})) {
+ my $rex;
+ # FreeBSD needs -E (above) and no backslashes around the (|) chars
+ if ($::uname =~ /FreeBSD/) {
diff --git a/app-backup/flexbackup/files/flexbackup-1.2.1-perl-5.16-deprecation-warning.patch b/app-backup/flexbackup/files/flexbackup-1.2.1-perl-5.16-deprecation-warning.patch
new file mode 100644
index 000000000000..72d3abd838a7
--- /dev/null
+++ b/app-backup/flexbackup/files/flexbackup-1.2.1-perl-5.16-deprecation-warning.patch
@@ -0,0 +1,11 @@
+--- /usr/bin/flexbackup 2010-12-30 08:09:10.000000000 +0100
++++ flexbackup 2013-12-24 15:44:25.000000000 +0100
+@@ -2688,7 +2688,7 @@
+ }
+
+ # Flag old config file
+- if (defined(@cfg::filesystems) or defined($cfg::mt_var_blksize)) {
++ if (@cfg::filesystems or $cfg::mt_var_blksize) {
+ # so strict shuts up
+ my $junk = @cfg::filesystems;
+ $junk = $cfg::mt_var_blksize;
diff --git a/app-backup/flexbackup/files/flexbackup-1.2.1-prune.patch b/app-backup/flexbackup/files/flexbackup-1.2.1-prune.patch
new file mode 100644
index 000000000000..35081932e6f1
--- /dev/null
+++ b/app-backup/flexbackup/files/flexbackup-1.2.1-prune.patch
@@ -0,0 +1,136 @@
+diff -ub flexbackup-old/flexbackup flexbackup-new/flexbackup
+--- flexbackup-old/flexbackup 2007-05-11 20:14:13.000000000 -0400
++++ flexbackup-new/flexbackup 2007-05-11 20:22:36.000000000 -0400
+@@ -3085,7 +3085,6 @@
+ $::read_cmd = "$bufcmd $read_flags";
+
+ } elsif ($cfg::buffer eq "mbuffer") {
+-
+ $::path{'mbuffer'} = &checkinpath('mbuffer');
+ push(@::remoteprogs, $::path{'mbuffer'});
+
+@@ -3101,7 +3100,6 @@
+ }
+ }
+ } else {
+-
+ # If buffering disabled, use dd or cat depending on if blocking turned off on not
+ if ($cfg::blksize eq '0') {
+ $::buffer_cmd = "";
+@@ -4887,18 +4885,19 @@
+ my $rex;
+ # FreeBSD needs -E (above) and no backslashes around the (|) chars
+ if ($::uname =~ /FreeBSD/) {
+- $rex = '-regex "\./(';
++ $rex = '"\./(';
+ $rex .= join('|', keys %{$::prune{$prunekey}});
+- $rex .= ')/.*" ';
++ $rex .= ')"';
+ } else {
+- $rex = '-regex "\./\(';
++ $rex = '"\./\(';
+ $rex .= join('\|', keys %{$::prune{$prunekey}});
+- $rex .= '\)/.*" ';
++ $rex .= '\)"';
+ }
+ # Show what the darn thing is constructing for prune expressions.
+- &log("| \"find\" regex for pruning is: $rex");
+- $cmd .= $rex;
+- $cmd .= '-prune -o ';
++ &log("| \"find\" regex for pruning is:");
++ &log("| $rex");
++ &line();
++ $cmd .= '-regex ' . $rex . ' -prune -o ';
+ } else {
+ # Show what the darn thing is constructing for prune expressions.
+ &log("| No pruning defined for this tree.");
+diff -ub flexbackup-old/flexbackup.1 flexbackup-new/flexbackup.1
+--- flexbackup-old/flexbackup.1 2007-05-11 20:14:13.000000000 -0400
++++ flexbackup-new/flexbackup.1 2007-05-11 20:09:58.000000000 -0400
+@@ -48,7 +48,7 @@
+ Extract (restore) the files listed in text file \(dqfilelist\(dq into your
+ current working directory.
+ .TP
+-\fBflexbackup\fR \fI-extract\fR \fI-flist\fR <\fIfilename\fR>
++\fBflexbackup\fR \fI-extract\fR \fI-onefile\fR <\fIfilename\fR>
+ Extract (restore) the single file named \(dqfilename\(dq into your current
+ working directory.
+ .TP
+diff -ub flexbackup-old/flexbackup.conf flexbackup-new/flexbackup.conf
+--- flexbackup-old/flexbackup.conf 2007-05-11 20:14:13.000000000 -0400
++++ flexbackup-new/flexbackup.conf 2007-05-11 20:26:48.000000000 -0400
+@@ -28,10 +28,10 @@
+
+ # Subtree pruning
+ # A space-separated list of directories to prune from each backup.
+-# Key is a filesystem or host:dir spec as outlined above
+-# regular expressions allowed (not shell-type wildcards!)
++# Key is a filesystem or host:dir spec as outlined above.
++# Regular expressions are allowed (not shell-type wildcards!)
+ #
+-# Note: These directories are actually regular expressions and must
++# Note: These "directories" are actually regular expressions and must
+ # match "find" output relative to the path of the current backup set. This
+ # means that different exclusions are needed for different backup sets.
+ # This is a little tricky, so, read on.
+@@ -46,9 +46,11 @@
+ #
+ # then, the constructed -regex argument to "find" looks like this
+ #
+-# -regex "\./\(one\|two\|three\)/.*"
++# -regex "\./(one|two|three)"
+ #
+-# The last thing you need to know is that FlexBackup only uses the prune
++# (with characters escaped as necessary depending on your environment).
++#
++# Another thing you need to know is that FlexBackup only uses the prune
+ # terms that match the current base directory in the set you're backing
+ # up. For example, if your backup set definition looks like this
+ #
+@@ -66,9 +68,16 @@
+ #
+ # $prune{'/'} = "home/bert home/ernie var/tmp";
+ #
+-# does not work, unless, of course, your backup set is backing up "/",
++# doesn't work, unless, of course, your backup set is backing up "/",
+ # which our example is not.
+ #
++# Many other complex and abstruse variations are possible. Here's one
++# interesting corner case. If you want to preserve a directory but none of its
++# contents, you can do it. Picking on ernie from our previous example, preserve
++# only his home directory:
++#
++# $prune{'/home'} = "ernie/.*";
++#
+ $prune{'/'} = "tmp proc";
+
+ # Compression
+@@ -138,10 +147,10 @@
+ # Matches paths, not filenames, so put .* on the front/back as needed.
+ # Comment these out to exclude nothing.
+ #
+-# Note: The first example line breaks portage in a restored backup because
+-# "/usr/lib/portage/pym/cache" is not backed up. Way too general! The moral
+-# of this story is, be very careful with global excludes. The second example
+-# is probably okay.
++# Gentoo note: The first example line breaks portage in a restored backup
++# because "/usr/lib/portage/pym/cache" is not backed up. Way too general!
++# The moral of this story is, be very careful with global excludes. The
++# second example is probably okay.
+ # $exclude_expr[0] = '.*/[Cc]ache/.*';
+ # $exclude_expr[1] = '.*~$';
+
+diff -ub flexbackup-old/flexbackup.conf.5 flexbackup-new/flexbackup.conf.5
+--- flexbackup-old/flexbackup.conf.5 2007-05-11 20:14:13.000000000 -0400
++++ flexbackup-new/flexbackup.conf.5 2007-05-11 20:09:58.000000000 -0400
+@@ -40,7 +40,9 @@
+ \fB$prune{\fI'/'\fR}\fR = \fI'tmp proc'\fR;
+ Configure subtree pruning. A space-separated list of directories to prune from
+ each backup. Key is a filesystem/directory or \(dqhost:directory\(dq spec as
+-outlined above regular expressions allowed (not shell-type wildcards!).
++outlined above. Regular expressions allowed (not shell-type wildcards!). There
++is additional explanation (and a lot of examples) in the provided configuration
++file.
+ .TP
+ \fB$compress\fR = \fI'false|gzip|bzip2|lzop|zip|compress|hardware'\fR;
+ .TQ
diff --git a/app-backup/flexbackup/files/flexbackup-1.2.1-quieten.patch b/app-backup/flexbackup/files/flexbackup-1.2.1-quieten.patch
new file mode 100644
index 000000000000..4d9ad8f4e4c7
--- /dev/null
+++ b/app-backup/flexbackup/files/flexbackup-1.2.1-quieten.patch
@@ -0,0 +1,13 @@
+Index: flexbackup
+===================================================================
+--- flexbackup (revision 814)
++++ flexbackup (revision 891)
+@@ -2419,7 +2419,7 @@
+ if (! -r "$configfile") {
+ die("config file $configfile: $OS_ERROR");
+ }
+- system("perl -c \"$configfile\"");
++ system("perl -c \"$configfile\" 2>&1");
+ if ($CHILD_ERROR) {
+ die("syntax error in config file $configfile");
+ }
diff --git a/app-backup/flexbackup/files/flexbackup-1.2.1-remote-bufftest.patch b/app-backup/flexbackup/files/flexbackup-1.2.1-remote-bufftest.patch
new file mode 100644
index 000000000000..3d473b9810ce
--- /dev/null
+++ b/app-backup/flexbackup/files/flexbackup-1.2.1-remote-bufftest.patch
@@ -0,0 +1,59 @@
+Common subdirectories: flexbackup-1.2.1-r4/contrib and flexbackup-1.2.1-r5/contrib
+diff -ubB flexbackup-1.2.1-r4/flexbackup flexbackup-1.2.1-r5/flexbackup
+--- flexbackup-1.2.1-r4/flexbackup 2007-04-14 17:09:48.000000000 -0400
++++ flexbackup-1.2.1-r5/flexbackup 2007-04-14 17:23:20.000000000 -0400
+@@ -5276,6 +5276,7 @@
+ my $tmp_script = "$cfg::tmpdir/buftest.$host.$PROCESS_ID.sh";
+ my $retval = 0;
+ my $pipecmd;
++ my $explicit_success;
+
+ $buffer_cmd =~ s:^\s*\|\s*::;
+ $buffer_cmd =~ s:\s*\|\s*$::;
+@@ -5290,7 +5291,7 @@
+ print SCR "res=\$?\n";
+ print SCR "out=\`cat \$tmp_err\`\n";
+ print SCR "if [ \$res -eq 0 ]; then\n";
+- print SCR " echo successful\n";
++ print SCR " echo \"successful\"\n";
+ print SCR "else\n";
+ print SCR " echo \"unsuccessful: exit code \$res: \$out\" \n";
+ print SCR "fi\n";
+@@ -5302,13 +5303,19 @@
+ $pipecmd = "sh $tmp_script ";
+ } else {
+ print $::msg "| Checking '$cfg::buffer' on host $host... ";
+- $pipecmd = "cat $tmp_script | ($::remoteshell $host 'cat > $tmp_script; sh $tmp_script; rm -f $tmp_script')";
++ $pipecmd = "$::remoteshell $host '$::path{mkdir} -p $cfg::tmpdir'; cat $tmp_script | ($::remoteshell $host 'cat > $tmp_script; sh $tmp_script; rm -rf $cfg::tmpdir')";
+ }
+
+ if (!defined($::debug)) {
+
+ open(PIPE,"$pipecmd |") || die;
++
++ $explicit_success = 0;
+ while (<PIPE>) {
++ if (/^successful$/) {
++ $explicit_success = 1;
++ last;
++ }
+ if (/^unsuccessful: exit code (\d+): (.*)/) {
+ $retval = $1;
+ my $out = $2;
+@@ -5337,11 +5344,15 @@
+ print $::msg "\n(debug) $pipecmd\n";
+ }
+
+- if ($retval == 0) {
++ if ($explicit_success) {
+ print $::msg "Ok\n";
+ } else {
++ if ($retval == 0) {
++ push(@::errors, "Unanticipated problems encountered testing '$cfg::buffer' on host '$host'.");
++ } else {
+ print $::msg "Failed!\n";
+ }
++ }
+ unlink("$tmp_script");
+
+ return($retval);
diff --git a/app-backup/flexbackup/files/flexbackup-1.2.1-secure-tempfile.patch b/app-backup/flexbackup/files/flexbackup-1.2.1-secure-tempfile.patch
new file mode 100644
index 000000000000..9242f01efcfb
--- /dev/null
+++ b/app-backup/flexbackup/files/flexbackup-1.2.1-secure-tempfile.patch
@@ -0,0 +1,72 @@
+--- a/flexbackup 2003-10-10 07:12:09.000000000 -0700
++++ b/flexbackup 2006-05-14 13:14:54.000000000 -0700
+@@ -269,6 +269,7 @@
+ untie(%::index);
+ }
+
++system ('rm', '-rf', $cfg::tmpdir);
+ exit(0);
+
+ ######################################################################
+@@ -811,6 +812,11 @@
+ ($remove, @cmds) = &backup_filelist($label, $localdir, $title, $level, $remote);
+ }
+
++ if(defined($remote)) {
++ # create our temporary directory as first remote command
++ unshift(@cmds, &maybe_remote_cmd("$::path{mkdir} -p $cfg::tmpdir", $remote));
++ }
++
+ # Nuke any tmp files used in the above routines
+ if ($remove ne '') {
+ push(@cmds, &maybe_remote_cmd("$::path{rm} -f $remove", $remote));
+@@ -827,6 +833,11 @@
+ push(@cmds, &maybe_remote_cmd("$::path{rm} -f $pkglist", $remote));
+ }
+ }
++
++ if(defined($remote)) {
++ # remove temporary directory as our last remote command
++ push(@cmds, &maybe_remote_cmd("$::path{rm} -rf $cfg::tmpdir", $remote));
++ }
+
+ # Strip multiple spaces
+ foreach my $cmd (@cmds) {
+@@ -2750,8 +2761,9 @@
+ $::path{'find'} = &checkinpath('find');
+ $::path{'dd'} = &checkinpath('dd');
+ $::path{'printf'} = &checkinpath('printf');
++ $::path{'mkdir'} = &checkinpath('mkdir');
+
+- push(@::remoteprogs,($::path{'touch'},$::path{'rm'},$::path{'find'},$::path{'printf'}));
++ push(@::remoteprogs,($::path{'touch'},$::path{'rm'},$::path{'find'},$::path{'printf'},$::path{'mkdir'}));
+
+ # Check device (or dir)
+ $::ftape = 0;
+@@ -3442,6 +3454,15 @@
+ push(@::errors,"\$tmpdir $cfg::tmpdir is not writable");
+ }
+
++ $cfg::hostname = `hostname`;
++ chomp($cfg::hostname);
++
++ # Use a subdirectory of the user-specified directory as our tmpdir
++ # Also note that we make it closer to globally unique as we sometimes
++ # use this variable for remote systems, so PID isn't enough
++ $cfg::tmpdir = $cfg::tmpdir .'/flexbackup.'.$$.'.'.$cfg::hostname;
++ mkdir ($cfg::tmpdir) || die "Can't create temporary directory, $!";
++
+ # Levels
+ if (defined($::opt{'level'}) and
+ (defined($::opt{'incremental'}) or
+@@ -5236,8 +5257,8 @@
+ # Create a script which tests the buffer program
+ open(SCR,"> $tmp_script") || die;
+ print SCR "#!/bin/sh\n";
+- print SCR "tmp_data=/tmp/bufftest\$\$.txt\n";
+- print SCR "tmp_err=/tmp/bufftest\$\$.err\n";
++ print SCR "tmp_data=\`tempfile\`\n";
++ print SCR "tmp_err=\`tempfile\`\n";
+ print SCR "echo testme > \$tmp_data\n";
+ print SCR "$buffer_cmd > /dev/null 2> \$tmp_err < \$tmp_data\n";
+ print SCR "res=\$?\n";
diff --git a/app-backup/flexbackup/files/flexbackup-1.2.1-spaces-in-filenames.patch b/app-backup/flexbackup/files/flexbackup-1.2.1-spaces-in-filenames.patch
new file mode 100644
index 000000000000..1e9ea220ebf5
--- /dev/null
+++ b/app-backup/flexbackup/files/flexbackup-1.2.1-spaces-in-filenames.patch
@@ -0,0 +1,296 @@
+Index: flexbackup
+===================================================================
+--- flexbackup (.../tags/flexbackup-1.2.1-r5) (revision 784)
++++ flexbackup (.../trunk) (revision 784)
+@@ -1301,8 +1301,8 @@
+ $cmd .= "$::unz";
+ }
+ $cmd .= "(";
+- $cmd .= "mkdir -p $::device ; ";
+- $cmd .= "cd $::device ; ";
++ $cmd .= "mkdir -p \"$::device\" ; ";
++ $cmd .= "cd \"$::device\" ; ";
+ $cmd .= "$::path{cpio} -i ";
+ $cmd .= "-m ";
+ $cmd .= "-d ";
+@@ -1351,9 +1351,8 @@
+
+ # Have to take leading './' off to make rsync's include/exclude work right
+ $cmd .= " | $::path{sed} -e \"s/\\.\\///g\" | ";
+-
+ $cmd .= "$::path{rsync} ";
+- $cmd .= "--include-from=- --exclude=* ";
++ $cmd .= "--files-from=- ";
+ $cmd .= "--archive ";
+ $cmd .= "$::rsync_verb_flag ";
+ $cmd .= "--delete --delete-excluded ";
+@@ -1368,7 +1367,7 @@
+ $cmd .= "$remote:";
+ }
+ }
+- $cmd .= "$dir/ $::device";
++ $cmd .= "\"$dir/\" \"$::device\"";
+
+ push(@cmds, $cmd);
+
+@@ -1658,7 +1657,9 @@
+ my $tmpfile = "$cfg::tmpdir/ar.$PROCESS_ID";
+ my $remove = '';
+
+- &log("| NOTE: ar archives will not descend directories");
++ &log("| NOTE: ar archives will not recurse into subdirectories,");
++ &log("| which makes them inappropriate for most backups.");
++ &log("| Be sure this is what you want.");
+
+ if (defined($remote) and ($level != 0)) {
+ my $time = &get_last_date($label, $level, 'numeric');
+@@ -1682,11 +1683,13 @@
+ $cmd = "cd \"$dir\" && ";
+ $cmd .= &file_list_cmd( $dir, $stamp, 'newline', $level, $remote, '-maxdepth 1 ! -type d');
+ $cmd .= "> $filelist; ";
++ # Escape any spaces in filenames.
++ $cmd .= "$::path{sed} -i -e 's/ /\\\\ /g' $filelist; ";
+
+ $cmd .= "$::path{ar} rc";
+ $cmd .= "$::ar_verb_flag ";
+ $cmd .= "$tmpfile ";
+- $cmd .= "`$::path{cat} $filelist`";
++ $cmd .= "\@$filelist ";
+ $cmd .= "; $::path{cat} $tmpfile $::z";
+
+ # Buffer both sides if remote
+@@ -1800,12 +1803,9 @@
+
+ $cmd = "cd \"$dir\" && ";
+ $cmd .= &file_list_cmd( $dir, $stamp, 'newline', $level, $remote);
+- $cmd .= "> $filelist; ";
+-
+- $cmd .= "$::path{lha} a";
++ $cmd .= " | $::path{lha} a";
+ $cmd .= "$::lha_verb_flag ";
+ $cmd .= "$tmpfile ";
+- $cmd .= "`$::path{cat} $filelist`";
+ $cmd .= "; $::path{cat} $tmpfile $::z";
+
+ # Buffer both sides if remote
+@@ -2766,6 +2766,7 @@
+ $::path{'dd'} = &checkinpath('dd');
+ $::path{'printf'} = &checkinpath('printf');
+ $::path{'mkdir'} = &checkinpath('mkdir');
++ $::path{'sed'} = &checkinpath('sed');
+
+ push(@::remoteprogs,($::path{'touch'},$::path{'rm'},$::path{'find'},$::path{'printf'},$::path{'mkdir'}));
+
+@@ -4894,9 +4895,9 @@
+ $rex .= '\)"';
+ }
+ # Show what the darn thing is constructing for prune expressions.
+- &log("| \"find\" regex for pruning is:");
+- &log("| $rex");
+- &line();
++ (my $temp = $rex) =~ s/\\([()|])/$1/g;
++ &log("| \"find\" regex for pruning (shell escaping omitted for clarity) is:");
++ &log("| $temp");
+ $cmd .= '-regex ' . $rex . ' -prune -o ';
+ } else {
+ # Show what the darn thing is constructing for prune expressions.
+@@ -4906,6 +4907,7 @@
+ # don't have permissions on and are running as non-root)
+ $cmd .= "-depth ";
+ }
++ &line();
+
+ $cmd .= "$::mountpoint_flag ";
+ $cmd .= "! -type s ";
+@@ -5301,12 +5303,14 @@
+ print $::msg "| Checking '$cfg::buffer' on this machine... ";
+ $pipecmd = "sh $tmp_script ";
+ } else {
++ $pipecmd =
++ "$::remoteshell $host '$::path{mkdir} -p $cfg::tmpdir'; " .
++ "cat $tmp_script | ($::remoteshell $host 'cat > $tmp_script; " .
++ "sh $tmp_script; rm -rf $cfg::tmpdir')";
+ print $::msg "| Checking '$cfg::buffer' on host $host... ";
+- $pipecmd = "$::remoteshell $host '$::path{mkdir} -p $cfg::tmpdir'; cat $tmp_script | ($::remoteshell $host 'cat > $tmp_script; sh $tmp_script; rm -rf $cfg::tmpdir')";
+ }
+
+ if (!defined($::debug)) {
+-
+ open(PIPE,"$pipecmd |") || die;
+
+ $explicit_success = 0;
+Index: flexbackup.conf
+===================================================================
+--- flexbackup.conf (.../tags/flexbackup-1.2.1-r5) (revision 784)
++++ flexbackup.conf (.../trunk) (revision 784)
+@@ -12,19 +12,27 @@
+
+ # Configure backup "sets".
+ # Not needed if you use "-dir <dir>" to backup one tree at a time.
+-# Each set is a simple space-separated list of filesystems
+-# Remote filesystems should denoted as 'host:dir'
+-# You can use anything (other than 'all') as set names
+-#
+-# Example:
+-# $set{'set1'} = "/home /usr";
+-# $set{'set2'} = "/dir3 machine2:/dir4 machine3:/dir5";
++# Each set is a simple space-separated list of filesystems. Remote filesystems
++# should denoted as 'host:dir'. If the filesystem name (local or remote)
++# contains spaces, then it should be enclosed in its entirety in double quotes.
++# Multiple quoted filesystems included in a set should be space separated just
++# like unquoted filesystem. The Perl '.' string concatenation operator can be
++# used to split excessively long lines.
++#
++# You can use anything (other than 'all') as set names.
++#
++# Examples:
++# $set{'set1'} = '/home /usr';
++# $set{'set2'} = '/dir3 machine2:/dir4 machine3:/dir5';
++# $set{'set3'} =
++# '"/mnt/winmachine1/Documents and Settings" ' .
++# '"/mnt/winmachine1/Program Files"';
+ #
+ # "-set all" will back up all defined sets. If you are doing a full backup
+ # using tapes, each "set" will go onto a different tape and you will be
+ # prompted for tape change in between.
+ #
+-$set{'backup'} = "/home";
++$set{'backup'} = '/home';
+
+ # Subtree pruning
+ # A space-separated list of directories to prune from each backup.
+@@ -42,7 +50,7 @@
+ # start with "./". To be helpful, FlexBackup packages each space-separated
+ # prune directory as follows. If you have a prune list like this
+ #
+-# $prune{'/somedir'} = "one two three";
++# $prune{'/somedir'} = 'one two three';
+ #
+ # then, the constructed -regex argument to "find" looks like this
+ #
+@@ -54,31 +62,38 @@
+ # terms that match the current base directory in the set you're backing
+ # up. For example, if your backup set definition looks like this
+ #
+-# $set{'daily'} = "/home /root /var /usr";
++# $set{'daily'} = '/home /root /var /usr';
+ #
+ # and you want to do some exclusions in "/home" and "/var" (but not the other
+ # directories), you must set up a prune list for those two directories
+ # separately. For example, to exclude bert's and ernie's home directories plus
+ # /var/tmp, you would need the following:
+ #
+-# $prune{'/home'} = "bert ernie";
+-# $prune{'/var'} = "tmp";
++# $prune{'/home'} = 'bert ernie';
++# $prune{'/var'} = 'tmp';
+ #
+ # In particular, combining these *does not* work. For example, this
+ #
+-# $prune{'/'} = "home/bert home/ernie var/tmp";
++# $prune{'/'} = 'home/bert home/ernie var/tmp';
+ #
+ # doesn't work, unless, of course, your backup set is backing up "/",
+ # which our example is not.
+ #
++# Like the $set configuration item, special handling is required for
++# directories with spaces in them. Double quotes should surround pruning
++# targets but not the key. Example:
++#
++# $prune{'/mnt/winmachine1/Documents and Settings'} =
++# '"user1/Local Settings/Temp" user2';
++#
+ # Many other complex and abstruse variations are possible. Here's one
+ # interesting corner case. If you want to preserve a directory but none of its
+ # contents, you can do it. Picking on ernie from our previous example, preserve
+ # only his home directory:
+ #
+-# $prune{'/home'} = "ernie/.*";
++# $prune{'/home'} = 'ernie/.*';
+ #
+-$prune{'/'} = "tmp proc";
++$prune{'/'} = 'tmp proc';
+
+ # Compression
+ $compress = 'gzip'; # one of false/gzip/bzip2/lzop/zip/compress/hardware/lzma
+Index: flexbackup.conf.5
+===================================================================
+--- flexbackup.conf.5 (.../tags/flexbackup-1.2.1-r5) (revision 784)
++++ flexbackup.conf.5 (.../trunk) (revision 784)
+@@ -24,25 +24,51 @@
+ .TP
+ \fB$set{\fI'tag'\fR}\fR = \fI'/dir'\fR;
+ Configure backup \(dqsets\(dq. Not needed if \(dq-dir <dir>\(dq is used to
+-backup one tree at a time. Each set is a simple space-separated list of
+-filesystems/directories. Remote filesystems should be denoted as
+-\(dqhost:directory\(dq. You can use anything (other than \fI'all'\fR) as set
+-names. Using \(dq-set all\(dq will back up all defined sets. If you are doing
+-a full backup using tapes, each \(dqset\(dq will go onto a different tape and
+-you will be prompted for tape change in between. Examples:
++backup one tree at a time.
++Each set is a simple space-separated list of filesystems/directories.
++Remote filesystems should be denoted as \(dqhost:directory\(dq.
++You can use anything (other than \fI'all'\fR) as set names.
++Using \(dq-set all\(dq will back up all defined sets.
++If you are doing a full backup using tapes, each \(dqset\(dq will go onto a
++different tape and you will be prompted for tape change in between.
++Examples:
+ .RS
+ .PP
+ \fB$set{\fI'set1'\fI}\fR = \fI'/home /usr'\fR;
+ .br
+ \fB$set{\fI'set2'\fI}\fR = \fI'/dir3 machine2:/dir4 machine3:/dir5'\fR;
++.br
++.PP
++Directories (local or remote) with spaces in their names should be enclosed in
++their entirety in double quotes.
++Multiple quoted directories included in a set should be space separated just
++like unquoted directories.
++The Perl '.' string concatenation operator can be used to split excessively
++long sets.
++Example:
++.PP
++\fB$set{\fI'set3'\fI}\fR = \fI
++ '\(dq/mnt/winmachine1/Documents and Settings\(dq ' .
++ '\(dq/mnt/winmachine1/Program Files\(dq';\fR
+ .RE
+ .TP
+ \fB$prune{\fI'/'\fR}\fR = \fI'tmp proc'\fR;
+ Configure subtree pruning. A space-separated list of directories to prune from
+ each backup. Key is a filesystem/directory or \(dqhost:directory\(dq spec as
+-outlined above. Regular expressions allowed (not shell-type wildcards!). There
+-is additional explanation (and a lot of examples) in the provided configuration
+-file.
++outlined above. Regular expressions allowed (not shell-type wildcards!).
++.RS
++.PP
++Like the \fB$set\fR configuration item, special handling is required for
++directories with spaces in them. Double quotes should surround pruning targets
++but not the key. Example:
++.PP
++\fB$prune{\fI'/mnt/winmachine1/Documents and Settings'\fI}\fR =
++ \fI'\(dquser1/Local Settings/Temp\(dq user2'\fR;
++.br
++.PP
++There are lots of examples and additional explanation in the provided sample
++configuration file.
++.RE
+ .TP
+ \fB$compress\fR = \fI'false|gzip|bzip2|lzop|zip|compress|hardware'\fR;
+ .TQ
+@@ -207,7 +233,7 @@
+ .RS
+ .TP
+ If GNU \fBtar\fR is called \fB\(dqgtar\(dq\fR on your system:
+-\fB$path{'tar'} = 'gtar';
++\fB$path{'tar'} = 'gtar';\fR
+ .TP
+ Or it can be used to \fB\(dqsudo\(dq\fR certain commands:
+ \fB$path{\fI'find'\fR}\fR = \fI'sudo find'\fR;
+@@ -304,3 +330,6 @@
+ Written by Edwin Huffstutler (edwinh@computer.org)
+ .SH "SEE ALSO"
+ \fBflexbackup\fR(1)
++.\" Local Variables:
++.\" mode: nroff
++.\" End:
diff --git a/app-backup/flexbackup/flexbackup-1.2.1-r12.ebuild b/app-backup/flexbackup/flexbackup-1.2.1-r12.ebuild
new file mode 100644
index 000000000000..e726f43950b5
--- /dev/null
+++ b/app-backup/flexbackup/flexbackup-1.2.1-r12.ebuild
@@ -0,0 +1,85 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit eutils versionator
+
+DESCRIPTION="Flexible backup script using perl"
+HOMEPAGE="http://flexbackup.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 hppa ppc x86"
+IUSE=""
+
+RDEPEND="app-arch/mt-st"
+DEPEND="${RDEPEND}"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ # Patch from upstream adds optional lzma compression mode.
+ epatch "${FILESDIR}"/${P}-lzma.patch
+
+ # Fix bug #116510: cannot back up remote machines after patch CAN-2005-2965
+ epatch "${FILESDIR}"/${P}-secure-tempfile.patch
+
+ # Fix bug #96334: incorrectly determines bash 3.x to be bash 1.x
+ epatch "${FILESDIR}"/${P}-bash.patch
+
+ # Fix bug #171205: specifies wrong command line option for mbuffer / other small enhancements
+ epatch "${FILESDIR}"/${P}-mbuffer-switch.patch
+
+ # Fix bug #173672: remote host buffer test is broken
+ epatch "${FILESDIR}"/${P}-remote-bufftest.patch
+
+ # Fix bug #178126: subtle subtree pruning issue / other small issues
+ epatch "${FILESDIR}"/${P}-prune.patch
+
+ # Fix bug #184560: fails to back up targets with spaces in their names in some modes
+ epatch "${FILESDIR}"/${P}-spaces-in-filenames.patch
+
+ # Fix bug #190357: fails on very large files with afio back end
+ epatch "${FILESDIR}"/${P}-afio-large-files.patch
+
+ # Fix bug #235416: prevent normal status message during conf file read from going to stderr
+ epatch "${FILESDIR}"/${P}-quieten.patch
+
+ # Fix bug #331673: perl 5.12 deprecation warnings.
+ epatch "${FILESDIR}"/${P}-perl-5.12-deprecation-warning.patch
+
+ # Fix bug #495232: perl 5.16 deprecation warnings.
+ epatch "${FILESDIR}"/${P}-perl-5.16-deprecation-warning.patch
+
+ sed -i \
+ -e '/^\$type = /s:afio:tar:' \
+ -e "/^\$buffer = /s:'buffer':'false':" \
+ flexbackup.conf \
+ || die "Failed to set modified configuration defaults."
+
+ MY_PV=$(replace_all_version_separators '_')
+ sed -i \
+ -e "/^[[:blank:]]*my \$ver = /s:${MY_PV}:&-${PR}:" \
+ flexbackup \
+ || die "Failed to apply ebuild revision to internal version string."
+}
+
+src_install() {
+ dodir /etc /usr/bin /usr/share/man/man{1,5}
+ emake install \
+ PREFIX="${D}"/usr \
+ CONFFILE="${D}"/etc/flexbackup.conf \
+ || die "emake install failed"
+
+ dodoc CHANGES CREDITS README TODO
+ dohtml faq.html
+}
+
+pkg_postinst() {
+ elog "Please edit your /etc/flexbackup.conf file to suit your"
+ elog "needs. If you are using devfs, the tape device should"
+ elog "be set to /dev/tapes/tape0/mtn. If you need to use any"
+ elog "archiver other than tar, please emerge it separately."
+}
diff --git a/app-backup/flexbackup/metadata.xml b/app-backup/flexbackup/metadata.xml
new file mode 100644
index 000000000000..c1ddf236a3f1
--- /dev/null
+++ b/app-backup/flexbackup/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>graaff@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">flexbackup</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-backup/fsarchiver/Manifest b/app-backup/fsarchiver/Manifest
new file mode 100644
index 000000000000..cbce1e368d01
--- /dev/null
+++ b/app-backup/fsarchiver/Manifest
@@ -0,0 +1 @@
+DIST fsarchiver-0.6.19.tar.gz 244972 SHA256 9ba4d3262059a0cb108de564340d947a4d75d34ba3b8e35a767d543afbf24dbb SHA512 28c2b7c59fcdedd47c5451867540696e1859d954259670419df01fb94b626f169a2ff97b9eb96caaba69421ff2560cebbd6c7743b2a89172591f0747716a0471 WHIRLPOOL 78200870521adb927b042e3ada778ebb552f84c0164cf628fa5214f84f42a853fe71871d2ee27a6c485fa1db3c229002e52c6f11e58ef9766b38df6723e93f24
diff --git a/app-backup/fsarchiver/fsarchiver-0.6.19.ebuild b/app-backup/fsarchiver/fsarchiver-0.6.19.ebuild
new file mode 100644
index 000000000000..dc65a2ffd038
--- /dev/null
+++ b/app-backup/fsarchiver/fsarchiver-0.6.19.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+inherit autotools eutils
+
+DESCRIPTION="Flexible filesystem archiver for backup and deployment tool"
+HOMEPAGE="http://www.fsarchiver.org"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="debug lzma lzo static"
+
+DEPEND="dev-libs/libgcrypt:0
+ >=sys-fs/e2fsprogs-1.41.4
+ lzma? ( >=app-arch/xz-utils-4.999.9_beta )
+ lzo? ( >=dev-libs/lzo-2.02 )
+ static? ( lzma? ( app-arch/xz-utils[static-libs] ) )"
+RDEPEND="${DEPEND}"
+
+src_prepare() {
+ sed -i -e 's/^\([a-z]*_CFLAGS.*\)-ggdb/\1/' src/Makefile.am || die "seding
+ failed"
+ eautoreconf
+}
+
+src_configure() {
+ econf $(use_enable lzma) \
+ $(use_enable lzo) \
+ $(use_enable static) \
+ $(use_enable debug devel)
+}
diff --git a/app-backup/fsarchiver/metadata.xml b/app-backup/fsarchiver/metadata.xml
new file mode 100644
index 000000000000..d11d6c071407
--- /dev/null
+++ b/app-backup/fsarchiver/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>hwoarang@gentoo.org</email>
+ <name>Markos Chandras</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">fsarchiver</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-backup/furball/Manifest b/app-backup/furball/Manifest
new file mode 100644
index 000000000000..f22d646761f4
--- /dev/null
+++ b/app-backup/furball/Manifest
@@ -0,0 +1 @@
+DIST furball-0.5.tgz 10112 SHA256 1fbd608b0cb60cc9b42be27dae79294a3c1360b5b8f5c983c136297c5e6ba618 SHA512 e5bf9857de8b391dbedfe14e6f84021447c5c0e7d7e9bed021a4cdf28e93de72c8a8fb82afad64b2863c80b0a983a986a2a00bb2b5319e9b4595781dac18e3b6 WHIRLPOOL d06b5e3d92a665144287a2820f5050337a615a398e2437b01002fd8d211d358fbe6f3bbdd468d15872cd9a85c5c500a6d4aef9c451d9b96c472c10349fb983ed
diff --git a/app-backup/furball/furball-0.5.ebuild b/app-backup/furball/furball-0.5.ebuild
new file mode 100644
index 000000000000..501d8423e949
--- /dev/null
+++ b/app-backup/furball/furball-0.5.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+DESCRIPTION="A handy backup script utilizing tar"
+SRC_URI="http://www.claws-and-paws.com/software/${PN}/${P}.tgz"
+HOMEPAGE="http://www.claws-and-paws.com/software/furball/index.shtml"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="amd64 ppc sparc x86"
+IUSE=""
+RDEPEND="dev-lang/perl
+ app-arch/tar"
+
+src_install() {
+ dobin ${PN}
+ doman ${PN}.1
+ dodoc README NEWS THANKS
+}
diff --git a/app-backup/furball/metadata.xml b/app-backup/furball/metadata.xml
new file mode 100644
index 000000000000..f9d50da18d39
--- /dev/null
+++ b/app-backup/furball/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>maintainer-needed@gentoo.org</email>
+ <description>This package lacks a primary herd or maintainer.</description>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-backup/hdup/Manifest b/app-backup/hdup/Manifest
new file mode 100644
index 000000000000..a03578d44a35
--- /dev/null
+++ b/app-backup/hdup/Manifest
@@ -0,0 +1 @@
+DIST hdup-2.0.14.tar.bz2 87803 SHA256 6781ec53a739c0ae15129bbbb4674cad012501b30b6652ab54d0b300de677609 SHA512 076876345d58bc6a1b987adc3ea10b1e82652504f52579d62c3f9f97c120fd56f3177deb4fe810b1579ab473061d2ab38b0ab97b83427ec84d5141f7043897f8 WHIRLPOOL 0f882463fcf0df0de019d18d915f87944d4dddb49e3e560c5d6c42479b947bc5ffe87808c95bdba6815f57a2ebee28c3f0e46c7666a63589811410934481dc34
diff --git a/app-backup/hdup/hdup-2.0.14.ebuild b/app-backup/hdup/hdup-2.0.14.ebuild
new file mode 100644
index 000000000000..d4a24acde1e9
--- /dev/null
+++ b/app-backup/hdup/hdup-2.0.14.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+KEYWORDS="~amd64 ~ppc ~x86"
+DESCRIPTION="Hdup is backup program using tar, find, gzip/bzip2, mcrypt and ssh"
+HOMEPAGE="http://www.miek.nl/projects/hdup2/index.html"
+SRC_URI="http://www.miek.nl/projects/${PN}2/${P}.tar.bz2"
+LICENSE="GPL-2"
+SLOT="0"
+IUSE="crypt"
+
+CDEPEND="app-arch/bzip2
+ app-arch/gzip
+ app-arch/tar
+ >=dev-libs/glib-2.0"
+
+RDEPEND="${CDEPEND}
+ net-misc/openssh
+ sys-apps/coreutils
+ sys-apps/findutils
+ crypt? ( app-crypt/mcrypt )"
+
+DEPEND="${CDEPEND}
+ virtual/pkgconfig"
+
+src_unpack() {
+ unpack ${A}
+
+ sed -i \
+ -e '/hdup:/s|${HDR}.*||' \
+ -e 's:GLIB_LIBS *=:LDLIBS =:' \
+ -e '/-o hdup/,+1d' \
+ "${S}"/src/Makefile.in || die "Makefile fix failed"
+}
+
+src_compile() {
+ econf || die "econf failed"
+ emake || die "emake failed"
+}
+
+src_install() {
+ dodir /usr/sbin
+ make DESTDIR="${D}" install || die "make install failed"
+
+ dohtml doc/FAQ.html
+ dodoc ChangeLog Credits README
+
+ insinto /usr/share/${PN}/contrib/
+ doins contrib/*
+
+ insinto /usr/share/${PN}/examples/
+ doins examples/*
+}
+
+pkg_postinst() {
+ elog "Now edit your /etc/hdup/${PN}.conf to configure your backups."
+ elog "You can also check included examples and contrib, see /usr/share/${PN}/."
+}
diff --git a/app-backup/hdup/metadata.xml b/app-backup/hdup/metadata.xml
new file mode 100644
index 000000000000..a40624fba8f0
--- /dev/null
+++ b/app-backup/hdup/metadata.xml
@@ -0,0 +1,7 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer>
+ <email>maintainer-needed@gentoo.org</email>
+</maintainer>
+</pkgmetadata>
diff --git a/app-backup/holland-backup-example/Manifest b/app-backup/holland-backup-example/Manifest
new file mode 100644
index 000000000000..a4d8dca18b99
--- /dev/null
+++ b/app-backup/holland-backup-example/Manifest
@@ -0,0 +1 @@
+DIST holland-1.0.10.tar.gz 449334 SHA256 c893be3dc77126125334dfa9eec404d7608a78a2bf88ec1d7ddc12ad7f7ed8d1 SHA512 5183ec73012edcaba50ef5cc9b892480d5f60301d01d17bd96c5490bd8e6ae42bd21abb6084e6665317b8025489981a02293cd583964f01e86459609b93e918f WHIRLPOOL fa8934c635f4347ffc6a327f6135d61ca26805d727fe4caca32ba9c23224062492553182e24d15fc59177787241903dd3409396c176fab2d55c34e9dcc5668e3
diff --git a/app-backup/holland-backup-example/holland-backup-example-1.0.10.ebuild b/app-backup/holland-backup-example/holland-backup-example-1.0.10.ebuild
new file mode 100644
index 000000000000..6a925f9a946a
--- /dev/null
+++ b/app-backup/holland-backup-example/holland-backup-example-1.0.10.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1
+
+DESCRIPTION="Holland Example Plugin"
+HOMEPAGE="http://www.hollandbackup.org/"
+
+MY_P="${P%%-*}-${P##*-}"
+
+SRC_URI="http://hollandbackup.org/releases/stable/${PV%.*}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
+RDEPEND=""
+PDEPEND="~app-backup/holland-${PV}[${PYTHON_USEDEP}]"
+
+S="${WORKDIR}/${MY_P}/plugins/${PN//-/.}"
+
+python_install_all() {
+ distutils-r1_python_install_all
+
+ keepdir /etc/holland
+ keepdir /etc/holland/backupsets
+ keepdir /etc/holland/providers
+
+ insinto /etc/holland/backupsets
+ doins "${S}"/../../config/backupsets/examples/${PN##*-}.conf
+
+ insinto /etc/holland/providers
+ doins "${S}"/../../config/providers/${PN##*-}.conf
+}
diff --git a/app-backup/holland-backup-example/metadata.xml b/app-backup/holland-backup-example/metadata.xml
new file mode 100644
index 000000000000..02be8c5eb78f
--- /dev/null
+++ b/app-backup/holland-backup-example/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>alunduil@gentoo.org</email>
+ <name>Alex Brandt</name>
+ </maintainer>
+ <longdescription lang="en">
+ </longdescription>
+</pkgmetadata>
diff --git a/app-backup/holland-backup-mysql-lvm/Manifest b/app-backup/holland-backup-mysql-lvm/Manifest
new file mode 100644
index 000000000000..a4d8dca18b99
--- /dev/null
+++ b/app-backup/holland-backup-mysql-lvm/Manifest
@@ -0,0 +1 @@
+DIST holland-1.0.10.tar.gz 449334 SHA256 c893be3dc77126125334dfa9eec404d7608a78a2bf88ec1d7ddc12ad7f7ed8d1 SHA512 5183ec73012edcaba50ef5cc9b892480d5f60301d01d17bd96c5490bd8e6ae42bd21abb6084e6665317b8025489981a02293cd583964f01e86459609b93e918f WHIRLPOOL fa8934c635f4347ffc6a327f6135d61ca26805d727fe4caca32ba9c23224062492553182e24d15fc59177787241903dd3409396c176fab2d55c34e9dcc5668e3
diff --git a/app-backup/holland-backup-mysql-lvm/holland-backup-mysql-lvm-1.0.10.ebuild b/app-backup/holland-backup-mysql-lvm/holland-backup-mysql-lvm-1.0.10.ebuild
new file mode 100644
index 000000000000..e798dae03250
--- /dev/null
+++ b/app-backup/holland-backup-mysql-lvm/holland-backup-mysql-lvm-1.0.10.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1
+
+DESCRIPTION="Holland MySQL with LVM Plugin"
+HOMEPAGE="http://www.hollandbackup.org/"
+
+MY_P="${P%%-*}-${P##*-}"
+
+SRC_URI="http://hollandbackup.org/releases/stable/${PV%.*}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
+RDEPEND="
+ ~app-backup/holland-backup-mysqldump-${PV}[${PYTHON_USEDEP}]
+ ~app-backup/holland-lib-common-${PV}[${PYTHON_USEDEP}]
+ ~app-backup/holland-lib-lvm-${PV}[${PYTHON_USEDEP}]
+ ~app-backup/holland-lib-mysql-${PV}[${PYTHON_USEDEP}]
+"
+PDEPEND="
+ ~app-backup/holland-${PV}[${PYTHON_USEDEP}]
+ ~app-backup/holland-backup-mysql-meta-${PV}[${PYTHON_USEDEP}]
+ ~app-backup/holland-backup-mysql-meta-${PV}[mysqldump]
+"
+
+S="${WORKDIR}/${MY_P}/plugins/${PN//-/.}"
+S="${S/.lvm/_lvm}"
+
+python_install_all() {
+ distutils-r1_python_install_all
+
+ keepdir /etc/holland
+ keepdir /etc/holland/backupsets
+ keepdir /etc/holland/providers
+
+ insinto /etc/holland/backupsets
+ doins "${S}"/../../config/backupsets/examples/mysql-lvm.conf
+ doins "${S}"/../../config/backupsets/examples/mysqldump-lvm.conf
+
+ insinto /etc/holland/providers
+ doins "${S}"/../../config/providers/mysql-lvm.conf
+ doins "${S}"/../../config/providers/mysqldump-lvm.conf
+}
diff --git a/app-backup/holland-backup-mysql-lvm/metadata.xml b/app-backup/holland-backup-mysql-lvm/metadata.xml
new file mode 100644
index 000000000000..02be8c5eb78f
--- /dev/null
+++ b/app-backup/holland-backup-mysql-lvm/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>alunduil@gentoo.org</email>
+ <name>Alex Brandt</name>
+ </maintainer>
+ <longdescription lang="en">
+ </longdescription>
+</pkgmetadata>
diff --git a/app-backup/holland-backup-mysql-meta/holland-backup-mysql-meta-1.0.10.ebuild b/app-backup/holland-backup-mysql-meta/holland-backup-mysql-meta-1.0.10.ebuild
new file mode 100644
index 000000000000..a70280bddecd
--- /dev/null
+++ b/app-backup/holland-backup-mysql-meta/holland-backup-mysql-meta-1.0.10.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+
+inherit python-r1
+
+DESCRIPTION="Holland MySQL"
+HOMEPAGE="http://www.hollandbackup.org/"
+SRC_URI=""
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="lvm +mysqldump mysqlhotcopy"
+
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
+RDEPEND="
+ lvm? ( ~app-backup/holland-backup-mysql-lvm-${PV}[${PYTHON_USEDEP}] )
+ mysqldump? ( ~app-backup/holland-backup-mysqldump-${PV}[${PYTHON_USEDEP}] )
+ mysqlhotcopy? ( ~app-backup/holland-backup-mysqlhotcopy-${PV}[${PYTHON_USEDEP}] )
+"
+PDEPEND="=app-backup/holland-${PV}[${PYTHON_USEDEP}]"
diff --git a/app-backup/holland-backup-mysql-meta/metadata.xml b/app-backup/holland-backup-mysql-meta/metadata.xml
new file mode 100644
index 000000000000..182c08433e74
--- /dev/null
+++ b/app-backup/holland-backup-mysql-meta/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>alunduil@gentoo.org</email>
+ <name>Alex Brandt</name>
+ </maintainer>
+ <longdescription lang="en">
+ </longdescription>
+ <use>
+ <flag name="lvm">Install Holland LVM Plugin</flag>
+ <flag name="mysqldump">Install Holland mysqldump Plugin</flag>
+ <flag name="mysqlhotcopy">Install Holland mysqlhotcopy Plugin</flag>
+ </use>
+</pkgmetadata>
diff --git a/app-backup/holland-backup-mysqldump/Manifest b/app-backup/holland-backup-mysqldump/Manifest
new file mode 100644
index 000000000000..a4d8dca18b99
--- /dev/null
+++ b/app-backup/holland-backup-mysqldump/Manifest
@@ -0,0 +1 @@
+DIST holland-1.0.10.tar.gz 449334 SHA256 c893be3dc77126125334dfa9eec404d7608a78a2bf88ec1d7ddc12ad7f7ed8d1 SHA512 5183ec73012edcaba50ef5cc9b892480d5f60301d01d17bd96c5490bd8e6ae42bd21abb6084e6665317b8025489981a02293cd583964f01e86459609b93e918f WHIRLPOOL fa8934c635f4347ffc6a327f6135d61ca26805d727fe4caca32ba9c23224062492553182e24d15fc59177787241903dd3409396c176fab2d55c34e9dcc5668e3
diff --git a/app-backup/holland-backup-mysqldump/holland-backup-mysqldump-1.0.10.ebuild b/app-backup/holland-backup-mysqldump/holland-backup-mysqldump-1.0.10.ebuild
new file mode 100644
index 000000000000..5056a5208b41
--- /dev/null
+++ b/app-backup/holland-backup-mysqldump/holland-backup-mysqldump-1.0.10.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1
+
+DESCRIPTION="Holland mysqldump Plugin"
+HOMEPAGE="http://www.hollandbackup.org/"
+
+MY_P="${P%%-*}-${P##*-}"
+
+SRC_URI="http://hollandbackup.org/releases/stable/${PV%.*}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
+RDEPEND="
+ app-arch/gzip
+ ~app-backup/holland-lib-common-${PV}[${PYTHON_USEDEP}]
+ ~app-backup/holland-lib-mysql-${PV}[${PYTHON_USEDEP}]
+ dev-python/iniparse[${PYTHON_USEDEP}]
+"
+PDEPEND="~app-backup/holland-${PV}[${PYTHON_USEDEP}]"
+
+S="${WORKDIR}/${MY_P}/plugins/${PN//-/.}"
+
+python_install_all() {
+ distutils-r1_python_install_all
+
+ keepdir /etc/holland
+ keepdir /etc/holland/backupsets
+ keepdir /etc/holland/providers
+
+ insinto /etc/holland/backupsets
+ doins "${S}"/../../config/backupsets/examples/${PN##*-}.conf
+
+ insinto /etc/holland/providers
+ doins "${S}"/../../config/providers/${PN##*-}.conf
+}
+
+pkg_postinst() {
+ elog "Inline-compression is performed by default."
+ elog "compression packages:"
+ elog " app-arch/gzip (default)"
+ elog " app-arch/bzip2"
+ elog " app-arch/xz-utils"
+}
diff --git a/app-backup/holland-backup-mysqldump/metadata.xml b/app-backup/holland-backup-mysqldump/metadata.xml
new file mode 100644
index 000000000000..02be8c5eb78f
--- /dev/null
+++ b/app-backup/holland-backup-mysqldump/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>alunduil@gentoo.org</email>
+ <name>Alex Brandt</name>
+ </maintainer>
+ <longdescription lang="en">
+ </longdescription>
+</pkgmetadata>
diff --git a/app-backup/holland-backup-mysqlhotcopy/Manifest b/app-backup/holland-backup-mysqlhotcopy/Manifest
new file mode 100644
index 000000000000..a4d8dca18b99
--- /dev/null
+++ b/app-backup/holland-backup-mysqlhotcopy/Manifest
@@ -0,0 +1 @@
+DIST holland-1.0.10.tar.gz 449334 SHA256 c893be3dc77126125334dfa9eec404d7608a78a2bf88ec1d7ddc12ad7f7ed8d1 SHA512 5183ec73012edcaba50ef5cc9b892480d5f60301d01d17bd96c5490bd8e6ae42bd21abb6084e6665317b8025489981a02293cd583964f01e86459609b93e918f WHIRLPOOL fa8934c635f4347ffc6a327f6135d61ca26805d727fe4caca32ba9c23224062492553182e24d15fc59177787241903dd3409396c176fab2d55c34e9dcc5668e3
diff --git a/app-backup/holland-backup-mysqlhotcopy/holland-backup-mysqlhotcopy-1.0.10.ebuild b/app-backup/holland-backup-mysqlhotcopy/holland-backup-mysqlhotcopy-1.0.10.ebuild
new file mode 100644
index 000000000000..604f16ec7ab6
--- /dev/null
+++ b/app-backup/holland-backup-mysqlhotcopy/holland-backup-mysqlhotcopy-1.0.10.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1
+
+DESCRIPTION="Holland MySQL (MyISAM) Hotcopy Plugin"
+HOMEPAGE="http://www.hollandbackup.org/"
+
+MY_P="${P%%-*}-${P##*-}"
+
+SRC_URI="http://hollandbackup.org/releases/stable/${PV%.*}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc"
+
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
+RDEPEND="
+ ~app-backup/holland-lib-common-${PV}[${PYTHON_USEDEP}]
+ ~app-backup/holland-lib-mysql-${PV}[${PYTHON_USEDEP}]
+"
+PDEPEND="~app-backup/holland-${PV}[${PYTHON_USEDEP}]"
+
+S="${WORKDIR}/${MY_P}/plugins/${PN//-/.}"
+
+python_install_all() {
+ use doc && local DOCS=( README docs/man/holland-mysqlhotcopy.rst )
+
+ distutils-r1_python_install_all
+
+ keepdir /etc/holland
+ keepdir /etc/holland/backupsets
+ keepdir /etc/holland/providers
+
+ insinto /etc/holland/backupsets
+ doins "${S}"/../../config/backupsets/examples/${PN##*-}.conf
+
+ insinto /etc/holland/providers
+ doins "${S}"/../../config/providers/${PN##*-}.conf
+
+ doman docs/man/holland-mysqlhotcopy.5
+}
diff --git a/app-backup/holland-backup-mysqlhotcopy/metadata.xml b/app-backup/holland-backup-mysqlhotcopy/metadata.xml
new file mode 100644
index 000000000000..02be8c5eb78f
--- /dev/null
+++ b/app-backup/holland-backup-mysqlhotcopy/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>alunduil@gentoo.org</email>
+ <name>Alex Brandt</name>
+ </maintainer>
+ <longdescription lang="en">
+ </longdescription>
+</pkgmetadata>
diff --git a/app-backup/holland-backup-pgdump/Manifest b/app-backup/holland-backup-pgdump/Manifest
new file mode 100644
index 000000000000..a4d8dca18b99
--- /dev/null
+++ b/app-backup/holland-backup-pgdump/Manifest
@@ -0,0 +1 @@
+DIST holland-1.0.10.tar.gz 449334 SHA256 c893be3dc77126125334dfa9eec404d7608a78a2bf88ec1d7ddc12ad7f7ed8d1 SHA512 5183ec73012edcaba50ef5cc9b892480d5f60301d01d17bd96c5490bd8e6ae42bd21abb6084e6665317b8025489981a02293cd583964f01e86459609b93e918f WHIRLPOOL fa8934c635f4347ffc6a327f6135d61ca26805d727fe4caca32ba9c23224062492553182e24d15fc59177787241903dd3409396c176fab2d55c34e9dcc5668e3
diff --git a/app-backup/holland-backup-pgdump/holland-backup-pgdump-1.0.10.ebuild b/app-backup/holland-backup-pgdump/holland-backup-pgdump-1.0.10.ebuild
new file mode 100644
index 000000000000..df3a98892966
--- /dev/null
+++ b/app-backup/holland-backup-pgdump/holland-backup-pgdump-1.0.10.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1
+
+DESCRIPTION="Holland pgdump Plugin"
+HOMEPAGE="http://www.hollandbackup.org/"
+
+MY_P="${P%%-*}-${P##*-}"
+
+SRC_URI="http://hollandbackup.org/releases/stable/${PV%.*}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
+RDEPEND="
+ ~app-backup/holland-lib-common-${PV}[${PYTHON_USEDEP}]
+ dev-python/psycopg[${PYTHON_USEDEP}]
+"
+PDEPEND="~app-backup/holland-${PV}[${PYTHON_USEDEP}]"
+
+S="${WORKDIR}/${MY_P}/plugins/${PN//-/.}"
+
+python_install_all() {
+ distutils-r1_python_install_all
+
+ keepdir /etc/holland
+ keepdir /etc/holland/providers
+
+ insinto /etc/holland/providers
+ doins "${S}"/../../config/providers/${PN##*-}.conf
+}
diff --git a/app-backup/holland-backup-pgdump/metadata.xml b/app-backup/holland-backup-pgdump/metadata.xml
new file mode 100644
index 000000000000..02be8c5eb78f
--- /dev/null
+++ b/app-backup/holland-backup-pgdump/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>alunduil@gentoo.org</email>
+ <name>Alex Brandt</name>
+ </maintainer>
+ <longdescription lang="en">
+ </longdescription>
+</pkgmetadata>
diff --git a/app-backup/holland-backup-random/Manifest b/app-backup/holland-backup-random/Manifest
new file mode 100644
index 000000000000..a4d8dca18b99
--- /dev/null
+++ b/app-backup/holland-backup-random/Manifest
@@ -0,0 +1 @@
+DIST holland-1.0.10.tar.gz 449334 SHA256 c893be3dc77126125334dfa9eec404d7608a78a2bf88ec1d7ddc12ad7f7ed8d1 SHA512 5183ec73012edcaba50ef5cc9b892480d5f60301d01d17bd96c5490bd8e6ae42bd21abb6084e6665317b8025489981a02293cd583964f01e86459609b93e918f WHIRLPOOL fa8934c635f4347ffc6a327f6135d61ca26805d727fe4caca32ba9c23224062492553182e24d15fc59177787241903dd3409396c176fab2d55c34e9dcc5668e3
diff --git a/app-backup/holland-backup-random/holland-backup-random-1.0.10.ebuild b/app-backup/holland-backup-random/holland-backup-random-1.0.10.ebuild
new file mode 100644
index 000000000000..e43544f191ce
--- /dev/null
+++ b/app-backup/holland-backup-random/holland-backup-random-1.0.10.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1
+
+DESCRIPTION="Holland Random Plugin"
+HOMEPAGE="http://www.hollandbackup.org/"
+
+MY_P="${P%%-*}-${P##*-}"
+
+SRC_URI="http://hollandbackup.org/releases/stable/${PV%.*}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
+RDEPEND=""
+PDEPEND="~app-backup/holland-${PV}[${PYTHON_USEDEP}]"
+
+S="${WORKDIR}/${MY_P}/plugins/${PN//-/.}"
+
+python_install_all() {
+ distutils-r1_python_install_all
+
+ keepdir /etc/holland
+ keepdir /etc/holland/backupsets
+ keepdir /etc/holland/providers
+
+ insinto /etc/holland/backupsets
+ doins "${S}"/../../config/backupsets/examples/${PN##*-}.conf
+
+ insinto /etc/holland/providers
+ doins "${S}"/../../config/providers/${PN##*-}.conf
+}
diff --git a/app-backup/holland-backup-random/metadata.xml b/app-backup/holland-backup-random/metadata.xml
new file mode 100644
index 000000000000..02be8c5eb78f
--- /dev/null
+++ b/app-backup/holland-backup-random/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>alunduil@gentoo.org</email>
+ <name>Alex Brandt</name>
+ </maintainer>
+ <longdescription lang="en">
+ </longdescription>
+</pkgmetadata>
diff --git a/app-backup/holland-backup-sqlite/Manifest b/app-backup/holland-backup-sqlite/Manifest
new file mode 100644
index 000000000000..a4d8dca18b99
--- /dev/null
+++ b/app-backup/holland-backup-sqlite/Manifest
@@ -0,0 +1 @@
+DIST holland-1.0.10.tar.gz 449334 SHA256 c893be3dc77126125334dfa9eec404d7608a78a2bf88ec1d7ddc12ad7f7ed8d1 SHA512 5183ec73012edcaba50ef5cc9b892480d5f60301d01d17bd96c5490bd8e6ae42bd21abb6084e6665317b8025489981a02293cd583964f01e86459609b93e918f WHIRLPOOL fa8934c635f4347ffc6a327f6135d61ca26805d727fe4caca32ba9c23224062492553182e24d15fc59177787241903dd3409396c176fab2d55c34e9dcc5668e3
diff --git a/app-backup/holland-backup-sqlite/holland-backup-sqlite-1.0.10.ebuild b/app-backup/holland-backup-sqlite/holland-backup-sqlite-1.0.10.ebuild
new file mode 100644
index 000000000000..0aa6d6274a28
--- /dev/null
+++ b/app-backup/holland-backup-sqlite/holland-backup-sqlite-1.0.10.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1
+
+DESCRIPTION="Holland sqlite Plugin"
+HOMEPAGE="http://www.hollandbackup.org/"
+
+MY_P="${P%%-*}-${P##*-}"
+
+SRC_URI="http://hollandbackup.org/releases/stable/${PV%.*}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
+RDEPEND="~app-backup/holland-lib-common-${PV}[${PYTHON_USEDEP}]"
+PDEPEND="~app-backup/holland-${PV}[${PYTHON_USEDEP}]"
+
+S="${WORKDIR}/${MY_P}/plugins/${PN//-/.}"
+
+python_install_all() {
+ distutils-r1_python_install_all
+
+ keepdir /etc/holland
+ keepdir /etc/holland/backupsets
+ keepdir /etc/holland/providers
+
+ insinto /etc/holland/backupsets
+ doins "${S}"/../../config/backupsets/examples/${PN##*-}.conf
+
+ insinto /etc/holland/providers
+ doins "${S}"/../../config/providers/${PN##*-}.conf
+}
diff --git a/app-backup/holland-backup-sqlite/metadata.xml b/app-backup/holland-backup-sqlite/metadata.xml
new file mode 100644
index 000000000000..02be8c5eb78f
--- /dev/null
+++ b/app-backup/holland-backup-sqlite/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>alunduil@gentoo.org</email>
+ <name>Alex Brandt</name>
+ </maintainer>
+ <longdescription lang="en">
+ </longdescription>
+</pkgmetadata>
diff --git a/app-backup/holland-lib-common/Manifest b/app-backup/holland-lib-common/Manifest
new file mode 100644
index 000000000000..a4d8dca18b99
--- /dev/null
+++ b/app-backup/holland-lib-common/Manifest
@@ -0,0 +1 @@
+DIST holland-1.0.10.tar.gz 449334 SHA256 c893be3dc77126125334dfa9eec404d7608a78a2bf88ec1d7ddc12ad7f7ed8d1 SHA512 5183ec73012edcaba50ef5cc9b892480d5f60301d01d17bd96c5490bd8e6ae42bd21abb6084e6665317b8025489981a02293cd583964f01e86459609b93e918f WHIRLPOOL fa8934c635f4347ffc6a327f6135d61ca26805d727fe4caca32ba9c23224062492553182e24d15fc59177787241903dd3409396c176fab2d55c34e9dcc5668e3
diff --git a/app-backup/holland-lib-common/holland-lib-common-1.0.10.ebuild b/app-backup/holland-lib-common/holland-lib-common-1.0.10.ebuild
new file mode 100644
index 000000000000..81445e0281f0
--- /dev/null
+++ b/app-backup/holland-lib-common/holland-lib-common-1.0.10.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1
+
+DESCRIPTION="Holland Core Library"
+HOMEPAGE="http://www.hollandbackup.org/"
+
+MY_P="${P%%-*}-${P##*-}"
+
+SRC_URI="http://hollandbackup.org/releases/stable/${PV%.*}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
+RDEPEND=""
+PDEPEND="~app-backup/holland-${PV}[${PYTHON_USEDEP}]"
+
+S="${WORKDIR}/${MY_P}/plugins/${PN//-/.}"
diff --git a/app-backup/holland-lib-common/metadata.xml b/app-backup/holland-lib-common/metadata.xml
new file mode 100644
index 000000000000..02be8c5eb78f
--- /dev/null
+++ b/app-backup/holland-lib-common/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>alunduil@gentoo.org</email>
+ <name>Alex Brandt</name>
+ </maintainer>
+ <longdescription lang="en">
+ </longdescription>
+</pkgmetadata>
diff --git a/app-backup/holland-lib-lvm/Manifest b/app-backup/holland-lib-lvm/Manifest
new file mode 100644
index 000000000000..a4d8dca18b99
--- /dev/null
+++ b/app-backup/holland-lib-lvm/Manifest
@@ -0,0 +1 @@
+DIST holland-1.0.10.tar.gz 449334 SHA256 c893be3dc77126125334dfa9eec404d7608a78a2bf88ec1d7ddc12ad7f7ed8d1 SHA512 5183ec73012edcaba50ef5cc9b892480d5f60301d01d17bd96c5490bd8e6ae42bd21abb6084e6665317b8025489981a02293cd583964f01e86459609b93e918f WHIRLPOOL fa8934c635f4347ffc6a327f6135d61ca26805d727fe4caca32ba9c23224062492553182e24d15fc59177787241903dd3409396c176fab2d55c34e9dcc5668e3
diff --git a/app-backup/holland-lib-lvm/holland-lib-lvm-1.0.10.ebuild b/app-backup/holland-lib-lvm/holland-lib-lvm-1.0.10.ebuild
new file mode 100644
index 000000000000..aca3ec890ed6
--- /dev/null
+++ b/app-backup/holland-lib-lvm/holland-lib-lvm-1.0.10.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1
+
+DESCRIPTION="Holland LVM Library"
+HOMEPAGE="http://www.hollandbackup.org"
+
+MY_P="${P%%-*}-${P##*-}"
+
+SRC_URI="http://hollandbackup.org/releases/stable/${PV%.*}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
+RDEPEND=""
+PDEPEND="~app-backup/holland-${PV}[${PYTHON_USEDEP}]"
+
+S="${WORKDIR}/${MY_P}/plugins/${PN//-/.}"
diff --git a/app-backup/holland-lib-lvm/metadata.xml b/app-backup/holland-lib-lvm/metadata.xml
new file mode 100644
index 000000000000..02be8c5eb78f
--- /dev/null
+++ b/app-backup/holland-lib-lvm/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>alunduil@gentoo.org</email>
+ <name>Alex Brandt</name>
+ </maintainer>
+ <longdescription lang="en">
+ </longdescription>
+</pkgmetadata>
diff --git a/app-backup/holland-lib-mysql/Manifest b/app-backup/holland-lib-mysql/Manifest
new file mode 100644
index 000000000000..a4d8dca18b99
--- /dev/null
+++ b/app-backup/holland-lib-mysql/Manifest
@@ -0,0 +1 @@
+DIST holland-1.0.10.tar.gz 449334 SHA256 c893be3dc77126125334dfa9eec404d7608a78a2bf88ec1d7ddc12ad7f7ed8d1 SHA512 5183ec73012edcaba50ef5cc9b892480d5f60301d01d17bd96c5490bd8e6ae42bd21abb6084e6665317b8025489981a02293cd583964f01e86459609b93e918f WHIRLPOOL fa8934c635f4347ffc6a327f6135d61ca26805d727fe4caca32ba9c23224062492553182e24d15fc59177787241903dd3409396c176fab2d55c34e9dcc5668e3
diff --git a/app-backup/holland-lib-mysql/holland-lib-mysql-1.0.10.ebuild b/app-backup/holland-lib-mysql/holland-lib-mysql-1.0.10.ebuild
new file mode 100644
index 000000000000..afe55d9c4748
--- /dev/null
+++ b/app-backup/holland-lib-mysql/holland-lib-mysql-1.0.10.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1
+
+DESCRIPTION="Holland MySQL Library"
+HOMEPAGE="http://www.hollandbackup.org/"
+
+MY_P="${P%%-*}-${P##*-}"
+
+SRC_URI="http://hollandbackup.org/releases/stable/${PV%.*}/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc"
+
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
+RDEPEND="
+ ~app-backup/holland-lib-common-${PV}[${PYTHON_USEDEP}]
+ <dev-python/mysql-python-1.2.5[${PYTHON_USEDEP}]
+"
+PDEPEND="~app-backup/holland-${PV}[${PYTHON_USEDEP}]"
+
+S="${WORKDIR}/${MY_P}/plugins/${PN//-/.}"
+
+python_compile_all() {
+ use doc && emake -C docs html
+}
+
+python_install_all() {
+ use doc && local HTML_DOCS=( docs/build/html/. )
+
+ distutils-r1_python_install_all
+}
diff --git a/app-backup/holland-lib-mysql/metadata.xml b/app-backup/holland-lib-mysql/metadata.xml
new file mode 100644
index 000000000000..02be8c5eb78f
--- /dev/null
+++ b/app-backup/holland-lib-mysql/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>alunduil@gentoo.org</email>
+ <name>Alex Brandt</name>
+ </maintainer>
+ <longdescription lang="en">
+ </longdescription>
+</pkgmetadata>
diff --git a/app-backup/holland/Manifest b/app-backup/holland/Manifest
new file mode 100644
index 000000000000..a4d8dca18b99
--- /dev/null
+++ b/app-backup/holland/Manifest
@@ -0,0 +1 @@
+DIST holland-1.0.10.tar.gz 449334 SHA256 c893be3dc77126125334dfa9eec404d7608a78a2bf88ec1d7ddc12ad7f7ed8d1 SHA512 5183ec73012edcaba50ef5cc9b892480d5f60301d01d17bd96c5490bd8e6ae42bd21abb6084e6665317b8025489981a02293cd583964f01e86459609b93e918f WHIRLPOOL fa8934c635f4347ffc6a327f6135d61ca26805d727fe4caca32ba9c23224062492553182e24d15fc59177787241903dd3409396c176fab2d55c34e9dcc5668e3
diff --git a/app-backup/holland/holland-1.0.10.ebuild b/app-backup/holland/holland-1.0.10.ebuild
new file mode 100644
index 000000000000..97ee744cecee
--- /dev/null
+++ b/app-backup/holland/holland-1.0.10.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1
+
+DESCRIPTION="Holland Core Plugins"
+HOMEPAGE="http://www.hollandbackup.org/"
+SRC_URI="http://hollandbackup.org/releases/stable/${PV%.*}/${P}.tar.gz"
+
+LICENSE="BSD"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc examples +mysql postgres sqlite"
+
+DEPEND="
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
+"
+RDEPEND="
+ mysql? ( ~app-backup/holland-backup-mysql-meta-${PV}[${PYTHON_USEDEP}] )
+ postgres? ( ~app-backup/holland-backup-pgdump-${PV}[${PYTHON_USEDEP}] )
+ sqlite? ( ~app-backup/holland-backup-sqlite-${PV}[${PYTHON_USEDEP}] )
+ examples? (
+ ~app-backup/holland-backup-example-${PV}[${PYTHON_USEDEP}]
+ ~app-backup/holland-backup-random-${PV}[${PYTHON_USEDEP}]
+ )
+"
+
+python_compile_all() {
+ use doc && emake -C docs html
+}
+
+python_install_all() {
+ use doc && local DOCS=( README config/README config/providers/README docs/man/README docs/man/holland.rst )
+ use doc && local HTML_DOCS=( docs/build/html/. )
+
+ distutils-r1_python_install_all
+
+ keepdir /var/log/holland
+
+ keepdir /etc/holland
+ keepdir /etc/holland/backupsets
+ keepdir /etc/holland/providers
+
+ insinto /etc/holland
+ doins config/holland.conf
+
+ insinto /etc/holland/backupsets
+ doins config/backupsets/default.conf
+
+ doman docs/man/holland.1
+}
diff --git a/app-backup/holland/metadata.xml b/app-backup/holland/metadata.xml
new file mode 100644
index 000000000000..02be8c5eb78f
--- /dev/null
+++ b/app-backup/holland/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>alunduil@gentoo.org</email>
+ <name>Alex Brandt</name>
+ </maintainer>
+ <longdescription lang="en">
+ </longdescription>
+</pkgmetadata>
diff --git a/app-backup/kbackup/Manifest b/app-backup/kbackup/Manifest
new file mode 100644
index 000000000000..2d7a59c3d243
--- /dev/null
+++ b/app-backup/kbackup/Manifest
@@ -0,0 +1 @@
+DIST kbackup-0.8.tar.bz2 507597 SHA256 8ef4a9c9665a8af17cce93b2f09b1d8da83cedf1f5da11f36343699fb65f08b1 SHA512 c5187f3a4a12047b849a432dc30f8dc435e14c170ae76659a00406d37cb215a563509632d3d61873077535f9b20b31893ea91b03453b51cd875e68f46f920378 WHIRLPOOL 27aacdacb194addccf31ecd8a6d8b5b8db6f065f1644bf53bdc9529c4cd10884861a8a20e8c0d703848147c3e4a813d9e66e779a5ec0e0965648fdad246accfc
diff --git a/app-backup/kbackup/kbackup-0.8-r1.ebuild b/app-backup/kbackup/kbackup-0.8-r1.ebuild
new file mode 100644
index 000000000000..fa410cd0859d
--- /dev/null
+++ b/app-backup/kbackup/kbackup-0.8-r1.ebuild
@@ -0,0 +1,18 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+KDE_HANDBOOK="optional"
+KDE_LINGUAS="cs de es fr it pt pt_BR ru sk sv"
+inherit kde4-base
+
+DESCRIPTION="KBackup is a program that lets you back up any directories or files"
+HOMEPAGE="http://kde-apps.org/content/show.php/KBackup?content=44998"
+SRC_URI="http://members.aon.at/m.koller/${P}.tar.bz2"
+LICENSE="GPL-2"
+
+SLOT="4"
+KEYWORDS="amd64 x86"
+IUSE="debug"
diff --git a/app-backup/kbackup/metadata.xml b/app-backup/kbackup/metadata.xml
new file mode 100644
index 000000000000..8d36d5b01cd2
--- /dev/null
+++ b/app-backup/kbackup/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>kde</herd>
+</pkgmetadata>
diff --git a/app-backup/luckybackup/Manifest b/app-backup/luckybackup/Manifest
new file mode 100644
index 000000000000..2fe8344209b1
--- /dev/null
+++ b/app-backup/luckybackup/Manifest
@@ -0,0 +1,2 @@
+DIST luckybackup-0.4.7.tar.gz 5393530 SHA256 492f27f9e846d5f11d9a4466aa821803b17eb7c3047f9cf082bc66be3d093f4d SHA512 87c62241327e731cd3b4d230d17e43de48bcf840cac938153b8cf321fe00209a649ff251c0c60eb6feb55582b597eaa3d1f6727d956fe75429ced93920c544ef WHIRLPOOL 4c2bd772d6b1271af3b937a0fbbae56e6ee434a068bb2be94e11cd3d86dfe18c6931bff76921f02f9ecf32cec4cb201e30c1bcfa88048b87db5ead8ba7808ae8
+DIST luckybackup-0.4.8.tar.gz 5710203 SHA256 68a8a318a6a32a2395fbaada114973f5a4887846c5c6188b38c175215b3116f6 SHA512 48e73f8b5897a09f64f3755dc094ef50031c607ecfca25c238b45ca5bef7f2645081b7c665a9b7c3c3da2f214f91b229a559d723df8ddb6446aa23e68b266076 WHIRLPOOL ccced074661d4a3764bf6e069aff5877c721ef3ef452490dfb17d292c0ee6cb1f12b995eea40134995c1a8ca935472ffcf28585b28d1d4818f06042e512aacec
diff --git a/app-backup/luckybackup/luckybackup-0.4.7-r1.ebuild b/app-backup/luckybackup/luckybackup-0.4.7-r1.ebuild
new file mode 100644
index 000000000000..bdd807860bb5
--- /dev/null
+++ b/app-backup/luckybackup/luckybackup-0.4.7-r1.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+inherit qt4-r2
+
+DESCRIPTION="Powerful and flexible backup (and syncing) tool, using RSync and Qt4"
+HOMEPAGE="http://luckybackup.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="debug"
+
+DEPEND="dev-qt/qtcore:4
+ dev-qt/qtgui:4"
+RDEPEND="${DEPEND}
+ net-misc/rsync"
+
+DOCS="readme/*"
+
+src_prepare() {
+ sed -i \
+ -e "s:/usr/share/doc/${PN}:/usr/share/doc/${PF}:g" \
+ -e "s:/usr/share/doc/packages/${PN}:/usr/share/doc/${PF}:g" \
+ luckybackup.pro src/global.h || die "sed failed"
+
+ # The su-to-root command is an ubuntu-specific script so it will
+ # not work with Gentoo. No reason to have it anyway.
+ sed -i -e "/^Exec/s:=.*:=/usr/bin/${PN}:" menu/${PN}-gnome-su.desktop \
+ || die "failed to remove su-to-root"
+
+ # causes empty directory to be installed
+ sed -i -e '/^INSTALLS/s/debianmenu //' luckybackup.pro \
+ || die "sed installs failed"
+
+ # remove text version - cannot remote HTML version
+ # as it's used within the application
+ rm license/gpl.txt || die "rm failed"
+}
diff --git a/app-backup/luckybackup/luckybackup-0.4.8.ebuild b/app-backup/luckybackup/luckybackup-0.4.8.ebuild
new file mode 100644
index 000000000000..2aa12f53fd70
--- /dev/null
+++ b/app-backup/luckybackup/luckybackup-0.4.8.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+PLOCALES="bs ca cs de el en es fr it nl no pl pt_BR ro ru sk sl sv tr zh_TW"
+inherit l10n qt4-r2
+
+DESCRIPTION="Powerful and flexible backup (and syncing) tool, using RSync and Qt4"
+HOMEPAGE="http://luckybackup.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug"
+
+DEPEND="dev-qt/qtcore:4
+ dev-qt/qtgui:4"
+RDEPEND="${DEPEND}
+ net-misc/rsync"
+
+DOCS=( readme/{AUTHORS,README,TODO,TRANSLATIONS,changelog} )
+
+rm_loc() {
+ sed -i -e "s|translations/${PN}_${1}.ts||" "${PN}.pro" || die 'sed on translations failed'
+ rm "translations/${PN}_${1}."{ts,qm} || die "removing ${1} locale failed"
+}
+
+src_prepare() {
+ sed -i \
+ -e "s:/usr/share/doc/${PN}:/usr/share/doc/${PF}:g" \
+ -e "s:/usr/share/doc/packages/${PN}:/usr/share/doc/${PF}:g" \
+ luckybackup.pro src/global.h || die "sed failed"
+
+ # The su-to-root command is an ubuntu-specific script so it will
+ # not work with Gentoo. No reason to have it anyway.
+ sed -i -e "/^Exec/s:=.*:=/usr/bin/${PN}:" menu/${PN}-gnome-su.desktop \
+ || die "failed to remove su-to-root"
+
+ # causes empty directory to be installed
+ sed -i -e '/^INSTALLS/s/debianmenu //' luckybackup.pro \
+ || die "sed installs failed"
+
+ # remove text version - cannot remote HTML version
+ # as it's used within the application
+ rm license/gpl.txt || die "rm failed"
+
+ l10n_find_plocales_changes "translations" "${PN}_" ".ts"
+ l10n_for_each_disabled_locale_do rm_loc
+ qt4-r2_src_prepare
+}
diff --git a/app-backup/luckybackup/metadata.xml b/app-backup/luckybackup/metadata.xml
new file mode 100644
index 000000000000..2185e73b79c7
--- /dev/null
+++ b/app-backup/luckybackup/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>qt</herd>
+ <upstream>
+ <remote-id type="sourceforge">luckybackup</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-backup/metadata.xml b/app-backup/metadata.xml
new file mode 100644
index 000000000000..291110abf582
--- /dev/null
+++ b/app-backup/metadata.xml
@@ -0,0 +1,42 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE catmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<catmetadata>
+ <longdescription lang="en">
+ The app-backup category contains tools for performing backups of data,
+ including both full and incremental backups, as well as backups to other
+ media (CD-R, Tape, etc.).
+ </longdescription>
+ <longdescription lang="ja">
+ app-backupカテゴリにはデータバックアップ(充実と増分)を実行すると
+ メディア(CD-R、テープ…)にバックアップするツールが含まれます。
+ </longdescription>
+ <longdescription lang="vi">
+ Nhóm app-backup chứa các công cụ để sao lưu dữ liệu, bao gồm
+ sao lưu toàn bộ và sao lưu tăng tiến, cũng như sao lưu ra các phương
+ tiện khác (CD-R, băng từ ...).
+ </longdescription>
+ <longdescription lang="de">
+ Die Kategorie app-backup enthält Programme zur Erstellung inkrementeller und
+ vollständiger Backups, sowie zur Sicherung auf andere Medien (CD-R, Band, etc.).
+ </longdescription>
+ <longdescription lang="it">
+ La categoria app-backup contiene strumenti per il backup dei dati, incluso
+ backup completo o incrementale, come backup su altri media (CD-R, nastri, ecc.).
+ </longdescription>
+ <longdescription lang="pt">
+ A categoria app-backup contém ferramentas para fazer backup de dados,
+ incluindo tanto backups completos como incrementais, bem como backups
+ para outras mídias (CD-R, Fita, etc.).
+ </longdescription>
+ <longdescription lang="pl">
+ Kategoria app-backup zawiera programy służące do tworzenia pełnych i
+ przyrostowych kopii zapasowych danych oraz do zapisywania
+ ich na inne nośniki danych (jak płyty CD-R, taśmy etc.).
+ </longdescription>
+ <longdescription lang="es">
+ La categoría app-backup contiene herramientas para realizar copias
+ de respaldo de datos, incluyendo copias completas e incrementales,
+ así como respaldos realizados a otros medios (CD-R, cinta, etc.).
+ </longdescription>
+</catmetadata>
+
diff --git a/app-backup/mirdir/Manifest b/app-backup/mirdir/Manifest
new file mode 100644
index 000000000000..e994519139d8
--- /dev/null
+++ b/app-backup/mirdir/Manifest
@@ -0,0 +1 @@
+DIST mirdir-2.1-Unix.tar.gz 74002 SHA256 8f0d1e6dc67698eee1fc6e0ef813913be8f8321aa60545d86d87f4c86abd9284 SHA512 d99cbc04a5d99a739c16fea9198d92cd0209fb5fd4fc931eb2af2bb6c0c0ddcec3c34a27269bf108d7ffebcf760c9817088ea2091abbe9d3c4e932724e85c680 WHIRLPOOL 8af107861254b6adf98664df32f57fc00f36f83b62b48ba3e3b2bcb282965a26cee67dd8bc96092372d3ef161129e06d0b19603b215c381d893c63f4fdfe6741
diff --git a/app-backup/mirdir/metadata.xml b/app-backup/mirdir/metadata.xml
new file mode 100644
index 000000000000..960ff5b2e6a5
--- /dev/null
+++ b/app-backup/mirdir/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>robbat2@gentoo.org</email>
+ <name>Robin H. Johnson</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">mirdir</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-backup/mirdir/mirdir-2.1-r1.ebuild b/app-backup/mirdir/mirdir-2.1-r1.ebuild
new file mode 100644
index 000000000000..e1c5f4651bd9
--- /dev/null
+++ b/app-backup/mirdir/mirdir-2.1-r1.ebuild
@@ -0,0 +1,30 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=3
+
+DESCRIPTION="Mirdir allows to synchronize two directory trees in a fast way"
+HOMEPAGE="http://sf.net/projects/mirdir"
+SRC_URI="mirror://sourceforge/${PN}/${P}-Unix.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+S="${WORKDIR}/${P}-UNIX"
+
+src_prepare() {
+ # Disable stripping, bug 239939
+ sed -i -e 's:strip .*::' Makefile.in || die
+}
+
+src_install() {
+ dobin bin/mirdir || die
+ doman mirdir.1
+ dodoc AUTHORS
+}
diff --git a/app-backup/mylvmbackup/Manifest b/app-backup/mylvmbackup/Manifest
new file mode 100644
index 000000000000..3cf4ef10a872
--- /dev/null
+++ b/app-backup/mylvmbackup/Manifest
@@ -0,0 +1,3 @@
+DIST mylvmbackup-0.11.tar.gz 33481 SHA256 9ea7d7707389ff8928dd9afdb7d1321c8c93886a52e98b3ff76500ffbb3eb9b5 SHA512 cb293b8c2ee0b8a7ac9f5d47ece6292a2c441e61da76117e2b41b616ddca16a808b102a062d467e677274857c3bdac3bb9be712c5db0eca4690ff705114177e0 WHIRLPOOL 4431400149ecd6f9fc71ef2eb3dc63541fa213b5e75781abbac1946a73b7b5c783aeb063dac4160addb0ee198c4d8442732f8126f6cb5810a544234bb1df606a
+DIST mylvmbackup-0.13.tar.gz 37121 SHA256 03855cc0da77e95c0d7917228a9ef4a262ca6c450cb0c0265fa6f90c9f154e1d SHA512 02c21f0c729ff1acf571356547c703f4db3336ffc2bfffec7508e83d43b4beda1ca8e06a407936b847d57dc33b8a1d80872c6827984f80b327770c6942b31c32 WHIRLPOOL bf222ca5883d28872761ff95baebd59d20479b7be04b08af08567424f079a564b98764c0752109c78141786a09765148e4d58234d4e9ed53204e9d8f0b2e5794
+DIST mylvmbackup-0.14.tar.gz 57338 SHA256 a979082f525f5b0b44bd09169938f2b5d8394fc403fc8b6a6e8b809d7c1a5724 SHA512 e61f0c4e24b5482b2f7f4213e810a32776d1b39f589e27c309a4940943f3a9519041e53cf85a089a94100e2cc81715a033682bbe071220d755c14211b4177bfa WHIRLPOOL 004f32793e69b2c34f940b5ef91302468cafce76618f5d6f460bcaa37d0203200ee707bece883b130adb7cc8aecfc5b2c3a389051020e7465d6ebf1be37b67e1
diff --git a/app-backup/mylvmbackup/metadata.xml b/app-backup/mylvmbackup/metadata.xml
new file mode 100644
index 000000000000..d30bc5bf280c
--- /dev/null
+++ b/app-backup/mylvmbackup/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>app-backup</herd>
+ <maintainer>
+ <email>robbat2@gentoo.org</email>
+ <description>Primary maintainer</description>
+ <name>Robin H. Johnson</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-backup/mylvmbackup/mylvmbackup-0.11.ebuild b/app-backup/mylvmbackup/mylvmbackup-0.11.ebuild
new file mode 100644
index 000000000000..a7f98e59a28f
--- /dev/null
+++ b/app-backup/mylvmbackup/mylvmbackup-0.11.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+DESCRIPTION="mylvmbackup is a tool for quickly creating backups of MySQL server's data files using LVM snapshots"
+HOMEPAGE="http://lenzg.net/mylvmbackup/"
+SRC_URI="http://lenzg.net/${PN}/${P}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~ppc ~amd64"
+IUSE=""
+DEPEND=">=app-text/asciidoc-8.1.0"
+RDEPEND="dev-perl/Config-IniFiles
+ >=sys-fs/lvm2-2.02.06
+ dev-perl/DBD-mysql
+ virtual/mysql
+ dev-perl/TimeDate"
+
+src_unpack() {
+ unpack ${A}
+ sed -i \
+ -e '/^prefix/s,/usr/local,/usr,' \
+ "${S}"/Makefile
+}
+
+src_install() {
+ emake -j1 install DESTDIR="${D}" mandir="/usr/share/man" || die
+ dodoc ChangeLog README TODO
+ keepdir /var/tmp/${PN}/{backup,mnt}
+ fperms 0700 /var/tmp/${PN}/
+}
diff --git a/app-backup/mylvmbackup/mylvmbackup-0.13.ebuild b/app-backup/mylvmbackup/mylvmbackup-0.13.ebuild
new file mode 100644
index 000000000000..99f1638f3f10
--- /dev/null
+++ b/app-backup/mylvmbackup/mylvmbackup-0.13.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+DESCRIPTION="mylvmbackup is a tool for quickly creating backups of MySQL server's data files using LVM snapshots"
+HOMEPAGE="http://lenzg.net/mylvmbackup/"
+SRC_URI="http://lenzg.net/${PN}/${P}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~ppc ~amd64"
+IUSE=""
+DEPEND=""
+RDEPEND="dev-perl/Config-IniFiles
+ >=sys-fs/lvm2-2.02.06
+ dev-perl/DBD-mysql
+ virtual/mysql
+ dev-perl/TimeDate"
+
+src_unpack() {
+ unpack ${A}
+ sed -i \
+ -e '/^prefix/s,/usr/local,/usr,' \
+ "${S}"/Makefile
+ sed -i 's|mycnf=/etc/my.cnf|mycnf=/etc/mysql/my.cnf|' "${S}"/mylvmbackup.conf
+}
+
+src_install() {
+ emake install DESTDIR="${D}" mandir="/usr/share/man" || die
+ dodoc ChangeLog README TODO
+ keepdir /var/tmp/${PN}/{backup,mnt}
+ fperms 0700 /var/tmp/${PN}/
+}
diff --git a/app-backup/mylvmbackup/mylvmbackup-0.14.ebuild b/app-backup/mylvmbackup/mylvmbackup-0.14.ebuild
new file mode 100644
index 000000000000..bb11ec145d7f
--- /dev/null
+++ b/app-backup/mylvmbackup/mylvmbackup-0.14.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+DESCRIPTION="mylvmbackup is a tool for quickly creating backups of MySQL server's data files using LVM snapshots"
+HOMEPAGE="http://lenzg.net/mylvmbackup/"
+SRC_URI="http://lenzg.net/${PN}/${P}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~x86"
+IUSE=""
+DEPEND=""
+RDEPEND="dev-perl/Config-IniFiles
+ >=sys-fs/lvm2-2.02.06
+ dev-perl/DBD-mysql
+ virtual/mysql
+ dev-perl/TimeDate"
+
+src_unpack() {
+ unpack ${A}
+ sed -i \
+ -e '/^prefix/s,/usr/local,/usr,' \
+ "${S}"/Makefile
+ sed -i 's|mycnf=/etc/my.cnf|mycnf=/etc/mysql/my.cnf|' "${S}"/mylvmbackup.conf
+}
+
+src_install() {
+ emake install DESTDIR="${D}" mandir="/usr/share/man" || die
+ dodoc ChangeLog README TODO
+ keepdir /var/tmp/${PN}/{backup,mnt}
+ fperms 0700 /var/tmp/${PN}/
+}
diff --git a/app-backup/obnam/Manifest b/app-backup/obnam/Manifest
new file mode 100644
index 000000000000..1af582eb7923
--- /dev/null
+++ b/app-backup/obnam/Manifest
@@ -0,0 +1,2 @@
+DIST obnam-1.13.tar.gz 361079 SHA256 51684a44352e57b2bc9b019566d210c772a99489da6929899a41937731fc8f24 SHA512 1df7ebac4c7cae9b2809c7fce61edc187c70098d6bb8cfbed4d789b02de7d2ddc7077907bff056beac09cc33ecc7eb5db3b282915707086ae998bba089939819 WHIRLPOOL 12d86d53c3b6a1d1ec35af31192129d31ef569bf188ec029bdebbd88ddd239ca11f4007135fdcd94f645bef7517808641b32ec3565b2ec796364e4f320021372
+DIST obnam-1.9.tar.gz 340103 SHA256 7e0182efb16597d63916d052ac36546e7c597ee75ba40ae23b2dc9afbb959f82 SHA512 f170a4223b84d2b26617c412524e9ec6efcf3b7bb7bb1a4bfc7333c138e9b9066658c54da9aa8c41b4ea3c3335da3bcd1c26b911b2cce7eb98eabf52d72af67f WHIRLPOOL 73b72c8fe7bbf2958714ef05dba518839471aea91aa02d60f8015481c30440de985f2db0a610bcf08d29eaa86e074cf7b39e975c3847cb1e78c0adf27d793b31
diff --git a/app-backup/obnam/files/obnam-1.9-setup-man.diff b/app-backup/obnam/files/obnam-1.9-setup-man.diff
new file mode 100644
index 000000000000..66bc077b2de5
--- /dev/null
+++ b/app-backup/obnam/files/obnam-1.9-setup-man.diff
@@ -0,0 +1,11 @@
+--- setup.py.orig 2015-03-23 00:11:50.833110091 +0100
++++ setup.py 2015-03-23 00:12:19.892915511 +0100
+@@ -78,7 +78,7 @@
+ env['MANWIDTH'] = '80'
+ with open('%s.1.txt' % program, 'w') as f:
+ cliapp.runcmd(
+- ['man', '-l', '%s.1' % program],
++ ['man', './%s.1' % program],
+ ['col', '-b'],
+ stdout=f,
+ env=env)
diff --git a/app-backup/obnam/files/obnam.conf b/app-backup/obnam/files/obnam.conf
new file mode 100644
index 000000000000..0d76717742a2
--- /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/metadata.xml b/app-backup/obnam/metadata.xml
new file mode 100644
index 000000000000..ea7bd021a21e
--- /dev/null
+++ b/app-backup/obnam/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>mschiff@gentoo.org</email>
+ <name>Marc Schiffbauer</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-backup/obnam/obnam-1.13.ebuild b/app-backup/obnam/obnam-1.13.ebuild
new file mode 100644
index 000000000000..cd42b25e8071
--- /dev/null
+++ b/app-backup/obnam/obnam-1.13.ebuild
@@ -0,0 +1,54 @@
+# 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 eutils 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
+ dev-python/fuse-python
+ dev-python/larch
+ !=dev-python/paramiko-1.13.0
+ || ( <dev-python/paramiko-1.13.0 >dev-python/paramiko-1.13.0 )
+ dev-python/pyyaml
+ dev-python/tracing
+ dev-python/ttystatus
+ "
+RDEPEND="${DEPEND}"
+
+PATCHES=( )
+
+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
+}
diff --git a/app-backup/obnam/obnam-1.9.ebuild b/app-backup/obnam/obnam-1.9.ebuild
new file mode 100644
index 000000000000..9620fcc7582f
--- /dev/null
+++ b/app-backup/obnam/obnam-1.9.ebuild
@@ -0,0 +1,54 @@
+# 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 eutils 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
+ dev-python/fuse-python
+ dev-python/larch
+ !=dev-python/paramiko-1.13.0
+ || ( <dev-python/paramiko-1.13.0 >dev-python/paramiko-1.13.0 )
+ dev-python/pyyaml
+ dev-python/tracing
+ dev-python/ttystatus
+ "
+RDEPEND="${DEPEND}"
+
+PATCHES=( ${FILESDIR}/${P}-setup-man.diff )
+
+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
+}
diff --git a/app-backup/pdumpfs/Manifest b/app-backup/pdumpfs/Manifest
new file mode 100644
index 000000000000..5e782eddd018
--- /dev/null
+++ b/app-backup/pdumpfs/Manifest
@@ -0,0 +1 @@
+DIST pdumpfs-1.3.tar.gz 68210 SHA256 5f50158517f263370d59f6c794a1d45e947bb8c17be23e18a8f293ee13557377 SHA512 1299676982f1981aa55f0601f361ec24ac119067f5ecbbeebcf9f41ccd69df2f18a07ae5a6e77f30ca7606ee49ecfa516d6066a07c1edbb4d4796f34f02508c3 WHIRLPOOL 255ac184759f29b416315f47d4d9ffd5b6c84e6ee28192ce47601937dc05fd48db5f59e30e6d4f4c4c789e4bef0c4ee81dff76cf60bbe338560af42ae1278bf4
diff --git a/app-backup/pdumpfs/files/pdumpfs-in.patch b/app-backup/pdumpfs/files/pdumpfs-in.patch
new file mode 100644
index 000000000000..cddfb995918a
--- /dev/null
+++ b/app-backup/pdumpfs/files/pdumpfs-in.patch
@@ -0,0 +1,40 @@
+patch by proxy maintainer, P. Healy, April 2015
+# Bug 509960
+--- pdumpfs.in_orig 2004-12-21 02:43:12.000000000 +0000
++++ pdumpfs.in 2015-04-01 10:58:22.671131947 +0100
+@@ -48,7 +48,7 @@
+ #
+
+ require 'find'
+-require 'ftools'
++require 'fileutils'
+ require 'getoptlong'
+ require 'date'
+
+@@ -868,7 +868,7 @@
+ today = File.join(dest, datedir(start_time), base)
+
+ File.umask(0077)
+- File.mkpath(today) unless @dry_run
++ FileUtils.mkpath(today) unless @dry_run
+ if latest
+ update_snapshot(src, latest, today)
+ else
+@@ -1018,7 +1018,7 @@
+
+ case type
+ when "directory"
+- File.mkpath(today)
++ FileUtils.mkpath(today)
+ when "unchanged"
+ File.force_link(latest, today)
+ when "updated"
+@@ -1089,7 +1089,7 @@
+
+ case type
+ when "directory"
+- File.mkpath(t)
++ FileUtils.mkpath(t)
+ when "new_file"
+ copy(s, t)
+ when "symlink"
diff --git a/app-backup/pdumpfs/files/pdumpfs-test.patch b/app-backup/pdumpfs/files/pdumpfs-test.patch
new file mode 100644
index 000000000000..e81e8b0f2d8a
--- /dev/null
+++ b/app-backup/pdumpfs/files/pdumpfs-test.patch
@@ -0,0 +1,12 @@
+patch by proxy maintainer, P. Healy, April 2015
+# Bug 509960
+--- tests/pdumpfs-test_orig 2004-08-10 07:54:28.000000000 +0100
++++ tests/pdumpfs-test 2015-04-01 11:24:35.948633870 +0100
+@@ -17,6 +17,7 @@
+
+ ../pdumpfs src dest > tmp.log || exit 1
+ diff -r src dest/$today/src || exit 1
++mkdir -p dest/$yesterday && rmdir dest/$yesterday
+ mv dest/$today dest/$yesterday
+
+ echo update > src/foo
diff --git a/app-backup/pdumpfs/metadata.xml b/app-backup/pdumpfs/metadata.xml
new file mode 100644
index 000000000000..3717738d65d6
--- /dev/null
+++ b/app-backup/pdumpfs/metadata.xml
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>proxy-maintainers</herd>
+ <maintainer>
+ <email>lmiphay@gmail.com</email>
+ <name>Paul Healy</name>
+ <description>Active Maintainer, Assign bugs</description>
+ </maintainer>
+ <maintainer>
+ <email>idella4@gentoo.org</email>
+ <name>Ian Delaney</name>
+ </maintainer>
+<longdescription>
+pdumpfs is a simple daily backup system similar to Plan9's dumpfs which
+preserves every daily snapshot. pdumpfs is written in Ruby. You can access
+the past snapshots at any time for retrieving a certain day's file. Let's
+backup your home directory with pdumpfs!
+</longdescription>
+</pkgmetadata>
diff --git a/app-backup/pdumpfs/pdumpfs-1.3-r2.ebuild b/app-backup/pdumpfs/pdumpfs-1.3-r2.ebuild
new file mode 100644
index 000000000000..3a7ca1039d77
--- /dev/null
+++ b/app-backup/pdumpfs/pdumpfs-1.3-r2.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils
+
+DESCRIPTION="a daily backup system similar to Plan9's dumpfs"
+HOMEPAGE="http://0xcc.net/pdumpfs/"
+SRC_URI="http://0xcc.net/pdumpfs/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~sparc ~x86"
+IUSE="linguas_ja"
+
+DEPEND=">=dev-lang/ruby-2.0.0_p598"
+
+src_prepare() {
+ # Bug #509960
+ epatch "${FILESDIR}/${PN}-in.patch" \
+ "${FILESDIR}/${PN}-test.patch"
+}
+
+src_compile() {
+ emake pdumpfs
+}
+
+src_test() {
+ # RUBYOPT=-rauto_gem without rubygems installed will cause ruby to fail, bug #158455 and #163473.
+ export RUBYOPT="${GENTOO_RUBYOPT}"
+ emake check
+}
+
+src_install() {
+ dobin pdumpfs
+
+ doman man/man8/pdumpfs.8
+ dohtml -r doc/*
+
+ if use linguas_ja; then
+ insinto /usr/share/man/ja/man8
+ doins man/ja/man8/pdumpfs.8
+ fi
+
+ dodoc ChangeLog README
+}
diff --git a/app-backup/qt4-fsarchiver/Manifest b/app-backup/qt4-fsarchiver/Manifest
new file mode 100644
index 000000000000..b1bc75fd5db2
--- /dev/null
+++ b/app-backup/qt4-fsarchiver/Manifest
@@ -0,0 +1,2 @@
+DIST qt4-fsarchiver-0.6.19-6.tar.gz 480288 SHA256 fbc3861ba45050840e0224b4dc39da164353ea8b35e7be6ea2f05e8ad90b925b SHA512 b542cec478f901cf1c6678a202183e9c7f047efd906a53bd2882385482d0bf20fbd46374fc60751e7e5ee04a6048643e3fb58ffefd883799c54b48c307aad1f3 WHIRLPOOL e6a50b016fe8bb15d0f5ee5c634b009b859d183ea05bdcf1b17d6690047ef96258bec7acc71dff5f51f3d61c9aaad48ae25316601d2baeccae4cb05dba38ea0e
+DIST qt4-fsarchiver-0.6.19-7.tar.gz 481129 SHA256 b4de5c34a0acad5104ec55dbef02b1a0f5c54d4dfddf9bd04073fe684846cd7c SHA512 31495858a27f7a1790ed492d69ff70eaae458f48f2afbe066507913289c3ed861389a201f03a56e3a5a3665eddae58371fe1d648bd10a3e96fb8240a40965b1c WHIRLPOOL d1cc9fc95f5fe59c727b38b5ad5571da06d49ada5f38fdbb27a8d252e03d23a8cbec40e94b6c73896c2f030ed67ab65da753fe7ba07dbb87cf2d2c0d90f9901d
diff --git a/app-backup/qt4-fsarchiver/metadata.xml b/app-backup/qt4-fsarchiver/metadata.xml
new file mode 100644
index 000000000000..bd20383e89d0
--- /dev/null
+++ b/app-backup/qt4-fsarchiver/metadata.xml
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>maintainer-needed@gentoo.org</email>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">qt4-fsarchiver</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-backup/qt4-fsarchiver/qt4-fsarchiver-0.6.19.6.ebuild b/app-backup/qt4-fsarchiver/qt4-fsarchiver-0.6.19.6.ebuild
new file mode 100644
index 000000000000..5276dde6ffc5
--- /dev/null
+++ b/app-backup/qt4-fsarchiver/qt4-fsarchiver-0.6.19.6.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit qmake-utils versionator
+
+MY_P="${PN}-$(replace_version_separator 3 '-')"
+MIN_PV="$(get_version_component_range 1-3)"
+
+DESCRIPTION="Qt4 frontend for fsarchiver"
+HOMEPAGE="http://qt4-fsarchiver.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/source/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+
+IUSE=""
+
+CDEPEND="app-arch/bzip2
+ app-arch/xz-utils
+ dev-libs/libgcrypt:=
+ dev-libs/lzo
+ dev-qt/qtcore:4
+ dev-qt/qtgui:4
+ sys-apps/util-linux
+ sys-fs/e2fsprogs
+ sys-libs/zlib"
+RDEPEND="${CDEPEND}
+ >=app-backup/fsarchiver-${MIN_PV}[lzma,lzo]"
+DEPEND="${CDEPEND}"
+
+S="${WORKDIR}/${PN}"
+
+src_prepare() {
+ # fix .desktop file
+ sed -i \
+ -e '/Encoding/d' starter/"${PN}".desktop \
+ || die "sed on qt4-fsarchiver.desktop failed"
+ # fix icon installation location
+ sed -i \
+ -e "/icon.path/s:app-install/icons:${PN}:" "${PN}.pro" \
+ || die "sed on ${PN}.pro failed"
+}
+
+src_compile() {
+ eqmake4
+}
+
+src_install() {
+ emake INSTALL_ROOT="${D}" install
+ einstalldocs
+}
+
+pkg_postinst() {
+ elog "optional dependencies:"
+ elog " sys-fs/btrfs-progs"
+ elog " sys-fs/jfsutils"
+ elog " sys-fs/ntfs3g[ntfsprogs]"
+ elog " sys-fs/reiser4progs"
+ elog " sys-fs/reiserfsprogs"
+ elog " sys-fs/sshfs-fuse"
+ elog " sys-fs/xfsprogs"
+}
diff --git a/app-backup/qt4-fsarchiver/qt4-fsarchiver-0.6.19.7.ebuild b/app-backup/qt4-fsarchiver/qt4-fsarchiver-0.6.19.7.ebuild
new file mode 100644
index 000000000000..1bcf6b5b11fc
--- /dev/null
+++ b/app-backup/qt4-fsarchiver/qt4-fsarchiver-0.6.19.7.ebuild
@@ -0,0 +1,66 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit qmake-utils versionator
+
+MY_P="${PN}-$(replace_version_separator 3 '-')"
+MIN_PV="$(get_version_component_range 1-3)"
+
+DESCRIPTION="Qt4 frontend for fsarchiver"
+HOMEPAGE="http://qt4-fsarchiver.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/source/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+IUSE=""
+
+CDEPEND="app-arch/bzip2
+ app-arch/xz-utils
+ dev-libs/libgcrypt:=
+ dev-libs/lzo
+ dev-qt/qtcore:4
+ dev-qt/qtgui:4
+ sys-apps/util-linux
+ sys-fs/e2fsprogs
+ sys-libs/zlib"
+RDEPEND="${CDEPEND}
+ >=app-backup/fsarchiver-${MIN_PV}[lzma,lzo]"
+DEPEND="${CDEPEND}"
+
+S="${WORKDIR}/${PN}"
+
+src_prepare() {
+ # fix .desktop file
+ sed -i \
+ -e '/Encoding/d' starter/"${PN}".desktop \
+ || die "sed on qt4-fsarchiver.desktop failed"
+ # fix icon installation location
+ sed -i \
+ -e "/icon.path/s:app-install/icons:${PN}:" "${PN}.pro" \
+ || die "sed on ${PN}.pro failed"
+}
+
+src_compile() {
+ eqmake4
+}
+
+src_install() {
+ emake INSTALL_ROOT="${D}" install
+ einstalldocs
+}
+
+pkg_postinst() {
+ elog "optional dependencies:"
+ elog " sys-fs/btrfs-progs"
+ elog " sys-fs/jfsutils"
+ elog " sys-fs/ntfs3g[ntfsprogs]"
+ elog " sys-fs/reiser4progs"
+ elog " sys-fs/reiserfsprogs"
+ elog " sys-fs/sshfs-fuse"
+ elog " sys-fs/xfsprogs"
+}
diff --git a/app-backup/rdiff-backup/Manifest b/app-backup/rdiff-backup/Manifest
new file mode 100644
index 000000000000..64a80bf4a9b8
--- /dev/null
+++ b/app-backup/rdiff-backup/Manifest
@@ -0,0 +1,2 @@
+DIST rdiff-backup-1.2.8.tar.gz 196526 SHA256 0d91a85b40949116fa8aaf15da165c34a2d15449b3cbe01c8026391310ac95db SHA512 4230bdfca7fc2a5ffd7bdc92ca899cde3276042115b4f488255a201e6ea361eab4ce4ebaae15841c357f189e1c88ad037e2727dec0a05c61b1c6016fa807739c WHIRLPOOL 7ca049a78ac3d19083cfc08bfc09348837179e9c0cb151293e1cc972df48a21a9885d89bbeb2c9cacb443f5a8267df6720dce10c4673710bbcc51b98658df9ff
+DIST rdiff-backup-1.3.3.tar.gz 198412 SHA256 ee030ce638df0eb1047cf72578e0de15d9a3ee9ab24da2dc0023e2978be30c06 SHA512 e2731464a6ff146cdecac49d2d99275dc5e6b4a3ff5b8209fe6dc71fd80cdbf573d029531325a879e9a169c12b31568f75fdcb812f53df33896784c5bc550280 WHIRLPOOL 04f3257c8a1dd6b8c81ec1f7d3fb7d1e4bba9bb97020b0932d2a72d9279924147ec98c74e5f9952b5c14c50675ac03f7d7956875ce58c1e677571c9cfab57f89
diff --git a/app-backup/rdiff-backup/files/rdiff-backup-1.2.8-popen2.patch b/app-backup/rdiff-backup/files/rdiff-backup-1.2.8-popen2.patch
new file mode 100644
index 000000000000..f9cad9ae6f67
--- /dev/null
+++ b/app-backup/rdiff-backup/files/rdiff-backup-1.2.8-popen2.patch
@@ -0,0 +1,16 @@
+diff -urNad rdiff-backup-1.2.8~/rdiff_backup/SetConnections.py rdiff-backup-1.2.8/rdiff_backup/SetConnections.py
+--- rdiff-backup-1.2.8~/rdiff_backup/SetConnections.py 2009-03-16 15:36:21.000000000 +0100
++++ rdiff-backup-1.2.8/rdiff_backup/SetConnections.py 2009-10-03 19:27:54.935647306 +0200
+@@ -135,10 +135,10 @@
+ if not remote_cmd: return Globals.local_connection
+
+ Log("Executing " + remote_cmd, 4)
+- if os.name == "nt":
++ if map(int, sys.version.split()[0].split('.')[:2]) >= [2, 6]:
+ import subprocess
+ try:
+- process = subprocess.Popen(remote_cmd, shell=False, bufsize=0,
++ process = subprocess.Popen(remote_cmd, shell=True, bufsize=0,
+ stdin=subprocess.PIPE,
+ stdout=subprocess.PIPE)
+ (stdin, stdout) = (process.stdin, process.stdout)
diff --git a/app-backup/rdiff-backup/metadata.xml b/app-backup/rdiff-backup/metadata.xml
new file mode 100644
index 000000000000..95ce537c7b9d
--- /dev/null
+++ b/app-backup/rdiff-backup/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>app-backup</herd>
+ <maintainer>
+ <email>alunduil@gentoo.org</email>
+ <name>Alex Brandt</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-backup/rdiff-backup/rdiff-backup-1.2.8-r1.ebuild b/app-backup/rdiff-backup/rdiff-backup-1.2.8-r1.ebuild
new file mode 100644
index 000000000000..c646ffa0ad99
--- /dev/null
+++ b/app-backup/rdiff-backup/rdiff-backup-1.2.8-r1.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="3"
+PYTHON_DEPEND="2"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="3.* *-jython"
+
+inherit distutils eutils
+
+DESCRIPTION="Remote incremental file backup utility; uses librsync's rdiff utility to create concise, versioned backups"
+HOMEPAGE="http://www.nongnu.org/rdiff-backup/"
+SRC_URI="http://savannah.nongnu.org/download/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 arm ppc ppc64 sh sparc x86 ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE="acl xattr"
+
+DEPEND=">=net-libs/librsync-0.9.7
+ !arm? ( xattr? ( dev-python/pyxattr )
+ acl? ( dev-python/pylibacl ) )"
+RDEPEND="${DEPEND}"
+
+DOCS="examples.html"
+PYTHON_MODNAME="rdiff_backup"
+
+src_prepare() {
+ distutils_src_prepare
+ epatch "${FILESDIR}"/rdiff-backup-1.2.8-popen2.patch
+}
diff --git a/app-backup/rdiff-backup/rdiff-backup-1.3.3-r1.ebuild b/app-backup/rdiff-backup/rdiff-backup-1.3.3-r1.ebuild
new file mode 100644
index 000000000000..087ffd48fa66
--- /dev/null
+++ b/app-backup/rdiff-backup/rdiff-backup-1.3.3-r1.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1
+
+DESCRIPTION="Local/remote mirroring+incremental backup"
+HOMEPAGE="http://rdiff-backup.nongnu.org/"
+SRC_URI="http://savannah.nongnu.org/download/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm ~mips ppc ppc64 ~sh sparc x86 ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
+IUSE="examples"
+
+DEPEND="
+ >=net-libs/librsync-0.9.7
+"
+RDEPEND="
+ dev-python/pyxattr[${PYTHON_USEDEP}]
+ dev-python/pylibacl[${PYTHON_USEDEP}]
+"
+
+python_install_all() {
+ use examples && local EXAMPLES=( examples.html )
+
+ distutils-r1_python_install_all
+}
diff --git a/app-backup/rdiff-backup/rdiff-backup-1.3.3.ebuild b/app-backup/rdiff-backup/rdiff-backup-1.3.3.ebuild
new file mode 100644
index 000000000000..fab8a0adc163
--- /dev/null
+++ b/app-backup/rdiff-backup/rdiff-backup-1.3.3.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="3"
+PYTHON_DEPEND="2"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="3.* *-jython"
+
+inherit distutils
+
+DESCRIPTION="Remote incremental file backup utility; uses librsync's rdiff utility to create concise, versioned backups"
+HOMEPAGE="http://www.nongnu.org/rdiff-backup/"
+SRC_URI="http://savannah.nongnu.org/download/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha amd64 arm ~mips ppc ppc64 sh sparc x86 ~x86-interix ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
+IUSE="acl xattr"
+
+DEPEND=">=net-libs/librsync-0.9.7
+ !arm? ( xattr? ( dev-python/pyxattr )
+ acl? ( dev-python/pylibacl ) )"
+RDEPEND="${DEPEND}"
+
+DOCS="examples.html"
+PYTHON_MODNAME="rdiff_backup"
diff --git a/app-backup/rdumpfs/Manifest b/app-backup/rdumpfs/Manifest
new file mode 100644
index 000000000000..d2ad39e5ad89
--- /dev/null
+++ b/app-backup/rdumpfs/Manifest
@@ -0,0 +1 @@
+DIST rdumpfs-20131002.tar.gz 2373 SHA256 bb02e119e2248ae95eecfbade77370093a544a24b5078132856c70da6d6c3a1d SHA512 29aa4a3ac9a3d22cff24a84fb1db86aa53d78514bb16f25e70f801a83fce9eb9a523929170eaa9562aa76bce682eb52e400c7468220e0ec876978032bf174969 WHIRLPOOL 24a2556514804d11f84c97617882da2740926dc4c1d1970657635df258bf189f0fb81ce48bd953743fcf2e24b0b3213b914c65d0864506efbf723b00569693c2
diff --git a/app-backup/rdumpfs/metadata.xml b/app-backup/rdumpfs/metadata.xml
new file mode 100644
index 000000000000..0931b530109e
--- /dev/null
+++ b/app-backup/rdumpfs/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>ottxor@gentoo.org</email>
+ <name>Christoph Junghans</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">chneukirchen/rdumpfs</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-backup/rdumpfs/rdumpfs-20131002.ebuild b/app-backup/rdumpfs/rdumpfs-20131002.ebuild
new file mode 100644
index 000000000000..a95599654827
--- /dev/null
+++ b/app-backup/rdumpfs/rdumpfs-20131002.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit vcs-snapshot
+
+COMMIT="b7e8e7b0efd9d73344e022e204f2e99e6321136e"
+DESCRIPTION="a rsync-based dump file system backup tool"
+HOMEPAGE="https://github.com/chneukirchen/rdumpfs"
+SRC_URI="${HOMEPAGE}/archive/${COMMIT}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="CC0-1.0"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="+xattr"
+
+DEPEND=""
+RDEPEND="net-misc/rsync[xattr?]"
+
+src_prepare() {
+ use xattr || sed -i '/^rsync_args=/s/X//' "${PN}" || die
+}
+
+src_install() {
+ dobin "${PN}"
+ dodoc README
+}
diff --git a/app-backup/rear/Manifest b/app-backup/rear/Manifest
new file mode 100644
index 000000000000..e9a5b0ad68d1
--- /dev/null
+++ b/app-backup/rear/Manifest
@@ -0,0 +1,3 @@
+DIST rear-1.15.tar.gz 258153 SHA256 77c257a692c5e8c9e6deadf194d092718fd90e727ad3df9ed525b3a2e42f0cef SHA512 dc953c33b82f221de6c2acd7ffbb26c34b86aebcd7f8a4d7d520a1d08c15c723fed75326b8e19614f5e09f6436d392091b362b350ffad06caf10c711eb97fcb2 WHIRLPOOL e9811925d0e4a4e5d155be09f1ab212b5d70b687031c53d7c599dbbdd89d2d8aa0edb96550b9999dc7ed0ae1975b586a13eb3c666752e82bfa678fc02f84bee4
+DIST rear-1.17.0.tar.gz 299444 SHA256 c3fe36878aca14558d5cd18b0190699093031449f49db97a63eaf6f2fc3a9f6e SHA512 4b9991dc14138e6a2cd28c9fb9f1dcf46ea1a580454bb2c966024481657a102cc849baf6af5ebfa0793ac3f5ebff5b07abc87d1e4b02e1496a0f87b8cf79284e WHIRLPOOL bb83180daeeabed9464aaf55ba5a6880d1415c122f5663aecbd5e48db7137c367e02384fa176cd45d535cf867e44b4824d27633db28c59eba38f25ee7aed735c
+DIST rear-1.17.1.tar.gz 303253 SHA256 79559f44082cce3e975b6cf73ff0f50a27d59742c60971cb7db9630e7557dde8 SHA512 66595e962345c0e61c5152f11aee6745ec348acc02d0cbc717faaca8618c83211d8c45ec5e80a17ba9d8c8ad9c6d2ecb109f827d976eb0d126bfc44cf4b49afc WHIRLPOOL 8009890e690a4c692e3dec5b85cc0c7aead04fa8f752b657efc6c19086795bc0250ed5f4f70d30a46a81a69a31bc2134b510ac5a5904f5dd89827841b884a786
diff --git a/app-backup/rear/files/rear-1.15-add-support-for-gentoo-kernels.patch b/app-backup/rear/files/rear-1.15-add-support-for-gentoo-kernels.patch
new file mode 100644
index 000000000000..608685418676
--- /dev/null
+++ b/app-backup/rear/files/rear-1.15-add-support-for-gentoo-kernels.patch
@@ -0,0 +1,19 @@
+diff --git a/usr/share/rear/pack/Linux-i386/30_copy_kernel.sh b/usr/share/rear/pack/Linux-i386/30_copy_kernel.sh
+index 6816f37..ec437e4 100644
+--- a/usr/share/rear/pack/Linux-i386/30_copy_kernel.sh
++++ b/usr/share/rear/pack/Linux-i386/30_copy_kernel.sh
+@@ -50,6 +50,14 @@ if [ ! -s "$KERNEL_FILE" ]; then
+ else
+ Error "Could not find Arch kernel /boot/vmlinuz[-linux|26]"
+ fi
++ elif [ -f /etc/gentoo-release ]; then
++ if [ -f "/boot/kernel-genkernel-${REAL_MACHINE}-${KERNEL_VERSION}" ]; then
++ KERNEL_FILE="/boot/kernel-genkernel-${REAL_MACHINE}-${KERNEL_VERSION}"
++ elif [ -f "/boot/kernel-${KERNEL_VERSION}" ]; then
++ KERNEL_FILE="/boot/kernel-${KERNEL_VERSION}"
++ else
++ Error "Could not find Gentoo kernel"
++ fi
+ else
+ Error "Could not find a matching kernel in /boot !"
+ fi
diff --git a/app-backup/rear/metadata.xml b/app-backup/rear/metadata.xml
new file mode 100644
index 000000000000..0c450b378cdb
--- /dev/null
+++ b/app-backup/rear/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>proxy-maintainers</herd>
+ <maintainer>
+ <email>morlix@morlix.de</email>
+ <name>Timo Eissler</name>
+ </maintainer>
+ <longdescription lang="en">
+ Relax and Recover (Rear) is the leading Open Source disaster recovery solution, and successor to mkcdrec. It comprises of a modular framework and ready-to-go workflows for many common situations to produce a bootable image and restore from backup using this image. As a benefit, it allows to restore to different hardware and can therefore be used as a migration tool as well.
+ </longdescription>
+ <use>
+ <flag name="udev">Have ReaR start backup when attaching your USB drive.</flag>
+ </use>
+ <upstream>
+ <remote-id type="sourceforge">rear</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-backup/rear/rear-1.15-r1.ebuild b/app-backup/rear/rear-1.15-r1.ebuild
new file mode 100644
index 000000000000..04b888eb2679
--- /dev/null
+++ b/app-backup/rear/rear-1.15-r1.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+inherit eutils
+
+DESCRIPTION="Fully automated disaster recovery supporting a broad variety of backup strategies and scenarios"
+HOMEPAGE="http://relax-and-recover.org/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+
+IUSE="udev"
+
+RDEPEND="dev-libs/openssl
+ net-dialup/mingetty
+ net-fs/nfs-utils
+ sys-apps/iproute2
+ sys-apps/lsb-release
+ sys-apps/util-linux
+ sys-block/parted
+ sys-boot/syslinux
+ virtual/cdrtools
+ udev? ( virtual/udev )
+"
+
+src_prepare () {
+ epatch "${FILESDIR}/${P}-add-support-for-gentoo-kernels.patch"
+}
+
+src_compile () { :; }
+
+src_install () {
+ # Deploy udev USB rule and udev will autostart ReaR workflows in case a USB
+ # drive with the label 'REAR_000' is connected, which in turn is the
+ # default label when running the `rear format` command.
+ if use udev ; then
+ insinto /lib/udev/rules.d
+ doins etc/udev/rules.d/62-${PN}-usb.rules
+ fi
+
+ # Copy main script-file and documentation.
+ dosbin usr/sbin/${PN}
+ doman doc/${PN}.8
+ dodoc README
+
+ # Copy configurations files.
+ insinto /etc
+ doins -r etc/${PN}/
+
+ insinto /usr/share/
+ doins -r usr/share/${PN}/
+}
diff --git a/app-backup/rear/rear-1.17.0.ebuild b/app-backup/rear/rear-1.17.0.ebuild
new file mode 100644
index 000000000000..4212a9f2382e
--- /dev/null
+++ b/app-backup/rear/rear-1.17.0.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+inherit eutils
+
+DESCRIPTION="Fully automated disaster recovery, suppors broad variety of backup strategies and scenarios."
+HOMEPAGE="http://relax-and-recover.org/"
+MY_PV=${PV%.*}
+SRC_URI="mirror://sourceforge/project/${PN}/${PN}/${MY_PV}/${PV}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+IUSE="udev"
+
+RDEPEND="dev-libs/openssl
+ net-dialup/mingetty
+ net-fs/nfs-utils
+ sys-apps/gawk
+ sys-apps/iproute2
+ sys-apps/lsb-release
+ sys-apps/util-linux
+ sys-block/parted
+ sys-boot/syslinux
+ virtual/cdrtools
+ udev? ( virtual/udev )
+"
+
+src_compile () { :; }
+
+src_install () {
+ # Deploy udev USB rule and udev will autostart ReaR workflows in case a USB
+ # drive with the label 'REAR_000' is connected, which in turn is the
+ # default label when running the `rear format` command.
+ if use udev ; then
+ insinto /lib/udev/rules.d
+ doins etc/udev/rules.d/62-${PN}-usb.rules
+ fi
+
+ # Copy main script-file and documentation.
+ dosbin usr/sbin/${PN}
+ doman doc/${PN}.8
+ dodoc README
+
+ # Copy configurations files.
+ insinto /etc
+ doins -r etc/${PN}/
+
+ insinto /usr/share/
+ doins -r usr/share/${PN}/
+}
diff --git a/app-backup/rear/rear-1.17.1.ebuild b/app-backup/rear/rear-1.17.1.ebuild
new file mode 100644
index 000000000000..4212a9f2382e
--- /dev/null
+++ b/app-backup/rear/rear-1.17.1.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+inherit eutils
+
+DESCRIPTION="Fully automated disaster recovery, suppors broad variety of backup strategies and scenarios."
+HOMEPAGE="http://relax-and-recover.org/"
+MY_PV=${PV%.*}
+SRC_URI="mirror://sourceforge/project/${PN}/${PN}/${MY_PV}/${PV}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+IUSE="udev"
+
+RDEPEND="dev-libs/openssl
+ net-dialup/mingetty
+ net-fs/nfs-utils
+ sys-apps/gawk
+ sys-apps/iproute2
+ sys-apps/lsb-release
+ sys-apps/util-linux
+ sys-block/parted
+ sys-boot/syslinux
+ virtual/cdrtools
+ udev? ( virtual/udev )
+"
+
+src_compile () { :; }
+
+src_install () {
+ # Deploy udev USB rule and udev will autostart ReaR workflows in case a USB
+ # drive with the label 'REAR_000' is connected, which in turn is the
+ # default label when running the `rear format` command.
+ if use udev ; then
+ insinto /lib/udev/rules.d
+ doins etc/udev/rules.d/62-${PN}-usb.rules
+ fi
+
+ # Copy main script-file and documentation.
+ dosbin usr/sbin/${PN}
+ doman doc/${PN}.8
+ dodoc README
+
+ # Copy configurations files.
+ insinto /etc
+ doins -r etc/${PN}/
+
+ insinto /usr/share/
+ doins -r usr/share/${PN}/
+}
diff --git a/app-backup/reoback/Manifest b/app-backup/reoback/Manifest
new file mode 100644
index 000000000000..b8ccf63e9062
--- /dev/null
+++ b/app-backup/reoback/Manifest
@@ -0,0 +1 @@
+DIST reoback-1.0_r3.tar.gz 27396 SHA256 8588e3a330a045ee5f9c6e6147b1cdf68fe9f317d57cf520eea50ea928e1b12f SHA512 fcec19f284d96c4be96ac4d5bae4a689f777261ae08032da58b7d9c38a3bb1f6ade3825895b93e2b7ad285e0d1371d12f3cf25a7ffe46639ef9e80611941cd2a WHIRLPOOL e891a446b1f6191d0f0048a59834cbbd29b424663ef9d0fa07f24807fe3d1ed81f2227c36ef5e589393766f079c380fc03b82848e08fea544c1646df259d8a1a
diff --git a/app-backup/reoback/metadata.xml b/app-backup/reoback/metadata.xml
new file mode 100644
index 000000000000..02590301de6c
--- /dev/null
+++ b/app-backup/reoback/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>maintainer-needed@gentoo.org</email>
+ <name>Default assignee for orphaned packages</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">reoback</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-backup/reoback/reoback-1.0_p3-r1.ebuild b/app-backup/reoback/reoback-1.0_p3-r1.ebuild
new file mode 100644
index 000000000000..6c778bc10902
--- /dev/null
+++ b/app-backup/reoback/reoback-1.0_p3-r1.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils
+
+DESCRIPTION="Reoback Backup Solution"
+HOMEPAGE="http://reoback.sourceforge.net/"
+SRC_URI="mirror://sourceforge/reoback/reoback-${PV/_p/_r}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 ppc x86"
+IUSE=""
+
+RDEPEND=">=dev-lang/perl-5.6.1"
+DEPEND=">=app-arch/tar-1.13"
+
+S=${WORKDIR}/${PN}-${PV/_*}
+
+src_prepare() {
+ ecvs_clean
+ sed \
+ -e '/^config=/s:=.*:=/etc/reoback/settings.conf:' \
+ -e '/^reoback=/s:=.*:=/usr/sbin/reoback.pl:' \
+ -i run_reoback.sh || die
+}
+
+src_install() {
+ dosbin reoback.pl
+ insinto /etc/reoback
+ doins conf/*
+ fperms o-x /usr/sbin/reoback.pl
+ insinto /etc/cron.daily
+ newins run_reoback.sh reoback
+ dodoc docs/{BUGS,CHANGES,INSTALL,MANUALS,README,TODO}
+}
+
+pkg_postinst() {
+ elog "Reoback can now be activated by simply configuring the files in"
+ elog "/etc/reoback and then doing: chmod +x /etc/cron.daily/reoback"
+}
diff --git a/app-backup/rsnapshot/Manifest b/app-backup/rsnapshot/Manifest
new file mode 100644
index 000000000000..a4fd0d29c022
--- /dev/null
+++ b/app-backup/rsnapshot/Manifest
@@ -0,0 +1 @@
+DIST rsnapshot-1.3.1.tar.gz 215806 SHA256 94b6c77e40628935f42a191bdc28ad93b1f132fde456ee76ee87763f1eddc75e SHA512 a74ad0a21d213dd2e05cb577a47c491af90d8994df8f5a154195515345da438ac9c0d72b563aa02314883a0b3bb86e3c23f8b530a7078c2b55a9547a2d666c10 WHIRLPOOL 1d62658e11cbd2612b223336b5e3dbb44d1ec0b40a434bf8f65c09ff7b45c831f585046f8ef4e2ff79f034de8731435ccd2554e0d5ff4e2d1693a01b66113b00
diff --git a/app-backup/rsnapshot/files/rsnapshot-1.3.1-cp_al.patch b/app-backup/rsnapshot/files/rsnapshot-1.3.1-cp_al.patch
new file mode 100644
index 000000000000..7241d6c8c07e
--- /dev/null
+++ b/app-backup/rsnapshot/files/rsnapshot-1.3.1-cp_al.patch
@@ -0,0 +1,12 @@
+diff -ur rsnapshot-1.3.1.original/rsnapshot-program.pl rsnapshot-1.3.1/rsnapshot-program.pl
+--- rsnapshot-1.3.1.original/rsnapshot-program.pl 2006-10-21 08:12:30.000000000 +0200
++++ rsnapshot-1.3.1/rsnapshot-program.pl 2006-11-22 21:37:39.133222510 +0100
+@@ -3269,7 +3269,7 @@
+ if (0 == $test) {
+ $result = cp_al(
+ "$config_vars{'snapshot_root'}/$interval.0/",
+- "$config_vars{'snapshot_root'}/$interval.1/"
++ "$config_vars{'snapshot_root'}/$interval.1"
+ );
+ if (! $result) {
+ my $errstr = '';
diff --git a/app-backup/rsnapshot/files/rsnapshot-1.3.1-perl518.patch b/app-backup/rsnapshot/files/rsnapshot-1.3.1-perl518.patch
new file mode 100644
index 000000000000..367055d5cc96
--- /dev/null
+++ b/app-backup/rsnapshot/files/rsnapshot-1.3.1-perl518.patch
@@ -0,0 +1,17 @@
+Fixed man-page creation with pod2man from >=perl-5.18
+
+https://bugs.gentoo.org/490486
+
+Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
+
+--- rsnapshot-1.3.1/rsnapshot-program.pl
++++ rsnapshot-1.3.1/rsnapshot-program.pl
+@@ -6716,6 +6716,8 @@
+
+ =back
+
++=back
++
+ =head1 USAGE
+
+ B<rsnapshot> can be used by any user, but for system-wide backups
diff --git a/app-backup/rsnapshot/metadata.xml b/app-backup/rsnapshot/metadata.xml
new file mode 100644
index 000000000000..b856273f3b8a
--- /dev/null
+++ b/app-backup/rsnapshot/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>proxy-maintainers</herd>
+ <maintainer>
+ <email>flameeyes@gentoo.org</email>
+ <name>Diego Elio Pettenò</name>
+ </maintainer>
+ <maintainer>
+ <email>erik_hahn@gmx.de</email>
+ <name>Erik Hahn</name>
+ <description>proxied maintainer</description>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-backup/rsnapshot/rsnapshot-1.3.1-r1.ebuild b/app-backup/rsnapshot/rsnapshot-1.3.1-r1.ebuild
new file mode 100644
index 000000000000..06f52b1b2e19
--- /dev/null
+++ b/app-backup/rsnapshot/rsnapshot-1.3.1-r1.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+inherit eutils
+
+DESCRIPTION="A filesystem backup utility based on rsync"
+HOMEPAGE="http://www.rsnapshot.org"
+SRC_URI="http://www.rsnapshot.org/downloads/${P}.tar.gz"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="alpha amd64 ppc ppc64 sparc x86"
+IUSE=""
+
+RDEPEND=">=dev-lang/perl-5.8.2
+ >=sys-apps/util-linux-2.12-r4
+ >=sys-apps/coreutils-5.0.91-r4
+ >=net-misc/openssh-3.7.1_p2-r1
+ >=net-misc/rsync-2.6.0"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-cp_al.patch
+}
+
+src_install() {
+ # Change sysconfdir to install the template file as documentation
+ # rather than in /etc.
+ emake install DESTDIR="${D}" \
+ sysconfdir="/usr/share/doc/${PF}" \
+ || die
+
+ dodoc README AUTHORS TODO ChangeLog \
+ docs/Upgrading_from_1.1 \
+ docs/HOWTOs/rsnapshot-{Mac,windows}-howto
+
+ docinto utils
+ dodoc utils/{README,rsnaptar,*.sh,*.pl}
+
+ docinto utils/rsnapshotdb
+ dodoc utils/rsnapshotdb/*
+}
+
+pkg_postinst() {
+ elog "The template configuration file has been installed as"
+ elog "/usr/share/doc/${PF}/rsnapshot.conf.default"
+ elog "Copy and edit the the above file as /etc/rsnapshot.conf"
+}
diff --git a/app-backup/rsnapshot/rsnapshot-1.3.1-r2.ebuild b/app-backup/rsnapshot/rsnapshot-1.3.1-r2.ebuild
new file mode 100644
index 000000000000..6ebb7788c2b9
--- /dev/null
+++ b/app-backup/rsnapshot/rsnapshot-1.3.1-r2.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils
+
+DESCRIPTION="A filesystem backup utility based on rsync"
+HOMEPAGE="http://www.rsnapshot.org"
+SRC_URI="http://www.rsnapshot.org/downloads/${P}.tar.gz"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="alpha amd64 ppc ppc64 sparc x86"
+IUSE=""
+
+RDEPEND=">=dev-lang/perl-5.8.2
+ dev-perl/Lchown
+ >=sys-apps/util-linux-2.12-r4
+ >=sys-apps/coreutils-5.0.91-r4
+ >=net-misc/openssh-3.7.1_p2-r1
+ >=net-misc/rsync-2.6.0"
+DEPEND="${RDEPEND}"
+
+src_prepare() {
+ epatch "${FILESDIR}"/${P}-cp_al.patch \
+ "${FILESDIR}"/${P}-perl518.patch
+}
+
+src_install() {
+ # Change sysconfdir to install the template file as documentation
+ # rather than in /etc.
+ emake install DESTDIR="${D}" \
+ sysconfdir="${EPREFIX}/usr/share/doc/${PF}"
+
+ dodoc README AUTHORS TODO ChangeLog \
+ docs/Upgrading_from_1.1 \
+ docs/HOWTOs/rsnapshot-{Mac,windows}-howto
+
+ docinto utils
+ dodoc utils/{README,rsnaptar,*.sh,*.pl}
+
+ docinto utils/rsnapshotdb
+ dodoc utils/rsnapshotdb/*
+}
+
+pkg_postinst() {
+ elog "The template configuration file has been installed as"
+ elog "/usr/share/doc/${PF}/rsnapshot.conf.default"
+ elog "Copy and edit the the above file as /etc/rsnapshot.conf"
+}
diff --git a/app-backup/rsnapshot/rsnapshot-1.3.1.ebuild b/app-backup/rsnapshot/rsnapshot-1.3.1.ebuild
new file mode 100644
index 000000000000..423661ebc7c2
--- /dev/null
+++ b/app-backup/rsnapshot/rsnapshot-1.3.1.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit eutils
+
+DESCRIPTION="A filesystem backup utility based on rsync"
+HOMEPAGE="http://www.rsnapshot.org"
+SRC_URI="http://www.rsnapshot.org/downloads/${P}.tar.gz"
+
+SLOT="0"
+LICENSE="GPL-2"
+KEYWORDS="alpha amd64 ppc ppc64 sparc x86"
+IUSE=""
+
+RDEPEND=">=dev-lang/perl-5.8.2
+ >=sys-apps/util-linux-2.12-r4
+ >=sys-apps/coreutils-5.0.91-r4
+ >=net-misc/openssh-3.7.1_p2-r1
+ >=net-misc/rsync-2.6.0"
+
+src_unpack() {
+ unpack ${A}
+ epatch "${FILESDIR}"/${P}-cp_al.patch
+}
+
+src_compile() {
+ econf --prefix=/usr --sysconfdir=/etc || die
+ emake || die "emake failed"
+}
+
+src_install() {
+ make install DESTDIR="${D}" || die "make install failed"
+
+ dodoc INSTALL README AUTHORS TODO ChangeLog docs/*
+ insinto /usr/share/doc/${PF}/HOWTOs
+ doins docs/HOWTOs/*
+ docinto utils
+ dodoc utils/{README,rsnaptar,*.sh}
+ docinto utils/rsnapshotdb
+ dodoc utils/rsnapshotdb/*
+}
+
+pkg_postinst() {
+ elog
+ elog "The configuration file: /etc/rsnapshot.conf.default "
+ elog " has been installed. "
+ elog "This is a template. "
+ elog "Copy, or move, the above file to: /etc/rsnapshot.conf "
+ elog "Note that upgrading will update the template, not real config. "
+ elog
+}
diff --git a/app-backup/sarab/Manifest b/app-backup/sarab/Manifest
new file mode 100644
index 000000000000..d747750e5b68
--- /dev/null
+++ b/app-backup/sarab/Manifest
@@ -0,0 +1 @@
+DIST sarab-1.0.0.tar.gz 24738 SHA256 4296617123e0e53c829ad7cb0c9a04f3fabcb1cd65bfddaaa4db8953451824ea SHA512 246abd1893127a8aaf73537b9eb0d43921da37ddee97a02513916db2d6abdde6dd45715fbe56c53809c5442531e8172467de1b05af264a50054ecbecaa8d319f WHIRLPOOL 54f43c7d1be4f9f5cd4f8c60ff9a995ee9972e17f1a01b03d5290f0169a2f2c78f1bd9d76d3be1fb1814e12f1bc41ac2702a89d7544a42d3a18bb108958924a9
diff --git a/app-backup/sarab/files/1.0.0-better-defaults-gentoo.patch b/app-backup/sarab/files/1.0.0-better-defaults-gentoo.patch
new file mode 100644
index 000000000000..ecb8b558e067
--- /dev/null
+++ b/app-backup/sarab/files/1.0.0-better-defaults-gentoo.patch
@@ -0,0 +1,21 @@
+--- sarab-1.0.0.orig/etc/sarab.conf 2010-02-21 06:13:22.000000000 -0500
++++ sarab-1.0.0/etc/sarab.conf 2010-08-20 18:30:41.630323933 -0400
+@@ -76,10 +76,10 @@
+
+ # The location of the DAR executable file
+ # This line is only effective if not added by install.sh later in this file
+-DAR_BINARY="/usr/local/bin/dar"
++DAR_BINARY="/usr/bin/dar"
+
+ # The location of the statically-compiled DAR executable file
+-DAR_STATIC="/usr/local/bin/dar_static"
++DAR_STATIC="/usr/bin/dar_static"
+
+ # The temporary directory name that backups will be created in. This will be created underneath $DESTINATION.
+ WORK_DIR=".sarab_temp_workdir"
+@@ -88,4 +88,4 @@
+ DAR_CREATE="$DESTINATION/$WORK_DIR/$BASENAME"
+
+ # Location and name of temporary log file
+-TEMP_LOG="$SARAB_ETC/sarab_temp.log"
++TEMP_LOG="/var/log/sarab_temp.log"
diff --git a/app-backup/sarab/files/README.Gentoo b/app-backup/sarab/files/README.Gentoo
new file mode 100644
index 000000000000..680a395239df
--- /dev/null
+++ b/app-backup/sarab/files/README.Gentoo
@@ -0,0 +1,13 @@
+-*- outline -*- $Id$
+
+Gentoo GNU/Linux specific notes for SaraB
+-----------------------------------------
+
+This is the README.Gentoo file from /usr/share/doc/@PF@/ directory.
+
+ * The Gentoo port includes more reasonable pathnames for the example
+ configuration.
+
+If you encounter any problems or have suggestions, use https://bugs.gentoo.org.
+Please don't bother the upstream authors unless you are absolutely certain it is
+not Gentoo-related.
diff --git a/app-backup/sarab/metadata.xml b/app-backup/sarab/metadata.xml
new file mode 100644
index 000000000000..b7622b999785
--- /dev/null
+++ b/app-backup/sarab/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>rich0@gentoo.org</email>
+ </maintainer>
+ <longdescription>
+SaraB works with DAR (Disk ARchive) to schedule backups. SaraB provides a
+powerful, automated rotation schedule which allows administrators to create a
+custom rotation that fits the needs of their network.
+</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">sarab</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-backup/sarab/sarab-1.0.0.ebuild b/app-backup/sarab/sarab-1.0.0.ebuild
new file mode 100644
index 000000000000..5e8a572c57e0
--- /dev/null
+++ b/app-backup/sarab/sarab-1.0.0.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+inherit eutils
+
+DESCRIPTION="SaraB is a powerful and automated backup scheduling system based on DAR"
+HOMEPAGE="http://sarab.sourceforge.net/"
+SRC_URI="mirror://sourceforge/sarab/${P}.tar.gz"
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND="app-backup/dar
+ virtual/mailx"
+
+src_unpack() {
+ cd "${S}"
+ unpack ${A}
+
+ epatch "${FILESDIR}"/${PV}-better-defaults-gentoo.patch
+}
+
+src_install() {
+ dobin sarab.sh
+ insinto /etc/sarab
+ doins -r etc/*
+ # sarab.conf could contain passphrase information
+ fperms 600 /etc/sarab/sarab.conf
+ dodoc CHANGELOG FAQ INSTALL README
+ dodoc "${FILESDIR}"/README.Gentoo
+}
+
+pkg_postinstl() {
+ ewarn "The configuration format for DAR encryption has changed in Sarab 0.2.4."
+ ewarn "Replace DAR_ENCRYPTION_OPTIONS=\"--key blowfish:PASSPHRASE\""
+ ewarn "by SARAB_KEY=\"blowfish:PASSPHRASE\" in /etc/sarab/sarab.conf"
+}
diff --git a/app-backup/simplebackup/Manifest b/app-backup/simplebackup/Manifest
new file mode 100644
index 000000000000..e172a127b09f
--- /dev/null
+++ b/app-backup/simplebackup/Manifest
@@ -0,0 +1 @@
+DIST simplebackup-1.8.1.tar.gz 9630257 SHA256 3c3767b2d2fe5a48187952b6b079da56aa2bdfdb3b3e55832f8f163847287512 SHA512 0c6c6fad99817b794c557f1d55420211b3e58de004b239b2be4c21cd88ab04ffc9a793fb55eae3bddb6b84eb7e53f0b19d3932d17579d0f3f68f024214eeb71d WHIRLPOOL 5b6bfa8c563b6cd398bbc74d4c9c8ad2d89639966990618f1896aeed3bd9dcde1a5d90ba364de668b1957a84350a643b63114477e69da5b9cf851d6ee5b92710
diff --git a/app-backup/simplebackup/metadata.xml b/app-backup/simplebackup/metadata.xml
new file mode 100644
index 000000000000..7b360064112f
--- /dev/null
+++ b/app-backup/simplebackup/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>app-backup</herd>
+ <upstream>
+ <remote-id type="sourceforge">migas-sbackup</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-backup/simplebackup/simplebackup-1.8.1.ebuild b/app-backup/simplebackup/simplebackup-1.8.1.ebuild
new file mode 100644
index 000000000000..4458b2a14d39
--- /dev/null
+++ b/app-backup/simplebackup/simplebackup-1.8.1.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+DESCRIPTION="Cross-platform backup program"
+HOMEPAGE="http://migas-sbackup.sourceforge.net/"
+SRC_URI="mirror://sourceforge/migas-sbackup/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="sasl"
+
+DEPEND=""
+RDEPEND="dev-lang/perl
+ sasl? ( dev-perl/Authen-SASL )"
+
+S=${WORKDIR}/${P}/unix
+
+src_compile() {
+ return;
+}
+
+src_install() {
+ newbin simplebackup.pl simplebackup
+ dodoc ../unix_readme.txt
+}
diff --git a/app-backup/snapback2/Manifest b/app-backup/snapback2/Manifest
new file mode 100644
index 000000000000..88f9c1456deb
--- /dev/null
+++ b/app-backup/snapback2/Manifest
@@ -0,0 +1 @@
+DIST Snapback2-1.001.tar.gz 31099 SHA256 64512b0aae7df5bf80a74cc9e89c15fbe7c09aa435ea85d38f4b9f582aabecd2 SHA512 11d4a02fffd668f852e93554afbf7c76d1b06fd2cf88e3681489f206e8b1f8a21ae2b3718730f547660c4bcf3bef7eb358c4c809382199c864483ec9d4ab3983 WHIRLPOOL 790e847c2d5586ac104a6719f66b023ff28151b126e332a6d7bce7eda5c659e9f75675dc90c31fb1a4336099b40a1bcd4a00a0429afefeed0bdaa548a29e0072
diff --git a/app-backup/snapback2/metadata.xml b/app-backup/snapback2/metadata.xml
new file mode 100644
index 000000000000..edb1c6588c22
--- /dev/null
+++ b/app-backup/snapback2/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>app-backup</herd>
+ <upstream>
+ <remote-id type="cpan">Snapback2</remote-id>
+ <remote-id type="cpan-module">Backup::Snapback</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-backup/snapback2/snapback2-1.1.0-r1.ebuild b/app-backup/snapback2/snapback2-1.1.0-r1.ebuild
new file mode 100644
index 000000000000..28a2ce6bf13d
--- /dev/null
+++ b/app-backup/snapback2/snapback2-1.1.0-r1.ebuild
@@ -0,0 +1,20 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+MY_PN=Snapback2
+MODULE_AUTHOR=MIKEH
+MODULE_VERSION=1.001
+inherit perl-module
+
+DESCRIPTION="Routines for support of rsync-based snapshot backup"
+
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="dev-perl/Config-ApacheFormat"
+
+#SRC_TEST=do
diff --git a/app-backup/snapper/Manifest b/app-backup/snapper/Manifest
new file mode 100644
index 000000000000..80ceeb6a95c4
--- /dev/null
+++ b/app-backup/snapper/Manifest
@@ -0,0 +1,3 @@
+DIST snapper-0.2.3.tar.bz2 451916 SHA256 6c78fc57ac018f7536a03971927f2b17f1f048f87e26689609028f51500c9c6a SHA512 a8b847e3bc0759a717f4256ed3c9e7ed675f040a56e80ea7ca2d7f12906198ecd141638f00acce02195b094a9db7fbdd5cb233012e3ba8be7a3502cba1bbd968 WHIRLPOOL cb4a0cd1f4c01ccbf213395f9b8c0eff325f5453fa0e05e37b4b525e6c0b276b3767194a06b2ea50b877883a6061f86817d773775842e161f3298e45573f6789
+DIST snapper-0.2.4.tar.bz2 458409 SHA256 8fc70b8e7a39dc3249ce9141e2c5f0623bb80f8e4150a543d8ed04d2ad27f399 SHA512 e986ebb482a7e30e4e97edc2882653a041c49c9291310469860fd9a0e93c46747ec31723f771a710a6fcce2f4863fdf672c623453ae27b4fb7cd911b8d4b35ed WHIRLPOOL 1627664909ea3a5959c6ff6a66c1dcbacbe835bce2f1f20cc4c380e8613545e8a0e3f7569c32f774a5534636b8321af71d78c21368e8b7a2104e05d241f5d8cd
+DIST snapper-0.2.6.tar.bz2 473015 SHA256 3390650be0e4709595d28df287a0e5902fb570e9fcb5ba992f435326bc53b75e SHA512 d49eef086d84f02106691872db6369b10cb55a6afe6f2cfb6c790330321397d66dc1aa0229d31d9e3c7b1efb6bd6c0fd9242dbb69a44fe3433233717df98a334 WHIRLPOOL 84a24153651dd9bd47e4f25012d87527b35b5dfd3b3a1da86fe0bdecbca032f5fe3c58ab1197a759058301b029961a2b5965dfb245a80cd50621af971d49a722
diff --git a/app-backup/snapper/files/cron-confd.patch b/app-backup/snapper/files/cron-confd.patch
new file mode 100644
index 000000000000..473e749d0bb2
--- /dev/null
+++ b/app-backup/snapper/files/cron-confd.patch
@@ -0,0 +1,32 @@
+diff -u old/scripts/snapper-daily new/scripts/snapper-daily
+--- old/scripts/snapper-daily 2014-01-29 17:48:30.000000000 +0200
++++ new/scripts/snapper-daily 2014-02-19 13:32:22.702734875 +0200
+@@ -9,10 +9,10 @@
+
+
+ #
+-# get information from /etc/sysconfig/snapper
++# get information from /etc/conf.d/snapper
+ #
+-if [ -f /etc/sysconfig/snapper ] ; then
+- . /etc/sysconfig/snapper
++if [ -f /etc/conf.d/snapper ] ; then
++ . /etc/conf.d/snapper
+ fi
+
+
+diff -u old/scripts/snapper-hourly new/scripts/snapper-hourly
+--- old/scripts/snapper-hourly 2014-01-29 17:48:30.000000000 +0200
++++ new/scripts/snapper-hourly 2014-02-19 13:32:43.609166927 +0200
+@@ -9,10 +9,10 @@
+
+
+ #
+-# get information from /etc/sysconfig/snapper
++# get information from /etc/conf.d/snapper
+ #
+-if [ -f /etc/sysconfig/snapper ] ; then
+- . /etc/sysconfig/snapper
++if [ -f /etc/conf.d/snapper ] ; then
++ . /etc/conf.d/snapper
+ fi
diff --git a/app-backup/snapper/metadata.xml b/app-backup/snapper/metadata.xml
new file mode 100644
index 000000000000..103a1ad2e147
--- /dev/null
+++ b/app-backup/snapper/metadata.xml
@@ -0,0 +1,38 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <longdescription>
+ Snapper is a command-line program for filesystem snapshot management.
+ It can create, delete and compare snapshots and undo changes done
+ between snapshots. It supports both btrfs and ext4.
+ </longdescription>
+ <herd>proxy-maintainers</herd>
+ <maintainer>
+ <email>pastas4@gmail.com</email>
+ <name>Dainius Masiliūnas (GreatEmerald)</name>
+ <description>maintainer, assign bugs</description>
+ </maintainer>
+ <maintainer>
+ <email>dlan@gentoo.org</email>
+ <name>Yixun Lan</name>
+ <description>co-maintainer, CC bugs</description>
+ </maintainer>
+ <upstream>
+ <maintainer status="active">
+ <email>aschnell@suse.de</email>
+ <name>Arvin Schnell</name>
+ </maintainer>
+ <changelog>https://raw.github.com/openSUSE/snapper/master/package/snapper.changes</changelog>
+ <bugs-to>https://bugzilla.novell.com/</bugs-to>
+ <remote-id type="github">openSUSE/snapper</remote-id>
+ </upstream>
+ <use>
+ <flag name='xattr'>
+ Add support for getting and setting POSIX extended attributes, through
+ <pkg>sys-apps/attr</pkg>.
+ </flag>
+ <flag name='btrfs'>Include Btrfs support <pkg>sys-fs/btrfs-progs</pkg></flag>
+ <flag name='ext4'>Include Ext4 support <pkg>sys-fs/e2fsprogs</pkg></flag>
+ <flag name='lvm'>Enable LVM thinprovisioned snapshots support <pkg>sys-fs/lvm2</pkg></flag>
+ </use>
+</pkgmetadata>
diff --git a/app-backup/snapper/snapper-0.2.3-r1.ebuild b/app-backup/snapper/snapper-0.2.3-r1.ebuild
new file mode 100644
index 000000000000..9bf8211fe549
--- /dev/null
+++ b/app-backup/snapper/snapper-0.2.3-r1.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils
+
+DESCRIPTION="Command-line program for btrfs and ext4 snapshot management"
+HOMEPAGE="http://snapper.io/"
+SRC_URI="ftp://ftp.suse.com/pub/projects/snapper/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+btrfs ext4 lvm pam xattr"
+
+RDEPEND="dev-libs/boost[threads]
+ dev-libs/libxml2
+ dev-libs/icu:=
+ sys-apps/acl
+ sys-apps/dbus
+ sys-apps/util-linux
+ sys-libs/zlib
+ virtual/libintl
+ btrfs? ( <sys-fs/btrfs-progs-3.16 )
+ ext4? ( sys-fs/e2fsprogs )
+ lvm? ( sys-fs/lvm2 )
+ pam? ( sys-libs/pam )
+ xattr? ( sys-apps/attr )"
+
+DEPEND="${RDEPEND}
+ sys-devel/gettext
+ virtual/pkgconfig"
+
+DOCS=( AUTHORS README )
+
+src_prepare() {
+ epatch "${FILESDIR}"/cron-confd.patch
+}
+
+src_configure() {
+ local myeconfargs=(
+ --with-conf="/etc/conf.d"
+ --docdir="/usr/share/doc/${PF}"
+ --disable-zypp
+ $(use_enable btrfs)
+ $(use_enable ext4)
+ $(use_enable lvm)
+ $(use_enable pam)
+ $(use_enable xattr xattrs)
+ )
+
+ econf "${myeconfargs[@]}"
+}
+
+src_install() {
+ default
+ # Existing configuration file required to function
+ newconfd data/sysconfig.snapper snapper
+ prune_libtool_files
+}
+
+pkg_postinst() {
+ elog "In order to use Snapper, you need to set up"
+ elog "at least one config first. To do this, run:"
+ elog "snapper create-config <subvolume>"
+ elog "For more information, see man (8) snapper or"
+ elog "http://snapper.io/documentation.html"
+}
diff --git a/app-backup/snapper/snapper-0.2.4.ebuild b/app-backup/snapper/snapper-0.2.4.ebuild
new file mode 100644
index 000000000000..958c013cc206
--- /dev/null
+++ b/app-backup/snapper/snapper-0.2.4.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils
+
+DESCRIPTION="Command-line program for btrfs and ext4 snapshot management"
+HOMEPAGE="http://snapper.io/"
+SRC_URI="ftp://ftp.suse.com/pub/projects/snapper/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+btrfs ext4 lvm pam xattr"
+
+RDEPEND="dev-libs/boost[threads]
+ dev-libs/libxml2
+ dev-libs/icu:=
+ sys-apps/acl
+ sys-apps/dbus
+ sys-apps/util-linux
+ sys-libs/zlib
+ virtual/libintl
+ btrfs? ( >=sys-fs/btrfs-progs-3.17.1 )
+ ext4? ( sys-fs/e2fsprogs )
+ lvm? ( sys-fs/lvm2 )
+ pam? ( sys-libs/pam )
+ xattr? ( sys-apps/attr )"
+
+DEPEND="${RDEPEND}
+ sys-devel/gettext
+ virtual/pkgconfig"
+
+DOCS=( AUTHORS README )
+
+src_prepare() {
+ epatch "${FILESDIR}"/cron-confd.patch
+}
+
+src_configure() {
+ local myeconfargs=(
+ --with-conf="/etc/conf.d"
+ --docdir="/usr/share/doc/${PF}"
+ --disable-zypp
+ $(use_enable btrfs)
+ $(use_enable ext4)
+ $(use_enable lvm)
+ $(use_enable pam)
+ $(use_enable xattr xattrs)
+ )
+
+ econf "${myeconfargs[@]}"
+}
+
+src_install() {
+ default
+ # Existing configuration file required to function
+ newconfd data/sysconfig.snapper snapper
+ prune_libtool_files
+}
+
+pkg_postinst() {
+ elog "In order to use Snapper, you need to set up"
+ elog "at least one config first. To do this, run:"
+ elog "snapper create-config <subvolume>"
+ elog "For more information, see man (8) snapper or"
+ elog "http://snapper.io/documentation.html"
+}
diff --git a/app-backup/snapper/snapper-0.2.6.ebuild b/app-backup/snapper/snapper-0.2.6.ebuild
new file mode 100644
index 000000000000..607ac4a58746
--- /dev/null
+++ b/app-backup/snapper/snapper-0.2.6.ebuild
@@ -0,0 +1,70 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils
+
+DESCRIPTION="Command-line program for btrfs and ext4 snapshot management"
+HOMEPAGE="http://snapper.io/"
+SRC_URI="ftp://ftp.suse.com/pub/projects/snapper/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+btrfs ext4 lvm pam xattr"
+
+RDEPEND="dev-libs/boost[threads]
+ dev-libs/libxml2
+ dev-libs/icu:=
+ sys-apps/acl
+ sys-apps/dbus
+ sys-apps/util-linux
+ sys-libs/zlib
+ virtual/libintl
+ btrfs? ( >=sys-fs/btrfs-progs-3.17.1 )
+ ext4? ( sys-fs/e2fsprogs )
+ lvm? ( sys-fs/lvm2 )
+ pam? ( sys-libs/pam )
+ xattr? ( sys-apps/attr )"
+
+DEPEND="${RDEPEND}
+ sys-devel/gettext
+ virtual/pkgconfig"
+
+DOCS=( AUTHORS README )
+
+src_prepare() {
+ epatch "${FILESDIR}"/cron-confd.patch
+}
+
+src_configure() {
+ local myeconfargs=(
+ --with-conf="/etc/conf.d"
+ --docdir="/usr/share/doc/${PF}"
+ --disable-zypp
+ $(use_enable btrfs)
+ $(use_enable ext4)
+ $(use_enable lvm)
+ $(use_enable pam)
+ $(use_enable xattr xattrs)
+ )
+
+ econf "${myeconfargs[@]}"
+}
+
+src_install() {
+ default
+ # Existing configuration file required to function
+ newconfd data/sysconfig.snapper snapper
+ prune_libtool_files
+}
+
+pkg_postinst() {
+ elog "In order to use Snapper, you need to set up"
+ elog "at least one config first. To do this, run:"
+ elog "snapper create-config <subvolume>"
+ elog "For more information, see man (8) snapper or"
+ elog "http://snapper.io/documentation.html"
+}
diff --git a/app-backup/snapper/snapper-9999.ebuild b/app-backup/snapper/snapper-9999.ebuild
new file mode 100644
index 000000000000..b0191f41ff13
--- /dev/null
+++ b/app-backup/snapper/snapper-9999.ebuild
@@ -0,0 +1,69 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+EGIT_REPO_URI="git://github.com/openSUSE/snapper.git"
+AUTOTOOLS_AUTORECONF=1
+AUTOTOOLS_IN_SOURCE_BUILD=1
+inherit eutils autotools-utils git-r3
+
+DESCRIPTION="Command-line program for btrfs and ext4 snapshot management"
+HOMEPAGE="http://snapper.io/"
+SRC_URI=""
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS=""
+IUSE="+btrfs ext4 lvm pam xattr"
+
+RDEPEND="dev-libs/boost[threads]
+ dev-libs/libxml2
+ dev-libs/icu:=
+ sys-apps/acl
+ sys-apps/dbus
+ sys-apps/util-linux
+ sys-libs/zlib
+ virtual/libintl
+ btrfs? ( >=sys-fs/btrfs-progs-3.17.1 )
+ ext4? ( sys-fs/e2fsprogs )
+ lvm? ( sys-fs/lvm2 )
+ pam? ( sys-libs/pam )
+ xattr? ( sys-apps/attr )"
+
+DEPEND="${RDEPEND}
+ sys-devel/gettext
+ virtual/pkgconfig"
+
+DOCS=( AUTHORS README package/snapper.changes )
+
+PATCHES=( "${FILESDIR}"/cron-confd.patch )
+
+src_configure() {
+ local myeconfargs=(
+ --with-conf="/etc/conf.d"
+ --docdir="/usr/share/doc/${PF}"
+ --disable-zypp
+ $(use_enable btrfs)
+ $(use_enable ext4)
+ $(use_enable lvm)
+ $(use_enable pam)
+ $(use_enable xattr xattrs)
+ )
+ autotools-utils_src_configure
+}
+
+src_install() {
+ autotools-utils_src_install
+ # Existing configuration file required to function
+ newconfd data/sysconfig.snapper snapper
+}
+
+pkg_postinst() {
+ elog "In order to use Snapper, you need to set up"
+ elog "at least one config first. To do this, run:"
+ elog "snapper create-config <subvolume>"
+ elog "For more information, see man (8) snapper or"
+ elog "http://snapper.io/documentation.html"
+}
diff --git a/app-backup/spideroak-bin/Manifest b/app-backup/spideroak-bin/Manifest
new file mode 100644
index 000000000000..d1671d4d5be9
--- /dev/null
+++ b/app-backup/spideroak-bin/Manifest
@@ -0,0 +1,6 @@
+DIST spideroak-bin-5.1.10_amd64.deb 20095946 SHA256 88e80b19a4d6265673f565f82bd535549846deb663d641c77074f20f48c9cad1 SHA512 e605219bb055989b4e6a118e9617c6717329b7d3f7e009a6b84cc8dc9b329130b615d1a46e346f661ba39b52ace0eb77f8b61ac13fa3b030cc6163e698151c27 WHIRLPOOL 7155a35bf98eef7f70e2b97225cb4c466621b89c87b243db185bb2d9b501b3cf924c019c3229e1bf33cb8a9c1961f866241cd6745fe83588dbd1fd480640e9d1
+DIST spideroak-bin-5.1.10_x86.deb 19453796 SHA256 6f486db4b9ee8297a46d64041aa20430e5d8a02219ab1527d569342fb0c4b7d6 SHA512 d7b2cb4fdccee60cd542871746c8d03a19d805cea532556a8fc66635a4a6cf5c6e0196b5e966d7a2952079912e27bbaf5b4c986780ae6448eced16d3e59c956a WHIRLPOOL a4e184707e891927ddebc607c4f0de27c8acecfff6b8fafa88a03b48ae348f4b505b8a6c12d507a060090a29808271439da1ee7bec5b26d32c3cbc2ca43a01d2
+DIST spideroak-bin-5.1.8_amd64.deb 20000116 SHA256 b91f3077c2238bbb1123361afc597682a9c224b9ce22422a253fe5212851cfcf SHA512 357e8a45175fd9c92cec733f456452d0e0cd7f369df66a4692d1a9b2c471b4f62c7ee9b72073fc4af5596fa18cf121c690ec960f07f686a78bc7ca4fb76838ca WHIRLPOOL 4721271bef4dbf9563df61ee1d39d1040e9e0cd0528b43753edff995ae9b7a2e67618d39f365b716be1e5a478e2042c3568776ee4077291de28ae92e6953a062
+DIST spideroak-bin-5.1.8_x86.deb 19361954 SHA256 806aae6ac96cb47443c50bfc3bc3f5f7b00abc0b5d978cc2746d10cb1f6b6742 SHA512 43242b9fcd577fc51b838de72215fa971f385ae1f6ea7c606cc198b2dacd0bbca9b693ea2452c2c957c3af6dc97625d6bd15176067542dfdcbc1505a50c8b42b WHIRLPOOL 5f88e3b699be60151471c71998b2aad2d7e5a42a1c179ccb10a168940dd4ea291f812e6d6e9eb475345b53f403aa3a09cd785759413a0cf50edc9b92300af14f
+DIST spideroak-bin-5.2.0_amd64.deb 20284404 SHA256 f9b452f891796fcd1046c4a955d2b4722b0a452b24f8ea728a30833c0a576f32 SHA512 75a96c6f6f0ec6a14255fc4f3bdad96ba54be4a4ee2ea385159c575e7b0e05bf3cfcfc4b0595a430b4a686acda3cb2674df5959d0b1a3ddc609a590d7737d94e WHIRLPOOL c6045af1101008b2ca25df4fd4d34d55b3dcda2187660f3601fbc9a6aa53c7e9ad3d59fffa954c2eb57022a46ecf04a42f39577914fc01dbe2c46c4c5e184475
+DIST spideroak-bin-5.2.0_x86.deb 19641884 SHA256 f4689dcc0630e4b46b039c64a16e291d740cc245b7507863ae5938473f504c30 SHA512 e98041b98c77e011774abe5b832c9a2ee4ecd179864bd39aacdb439f906110797f9f96e7326a394a6da0cbb88650c242da51060b501de0c379a0efdb75594403 WHIRLPOOL bf96a2cd8f3bbf6ab2ec26c532546b8c40dda09a1902075332fb2c8787af4a4a1808094fb6e7fb90f27c9da2d480b1129e235fa656c76bd1acbfd3b8bbda90d5
diff --git a/app-backup/spideroak-bin/metadata.xml b/app-backup/spideroak-bin/metadata.xml
new file mode 100644
index 000000000000..e49c3e987143
--- /dev/null
+++ b/app-backup/spideroak-bin/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>proxy-maintainers</herd>
+<maintainer>
+ <email>devurandom@gmx.net</email>
+ <name>Dennis Schridde</name>
+ <description>Maintainer.</description>
+</maintainer>
+<maintainer>
+ <email>blueness@gentoo.org</email>
+ <name>Anthony G. Basile</name>
+</maintainer>
+</pkgmetadata>
diff --git a/app-backup/spideroak-bin/spideroak-bin-5.1.10.ebuild b/app-backup/spideroak-bin/spideroak-bin-5.1.10.ebuild
new file mode 100644
index 000000000000..185aeaf6d732
--- /dev/null
+++ b/app-backup/spideroak-bin/spideroak-bin-5.1.10.ebuild
@@ -0,0 +1,94 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+inherit eutils unpacker
+
+SRC_URI_BASE="https://spideroak.com/getbuild?platform=ubuntu"
+
+DESCRIPTION="An easy, secure and consolidated free online backup, storage, access and sharing system"
+HOMEPAGE="https://spideroak.com"
+SRC_URI="x86? ( ${SRC_URI_BASE}&arch=i386&version=${PV} -> ${P}_x86.deb )
+ amd64? ( ${SRC_URI_BASE}&arch=x86_64&version=${PV} -> ${P}_amd64.deb )"
+RESTRICT="mirror strip"
+
+LICENSE="spideroak"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="dbus X"
+
+DEPEND="dev-util/patchelf"
+RDEPEND="
+ app-crypt/mit-krb5[keyutils]
+ dbus? ( sys-apps/dbus )
+ X? (
+ media-libs/fontconfig
+ media-libs/freetype:2
+ dev-libs/glib:2
+ x11-libs/libICE
+ x11-libs/libSM
+ x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXmu
+ x11-libs/libXrender
+ x11-libs/libXt
+ )
+"
+
+S=${WORKDIR}
+
+QA_PREBUILT="*"
+
+src_prepare() {
+ # Set RPATH for preserve-libs handling (bug #400979).
+ cd "${S}/opt/SpiderOak/lib" || die
+ local x
+ for x in `find` ; do
+ # Use \x7fELF header to separate ELF executables and libraries
+ [[ -f ${x} && $(od -t x1 -N 4 "${x}") == *"7f 45 4c 46"* ]] || continue
+ patchelf --set-rpath '$ORIGIN' "${x}" || \
+ die "patchelf failed on ${x}"
+ done
+}
+
+src_install() {
+ #install the wrapper script
+ exeinto /usr/bin
+ doexe usr/bin/SpiderOak
+
+ # inotify_dir_watcher needs to be marked executable, bug #453266
+ #chmod a+rx opt/SpiderOak/lib/inotify_dir_watcher
+
+ #install the executable
+ exeinto /opt/SpiderOak/lib
+ doexe opt/SpiderOak/lib/SpiderOak
+ doexe opt/SpiderOak/lib/inotify_dir_watcher
+ rm -f opt/SpiderOak/lib/{SpiderOak,inotify_dir_watcher}
+
+ #install the prebundled libraries
+ insinto /opt/SpiderOak
+ doins -r opt/SpiderOak/lib
+
+ #install the config files
+ use dbus || rm -rf etc/dbus-1
+ insinto /
+ doins -r etc
+
+ #install the manpage
+ doman usr/share/man/man1/SpiderOak.1.gz
+
+ if use X; then
+ domenu usr/share/applications/spideroak.desktop
+ doicon usr/share/pixmaps/SpiderOak.png
+ fi
+}
+
+pkg_postinst() {
+ if ! use X; then
+ einfo "For instructions on running SpiderOak without a GUI, please read the FAQ:"
+ einfo " https://spideroak.com/faq/questions/62/how_do_i_install_spideroak_on_a_headless_linux_server/"
+ einfo " https://spideroak.com/faq/questions/67/how_can_i_use_spideroak_from_the_commandline/"
+ fi
+}
diff --git a/app-backup/spideroak-bin/spideroak-bin-5.1.8-r2.ebuild b/app-backup/spideroak-bin/spideroak-bin-5.1.8-r2.ebuild
new file mode 100644
index 000000000000..c821e20a1382
--- /dev/null
+++ b/app-backup/spideroak-bin/spideroak-bin-5.1.8-r2.ebuild
@@ -0,0 +1,93 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+inherit eutils unpacker
+
+SRC_URI_BASE="https://spideroak.com/getbuild?platform=ubuntu"
+
+DESCRIPTION="An easy, secure and consolidated free online backup, storage, access and sharing system"
+HOMEPAGE="https://spideroak.com"
+SRC_URI="x86? ( ${SRC_URI_BASE}&arch=i386&version=${PV} -> ${P}_x86.deb )
+ amd64? ( ${SRC_URI_BASE}&arch=x86_64&version=${PV} -> ${P}_amd64.deb )"
+RESTRICT="mirror strip"
+
+LICENSE="spideroak"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="dbus X"
+
+DEPEND="dev-util/patchelf"
+RDEPEND="
+ app-crypt/mit-krb5[keyutils]
+ dbus? ( sys-apps/dbus )
+ X? (
+ media-libs/fontconfig
+ media-libs/freetype:2
+ dev-libs/glib:2
+ x11-libs/libICE
+ x11-libs/libSM
+ x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXmu
+ x11-libs/libXrender
+ x11-libs/libXt
+ )
+"
+
+S=${WORKDIR}
+
+QA_PREBUILT="*"
+
+src_prepare() {
+ # Set RPATH for preserve-libs handling (bug #400979).
+ cd "${S}/opt/SpiderOak/lib" || die
+ local x
+ for x in `find` ; do
+ # Use \x7fELF header to separate ELF executables and libraries
+ [[ -f ${x} && $(od -t x1 -N 4 "${x}") == *"7f 45 4c 46"* ]] || continue
+ patchelf --set-rpath '$ORIGIN' "${x}" || \
+ die "patchelf failed on ${x}"
+ done
+}
+
+src_install() {
+ #install the wrapper script
+ dobin usr/bin/SpiderOak
+
+ # inotify_dir_watcher needs to be marked executable, bug #453266
+ #chmod a+rx opt/SpiderOak/lib/inotify_dir_watcher
+
+ #install the executable
+ exeinto /opt/SpiderOak/lib
+ doexe opt/SpiderOak/lib/SpiderOak
+ doexe opt/SpiderOak/lib/inotify_dir_watcher
+ rm -f opt/SpiderOak/lib/{SpiderOak,inotify_dir_watcher}
+
+ #install the prebundled libraries
+ insinto /opt/SpiderOak
+ doins -r opt/SpiderOak/lib
+
+ #install the config files
+ use dbus || rm -rf etc/dbus-1
+ insinto /
+ doins -r etc
+
+ #install the manpage
+ doman usr/share/man/man1/SpiderOak.1.gz
+
+ if use X; then
+ domenu usr/share/applications/spideroak.desktop
+ doicon usr/share/pixmaps/SpiderOak.png
+ fi
+}
+
+pkg_postinst() {
+ if ! use X; then
+ einfo "For instructions on running SpiderOak without a GUI, please read the FAQ:"
+ einfo " https://spideroak.com/faq/questions/62/how_do_i_install_spideroak_on_a_headless_linux_server/"
+ einfo " https://spideroak.com/faq/questions/67/how_can_i_use_spideroak_from_the_commandline/"
+ fi
+}
diff --git a/app-backup/spideroak-bin/spideroak-bin-5.2.0.ebuild b/app-backup/spideroak-bin/spideroak-bin-5.2.0.ebuild
new file mode 100644
index 000000000000..185aeaf6d732
--- /dev/null
+++ b/app-backup/spideroak-bin/spideroak-bin-5.2.0.ebuild
@@ -0,0 +1,94 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="5"
+
+inherit eutils unpacker
+
+SRC_URI_BASE="https://spideroak.com/getbuild?platform=ubuntu"
+
+DESCRIPTION="An easy, secure and consolidated free online backup, storage, access and sharing system"
+HOMEPAGE="https://spideroak.com"
+SRC_URI="x86? ( ${SRC_URI_BASE}&arch=i386&version=${PV} -> ${P}_x86.deb )
+ amd64? ( ${SRC_URI_BASE}&arch=x86_64&version=${PV} -> ${P}_amd64.deb )"
+RESTRICT="mirror strip"
+
+LICENSE="spideroak"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="dbus X"
+
+DEPEND="dev-util/patchelf"
+RDEPEND="
+ app-crypt/mit-krb5[keyutils]
+ dbus? ( sys-apps/dbus )
+ X? (
+ media-libs/fontconfig
+ media-libs/freetype:2
+ dev-libs/glib:2
+ x11-libs/libICE
+ x11-libs/libSM
+ x11-libs/libX11
+ x11-libs/libXext
+ x11-libs/libXmu
+ x11-libs/libXrender
+ x11-libs/libXt
+ )
+"
+
+S=${WORKDIR}
+
+QA_PREBUILT="*"
+
+src_prepare() {
+ # Set RPATH for preserve-libs handling (bug #400979).
+ cd "${S}/opt/SpiderOak/lib" || die
+ local x
+ for x in `find` ; do
+ # Use \x7fELF header to separate ELF executables and libraries
+ [[ -f ${x} && $(od -t x1 -N 4 "${x}") == *"7f 45 4c 46"* ]] || continue
+ patchelf --set-rpath '$ORIGIN' "${x}" || \
+ die "patchelf failed on ${x}"
+ done
+}
+
+src_install() {
+ #install the wrapper script
+ exeinto /usr/bin
+ doexe usr/bin/SpiderOak
+
+ # inotify_dir_watcher needs to be marked executable, bug #453266
+ #chmod a+rx opt/SpiderOak/lib/inotify_dir_watcher
+
+ #install the executable
+ exeinto /opt/SpiderOak/lib
+ doexe opt/SpiderOak/lib/SpiderOak
+ doexe opt/SpiderOak/lib/inotify_dir_watcher
+ rm -f opt/SpiderOak/lib/{SpiderOak,inotify_dir_watcher}
+
+ #install the prebundled libraries
+ insinto /opt/SpiderOak
+ doins -r opt/SpiderOak/lib
+
+ #install the config files
+ use dbus || rm -rf etc/dbus-1
+ insinto /
+ doins -r etc
+
+ #install the manpage
+ doman usr/share/man/man1/SpiderOak.1.gz
+
+ if use X; then
+ domenu usr/share/applications/spideroak.desktop
+ doicon usr/share/pixmaps/SpiderOak.png
+ fi
+}
+
+pkg_postinst() {
+ if ! use X; then
+ einfo "For instructions on running SpiderOak without a GUI, please read the FAQ:"
+ einfo " https://spideroak.com/faq/questions/62/how_do_i_install_spideroak_on_a_headless_linux_server/"
+ einfo " https://spideroak.com/faq/questions/67/how_can_i_use_spideroak_from_the_commandline/"
+ fi
+}
diff --git a/app-backup/tarsnap/Manifest b/app-backup/tarsnap/Manifest
new file mode 100644
index 000000000000..bfc3b6724ee3
--- /dev/null
+++ b/app-backup/tarsnap/Manifest
@@ -0,0 +1 @@
+DIST tarsnap-autoconf-1.0.35.tgz 600115 SHA256 6c9f6756bc43bc225b842f7e3a0ec7204e0cf606e10559d27704e1cc33098c9a SHA512 70f932b172717d7f0d6f96a357487b8f8ad13cb7332d73878f629c3abf0862da54a0621092d81ce8cd9eb8380cf5b4c32e89df4d890949429fc84737024dcb61 WHIRLPOOL c6fb8837fd3845aa037bf38852f16e5fbf74fbd5f8cf9581e86f595b30a02d7d2784db781c2ef3771da83373d4ec9d6a93e8c7d9970a68ad052dcfdb7d79c8fc
diff --git a/app-backup/tarsnap/metadata.xml b/app-backup/tarsnap/metadata.xml
new file mode 100644
index 000000000000..21d94b20d66b
--- /dev/null
+++ b/app-backup/tarsnap/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>gregkh@gentoo.org</email>
+ <name>Greg Kroah-Hartman</name>
+ </maintainer>
+ <maintainer>
+ <email>rafaelmartins@gentoo.org</email>
+ <name>Rafael G. Martins</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-backup/tarsnap/tarsnap-1.0.35.ebuild b/app-backup/tarsnap/tarsnap-1.0.35.ebuild
new file mode 100644
index 000000000000..375c60a3cbb0
--- /dev/null
+++ b/app-backup/tarsnap/tarsnap-1.0.35.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=4
+
+DESCRIPTION="Online backups for the truly paranoid"
+HOMEPAGE="http://www.tarsnap.com/"
+SRC_URI="https://www.tarsnap.com/download/${PN}-autoconf-${PV}.tgz"
+
+LICENSE="tarsnap"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="acl bzip2 lzma cpu_flags_x86_sse2 xattr"
+
+RDEPEND="dev-libs/openssl:0
+ sys-libs/e2fsprogs-libs
+ sys-libs/zlib
+ acl? ( sys-apps/acl )
+ bzip2? ( app-arch/bzip2 )
+ lzma? ( app-arch/xz-utils )
+ xattr? ( sys-apps/attr )"
+DEPEND="${RDEPEND}
+ virtual/os-headers" # Required for "magic.h"
+
+S=${WORKDIR}/${PN}-autoconf-${PV}
+
+src_configure() {
+ econf \
+ $(use_enable cpu_flags_x86_sse2 sse2) \
+ $(use_enable xattr) \
+ $(use_enable acl) \
+ $(use_with bzip2 bz2lib) \
+ --without-lzmadec \
+ $(use_with lzma)
+}
diff --git a/app-backup/tob/Manifest b/app-backup/tob/Manifest
new file mode 100644
index 000000000000..976bde8f9886
--- /dev/null
+++ b/app-backup/tob/Manifest
@@ -0,0 +1 @@
+DIST tob-0.26.tgz 107711 SHA256 d05af81cc4316b7e34660d78c0dad7f7a917434e7822b6ce6c156d8c11cd25e7 SHA512 4c570388d3dff6c240a36492c05f7248a5efd527235b45238731db4972ed3fd10b8e3e5632768f16214bafef5e27d7796ada253ce9e3cfb71d182d1c9516b9cd WHIRLPOOL 35799605ed95ca50847a9d6009253574315f69a28f82095032bcbfe1e7bcaa7583e5de50c7216143fa1ed470a4f4a912c80b45e0c249920ab475e399b8a07713
diff --git a/app-backup/tob/files/tob-0.26-nice.patch b/app-backup/tob/files/tob-0.26-nice.patch
new file mode 100644
index 000000000000..d488a27a19cd
--- /dev/null
+++ b/app-backup/tob/files/tob-0.26-nice.patch
@@ -0,0 +1,11 @@
+--- tob.old 2005-02-13 17:46:00.000000000 -0500
++++ tob 2005-02-13 17:35:43.000000000 -0500
+@@ -314,7 +314,7 @@
+ fi
+
+ if [ "$NICEFIND" = "yes" ] ; then
+- nicefindcmd="nice -19"
++ nicefindcmd="nice -n 19"
+ else
+ nicefindcmd=""
+ fi
diff --git a/app-backup/tob/files/tob-0.26-no-maketemp-warn.diff b/app-backup/tob/files/tob-0.26-no-maketemp-warn.diff
new file mode 100644
index 000000000000..af346d111353
--- /dev/null
+++ b/app-backup/tob/files/tob-0.26-no-maketemp-warn.diff
@@ -0,0 +1,12 @@
+diff -u tob-0.26/tob tob-0.26.new/tob
+--- tob-0.26/tob 2003-12-22 01:25:17.000000000 +0100
++++ tob-0.26.new/tob 2004-03-20 10:30:09.916597016 +0100
+@@ -61,7 +61,7 @@
+ ## 16 May 1998
+ ##
+ ## Smartened up by Stephen van Egmond <svanegmond@tinyplanet.ca> 2003/10/30
+-MKTEMP=`which maketemp`;
++MKTEMP=`which maketemp 2> /dev/null`;
+ if [ ! -x "$MKTEMP" ]; then
+ MKTEMP=`which mktemp`;
+ fi
diff --git a/app-backup/tob/files/tob-0.26-scsi-tape.diff b/app-backup/tob/files/tob-0.26-scsi-tape.diff
new file mode 100644
index 000000000000..4628d8a8f417
--- /dev/null
+++ b/app-backup/tob/files/tob-0.26-scsi-tape.diff
@@ -0,0 +1,12 @@
+diff -Nur tob-0.26/tob /tmp/tob-0.26/tob
+--- a/tob-0.26/tob 2005-02-27 22:46:15.701964928 +0100
++++ b/tob-0.26/tob 2005-02-27 22:45:41.091226560 +0100
+@@ -219,8 +219,6 @@
+ if [ -d "$BACKUPDEV" ]; then
+ BACKUPDIR=$BACKUPDEV
+ BACKUPDEV="${BACKUPDIR}/${VOLUMENAME}_${DATE}_${TYPE}.${EXT}"
+- else
+- BACKUPDIR="/var/lib/tob"
+ fi
+
+ # check that relevant environment vars are set
diff --git a/app-backup/tob/metadata.xml b/app-backup/tob/metadata.xml
new file mode 100644
index 000000000000..9df351b326cc
--- /dev/null
+++ b/app-backup/tob/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer>
+ <email>maintainer-needed@gentoo.org</email>
+ <name>Default assignee for orphaned packages</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-backup/tob/tob-0.26-r2.ebuild b/app-backup/tob/tob-0.26-r2.ebuild
new file mode 100644
index 000000000000..f124a80af832
--- /dev/null
+++ b/app-backup/tob/tob-0.26-r2.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit eutils
+
+DESCRIPTION="A general driver for making and maintaining backups"
+HOMEPAGE="http://tinyplanet.ca/projects/tob/"
+SRC_URI="http://tinyplanet.ca/projects/tob/${P}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc x86"
+IUSE=""
+
+RDEPEND="app-arch/afio"
+DEPEND=""
+
+src_prepare() {
+ epatch \
+ "${FILESDIR}"/${P}-no-maketemp-warn.diff \
+ "${FILESDIR}"/${P}-nice.patch \
+ "${FILESDIR}"/${P}-scsi-tape.diff
+ ecvs_clean
+}
+
+src_install() {
+ dosbin tob
+ dodir /var/lib/tob
+ insinto /etc/tob
+ doins tob.rc
+ insinto /etc/tob/volumes
+ doins example.*
+
+ dodoc -r README contrib/tobconv doc sample-rc
+ doman tob.8
+}
diff --git a/app-backup/tsm/Manifest b/app-backup/tsm/Manifest
new file mode 100644
index 000000000000..7bb8e27e1ec3
--- /dev/null
+++ b/app-backup/tsm/Manifest
@@ -0,0 +1,70 @@
+DIST 6.2.2-TIVsm-msg.CS_CZ.i386.rpm 4786763 SHA256 c4809d079dd3ed9a205d4ff5223a17fda4e768c789b1b604a7689604d03728a6 SHA512 f4e0d80f469b1f31926cd6c2dd37824d1c1be1ce71ec09d94eae37ffbab93db5173b885517eb133f5415252257d3a5832f128834170d19eba0492d6967c698cb WHIRLPOOL 0f790faf458ec8409bf658b0ad54862f3012376c44e71d8498f81088e68c04ea0568d01fa771d784d68099e93e8cf059023c2419e0660b30f8acbff38aaefa70
+DIST 6.2.2-TIVsm-msg.DE_DE.i386.rpm 3425013 SHA256 b6c7291000b2f1fcf8fc0f890f68a7e7c156a0737514e9a538b21ed3a46b5cf7 SHA512 d1b3711180917a6c6905946da7a174b0e482371bef7fe8bdf6495ef25c913f9e70cf952b4c8f45160be4e8c6a457e05e4625b6668c731b65add09729a25dbcb1 WHIRLPOOL d9ee04f30777057fd909d5b34a2878ccc5932b1595ffbc6f29cad6d8ce2985f488c5ec1381e60d93f6cc662063b87321918d204245b121e3da46a4404328d9f5
+DIST 6.2.2-TIVsm-msg.ES_ES.i386.rpm 3508913 SHA256 f87be48ed758431e3c589e1e0a4b3e8d676253322a586134113f09b0a8db0335 SHA512 aa64768a0137bbaab8f8563ab46db8e58fb13f131ea5ce9bd556fd56fedc1c60f57f85d460de161942575663ed0d2d843a281df9aa40ee00020ba057ba60329e WHIRLPOOL b19f6304e65fdcc478f02cc29dafc5939aa21fb4b62e725f5a5e8944f2c1eac77dbf65d2e66c5d306ec932f711c22a812eb8283a4cc71f8f70593b4786060618
+DIST 6.2.2-TIVsm-msg.FR_FR.i386.rpm 3423427 SHA256 7011bab07942fc8a4f9afbdaab3d76b84494498de5557df2dd17983a4035fc52 SHA512 bed428a91272e2ac35e79cd77ac65452062ec9128a23f3851fddf6f21fd8b99778510c6643abbbadc9298a9619f2e1c2c4fd2344e8607bdb8935b7663d855994 WHIRLPOOL 76035c7d8f01f2af59f03509b48b4491e2f30b1fe5a2588583ad48b2413d774518e232c629caf64be522f9a1877aef7b03c46e92eed78aa22fcc97ce761798cf
+DIST 6.2.2-TIVsm-msg.HU_HU.i386.rpm 3394821 SHA256 a9fbdbcbc4c1a34eb1525b275b8a1e5282c7fc15ce8816559c8528dcc750f3b7 SHA512 8ba56048f697c4e4fc8a254ea745e8b22d9ee704d5d3ae3d143ec13f570077a7e057ec35b2c11eb919b7a715aae52a84571ddb47fe523da4c15a81408e474ca1 WHIRLPOOL d1af4c91eac728e41e94d8985c5c2bf613bf879efc031c69e26a2f136b19c4c50108532dba6e35bb5e0b3eb71961286e81cf2a7e9c35450716a3f3659cb172d8
+DIST 6.2.2-TIVsm-msg.IT_IT.i386.rpm 3255530 SHA256 d7b53fd8e6c3e43e2d55cd91bc20dda9877f2b158589a4b3cdb676f88b93e93f SHA512 fa2b20e756845333d58d20a56f58976e3c1cdf9ac74a07d63e970eacd61264ebacdcb5059c68bb20a3cc6a71ab93bb59424ca9f0550d782fd84a83a48cdd164f WHIRLPOOL a0524234f87a3f37a150170d1243870f8f8a76c9b5778c7999634456030a45fcdc7d0f4aa6178a62e6d0fae04a63a841281fca25465167285fbe9c49d637a660
+DIST 6.2.2-TIVsm-msg.JA_JP.i386.rpm 3407675 SHA256 b4312b5309a07c6b4a2257472812d2af9fe2232d69dc9370386681145d9e338d SHA512 f09784bb8f61043356e137e36e944692aeedc73993111ae79f57a6d9c9d685fec7c48996b2aed551875d887213878251e511704904e95e5dfa36cc03abeba613 WHIRLPOOL 7ae279ee94af8eaeab3c3f4441420b78fbc4a0ad5b31daedcc660d597406b798f287d3d028fab9048d587335de2887359c0141310acf0ae8f7ab982beacd12c1
+DIST 6.2.2-TIVsm-msg.KO_KR.i386.rpm 3329551 SHA256 c663f1ecaa145bc0ebc27ac6c1057841007479bf04c1b341d0be934f8b521c62 SHA512 f8ead5ff8ac47e16703042ca562ce83cb83a077cb0e2b45db28603e5cff473a4f2615b3283ee512eae92652a399661b60f1c44abab18ab5f14142f7fd85bfb4a WHIRLPOOL 60df7e216297f13d4579bab11355122b17898b705c52a015836bdc419bf6a7944222deae289da3a5d2b2f61bb81fc48cd7c2a3d28479ae876efe48fccbaa79af
+DIST 6.2.2-TIVsm-msg.PL_PL.i386.rpm 3070981 SHA256 c0f6f27569caf0a9478e75bb47584a100037a710c0c9a122314eadeacae29c76 SHA512 897cccdf4505da25e2cf810f4604a2492f32808a199d505b4ca142af5ac8f12fe27981d05a90aa33cc682320c8b8083b9ccdca4a88a97f86e5b64618ad6c8565 WHIRLPOOL 0187d55b0802845592b802b77c153b0fd39654d9d7c36100f42189d5fee5b8c68917f1f6a2a1a8fa411724185189a76e81a9a7427301e243ff514a427ea38517
+DIST 6.2.2-TIVsm-msg.PT_BR.i386.rpm 3390041 SHA256 fbc409eaa6b2c40a67165d0f512027317548f7e058978e147cfd9a1dddc601e0 SHA512 5ff3778eae87354076f999e86dea87e8f757ed3156e81371b085abe94c0a4dd6b38f69aa76dfda3661b5336549db8f74982d09abc9c92d65d7801b9ad91e0c65 WHIRLPOOL 8ce3dd31273b5df515ab832fb8223ee59ae435a9a80c7b4286c72f839b8113d2b80259ffe5a68ed11860c91b532f94445d62a8218ba03567118e03bbb74e0558
+DIST 6.2.2-TIVsm-msg.RU_RU.i386.rpm 4222991 SHA256 20a28cdb598b273569071f997ddad0d56e81cc7e3453cd55ffcb851f03afe75f SHA512 f21f8c314b596b4c472f5d0502b10911fea9c3e21439a706c6726b73ebee2a53eb958380fd589a12feef6cb311f10a5e60b4441c8cca4de5c7267ab070c3b5ee WHIRLPOOL ac8fe2ef9c0d2d1084604ff697518f8298997aca8ce0d27641f2ee308e7699134976c3445dcfc812eec892abe7c5aae9611fb4c4f5cc709b19913b76c792e2ba
+DIST 6.2.2-TIVsm-msg.ZH_CN.i386.rpm 3030842 SHA256 6bf834e71053ad1264ce7fb631679664fe1ffd94690ff1d8f62da056c6b5cd15 SHA512 3331d0ea08451415641b34566117c4c91245796e58a3bc85270f952bed8d866973e77158e34f1f8859fe4f8d62010a1370de3fa6032660015a2ad726c66f9723 WHIRLPOOL 26fd7ab9af26a28f603d34a4ea74dc4116ae4b2b98abef8d4d8ed3eba03ee8383c72985b41d4dc1618410da9070189ef05766394afe66bec12e8d684481b0518
+DIST 6.2.2-TIVsm-msg.ZH_TW.i386.rpm 3151673 SHA256 faa2fc951cbf1ae28b98b286030ea54b48fd4a4252aeeb035ecee63a2403b3e9 SHA512 20511841192c624e5a8a608f632baa27f8d331e69e178f33d533440b6bc646d08737210dff6a7c3458bed7fe730903fe7cbd1cdc6ada757cb2b680d127959edd WHIRLPOOL b6139b5e4887b74fd43dc4b33388d9763d61cc53c1219478a9c593ff4b697fed6695e9d53bad1836ba82d89936531b6782d151019d969a26d3ff8a39c2414ec1
+DIST 6.2.2.0-TIV-TSMBAC-LinuxX86.tar 102215680 SHA256 6c1883a34c38ade6961ffd6c6837fd82051edfa97bce19b7ad76ced4c2683b7c SHA512 be981b57e859943650d09bec2176ccac89b88861ba8d97182495b0d86ce50f491a893c6fc930b6de70c4594b8a3d78a0a2f05ef11d6cda137f76ddae9d1524fb WHIRLPOOL 94921b4dca1a58458bc882ff69e9a2055fe22d32208c2bb9aea9dbaddc3396890c7a4002b569a80d905b5b771b0255d59ab080129e304c4d135c1e61d8fb8e52
+DIST 6.3.0.5-TIV-TSMBAC-LinuxX86.tar 127825920 SHA256 8af4112da3450865af2db4cfe3ac0c50aeaba41c7b5d648e44bf169172ebb471 SHA512 92e11084481beeba3a35b6324fd3afc557aa28924f72a34710f8a62aff41a8397a5886919777ff9868384dabc3fd3d0c4290f38ea0b8962fde084b13e9430947 WHIRLPOOL 69f8eb3dbdce913c0f9c9cd35d35c03d381b3fd8709d8e44a8cef35b32b3442936a71c2494051153be11471e4b346de0c3a45a13c554f7ebc058697ef673b575
+DIST 6.3.0.5-TIVsm-msg.CS_CZ.x86_64.rpm 4957692 SHA256 84748fb6e95717322dcfdffef04ebc39c31a73428f027f23bb828f4b739bba62 SHA512 bad32bb3d0faa75c696506d191e1af97efbf89d9109a2c11e065a8e21c2d0d3dc499faee1845031311356275fc6508f1ad85b0f9057feace7ba8751c4eb4e21e WHIRLPOOL 2f53fd6c5ef333ca1cdfa1b58a9ccbd8571b65851b20b89160b7d5d8e5cd3879560c5ee270c90d88630bcc2940eee975147f2a3cc9a1dec6f9fbd3216ac703b8
+DIST 6.3.0.5-TIVsm-msg.DE_DE.x86_64.rpm 3593003 SHA256 c589e5267726f8e660e0c82136d2d25d5505dc58ece6e43440a10d5abed2ab81 SHA512 4b55f8a68fb9344347c42877f225c8af583224aa644c0c3400a9f4ce256b00f0eede58b34e801301b53d2daca3a6ae2e1f4750293f016d27e1df697d940865ba WHIRLPOOL 53021f3c52a6c5c9b8fa5aefd7832a07aa718ea5ee0207817b7cc9ce508afaf7619b834336e4c55be4d7a75938a05d7bbf3d95d74d039ee51bec07efe209b5a9
+DIST 6.3.0.5-TIVsm-msg.ES_ES.x86_64.rpm 3677528 SHA256 71daff8c141abfdcfd9b7d032fbc7e88fcee9f466c52bb803d8d97b9cefc5289 SHA512 280fcc5407ba1d3b1446a20fbe56fc9ccaa3af460787cdedbdc8d172face488357d766387b9b6f2c10658479177bfb7f78f34c637c46ea15a04a45fd18e0035e WHIRLPOOL 98a74fa2f028e4d72a904e0b1ec0b9b998bba6cf59cbc790c11da6162ad9357516bebae93495883df22b9e766e8c0cca8bc2433e5ae16ab0df5d30ca65e0662d
+DIST 6.3.0.5-TIVsm-msg.FR_FR.x86_64.rpm 3587890 SHA256 6386c6cb1c8cb0d68a14a724667d630268ca720295faf42dbdee631794cdc066 SHA512 37dea2f813bbe5d73c0af11c1d3739f1f64ed89ae3c437bddb71a1224d238fecfc0d1fe76327dfb4bba4d1765c69e253b687c8fe24abaef6bb7fb8fa178aa35e WHIRLPOOL 1b53541b40f750cea0328ca6444c557d95627f60f8f6eee8495fb8fc29247f20a0d15e534a349887cf269437b3f45201924305ed86e1bf0ac21a8b840f958ee1
+DIST 6.3.0.5-TIVsm-msg.HU_HU.x86_64.rpm 3564140 SHA256 a17cc788e332dfbabd11d495d08ea80909f6291aeb825fceb128219078120894 SHA512 3b55e559aa11b6298083409c57e7806a81ee2456cc41a97532a2192e43acf2a36ef320202e1996b97d2d17295b49f08fc61040d5f65e1cb40a6e1f7822d197bc WHIRLPOOL e1e94a1638ff518df55cbf875bf1bf464eb2d2c12889d0472322f7d472bebb074ba8285d771ce5f7f30897d754cb5dc23d4b3b8227a68f6a66fe4fa02d4df980
+DIST 6.3.0.5-TIVsm-msg.IT_IT.x86_64.rpm 3427870 SHA256 d70a1c8054958b9b1e0d57049d67148935fb1dbbedfc2b3a7b6764ec92b8051e SHA512 d0f291ad1556f9311d79b100874cb3de6a138776e274b315356db74dbec9077ff421b28eddf66dbe3d261848d6edd6e95971ec5859d837989bec750b546c7570 WHIRLPOOL 2b76d77d9ff984ec6fea80bd4ad5cb3a861afa167599f7ecaefeb2f896868cb713822a3a364cf0549dcf4e44b0c571f62d656a75da462193579762fd7413531f
+DIST 6.3.0.5-TIVsm-msg.JA_JP.x86_64.rpm 3580019 SHA256 648be20ea32c5fc2b5af98e693713ebeb695c3fb494cd8ff5c3c7ce4e5e637ad SHA512 3b6545e138bca07219ef6783a0545804a13a440355c403f0a65616b744f53f1b781b9e2797f5046020157e38175807a33ed5d45369608b1e7b827e1006bfea83 WHIRLPOOL 3e039bb0dafae14df0b12dfc30c8ae1226f03c4d8c2e6c03eed96f6e801b47fec2dc12af455bfbf4feb8bf662b79ed2ca6b3b7174b0f8a72c178215b856658f6
+DIST 6.3.0.5-TIVsm-msg.KO_KR.x86_64.rpm 3504580 SHA256 1b14ce3c7f1bac5f21be49732ea6850253b9eb804487588972ec3502b2a2c476 SHA512 1a2fb602172669f71f6a6a5294cc64965e5456c673faf6d1b5a5f256fd22f4c666eabf29581e563b11dfc4920fee029978d5e916388fc77eacc051f158d4d982 WHIRLPOOL 2af539428ded41dbe45a35e55cb7ec03360d32fce036686f9cfcfd7bb23b24262a00e7ae926c9e3f6ec2f5c78326e6119e7710525bb0f6f1127928cbafef3e15
+DIST 6.3.0.5-TIVsm-msg.PL_PL.x86_64.rpm 3400196 SHA256 f963c78e2224e5e794b0d3a503d0f18c556ae42c4cc09f3503f3861d27c6f517 SHA512 0e55380909a9aabf3cf86d8f8ff014eaac1ce4a8f7fb6d9481c55039ff1fd3014e50a35ff9ef680ed4c2bf5d2ed5653de30c674d2d388cfedad270676103ea89 WHIRLPOOL 5759c8a7c223c0c9be61f07f323698d9234897abc7c5889420f8d17b767962b668120d10ddb63833ab37baf41629e278f9555d0d2404afd87a8bd2add66f5007
+DIST 6.3.0.5-TIVsm-msg.PT_BR.x86_64.rpm 3561746 SHA256 42e23440cfb9a7e17e222a9af5ef0e99a745fb103bcc1de2039683b078e12b46 SHA512 dc73ebe5216c6e09fa81e400832e6d08ee1a8a9b94c9b1a05b0b88f03f824c0ff640d8604210d3c99abf5825c5a57d2cca2ee9e9c592149e8b55807e9172dd4f WHIRLPOOL 7881db42705c0039139668c1100180dbef52d2b1075f38163c3344c0ad3d29524a63d3d1680866ced2ed0f48d89e52ba057b2970edf3ac96712d955d10d648a9
+DIST 6.3.0.5-TIVsm-msg.RU_RU.x86_64.rpm 4287820 SHA256 1148791406a0d946d9dbe08e77c439d57c30ad1c72fd5aae913b90c16900c0e1 SHA512 3b0f970274fc97188c56fe2afaf16d166543224743f9c3574f22273801ef0b6c54fefa690a82758e4cc0b2f58ce17ddde8f6c5978fe25ed4c18b51ae35f8bfa4 WHIRLPOOL 6b2fb7a9d538c9c942fd8643cabd519270d791404eefc03cfc41c79608fc451f5e4aaccac4fd0a71f401f37e67a06a084c11fd4f5890939181a8d2ee3f9b3e33
+DIST 6.3.0.5-TIVsm-msg.ZH_CN.x86_64.rpm 3213684 SHA256 88a9f99ebb306e5e40c6e56398b43640fe0c56cdcc7db21a026d78ff8ec540f1 SHA512 ed3405844cd7c38143c45470492cf832cd4c20697663277aa4f325fa3153e3eae8bf110bd5d66c216a4bfcba380cc6936bf0fe52a1a86ad1567bb4a2f2cf4895 WHIRLPOOL d6c2fc84f88f01cf865ca87347df0306b66a6c7e7f0c7c63b17b75d04e702d6983be553e3463ffc4fa58c748ad571278589b28849bdc2df65afdf43ce1ce7731
+DIST 6.3.0.5-TIVsm-msg.ZH_TW.x86_64.rpm 3321809 SHA256 e316f5a63bba7d966467331365d3b2816461aa34aec3df0a42a7357227604e3d SHA512 9ab0a568a1dd961bb313e3daeed05f584ec700ce7fea03e80e6321c3b4cf7953f7b277c0c57146ddb237ea430b69f77ec0521dd4f8ab58433311d28df76ebc27 WHIRLPOOL 28a53f8be264a94d7ea3b9b9d2d4c14bcf8f6c3339047222e62db54368ecc0b38a6bb91f97ba972acfcad10cf5f7ae8efd8addaa34e3b28796397ecd2555a3d3
+DIST 6.4.0.0-TIV-TSMBAC-LinuxX86.tar 128419840 SHA256 0e1ad405b73ae377ba20ac8fa3191d949a7e14da0dca630dce8aaa295e4e1bda SHA512 bc231edaed221d9fe98bd436498e08f7fdc437a4416dd1e857da86d5840de3f1798123afa888d7fdb97b4036215eeba740cdbe13719dd0e494922574ab27065c WHIRLPOOL 9bc897987e1f41c5a3c6ec4cd9b2b31494ecf20946a22ad7e4fd6181d7979a28af68f98cca7b24a9be0d7d8a9b0c1e18a23127b2bdcb5213c721115c98d85283
+DIST 6.4.0.0-TIVsm-msg.CS_CZ.x86_64.rpm 5074105 SHA256 d1ce5a86c37788403a4ef7c97f7ea1b63b9c0c734d25e1bbe58722fbd4a574d0 SHA512 3d0a92cc9d739124998c26d136ab1d2694ecf7b8c574588b5f270dc66319165e7e14482215a6af82dc7fcf30f55054e4b15003d579fd7c1f70860aa976ed6b58 WHIRLPOOL 72768ab1ad537d8b5a428a81253b7229744083e99b7255f5dbc8c7719bdbbb7488be0441d1412923908d895f9110da0def9a026e007afde9a3ea348f554e0927
+DIST 6.4.0.0-TIVsm-msg.DE_DE.x86_64.rpm 3705462 SHA256 a5548d40a63d8fc526f9185737616eb4cce2a6d8c52c12eb7f66410920f57f97 SHA512 f700130ea993b9e6c318bf4b3c10d95d934d971c36f0d277fe918294168709ba10885966d81a277ff43debdfc7b1203cbc1451e903c75e3383c2620cc8685e9a WHIRLPOOL d8ab7799c1ab08f32bdff608b0d0181d6455fded4d6a5f1cd0110a841af30aa47f5439e63686290445584c1f0d0542d0ec9b9a3f6f3dba8bcfb869801095638e
+DIST 6.4.0.0-TIVsm-msg.ES_ES.x86_64.rpm 3776839 SHA256 cdf77b6e61c0809559a5fa8613063cd298205c012b1a68576afb3e8f565f4c31 SHA512 7db69a5dfe5abfcde59fc145151b3a30b4d741dd1929d6cfc62e94dfe6f0d016fbb81b1e13773b2419be291482085982bf6c21a3fd8073013a61bb3d48d5c10b WHIRLPOOL 786ed890fc25ee6eb243be0903e3a789c0359caf7436fc18b56d6bf05b5ec13606d9146da197ea0ac47afc537029e590f285df6ee99f9802f80204f035b4c3e1
+DIST 6.4.0.0-TIVsm-msg.FR_FR.x86_64.rpm 3695598 SHA256 f87e66363a0e14cfe5cdbd592dca32f96e8c30fa084df5aa4f81b2536521f1fe SHA512 3bbacd133aceff76cb494fee7f25bc0a19fdb2c8c50e1811f8c4d48c416d8539c7587228fc1f9d6e363f79d3f28fc9bf56cf23b49fef56e9a91c926071be136c WHIRLPOOL d0cf98cd500152c4552ee1c597133d66f42d09186bbc5e826ad07aa9d78a6a4e030169c7d461f916d140fc0e2a08209650e11b3e6a4840ed2c60919e0cd9aeb1
+DIST 6.4.0.0-TIVsm-msg.HU_HU.x86_64.rpm 3690706 SHA256 64325f79b585ab5068936cf9c8646024b34c4ab5bff16781f096a2520ebcc5a8 SHA512 fd9727213409ca17aed68a2bac3127d0bb6f7270ab76e719f301ee3ebeb09a6198a66fb9fd929daee5905ea2194551f7c26e9a4b52f697ab3d3ad3292648fb48 WHIRLPOOL a111856e2861331cebe25f79faf5898729f784ee5aa68089bf779cefc614a65b0724373f8e3191928ee65fd07457576c6908118ce092e4412708f04ca12fa2eb
+DIST 6.4.0.0-TIVsm-msg.IT_IT.x86_64.rpm 3536168 SHA256 bcf08a0ed7dc5f0f13babb1cd037e2c900a81ca1bb39b77f839a17536555e16c SHA512 d379b3d1bfa7e16a42b9418ce81ecd156209cfeb59a0bd7e5671e6b15fc105c486b1e946bbe875c7718327aed2ff8901e0cd65d22c4bc8bc685a1076bf622fe3 WHIRLPOOL 4eac0b64fcd62fffa1272db367562ee1922e4f889544889ba5fa2c28fcede3c0e4d2ac93fcb568363cbb517d94eff2d11625971e04c5c8a7ec82a33e48707383
+DIST 6.4.0.0-TIVsm-msg.JA_JP.x86_64.rpm 3704920 SHA256 9588f54e02919a911dafbbc0077edf758c77349d2ff91e7855f6932aa66fe608 SHA512 4b3d422184ac2fb66e5185d989110700dfc30c5307a097f33512cf64dd9418fdc9461fd732dab861b193bed5e209feb59d55cf86fea0b4b96b2c06be14ccd185 WHIRLPOOL 19a0db7da2a05b8b2297a5da56aaa6375c8a16b860b8556939273718be18ec795d3042271c5cbaae26f69481b4c14242884ca57eab07920352fd52d87b4d4909
+DIST 6.4.0.0-TIVsm-msg.KO_KR.x86_64.rpm 3364359 SHA256 a3138e9ddb08acfdc9c366cac4bc77f42148dbc6f51c282316d89f17e78fef0b SHA512 8c3a389ddc9b2fcee01088d4fbffae6f77c06d76a8da251942173214fce81206bc8073ec7ac161da32683064a7687d2611973604ccceb7cc10bcf10dd21cfb85 WHIRLPOOL 232dec16a4c4f15aa06589549fd95632016c6a4b1249d4fc5e529001ff3f1114646f22e84dbd8dbf951e22dd79922b73c440b35443d2826e517f53e8f89f8e13
+DIST 6.4.0.0-TIVsm-msg.PL_PL.x86_64.rpm 3521618 SHA256 525644bf732f27ab4246c94ccf6a13060c886ef99fa3fcb332f27c8ede87a8a9 SHA512 3c05bdde1de1fa353103261501923b6cc3c7a4208670ee10881bc05d229d1f6b641b6a8d283e59871565abbdb32a2fd68c0193cf79afd97b562452e1d5029e08 WHIRLPOOL 4bb9c4829658d72cbb3aa8d4995e4d7f623dbc7fdd88ab97af0f8a3916baf69f6c14c72f994fffa6dbb41973371aa7779da549a8fd841cfe91133aa0a6362a52
+DIST 6.4.0.0-TIVsm-msg.PT_BR.x86_64.rpm 3688190 SHA256 d0df3e3dafa753e1c20f42834127c2c18ab0f91909af60164a55a6dcdf207add SHA512 bc40bdd8cecc4fcc10e506277bc4d953b3d2e2d855d205f063983b5fec625e5e0f3db3b3fb7fa9eb97562731846a2eb86b0c9f736f111ea8fe7c55a730894d6f WHIRLPOOL a32f761b5faefde2b4c5dc2e8adc6b2732021a68e8896df6f784a1211471a4404dea5e4ac2b9d5026b2e2e015ac8bdd1b74bea76b54ebde1c3cf0b77edfb143f
+DIST 6.4.0.0-TIVsm-msg.RU_RU.x86_64.rpm 4524276 SHA256 38ffb6924914c733642b73517115f4a08ece0b65867b2b72eeeece5fbc387ff4 SHA512 0a5132d236d3f69559a3b851002a51f308defd45b4ff08d53b7604311c41b3e99007e9c14c30bbfc24d14cc4581f652aa5bece0dc2ddb8ee040b4be84b0595a2 WHIRLPOOL 3903178db9ec62194710679d6e716d8fb91ef4259177dddce183e1a0ca8054a3ca9463b09eec780eaa695a1219ecd7200c5b6231736d65ba3fb07da2d9cb8852
+DIST 6.4.0.0-TIVsm-msg.ZH_CN.x86_64.rpm 3295321 SHA256 baec6e1493ad4f3c7e3dc91216a6ec009565333b7c95dea127536927b3a9b67c SHA512 20c125024f858bd953e8eb02d4d640f304fef8036f3a7c3a27b80ff68dff5c95629cbb57c4905101420caa2486ff167f3241e74d4c62cbe79a2bc83103826fa6 WHIRLPOOL 818f31ee2391954ef9b3192985401916ad55ff398854e93f6165beb744691b5a89d8614b4e5c5c1e0296763d0ddde13bed86f3522d624a1f7b54ba3fd6a87493
+DIST 6.4.0.0-TIVsm-msg.ZH_TW.x86_64.rpm 3406128 SHA256 a963af329d2f292694c22b635a971f41718b0c2f0a3fa179ba824a523fbb802b SHA512 75d23577881d5bb105cdac0349f2046473e0705f48e27fc1741dab2e30d4db6e3a75d061b1428fe681550812155ec54297c404f3598aeaca8d61e53fe2b31a49 WHIRLPOOL adb5f63ef4c4336005c95a4c9d7bdb2a1b6a51ba7aa17aad21d769276085d4dbb718c692fc19b2dbfe40c661b368a47053d519afcd8c92c77f41ef96ae7699c4
+DIST 7.1.0.0-TIV-TSMBAC-LinuxX86.tar 99133440 SHA256 b0d48ddd3fb8613c8cd55dcaa2fe779dcf292779abaa252f46f63b7d466bc0c6 SHA512 ff1a3ee629807234551d1f9508b096fc5b87caf709e5b0b58b720f8e3e35b0b737f103f0259a52797fc9b7af5208f417d2575aae6a06201c2e8ae20db40ff46c WHIRLPOOL af67a267af992b89e47dfe7d0c07c4935f142a7cd44ad0628f398656222a2001165cd2ad97a08cfc2cedad6bafd36b49f79da5bf4221225d940980059171cfac
+DIST 7.1.0.0-TIVsm-msg.CS_CZ.x86_64.rpm 4449301 SHA256 bae02bebe71f6c0f91b2baf37d12d6d68e6509ffa4e11d25635b2a5e685b51fa SHA512 117cabafcb9751a0d45c735df651b07b0e146ad81a9ab21761310ecbe70714e958406e61c78f1d155e0a6d00aa7229b05f6e94f583a6125684d55de03f252a91 WHIRLPOOL ba3d92c3e2bcb465409adbeedcbb29cf05266155aee59b07f62ef423f08f1825383eaf57b05f969bf721402d3cab4dc6eea824682428b806423ad915949608af
+DIST 7.1.0.0-TIVsm-msg.DE_DE.x86_64.rpm 3748958 SHA256 50837d1085365b7ac1af6204591e47e6f23e610eaebfdcb32240b116522c450c SHA512 82789e0b6210067f682cbfb845978037ba0bf4bcebd04d350b7d93f855c4ce87b1ae7830c91af2d75b6c7dd6f4a0aad7d452224e79c2ff07bb56947c0a976215 WHIRLPOOL fba1d9718a10ed24911a2b42c53908266b5192f266c2d49c6d62107959b82a80bc46ce06319c689551b7441157fd443b860eaf1ca900dafb68f7709a5a7e4701
+DIST 7.1.0.0-TIVsm-msg.ES_ES.x86_64.rpm 3787106 SHA256 8740c1b2b592de736cddcddf55166adae1df46e095811142df72327469121075 SHA512 8f6416332239a0dd5425d24371c1e3922a2b4c771adaee995224c245832928b9fc5a48086763ca04bb2bd1ece4252a46b24b5793f229b89407c245235f8b0fb0 WHIRLPOOL b23f4db28e40862dfefb019ddf3df88b0c2db77bf494010140fec66fc91b074d5ffa9b8a4b1810d864254d424b196eb0917fc8e3211061d48f6f6c1cfe34bd32
+DIST 7.1.0.0-TIVsm-msg.FR_FR.x86_64.rpm 3740545 SHA256 fc88ccec06c06ed5dc2030fca50883d56cb9413cb6b84ea0c309f104f6c9a0fc SHA512 5e5a801b06b0d42b4300ff39faed600cbc12f0358d1f7679a6fbc17323faa04752c1ad4c83794e5a7f9ae03de32f4b0ba5ef6ed960a8e52b854e6d013b64b27a WHIRLPOOL 04d89f2cad3eec82a2dcf83fb709bbe98df37b3c167c66b2002309a1e733ac2c2a0fcbc8eb5890c5e0e9f3c995e49b9b087244c0b08d9a555055c13afd5dbc9a
+DIST 7.1.0.0-TIVsm-msg.HU_HU.x86_64.rpm 3829863 SHA256 78bd6ca1a5975aee1883861c6dec79b2abcd854473e6bb58398346883d31506d SHA512 b887761274f6eafc328023cdc61e087a89ac5f2d2d61e25033fe5a2b92a897dec55ec9ce1f80aaccc3a29d7c29288201a41c8a505a49472be1d5a9d596d09013 WHIRLPOOL 9d22063f71347b573d617cc0ae417e401d06390e6ebd133a50c62e33df9755db8dcd61f3b3e2b6e5268fc24789eede1c7b76823125fb0bb86e376239f655dc99
+DIST 7.1.0.0-TIVsm-msg.IT_IT.x86_64.rpm 3650284 SHA256 afadb6d893cc69169500a9df778b14831a5d7c47db9812bbad7b08fb82924587 SHA512 f6ceb807e90932a3497928facef7d4ea7ab4328192591efdc4c605d2e6511ae92942b1b48c53f6cb96b7b7fb7688739e895cf684b0b1dda6005c1908bc3a8b19 WHIRLPOOL 473abb44310938431b3cd802ea897566ae9d953d4f3900677c0d7f1bb57e078e7f7c457734561989f0725510b8da3e8f1f16470dd97aa80d83f92326f784f482
+DIST 7.1.0.0-TIVsm-msg.JA_JP.x86_64.rpm 3770521 SHA256 366c1e1e87eed8f379caa3afdabd5c6dee4c8c9b31b8ea37ebb49e3243738cd3 SHA512 c7a44785e55903d88d2ea0088e5897e59c2be30f1db30746e13d754f07fd88aa11bdd17bd324f329e684061f38deada8b9a9df7a9f5bafbb670a1aefc582eb1a WHIRLPOOL 3e1c189e48a5dfb7f1224f8efd913e33d77b5f1a7bd5ed21c8e431a18878812590962fd22325c3acfdde6cedaeda67f724271a867eb0ac7033037ef79bce53d7
+DIST 7.1.0.0-TIVsm-msg.KO_KR.x86_64.rpm 3325788 SHA256 1ccbafa1c29f2ff7c3bf3994358e4d0a5eccea23f20b1f0c766e0fdc9979641b SHA512 26e51fd6ad93ed3bad4ed393f9344279637df8916645f5de288e5879fd63c755ca9ff4253ad39de68b15360d69b348d3838b1fc6316644045b92bebe57d3adac WHIRLPOOL 2189cf6ea3bda461a018c298984cda923a94e0a2038f229310a41eb0ffd766c7b7cb498d755a8241b300f09311c54bbc71d0f150dd968e7690db63789c14e912
+DIST 7.1.0.0-TIVsm-msg.PL_PL.x86_64.rpm 3718858 SHA256 de94814ad9f8ba5db49a15443866d105938703c88375156bab48d204937eca24 SHA512 94565e5441b581bbf1cb8eb18782dfa638eeb2c15b129d8f8fb947fcb50eeeabe7ac6bfc81a162fbba02006fc208d7b557cf1c94ef75e0353d9c26df8b853e6e WHIRLPOOL e85880f5186afa135bef3ae5b2eacaa92ecce6a00d2175574b69819e328259aa26a12e227599d49a46f23c8c75ccb5ae37ffa62c9223aca77fc630937f68b1fd
+DIST 7.1.0.0-TIVsm-msg.PT_BR.x86_64.rpm 3731332 SHA256 0b49e4f8b1443a01484790992e37c899889a5d949272eec4e29a31249e9da298 SHA512 397de49d5f40c6ef3895e23bb0f5c59c0a0c43e32ba8e0ca22549dd17490ac5ccec5cbfafefb07e96b8b8f8eddbfd333704cb74c1fc4830e82f1e655c3903cae WHIRLPOOL 5914cc07c31683a4b7df65ce762f59adb20b7ad1d9e3344d6aecfcb2c0db2a954fbc20d98f6e791a8a2d466eafe607fb0bb924df97bd8d5de60ba49168f63ee7
+DIST 7.1.0.0-TIVsm-msg.RU_RU.x86_64.rpm 4384394 SHA256 a720846965211440c9f8b8fd31d1efe281328fbd24e1373a58a64c43c084b391 SHA512 908ea5b9e2ef33b81d5234b99b352bd342e5d78bb19c75057f7b50a14eae175aae7aec977b98aabc063f8acf78c7fd6985481dc0b040029e4bd6d93252085656 WHIRLPOOL a7b33ef40851dc464eaee5310ceb53ad76002cccf118dd063b904de2a736cb8ce13766e15f7b8a43d917ec517ab25e192905dcaab7829e0b57c9dea6ec6b61d1
+DIST 7.1.0.0-TIVsm-msg.ZH_CN.x86_64.rpm 3438735 SHA256 8995b622b35bfb3cc4aeb8612f853751e5f329a86306d22a4de3b4265e7c96dc SHA512 54b21264a05b86af9c4900b32ce1a28fb18cb331582d5d907f6d9563b410b0f0599c141cc3f1e23f0772e1b3185271a5dedb8f0b976e4c7718d01659b4930eb7 WHIRLPOOL 667b5ad42f2caeb2ca81c0fb7c33852b54f682d46b81355ae8f255bdd610e86314f4e3acd89a918c450c9eef6c5c4e8fb70326313d37fbccb9ef8327d3c3857c
+DIST 7.1.0.0-TIVsm-msg.ZH_TW.x86_64.rpm 3524254 SHA256 655c75b9e3ff85c3b2919091d345d8fda04367340f77d27ed63ff64a22f1c7e3 SHA512 b08a690e3a0ac57a201cb6da47d41ded365e6b9d6a85084d182590f193f71146e1eba98ffdf5389375a94e50b5ad8ceabccf39e7be61f46ead25b638b3e706e8 WHIRLPOOL 9e4d308e38427ebe68a2cebae3b0819bed00bcf7d99d1b13ebecb94177ee49727f87f7aa107a09e7548a5b169be2c2f5a08030c45b106d936616cacf31170722
+DIST 7.1.2.0-TIV-TSMBAC-LinuxX86.tar 113049600 SHA256 955291e82ae5e207a46a52c7b97d7cb4a05b623afcb3cf59e0e13e5cff4c4f9d SHA512 9b8722bd87794a01fdb3db2bf0db7a5d05e9c278d8469e43e2af1f84bbaa3a40efbffb19da3ef5fa5445b8f1e1b39aa603992994b0aa4654d00c431c14efb5f4 WHIRLPOOL 2ee25e928fb671452324ff6fa9616bc74a3481e93138974ffd55ade16e9028a22b367c29ca13ce6774fd819c075235cf01bdb5dd8d43995bb456f1b6b086cf64
+DIST 7.1.2.0-TIVsm-msg.CS_CZ.x86_64.rpm 4436432 SHA256 d126520652fb95254609c8c4767a7e266bcdd76c1fa8d86d5cf6cee7b0cf6263 SHA512 18f2bd339d455250967823969b7b0b4ead32bd99260854b247729fb36884d8e8d5e211505b72f31e88e33ec4054653eb1ab0db3c28287200e71ac080616850b9 WHIRLPOOL 671b8e0e96f64430b8bed49926b925a16bc97036e901b0b98f6e3cc21246b1916d023b16896dfeabf0d9d8afc87adcf888d6162f22945662104e804194a4d555
+DIST 7.1.2.0-TIVsm-msg.DE_DE.x86_64.rpm 3746180 SHA256 b113096752920643332ca41c6ade89d38e446659d1ca018088efc6b09b67c4cc SHA512 9c56719271d9a1f6bf01c0af023c59d8850010fd8a4cb34ec792369b9b652259d3a4548c4ce8ed9ed6fd3097fafa3ed6ed5014146841f1dd5686ec01e6fdc7f2 WHIRLPOOL 5522f1a971babee9574eeccdc24c15e44d5aa57699ccbab1ada5eb79f987443c974ab1b8c9daf26d039396ad5fd43dc267c287dbf0485b6fb9c18e80aff21c44
+DIST 7.1.2.0-TIVsm-msg.ES_ES.x86_64.rpm 3781147 SHA256 76fea82d0861c3e9685b7ec7ef99a773b87c14308c809a4beac1bf8153b39581 SHA512 bb4170709c31d6bbf7cc6c58ac820d9fb0ad89ff0a85301d66bb104f9d16c3a6407907d5f9d289c0853d4ddc058543238bd179c762f33634543b3bf0eca97be7 WHIRLPOOL 06674b8deb14ead7e934a93750c4a1e507801602f97d5ccc9a1284c1696e9aac48093852d679e9f14a7e47fab072bac3ce69b06224adce56afd2817079961f17
+DIST 7.1.2.0-TIVsm-msg.FR_FR.x86_64.rpm 3734253 SHA256 6fd7c7634f0415342ebd48c38e3eae9d73025a5e0a4d472e9fbe02a9de726aec SHA512 b235570fdd4c134937968d4df8b27655b402a79feb18bc151d47d7d740c004a0ac68ce23b0dcf00c565972c82447b4869be2cf2833b17cc4ef9a9020d2d0e439 WHIRLPOOL 9d491c579bafd349640b38cf6b294fd3b0f2762e6a025d2eadf63bb5e37466a9bfdcde6e08ae6aee0c1d5b1043dfcbc3fcbe1a0b1f851c219ffdf64a9a6e1da6
+DIST 7.1.2.0-TIVsm-msg.HU_HU.x86_64.rpm 3820171 SHA256 68c677945bdf7e52b66c8b18608979410ef5e15a4935c08754057c2a182478cd SHA512 146e4bbf4ebbbc150343923b9f0efc693bdb2ff4462e36718ea5f77a21e5757a40214e12965f048f42ceb0cd098eb91f88539d4be3bc0966eaffbf73e0e78063 WHIRLPOOL 8c09ec84798c222b9e86e4d77b0892191400734e854bb79f7a3c4c1df4dc31590a70014b48ff0ebeef040a6a0da3100ca46fad782092b65b530b46e89b8892f5
+DIST 7.1.2.0-TIVsm-msg.IT_IT.x86_64.rpm 3632607 SHA256 a535740f76d7f99441d9e3fe360c4410e1f6ece162b359ad7dc3d23297d52a5a SHA512 08eb9ae87eeb9d6ab14d7e3c972e212ecbd1067cb7dd105a0e2cee08e7e3aee461217c8bea2b92d3e25a784331c1ce06e7a363fd2d4d5b69637f4ef06e629dd7 WHIRLPOOL e114d3c42e946a849660fc0dcf74a94a2acfa2f4815d2f3b81195196ca8b2f92ed3c9a2f85336a8b927e45a5dbfac07d8d139cb4a8dc71a86435f89e4acd2ffd
+DIST 7.1.2.0-TIVsm-msg.JA_JP.x86_64.rpm 3772525 SHA256 db7b7d8d6baa1bc209233734cb243e92f4fb4e6773a3b00dcff48b47d98de7c9 SHA512 4c5272c286266fe4f90488c3918a724d20635a22fd21580e886c7cf1e1a636913e7c8bad459452dff98276bc8866f1cc5763cecc43a9fe57a6818d35206c63fe WHIRLPOOL 4444c0a11ee235a95c67455dc4bd77cb69feb7ecfb910420349db205962a41a415d48245851bfdd0745f7cc4a618c3d708215cc45c3b85f2129f7a1c897f66fd
+DIST 7.1.2.0-TIVsm-msg.KO_KR.x86_64.rpm 3600018 SHA256 5d78a7e49899a1496cdd62fdf84bc9b5be37e023d6cc4490b038366eacd55adb SHA512 b7f4d3a69f5c05936f46b47312b81fd618b8b49ed89d8c91c342a2b65a7e76dca572f28b9c82e161e95a20d77a46d25381c3fc98fd05920eb519c00a92257061 WHIRLPOOL ba420d84c31f99352a23b8120c3ce3f78b2e2bc73883ef9aec98dc790c2166b32466bcb5e9e296e8fdfee9295ced0e401fbd3742128d7a274178f5e1396ffd5a
+DIST 7.1.2.0-TIVsm-msg.PL_PL.x86_64.rpm 3738024 SHA256 3044a26d026baa2735ca9f7e611e8e1a46a463b9ad1d579fba7189991c196de2 SHA512 d4ef61d1226edb915c403f1d18d24c01346d55a9eb7ef023ef1f52eb32798358097affabae5c0ad20dc9640dda29bba386884ed7a99cf36c0b695e798cfbbaa9 WHIRLPOOL 822361e33546af5850276beeb67344bf3d6890317807b808335d27fdc1695d39f5666f9edf77846d8b4ffff944de98df93b2fbb7692f1ca62d7762d7dd93229a
+DIST 7.1.2.0-TIVsm-msg.PT_BR.x86_64.rpm 3736003 SHA256 9538c66e8624576ccd29a4adbf5999d8c708306b6ca0d488895c7fd63bc3b33d SHA512 4fa3bd81f3aecf2a7b5dedae814c972b79f37f757b9fbc4c99adf57c023954f19761728edb1fea99db20e6bb9f289d158d43c93c9062bed5940dd02b5d6d4d8a WHIRLPOOL 84d21ee6ed2743eea6e46ec570a29922c9c30f94ff4bced7715423cfe62fb7f75a6e2207eea186bc229252679f912ba0b9b7667eeb9df3b6b6588f96769a348a
+DIST 7.1.2.0-TIVsm-msg.RU_RU.x86_64.rpm 4378118 SHA256 2af3679b8915ff2699a9f26f6c25b21e0053a35063d74352f9c7391e57fb41ff SHA512 e4b332046097da752b77a810d89e3f0a1ac31eab192f3174cb36e3e4ebfe1e08b95895ecff7baf6fc9fb02a490edce26a26b73cd9d30ca12cfc2c2dd4b25a5a8 WHIRLPOOL 2e2bfcb0b800841ea117d1ade3ebdd2bcb1aa30495ece74371c3de32084cbf79c52c891f70c8adabcf668a9d81ecc64fcaa44c5b5144c39649ddf8baccf8cb69
+DIST 7.1.2.0-TIVsm-msg.ZH_CN.x86_64.rpm 3430014 SHA256 a10b8fc59b5b079c92222d9ad2db17d11d619e10037d53e1804a0f94897d54c3 SHA512 02f5699d09372650ec1f1d50fb728a30f5a8d9cdccff18a3057fd67ffdc8fd585132e55f11f2c1dea05ec44258a16a56030a4e2fa3218ba3c9abae4e6c9d7c81 WHIRLPOOL b5671f6ad1713f14d0d0913e124442ba3ca29121b3c24b94031347911c2f475763e6699f3550e05f95b4fa83825bc98d1afd45027ea3a564fa19579902be22cc
+DIST 7.1.2.0-TIVsm-msg.ZH_TW.x86_64.rpm 3527438 SHA256 52c4021f25bd29be08fe4fac3ace8d9e1a25c39361617e0c7cf331cf420eda6b SHA512 8e6b574ec85240d30ab4bfd1895e26db3c4cb2c624115d1315884408259df36110222826f000bb9507cff49afa003da139963ad35f5505d391ecbe6d9b9a51c0 WHIRLPOOL c28e6d067cbf0605dbd46540f527f70186824e06751188d889f119a244ef492ed1a9374f4098e75674264e4ecff2529989d84bce6a1f45740a341c5e2bb4049a
diff --git a/app-backup/tsm/files/dsmc.conf.d b/app-backup/tsm/files/dsmc.conf.d
new file mode 100644
index 000000000000..1c7578519419
--- /dev/null
+++ b/app-backup/tsm/files/dsmc.conf.d
@@ -0,0 +1,8 @@
+# Copyright 1999-2012 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+# Config file for /etc/init.d/tivoli
+
+# See your TSM manual for valid ops
+#DSMC_OPTS=""
diff --git a/app-backup/tsm/files/dsmc.init.d b/app-backup/tsm/files/dsmc.init.d
new file mode 100644
index 000000000000..98fcc8384b4d
--- /dev/null
+++ b/app-backup/tsm/files/dsmc.init.d
@@ -0,0 +1,28 @@
+#!/sbin/runscript
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+depend() {
+ use net
+ after dns
+}
+
+start() {
+ ebegin "Starting dsmc"
+ start-stop-daemon --start --background --nicelevel 15 \
+ --make-pidfile --pidfile /var/run/dsmc.pid \
+ --exec /opt/tivoli/tsm/client/ba/bin/dsmc sched ${DSMC_OPTS}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping dsmc"
+ # For whatever reason SIGTERM doesn't affect the dsmc process, but
+ # SIGHUP makes it exit cleanly
+ start-stop-daemon --stop \
+ --signal 1 \
+ --pidfile /var/run/dsmc.pid
+ eend $?
+}
+
diff --git a/app-backup/tsm/files/dsmc.service b/app-backup/tsm/files/dsmc.service
new file mode 100644
index 000000000000..aa25e1f74798
--- /dev/null
+++ b/app-backup/tsm/files/dsmc.service
@@ -0,0 +1,10 @@
+[Unit]
+Description=Tivoli Storage Manager (TSM) - dsmc
+After=network.target
+
+[Service]
+Nice=15
+ExecStart=/opt/tivoli/tsm/client/ba/bin/dsmc sched
+
+[Install]
+WantedBy=multi-user.target
diff --git a/app-backup/tsm/files/dsmcad.init.d b/app-backup/tsm/files/dsmcad.init.d
new file mode 100644
index 000000000000..bfe85a807a53
--- /dev/null
+++ b/app-backup/tsm/files/dsmcad.init.d
@@ -0,0 +1,25 @@
+#!/sbin/runscript
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+depend() {
+ use net
+ after dns dsmc
+}
+
+start() {
+ ebegin "Starting dsmcad"
+ start-stop-daemon --start --background --nicelevel 15 \
+ --make-pidfile --pidfile /var/run/dsmcad.pid \
+ --exec /opt/tivoli/tsm/client/ba/bin/dsmcad
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping dsmcad"
+ start-stop-daemon --stop \
+ --signal 1 \
+ --pidfile /var/run/dsmcad.pid
+ eend $?
+}
diff --git a/app-backup/tsm/files/dsmcad.init.d-r1 b/app-backup/tsm/files/dsmcad.init.d-r1
new file mode 100755
index 000000000000..6a4fa50268c0
--- /dev/null
+++ b/app-backup/tsm/files/dsmcad.init.d-r1
@@ -0,0 +1,26 @@
+#!/sbin/runscript
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+command=/opt/tivoli/tsm/client/ba/bin/dsmcad
+
+depend() {
+ use net
+ after dns dsmc
+}
+
+start() {
+ ebegin "Starting dsmcad"
+ start-stop-daemon --start --nicelevel 15 \
+ --exec ${command}
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping dsmcad"
+ start-stop-daemon --stop \
+ --signal 1 \
+ --exec ${command}
+ eend $?
+}
diff --git a/app-backup/tsm/files/dsmcad.service b/app-backup/tsm/files/dsmcad.service
new file mode 100644
index 000000000000..34cccedd820f
--- /dev/null
+++ b/app-backup/tsm/files/dsmcad.service
@@ -0,0 +1,12 @@
+[Unit]
+Description=Tivoli Storage Manager (TSM) - dsmcad
+After=network.target dsmc.service
+
+[Service]
+Type=forking
+Nice=15
+ExecStart=/opt/tivoli/tsm/client/ba/bin/dsmcad
+GuessMainPID=no
+
+[Install]
+WantedBy=multi-user.target
diff --git a/app-backup/tsm/files/tsm.logrotate b/app-backup/tsm/files/tsm.logrotate
new file mode 100644
index 000000000000..656e8aff515b
--- /dev/null
+++ b/app-backup/tsm/files/tsm.logrotate
@@ -0,0 +1,4 @@
+/var/log/tsm/*.log {
+ create 0660 root tsm
+ delaycompress
+}
diff --git a/app-backup/tsm/metadata.xml b/app-backup/tsm/metadata.xml
new file mode 100644
index 000000000000..a7b841e12d53
--- /dev/null
+++ b/app-backup/tsm/metadata.xml
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>proxy-maintainers</herd>
+ <maintainer>
+ <email>Martin.vGagern@gmx.net</email>
+ <name>Martin von Gagern</name>
+ <description>Assign bugs to him</description>
+ </maintainer>
+ <maintainer>
+ <email>pacho@gentoo.org</email>
+ <description>Proxy maintainer, CC him in bugs.</description>
+ </maintainer>
+ <maintainer>
+ <email>dilfridge@gentoo.org</email>
+ <description>Proxy maintainer, CC him in bugs.</description>
+ </maintainer>
+ <use>
+ <flag name="hsm">Installs Tivoli Storage Manager for Space Management</flag>
+ <flag name="tsm_cit">IBM Tivoli Common Inventory Technology</flag>
+ <flag name="tsm_hw">Difference snapshot support for NetApp and N-Series file servers</flag>
+ </use>
+</pkgmetadata>
diff --git a/app-backup/tsm/tsm-6.2.2.0-r2.ebuild b/app-backup/tsm/tsm-6.2.2.0-r2.ebuild
new file mode 100644
index 000000000000..c92c4ab106a9
--- /dev/null
+++ b/app-backup/tsm/tsm-6.2.2.0-r2.ebuild
@@ -0,0 +1,223 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit versionator multilib eutils rpm pax-utils user
+
+DESCRIPTION="Tivoli Storage Manager (TSM) Backup/Archive (B/A) Client and API"
+HOMEPAGE="http://www.tivoli.com/"
+
+MY_PV_MAJOR=$(get_major_version)
+MY_PV_MINOR=$(get_version_component_range 2)
+MY_PV_TINY=$(get_version_component_range 3)
+
+MY_PV_NODOTS="${MY_PV_MAJOR}${MY_PV_MINOR}${MY_PV_TINY}"
+MY_PVR_ALLDOTS=${PV}
+
+BASE_URI="ftp://ftp.software.ibm.com/storage/tivoli-storage-management/maintenance/client/v${MY_PV_MAJOR}r${MY_PV_MINOR}/Linux/LinuxX86/v${MY_PV_NODOTS}/"
+SRC_TAR="${MY_PVR_ALLDOTS}-TIV-TSMBAC-LinuxX86.tar"
+SRC_URI="${BASE_URI}${SRC_TAR}"
+
+RESTRICT="strip" # Breaks libPiIMG.ss and libPiSNAP.so
+LICENSE="Apache-1.1 Apache-2.0 JDOM BSD-2 CC-PD Boost-1.0 MIT CPL-1.0 HPND Exolab
+ dom4j EPL-1.0 FTL icu unicode IBM Info-ZIP LGPL-2 LGPL-2.1 openafs-krb5-a
+ ZLIB MPL-1.0 MPL-1.1 NPL-1.1 openssl OPENLDAP RSA public-domain W3C
+ || ( BSD GPL-2+ ) gSOAP libpng tsm"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE="hsm"
+
+QA_PREBUILT="*"
+
+MY_LANGS="cs:CS_CZ de:DE_DE es:ES_ES fr:FR_FR hu:HU_HU it:IT_IT
+ ja:JA_JP ko:KO_KR pl:PL_PL pt:PT_BR ru:RU_RU zh:ZH_CN zh_TW:ZH_TW"
+MY_LANG_PV="$(get_version_component_range 1-3)-"
+for lang in ${MY_LANGS}; do
+ IUSE="${IUSE} linguas_${lang%:*}"
+ SRC_URI="${SRC_URI} linguas_${lang%:*}? ( ${BASE_URI}TIVsm-msg.${lang#*:}.i386.rpm -> ${MY_LANG_PV}TIVsm-msg.${lang#*:}.i386.rpm )"
+done
+unset lang
+
+DEPEND=""
+RDEPEND="sys-libs/libstdc++-v3"
+
+S="${WORKDIR}"
+
+pkg_setup() {
+ enewgroup tsm
+}
+
+src_unpack() {
+ local rpm rpms lang
+ unpack ${SRC_TAR}
+
+ for rpm in *.rpm; do
+ case ${rpm} in
+ gsk*64-*|*API64*)
+ use amd64 && rpms="${rpms} ./${rpm}"
+ ;;
+ *HSM*)
+ use hsm && rpms="${rpms} ./${rpm}"
+ ;;
+ *)
+ rpms="${rpms} ./${rpm}"
+ ;;
+ esac
+ done
+ for rpm in ${A}; do
+ case ${rpm} in
+ *.rpm)
+ rpms="${rpms} ${rpm}"
+ ;;
+ esac
+ done
+
+ rpm_unpack ${rpms}
+
+ # Avoid strange error messages caused by read-only files
+ chmod -R u+w "${S}"
+}
+
+src_prepare() {
+ # Avoid unnecessary dependency on ksh
+ sed -i 's:^#!/usr/bin/ksh:#!/bin/bash:' \
+ opt/tivoli/tsm/client/ba/bin/dsmj || die
+}
+
+src_install() {
+ cp -a opt "${D}"
+ cp -a usr "${D}"
+
+ # The RPM files contain postinstall scripts which can be extracted
+ # e.g. using https://bugs.gentoo.org/attachment.cgi?id=234663 .
+ # Below we try to mimic the behaviour of these scripts.
+ # We don't deal with SELinux compliance (yet), though.
+ local RPM_INSTALL_PREFIX CLIENTDIR TIVINV_DIR TIVINVFILE i
+ RPM_INSTALL_PREFIX=/opt
+ CLIENTDIR=$RPM_INSTALL_PREFIX/tivoli/tsm/client
+
+ # We don't bother setting timestamps to build dates.
+ # But we should delete the corresponding files.
+ rm -f "${D}"$CLIENTDIR/api/bin*/.buildDate
+ rm -f "${D}"$CLIENTDIR/ba/bin*/.buildDate
+ rm -f "${D}"$CLIENTDIR/lang/.buildDate
+
+ # Create links for messages; this is spread over several postin scripts.
+ for i in $(cd "${D}"/${CLIENTDIR}/lang; ls -1d ??_??); do
+ dosym ../../lang/${i} $CLIENTDIR/ba/bin/${i}
+ dosym ../../lang/${i} $CLIENTDIR/api/bin/${i}
+ use amd64 && dosym ../../lang/${i} $CLIENTDIR/api/bin64/${i}
+ done
+
+ # Mimic TIVsm-API and -API64 postinstall script
+ for i in libgpfs.so libdmapi.so; do
+ dosym ../..$CLIENTDIR/api/bin/${i} /usr/lib
+ done
+ dosym ../..$CLIENTDIR/ba/bin/libzephyr.so /usr/lib/libTSMNetAppzephyr.so
+
+ # Mimic TIVsm-BA postinstall script
+ for i in /etc/adsm{,/SpaceMan,/config,/status}; do
+ keepdir ${i}
+ fowners bin:bin ${i}
+ fperms 2775 ${i}
+ done
+ TIVINV_DIR="/opt/tivoli/tsm/tivinv"
+ TIVINVFILE="TIVTSMBAC0602.SYS2"
+ dodir $TIVINV_DIR
+ echo " " \
+ > "${D}$TIVINV_DIR/$TIVINVFILE"
+ fperms 555 $TIVINV_DIR/$TIVINVFILE
+
+ # Haven't ported the TIVsm-HSM postinstall script (yet).
+ if use hsm; then
+ ewarn "This ebuild doesn't mimic the HSM postinstall script."
+ fi
+
+ # The gscrypt{32|64} postinstall script only deals with s390[x] SELinux.
+
+ # Mimic gskssl32 postinstall script
+ for i in acmeidup valn km cms p11 dbfl kicc ssl sys ldap drld iccs; do
+ dosym ../local/ibm/gsk8/lib/libgsk8${i}.so /usr/lib/libgsk8${i}.so
+ done
+ for i in capicmd ver; do
+ dosym ../local/ibm/gsk8/bin/gsk8${i} /usr/bin/${i}
+ done
+
+ # Mimic gskssl64 postinstall script
+ if use amd64; then
+ for i in sys p11 km ssl drld kicc ldap cms acmeidup valn dbfl iccs; do
+ dosym ../local/ibm/gsk8_64/lib64/libgsk8${i}_64.so \
+ /usr/lib64/libgsk8${i}_64.so
+ done
+ for i in capicmd ver; do
+ dosym ../local/ibm/gsk8_64/bin/gsk8${i}_64 /usr/bin/${i}_64
+ done
+ fi
+
+ # Done with the postinstall scripts as the RPMs contain them.
+ # Now on to some more Gentoo-specific installation.
+
+ use amd64 && mv "${D}usr/lib" "${D}usr/lib32"
+
+ fowners -R :tsm /opt/tivoli
+ fperms -R g+rX,o-rX /opt/tivoli # Allow only tsm group users to access TSM tools
+ fperms 4710 /opt/tivoli/tsm/client/ba/bin/dsmtca
+
+ keepdir /var/log/tsm
+ fowners :tsm /var/log/tsm
+ fperms 2770 /var/log/tsm
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}/tsm.logrotate" tsm
+
+ keepdir /etc/tivoli
+
+ cp -a "${S}/opt/tivoli/tsm/client/ba/bin/dsm.sys.smp" "${D}/etc/tivoli/dsm.sys"
+ echo ' PasswordDir "/etc/tivoli/"' >> ${D}/etc/tivoli/dsm.sys
+ echo ' PasswordAccess generate' >> ${D}/etc/tivoli/dsm.sys
+
+ # Added the hostname to be more friendly, the admin will need to edit this file anyway
+ echo ' NodeName' `hostname` >> ${D}/etc/tivoli/dsm.sys
+ echo ' ErrorLogName "/var/log/tsm/dsmerror.log"' >> ${D}/etc/tivoli/dsm.sys
+ echo ' SchedLogName "/var/log/tsm/dsmsched.log"' >> ${D}/etc/tivoli/dsm.sys
+ dosym ../../../../../../etc/tivoli/dsm.sys /opt/tivoli/tsm/client/ba/bin/dsm.sys
+
+ cp -a "${S}/opt/tivoli/tsm/client/ba/bin/dsm.opt.smp" "${D}/etc/tivoli/dsm.opt"
+ dosym ../../../../../../etc/tivoli/dsm.opt /opt/tivoli/tsm/client/ba/bin/dsm.opt
+
+ # Setup the env
+ dodir /etc/env.d
+ ENV_FILE="${D}/etc/env.d/80tivoli"
+ echo 'DSM_CONFIG="/etc/tivoli/dsm.opt"' >> ${ENV_FILE}
+ echo 'DSM_DIR="/opt/tivoli/tsm/client/ba/bin"' >> ${ENV_FILE}
+ echo 'DSM_LOG="/var/log/tsm"' >> ${ENV_FILE}
+ echo 'ROOTPATH="/opt/tivoli/tsm/client/ba/bin"' >> ${ENV_FILE}
+
+ newconfd "${FILESDIR}/dsmc.conf.d" dsmc
+ newinitd "${FILESDIR}/dsmc.init.d" dsmc
+ newinitd "${FILESDIR}/dsmcad.init.d-r1" dsmcad
+
+ elog
+ elog "Note that you have to be either root or member of the group tsm to be able to use the"
+ elog "Tivoli Storage Manager client."
+ elog
+
+}
+
+pkg_postinst() {
+ local i
+ for i in /var/log/tsm/dsm{error,sched,j,webcl}.log; do
+ if [[ ! -e $i ]]; then
+ touch $i
+ chown :tsm $i
+ chmod 0660 $i
+ fi
+ done
+}
+
+pkg_postinst() {
+ pax-mark psme /opt/tivoli/tsm/client/ba/bin/dsmc
+ # most likely some of the other executables (e.g. dsm) need this as well, but I
+ # cannot test it at the moment. - dilfridge
+}
diff --git a/app-backup/tsm/tsm-6.3.0.5-r2.ebuild b/app-backup/tsm/tsm-6.3.0.5-r2.ebuild
new file mode 100644
index 000000000000..f75386b7d441
--- /dev/null
+++ b/app-backup/tsm/tsm-6.3.0.5-r2.ebuild
@@ -0,0 +1,238 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit versionator multilib eutils rpm user
+
+DESCRIPTION="Tivoli Storage Manager (TSM) Backup/Archive (B/A) Client and API"
+HOMEPAGE="http://www.tivoli.com/"
+
+MY_PV_MAJOR=$(get_major_version)
+MY_PV_MINOR=$(get_version_component_range 2)
+MY_PV_TINY=$(get_version_component_range 3)
+MY_PV_PATCH=$(get_version_component_range 4)
+
+MY_PV_NODOTS="${MY_PV_MAJOR}${MY_PV_MINOR}${MY_PV_TINY}"
+MY_PVR_ALLDOTS=${PV}
+
+if [[ ${MY_PV_PATCH} == 0 ]]; then
+ MY_RELEASE_PATH=maintenance
+else
+ MY_RELEASE_PATH=patches
+fi
+BASE_URI="ftp://ftp.software.ibm.com/storage/tivoli-storage-management/"
+BASE_URI+="${MY_RELEASE_PATH}/client/v${MY_PV_MAJOR}r${MY_PV_MINOR}/"
+BASE_URI+="Linux/LinuxX86/BA/v${MY_PV_NODOTS}/"
+SRC_TAR="${MY_PVR_ALLDOTS}-TIV-TSMBAC-LinuxX86.tar"
+SRC_URI="${BASE_URI}${SRC_TAR}"
+
+RESTRICT="strip" # Breaks libPiIMG.so and libPiSNAP.so
+LICENSE="Apache-1.1 Apache-2.0 JDOM BSD-2 CC-PD Boost-1.0 MIT CPL-1.0 HPND Exolab
+ dom4j EPL-1.0 FTL icu unicode IBM Info-ZIP LGPL-2 LGPL-2.1 openafs-krb5-a
+ ZLIB MPL-1.0 MPL-1.1 NPL-1.1 openssl OPENLDAP RSA public-domain W3C
+ || ( BSD GPL-2+ ) gSOAP libpng tsm"
+
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="acl java +tsm_cit +tsm_hw"
+QA_PREBUILT="*"
+
+MY_LANGS="cs:CS_CZ de:DE_DE es:ES_ES fr:FR_FR hu:HU_HU it:IT_IT
+ ja:JA_JP ko:KO_KR pl:PL_PL pt:PT_BR ru:RU_RU zh:ZH_CN zh_TW:ZH_TW"
+MY_LANG_PV="${MY_PVR_ALLDOTS}-"
+for lang in ${MY_LANGS}; do
+ IUSE="${IUSE} linguas_${lang%:*}"
+ SRC_URI="${SRC_URI} linguas_${lang%:*}? ( \
+${BASE_URI}TIVsm-msg.${lang#*:}.x86_64.rpm -> \
+${MY_LANG_PV}TIVsm-msg.${lang#*:}.x86_64.rpm )"
+done
+unset lang
+
+DEPEND=""
+RDEPEND="dev-libs/expat
+ dev-libs/libxml2
+ =sys-fs/fuse-2*
+ acl? ( sys-apps/acl )
+ java? ( virtual/jre:1.6 )"
+
+S="${WORKDIR}"
+
+pkg_setup() {
+ enewgroup tsm
+}
+
+src_unpack() {
+ local rpm rpms lang
+ unpack ${SRC_TAR}
+
+ for rpm in *.rpm; do
+ case ${rpm} in
+ TIVsm-APIcit.*|TIVsm-BAcit.*)
+ use tsm_cit && rpms="${rpms} ./${rpm}"
+ ;;
+ TIVsm-BAhdw.*)
+ use tsm_hw && rpms="${rpms} ./${rpm}"
+ ;;
+ TIVsm-JBB.*|*-filepath-*)
+ # "journal based backup" for all filesystems
+ # requires a kernel module.
+ # "Linux Filepath source code" available
+ # by request from vendor
+ ;;
+ *)
+ rpms="${rpms} ./${rpm}"
+ ;;
+ esac
+ done
+ for rpm in ${A}; do
+ case ${rpm} in
+ *.rpm)
+ rpms="${rpms} ${rpm}"
+ ;;
+ esac
+ done
+
+ rpm_unpack ${rpms}
+
+ # Avoid strange error messages caused by read-only files
+ chmod -R u+w "${S}" || die
+}
+
+src_prepare() {
+ # Avoid unnecessary dependency on ksh
+ sed -i 's:^#!/usr/bin/ksh:#!/bin/bash:' \
+ opt/tivoli/tsm/client/ba/bin/dsmj || die
+}
+
+src_install() {
+ cp -a opt "${D}" || die
+ cp -a usr "${D}" || die
+
+ # The RPM files contain postinstall scripts which can be extracted
+ # e.g. using https://bugs.gentoo.org/attachment.cgi?id=234663 .
+ # Below we try to mimic the behaviour of these scripts.
+ # We don't deal with SELinux compliance (yet), though.
+ local RPM_INSTALL_PREFIX CLIENTDIR TIVINV_DIR TIVINVFILE i
+ RPM_INSTALL_PREFIX=/opt
+ CLIENTDIR=$RPM_INSTALL_PREFIX/tivoli/tsm/client
+
+ # We don't bother setting timestamps to build dates.
+ # But we should delete the corresponding files.
+ rm -f "${D}"$CLIENTDIR/api/bin*/.buildDate || die
+ rm -f "${D}"$CLIENTDIR/ba/bin*/.buildDate || die
+ rm -f "${D}"$CLIENTDIR/lang/.buildDate || die
+
+ # Create links for messages; this is spread over several postin scripts.
+ for i in $(cd "${D}"${CLIENTDIR}/lang; ls -1d ??_??); do
+ dosym ../../lang/${i} $CLIENTDIR/ba/bin/${i}
+ dosym ../../lang/${i} $CLIENTDIR/api/bin64/${i}
+ done
+
+ # Mimic TIVsm-API64 postinstall script
+ for i in libgpfs.so libdmapi.so; do
+ dosym ../..$CLIENTDIR/api/bin64/${i} /usr/lib64/${i}
+ done
+
+ # Mimic TIVsm-BA postinstall script
+ # Create Tivoli Inventory file
+ TIVINV_DIR="/opt/tivoli/tsm/tivinv"
+ TIVINVFILE="TIVTSMBAC0603.SYS2"
+ dodir $TIVINV_DIR
+ echo " " \
+ > "${D}$TIVINV_DIR/$TIVINVFILE"
+ fperms 555 $TIVINV_DIR/$TIVINVFILE
+
+ # Create a link to libexpat if needed
+ if [ ! -e "${ROOT}"/usr/lib64/libexpat.so.0 -a -e "${ROOT}"/usr/lib64/libexpat.so.1 ]
+ then
+ dosym /usr/lib64/libexpat.so.1 $CLIENTDIR/ba/bin/libexpat.so.0
+ fi
+
+ # The gscrypt64 postinstall script only deals with s390[x] SELinux.
+
+ # Mimic gskssl64 postinstall script
+ for i in sys p11 km ssl drld kicc ldap cms acmeidup valn dbfl iccs; do
+ dosym ../local/ibm/gsk8_64/lib64/libgsk8${i}_64.so \
+ /usr/lib64/libgsk8${i}_64.so
+ done
+ for i in capicmd ver; do
+ dosym ../local/ibm/gsk8_64/bin/gsk8${i}_64 /usr/bin/${i}_64
+ done
+
+ # Done with the postinstall scripts as the RPMs contain them.
+ # Now on to some more Gentoo-specific installation.
+
+ [[ -d "${D}usr/lib" ]] && die "Using 32bit lib dir in 64bit only system"
+
+ # Avoid "QA Notice: Found an absolute symlink in a library directory"
+ local target
+ find "${D}"usr/lib* -lname '/*' | while read i; do
+ target=$(readlink "${i}")
+ rm -v "${i}" || die
+ dosym "../..${target}" "${i#${D}}"
+ done
+
+ # Install symlinks for sonames of libraries, bug #416503
+ dosym libvixMntapi.so.1.1.0 $CLIENTDIR/ba/bin/libvixMntapi.so.1
+ dosym libvixDiskLibVim.so.5.0.0 $CLIENTDIR/ba/bin/libvixDiskLibVim.so.5
+ dosym libvixDiskLib.so.5.0.0 $CLIENTDIR/ba/bin/libvixDiskLib.so.5
+
+ fowners -R :tsm /opt/tivoli
+ fperms -R g+rX,o-rx /opt/tivoli # Allow only tsm group users to access TSM tools
+ fperms 4710 /opt/tivoli/tsm/client/ba/bin/dsmtca
+
+ keepdir /var/log/tsm
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}/tsm.logrotate" tsm
+
+ keepdir /etc/tivoli
+
+ cp -a "${S}/opt/tivoli/tsm/client/ba/bin/dsm.sys.smp" "${D}/etc/tivoli/dsm.sys" || die
+ echo ' PasswordDir "/etc/tivoli/"' >> ${D}/etc/tivoli/dsm.sys
+ echo ' PasswordAccess generate' >> ${D}/etc/tivoli/dsm.sys
+
+ # Added the hostname to be more friendly, the admin will need to edit this file anyway
+ echo ' NodeName' `hostname` >> ${D}/etc/tivoli/dsm.sys
+ echo ' ErrorLogName "/var/log/tsm/dsmerror.log"' >> ${D}/etc/tivoli/dsm.sys
+ echo ' SchedLogName "/var/log/tsm/dsmsched.log"' >> ${D}/etc/tivoli/dsm.sys
+ dosym ../../../../../../etc/tivoli/dsm.sys /opt/tivoli/tsm/client/ba/bin/dsm.sys
+
+ cp -a "${S}/opt/tivoli/tsm/client/ba/bin/dsm.opt.smp" "${D}/etc/tivoli/dsm.opt"
+ dosym ../../../../../../etc/tivoli/dsm.opt /opt/tivoli/tsm/client/ba/bin/dsm.opt
+
+ # Setup the env
+ dodir /etc/env.d
+ ENV_FILE="${D}/etc/env.d/80tivoli"
+ echo 'DSM_CONFIG="/etc/tivoli/dsm.opt"' >> ${ENV_FILE}
+ echo 'DSM_DIR="/opt/tivoli/tsm/client/ba/bin"' >> ${ENV_FILE}
+ echo 'DSM_LOG="/var/log/tsm"' >> ${ENV_FILE}
+ echo 'ROOTPATH="/opt/tivoli/tsm/client/ba/bin"' >> ${ENV_FILE}
+
+ newconfd "${FILESDIR}/dsmc.conf.d" dsmc
+ newinitd "${FILESDIR}/dsmc.init.d" dsmc
+ newinitd "${FILESDIR}/dsmcad.init.d-r1" dsmcad
+
+ elog
+ elog "Note that you have to be either root or member of the group tsm to"
+ elog "be able to use the Tivoli Storage Manager client."
+ elog
+
+}
+
+pkg_postinst() {
+ local i
+ for i in /var/log/tsm/dsm{error,sched,j,webcl}.log; do
+ if [[ ! -e $i ]]; then
+ touch $i || die
+ chown :tsm $i || die
+ chmod 0660 $i || die
+ fi
+ done
+
+ # Bug #375041: the log directory itself should not be world writable.
+ # Have to do this in postinst due to bug #141619
+ chown root:tsm /var/log/tsm || die
+ chmod 0750 /var/log/tsm || die
+}
diff --git a/app-backup/tsm/tsm-6.4.0.0-r1.ebuild b/app-backup/tsm/tsm-6.4.0.0-r1.ebuild
new file mode 100644
index 000000000000..d8d6afaf927a
--- /dev/null
+++ b/app-backup/tsm/tsm-6.4.0.0-r1.ebuild
@@ -0,0 +1,234 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit versionator multilib eutils rpm user
+
+DESCRIPTION="Tivoli Storage Manager (TSM) Backup/Archive (B/A) Client and API"
+HOMEPAGE="http://www.tivoli.com/"
+
+MY_PV_MAJOR=$(get_major_version)
+MY_PV_MINOR=$(get_version_component_range 2)
+MY_PV_TINY=$(get_version_component_range 3)
+MY_PV_PATCH=$(get_version_component_range 4)
+
+MY_PV_NODOTS="${MY_PV_MAJOR}${MY_PV_MINOR}${MY_PV_TINY}"
+MY_PVR_ALLDOTS=${PV}
+
+if [[ ${MY_PV_PATCH} == 0 ]]; then
+ MY_RELEASE_PATH=maintenance
+else
+ MY_RELEASE_PATH=patches
+fi
+BASE_URI="ftp://ftp.software.ibm.com/storage/tivoli-storage-management/"
+BASE_URI+="${MY_RELEASE_PATH}/client/v${MY_PV_MAJOR}r${MY_PV_MINOR}/"
+BASE_URI+="Linux/LinuxX86/BA/v${MY_PV_NODOTS}/"
+SRC_TAR="${MY_PVR_ALLDOTS}-TIV-TSMBAC-LinuxX86.tar"
+SRC_URI="${BASE_URI}${SRC_TAR}"
+
+RESTRICT="strip" # Breaks libPiIMG.so and libPiSNAP.so
+LICENSE="Apache-1.1 Apache-2.0 JDOM BSD-2 CC-PD Boost-1.0 MIT CPL-1.0 HPND Exolab
+ dom4j EPL-1.0 FTL icu unicode IBM Info-ZIP LGPL-2 LGPL-2.1 openafs-krb5-a
+ ZLIB MPL-1.0 MPL-1.1 NPL-1.1 openssl OPENLDAP RSA public-domain W3C
+ || ( BSD GPL-2+ ) gSOAP libpng tsm"
+
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="acl java +tsm_cit +tsm_hw"
+QA_PREBUILT="*"
+
+MY_LANGS="cs:CS_CZ de:DE_DE es:ES_ES fr:FR_FR hu:HU_HU it:IT_IT
+ ja:JA_JP ko:KO_KR pl:PL_PL pt:PT_BR ru:RU_RU zh:ZH_CN zh_TW:ZH_TW"
+MY_LANG_PV="${MY_PVR_ALLDOTS}-"
+for lang in ${MY_LANGS}; do
+ IUSE="${IUSE} linguas_${lang%:*}"
+ SRC_URI="${SRC_URI} linguas_${lang%:*}? ( \
+${BASE_URI}TIVsm-msg.${lang#*:}.x86_64.rpm -> \
+${MY_LANG_PV}TIVsm-msg.${lang#*:}.x86_64.rpm )"
+done
+unset lang
+
+DEPEND=""
+RDEPEND="dev-libs/expat
+ dev-libs/libxml2
+ =sys-fs/fuse-2*
+ acl? ( sys-apps/acl )
+ java? ( virtual/jre:1.6 )"
+
+S="${WORKDIR}"
+
+pkg_setup() {
+ enewgroup tsm
+}
+
+src_unpack() {
+ local rpm rpms lang
+ unpack ${SRC_TAR}
+
+ for rpm in *.rpm; do
+ case ${rpm} in
+ TIVsm-APIcit.*|TIVsm-BAcit.*)
+ use tsm_cit && rpms="${rpms} ./${rpm}"
+ ;;
+ TIVsm-BAhdw.*)
+ use tsm_hw && rpms="${rpms} ./${rpm}"
+ ;;
+ TIVsm-JBB.*|*-filepath-*)
+ # "journal based backup" for all filesystems
+ # requires a kernel module.
+ # "Linux Filepath source code" available
+ # by request from vendor
+ ;;
+ *)
+ rpms="${rpms} ./${rpm}"
+ ;;
+ esac
+ done
+ for rpm in ${A}; do
+ case ${rpm} in
+ *.rpm)
+ rpms="${rpms} ${rpm}"
+ ;;
+ esac
+ done
+
+ rpm_unpack ${rpms}
+
+ # Avoid strange error messages caused by read-only files
+ chmod -R u+w "${S}" || die
+}
+
+src_prepare() {
+ # Avoid unnecessary dependency on ksh
+ sed -i 's:^#!/usr/bin/ksh:#!/bin/bash:' \
+ opt/tivoli/tsm/client/ba/bin/dsmj || die
+}
+
+src_install() {
+ cp -a opt "${D}" || die
+ cp -a usr "${D}" || die
+
+ # The RPM files contain postinstall scripts which can be extracted
+ # e.g. using https://bugs.gentoo.org/attachment.cgi?id=234663 .
+ # Below we try to mimic the behaviour of these scripts.
+ # We don't deal with SELinux compliance (yet), though.
+ local RPM_INSTALL_PREFIX CLIENTDIR i
+ RPM_INSTALL_PREFIX=/opt
+ CLIENTDIR=$RPM_INSTALL_PREFIX/tivoli/tsm/client
+
+ # We don't bother setting timestamps to build dates.
+ # But we should delete the corresponding files.
+ rm -f "${D}"$CLIENTDIR/api/bin*/.buildDate || die
+ rm -f "${D}"$CLIENTDIR/ba/bin*/.buildDate || die
+ rm -f "${D}"$CLIENTDIR/lang/.buildDate || die
+
+ # Create links for messages; this is spread over several postin scripts.
+ for i in $(cd "${D}"${CLIENTDIR}/lang; ls -1d ??_??); do
+ dosym ../../lang/${i} $CLIENTDIR/ba/bin/${i}
+ dosym ../../lang/${i} $CLIENTDIR/api/bin64/${i}
+ done
+
+ # Mimic TIVsm-API64 postinstall script
+ for i in libgpfs.so libdmapi.so; do
+ dosym ../..$CLIENTDIR/api/bin64/${i} /usr/lib64/${i}
+ done
+
+ # Mimic TIVsm-BA postinstall script
+ # Create a link to libexpat if needed
+ if [ ! -e "${ROOT}"/usr/lib64/libexpat.so.0 -a -e "${ROOT}"/usr/lib64/libexpat.so.1 ]
+ then
+ dosym /usr/lib64/libexpat.so.1 $CLIENTDIR/ba/bin/libexpat.so.0
+ fi
+
+ # The gscrypt64 postinstall script only deals with s390[x] SELinux.
+
+ # Move stuff from /usr/local to /opt, #452332
+ mv "${D}"/usr/local/ibm "${D}"/opt/ || die
+ rmdir "${D}"/usr/local || die
+
+ # Mimic gskssl64 postinstall script
+ for i in sys p11 km ssl drld kicc ldap cms acmeidup valn dbfl iccs; do
+ dosym ../../opt/ibm/gsk8_64/lib64/libgsk8${i}_64.so \
+ /usr/lib64/libgsk8${i}_64.so
+ done
+ for i in capicmd ver; do
+ dosym ../local/ibm/gsk8_64/bin/gsk8${i}_64 /usr/bin/${i}_64
+ done
+
+ # Done with the postinstall scripts as the RPMs contain them.
+ # Now on to some more Gentoo-specific installation.
+
+ [[ -d "${D}usr/lib" ]] && die "Using 32bit lib dir in 64bit only system"
+
+ # Avoid "QA Notice: Found an absolute symlink in a library directory"
+ local target
+ find "${D}"usr/lib* -lname '/*' | while read i; do
+ target=$(readlink "${i}")
+ rm -v "${i}" || die
+ dosym "../..${target}" "${i#${D}}"
+ done
+
+ # Install symlinks for sonames of libraries, bug #416503
+ dosym libvixMntapi.so.1.1.0 $CLIENTDIR/ba/bin/libvixMntapi.so.1
+ dosym libvixDiskLibVim.so.5.0.0 $CLIENTDIR/ba/bin/libvixDiskLibVim.so.5
+ dosym libvixDiskLib.so.5.0.0 $CLIENTDIR/ba/bin/libvixDiskLib.so.5
+
+ fowners -R :tsm /opt/tivoli
+ fperms -R g+rX,o-rx /opt/tivoli # Allow only tsm group users to access TSM tools
+ fperms 4710 /opt/tivoli/tsm/client/ba/bin/dsmtca
+
+ keepdir /var/log/tsm
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}/tsm.logrotate" tsm
+
+ keepdir /etc/tivoli
+
+ cp -a "${S}/opt/tivoli/tsm/client/ba/bin/dsm.sys.smp" "${D}/etc/tivoli/dsm.sys" || die
+ echo ' PasswordDir "/etc/tivoli/"' >> ${D}/etc/tivoli/dsm.sys
+ echo ' PasswordAccess generate' >> ${D}/etc/tivoli/dsm.sys
+
+ # Added the hostname to be more friendly, the admin will need to edit this file anyway
+ echo ' NodeName' `hostname` >> ${D}/etc/tivoli/dsm.sys
+ echo ' ErrorLogName "/var/log/tsm/dsmerror.log"' >> ${D}/etc/tivoli/dsm.sys
+ echo ' SchedLogName "/var/log/tsm/dsmsched.log"' >> ${D}/etc/tivoli/dsm.sys
+ dosym ../../../../../../etc/tivoli/dsm.sys /opt/tivoli/tsm/client/ba/bin/dsm.sys
+
+ cp -a "${S}/opt/tivoli/tsm/client/ba/bin/dsm.opt.smp" "${D}/etc/tivoli/dsm.opt"
+ dosym ../../../../../../etc/tivoli/dsm.opt /opt/tivoli/tsm/client/ba/bin/dsm.opt
+
+ # Setup the env
+ dodir /etc/env.d
+ ENV_FILE="${D}/etc/env.d/80tivoli"
+ echo 'DSM_CONFIG="/etc/tivoli/dsm.opt"' >> ${ENV_FILE}
+ echo 'DSM_DIR="/opt/tivoli/tsm/client/ba/bin"' >> ${ENV_FILE}
+ echo 'DSM_LOG="/var/log/tsm"' >> ${ENV_FILE}
+ echo 'ROOTPATH="/opt/tivoli/tsm/client/ba/bin"' >> ${ENV_FILE}
+
+ newconfd "${FILESDIR}/dsmc.conf.d" dsmc
+ newinitd "${FILESDIR}/dsmc.init.d" dsmc
+ newinitd "${FILESDIR}/dsmcad.init.d-r1" dsmcad
+
+ elog
+ elog "Note that you have to be either root or member of the group tsm to"
+ elog "be able to use the Tivoli Storage Manager client."
+ elog
+
+}
+
+pkg_postinst() {
+ local i
+ for i in /var/log/tsm/dsm{error,sched,j,webcl}.log; do
+ if [[ ! -e $i ]]; then
+ touch $i || die
+ chown :tsm $i || die
+ chmod 0660 $i || die
+ fi
+ done
+
+ # Bug #375041: the log directory itself should not be world writable.
+ # Have to do this in postinst due to bug #141619
+ chown root:tsm /var/log/tsm || die
+ chmod 0750 /var/log/tsm || die
+}
diff --git a/app-backup/tsm/tsm-7.1.0.0-r1.ebuild b/app-backup/tsm/tsm-7.1.0.0-r1.ebuild
new file mode 100644
index 000000000000..976f2e1c6107
--- /dev/null
+++ b/app-backup/tsm/tsm-7.1.0.0-r1.ebuild
@@ -0,0 +1,240 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit versionator multilib eutils readme.gentoo rpm systemd user
+
+DESCRIPTION="Tivoli Storage Manager (TSM) Backup/Archive (B/A) Client and API"
+HOMEPAGE="http://www.tivoli.com/"
+
+MY_PV_MAJOR=$(get_major_version)
+MY_PV_MINOR=$(get_version_component_range 2)
+MY_PV_TINY=$(get_version_component_range 3)
+MY_PV_PATCH=$(get_version_component_range 4)
+
+MY_PV_NODOTS="${MY_PV_MAJOR}${MY_PV_MINOR}${MY_PV_TINY}"
+MY_PVR_ALLDOTS=${PV}
+
+if [[ ${MY_PV_PATCH} == 0 ]]; then
+ MY_RELEASE_PATH=maintenance
+else
+ MY_RELEASE_PATH=patches
+fi
+BASE_URI="ftp://ftp.software.ibm.com/storage/tivoli-storage-management/"
+BASE_URI+="${MY_RELEASE_PATH}/client/v${MY_PV_MAJOR}r${MY_PV_MINOR}/"
+BASE_URI+="Linux/LinuxX86/BA/v${MY_PV_NODOTS}/"
+SRC_TAR="${MY_PVR_ALLDOTS}-TIV-TSMBAC-LinuxX86.tar"
+SRC_URI="${BASE_URI}${SRC_TAR}"
+
+RESTRICT="strip" # Breaks libPiIMG.so and libPiSNAP.so
+LICENSE="Apache-1.1 Apache-2.0 JDOM BSD-2 CC-PD Boost-1.0 MIT CPL-1.0 HPND Exolab
+ dom4j EPL-1.0 FTL icu unicode IBM Info-ZIP LGPL-2 LGPL-2.1 openafs-krb5-a
+ ZLIB MPL-1.0 MPL-1.1 NPL-1.1 openssl OPENLDAP RSA public-domain W3C
+ || ( BSD GPL-2+ ) gSOAP libpng tsm"
+
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="acl java +tsm_cit +tsm_hw"
+QA_PREBUILT="*"
+
+MY_LANGS="cs:CS_CZ de:DE_DE es:ES_ES fr:FR_FR hu:HU_HU it:IT_IT
+ ja:JA_JP ko:KO_KR pl:PL_PL pt:PT_BR ru:RU_RU zh:ZH_CN zh_TW:ZH_TW"
+MY_LANG_PV="${MY_PVR_ALLDOTS}-"
+for lang in ${MY_LANGS}; do
+ IUSE="${IUSE} linguas_${lang%:*}"
+ SRC_URI="${SRC_URI} linguas_${lang%:*}? ( \
+${BASE_URI}TIVsm-msg.${lang#*:}.x86_64.rpm -> \
+${MY_LANG_PV}TIVsm-msg.${lang#*:}.x86_64.rpm )"
+done
+unset lang
+
+DEPEND=""
+RDEPEND="
+ dev-libs/expat
+ dev-libs/libxml2
+ =sys-fs/fuse-2*
+ acl? ( sys-apps/acl )
+ java? ( virtual/jre:1.6 )
+"
+
+S="${WORKDIR}"
+
+pkg_setup() {
+ enewgroup tsm
+ DOC_CONTENTS="
+ Note that you have to be either root or member of the group tsm to
+ be able to use the Tivoli Storage Manager client."
+}
+
+src_unpack() {
+ local rpm rpms lang
+ unpack ${SRC_TAR}
+
+ for rpm in *.rpm; do
+ case ${rpm} in
+ TIVsm-APIcit.*|TIVsm-BAcit.*)
+ use tsm_cit && rpms="${rpms} ./${rpm}"
+ ;;
+ TIVsm-BAhdw.*)
+ use tsm_hw && rpms="${rpms} ./${rpm}"
+ ;;
+ TIVsm-JBB.*|*-filepath-*)
+ # "journal based backup" for all filesystems
+ # requires a kernel module.
+ # "Linux Filepath source code" available
+ # by request from vendor
+ ;;
+ *)
+ rpms="${rpms} ./${rpm}"
+ ;;
+ esac
+ done
+ for rpm in ${A}; do
+ case ${rpm} in
+ *.rpm)
+ rpms="${rpms} ${rpm}"
+ ;;
+ esac
+ done
+
+ rpm_unpack ${rpms}
+
+ # Avoid strange error messages caused by read-only files
+ chmod -R u+w "${S}" || die
+}
+
+src_prepare() {
+ # Avoid unnecessary dependency on ksh
+ sed -i 's:^#!/usr/bin/ksh:#!/bin/bash:' \
+ opt/tivoli/tsm/client/ba/bin/dsmj || die
+}
+
+src_install() {
+ cp -a opt "${D}" || die
+ cp -a usr "${D}" || die
+
+ # The RPM files contain postinstall scripts which can be extracted
+ # e.g. using https://bugs.gentoo.org/attachment.cgi?id=234663 .
+ # Below we try to mimic the behaviour of these scripts.
+ # We don't deal with SELinux compliance (yet), though.
+ local RPM_INSTALL_PREFIX CLIENTDIR i
+ RPM_INSTALL_PREFIX=/opt
+ CLIENTDIR=$RPM_INSTALL_PREFIX/tivoli/tsm/client
+
+ # We don't bother setting timestamps to build dates.
+ # But we should delete the corresponding files.
+ rm -f "${D}"$CLIENTDIR/api/bin*/.buildDate || die
+ rm -f "${D}"$CLIENTDIR/ba/bin*/.buildDate || die
+ rm -f "${D}"$CLIENTDIR/lang/.buildDate || die
+
+ # Create links for messages; this is spread over several postin scripts.
+ for i in $(cd "${D}"${CLIENTDIR}/lang; ls -1d ??_??); do
+ dosym ../../lang/${i} $CLIENTDIR/ba/bin/${i}
+ dosym ../../lang/${i} $CLIENTDIR/api/bin64/${i}
+ done
+
+ # Mimic TIVsm-API64 postinstall script
+ for i in libgpfs.so libdmapi.so; do
+ dosym ../..$CLIENTDIR/api/bin64/${i} /usr/lib64/${i}
+ done
+
+ # The TIVsm-BA postinstall script only does messages and ancient upgrades
+
+ # The gscrypt64 postinstall script only deals with s390[x] SELinux
+ # and the symlink for the iccs library which we handle in the loop below.
+
+ # Move stuff from /usr/local to /opt, #452332
+ mv "${D}"/usr/local/ibm "${D}"/opt/ || die
+ rmdir "${D}"/usr/local || die
+
+ # Mimic gskssl64 postinstall script
+ for i in sys p11 km ssl drld kicc ldap cms acmeidup valn dbfl iccs; do
+ dosym ../../opt/ibm/gsk8_64/lib64/libgsk8${i}_64.so \
+ /usr/lib64/libgsk8${i}_64.so
+ done
+ for i in capicmd ver; do
+ dosym ../../opt/ibm/gsk8_64/bin/gsk8${i}_64 /usr/bin/gsk${i}_64
+ done
+
+ # Done with the postinstall scripts as the RPMs contain them.
+ # Now on to some more Gentoo-specific installation.
+
+ [[ -d "${D}usr/lib" ]] && die "Using 32bit lib dir in 64bit only system"
+
+ # Avoid "QA Notice: Found an absolute symlink in a library directory"
+ local target
+ find "${D}"usr/lib* -lname '/*' | while read i; do
+ target=$(readlink "${i}")
+ rm -v "${i}" || die
+ dosym "../..${target}" "${i#${D}}"
+ done
+
+ # Install symlinks for sonames of libraries, bug #416503
+ dosym libvixMntapi.so.1.1.0 $CLIENTDIR/ba/bin/libvixMntapi.so.1
+ dosym libvixDiskLibVim.so.5.5.0 $CLIENTDIR/ba/bin/libvixDiskLibVim.so.5
+ dosym libvixDiskLib.so.5.5.0 $CLIENTDIR/ba/bin/libvixDiskLib.so.5
+
+ fowners :tsm /opt/tivoli/tsm/client/ba/bin/dsmtca
+ fperms 4710 /opt/tivoli/tsm/client/ba/bin/dsmtca
+
+ keepdir /var/log/tsm
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}/tsm.logrotate" tsm
+
+ keepdir /etc/tivoli
+
+ cp -a "${S}/opt/tivoli/tsm/client/ba/bin/dsm.sys.smp" "${D}/etc/tivoli/dsm.sys" || die
+ echo ' PasswordDir "/etc/tivoli/"' >> ${D}/etc/tivoli/dsm.sys
+ echo ' PasswordAccess generate' >> ${D}/etc/tivoli/dsm.sys
+
+ # Added the hostname to be more friendly, the admin will need to edit this file anyway
+ echo ' NodeName' `hostname` >> ${D}/etc/tivoli/dsm.sys
+ echo ' ErrorLogName "/var/log/tsm/dsmerror.log"' >> ${D}/etc/tivoli/dsm.sys
+ echo ' SchedLogName "/var/log/tsm/dsmsched.log"' >> ${D}/etc/tivoli/dsm.sys
+ dosym ../../../../../../etc/tivoli/dsm.sys /opt/tivoli/tsm/client/ba/bin/dsm.sys
+
+ cp -a "${S}/opt/tivoli/tsm/client/ba/bin/dsm.opt.smp" "${D}/etc/tivoli/dsm.opt"
+ dosym ../../../../../../etc/tivoli/dsm.opt /opt/tivoli/tsm/client/ba/bin/dsm.opt
+
+ # Setup the env
+ dodir /etc/env.d
+ ENV_FILE="${D}/etc/env.d/80tivoli"
+ echo 'DSM_CONFIG="/etc/tivoli/dsm.opt"' >> ${ENV_FILE}
+ echo 'DSM_DIR="/opt/tivoli/tsm/client/ba/bin"' >> ${ENV_FILE}
+ echo 'DSM_LOG="/var/log/tsm"' >> ${ENV_FILE}
+ echo 'ROOTPATH="/opt/tivoli/tsm/client/ba/bin"' >> ${ENV_FILE}
+
+ newconfd "${FILESDIR}/dsmc.conf.d" dsmc
+ newinitd "${FILESDIR}/dsmc.init.d" dsmc
+ newinitd "${FILESDIR}/dsmcad.init.d-r1" dsmcad
+
+ systemd_dounit "${FILESDIR}/dsmc.service"
+ systemd_dounit "${FILESDIR}/dsmcad.service"
+
+ readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+ local i dirs
+ for i in /var/log/tsm/dsm{error,sched,j,webcl}.log; do
+ if [[ ! -e $i ]]; then
+ touch $i || die
+ chown :tsm $i || die
+ chmod 0660 $i || die
+ fi
+ done
+
+ # Bug #375041: the log directory itself should not be world writable.
+ # Have to do this in postinst due to bug #141619
+ chown root:tsm /var/log/tsm || die
+ chmod 0750 /var/log/tsm || die
+
+ # Bug 508052: directories used to be too restrictive, have to widen perms.
+ dirs=( /opt/tivoli $(find /opt/tivoli/tsm -type d) )
+ chown root:root "${dirs[@]}" || die
+ chmod 0755 "${dirs[@]}" || die
+
+ readme.gentoo_print_elog
+}
diff --git a/app-backup/tsm/tsm-7.1.2.0.ebuild b/app-backup/tsm/tsm-7.1.2.0.ebuild
new file mode 100644
index 000000000000..7bdbe858b56b
--- /dev/null
+++ b/app-backup/tsm/tsm-7.1.2.0.ebuild
@@ -0,0 +1,240 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+
+inherit versionator multilib eutils readme.gentoo rpm systemd user
+
+DESCRIPTION="Tivoli Storage Manager (TSM) Backup/Archive (B/A) Client and API"
+HOMEPAGE="http://www.tivoli.com/"
+
+MY_PV_MAJOR=$(get_major_version)
+MY_PV_MINOR=$(get_version_component_range 2)
+MY_PV_TINY=$(get_version_component_range 3)
+MY_PV_PATCH=$(get_version_component_range 4)
+
+MY_PV_NODOTS="${MY_PV_MAJOR}${MY_PV_MINOR}${MY_PV_TINY}"
+MY_PVR_ALLDOTS=${PV}
+
+if [[ ${MY_PV_PATCH} == 0 ]]; then
+ MY_RELEASE_PATH=maintenance
+else
+ MY_RELEASE_PATH=patches
+fi
+BASE_URI="ftp://ftp.software.ibm.com/storage/tivoli-storage-management/"
+BASE_URI+="${MY_RELEASE_PATH}/client/v${MY_PV_MAJOR}r${MY_PV_MINOR}/"
+BASE_URI+="Linux/LinuxX86/BA/v${MY_PV_NODOTS}/"
+SRC_TAR="${MY_PVR_ALLDOTS}-TIV-TSMBAC-LinuxX86.tar"
+SRC_URI="${BASE_URI}${SRC_TAR}"
+
+RESTRICT="strip" # Breaks libPiIMG.so and libPiSNAP.so
+LICENSE="Apache-1.1 Apache-2.0 JDOM BSD-2 CC-PD Boost-1.0 MIT CPL-1.0 HPND Exolab
+ dom4j EPL-1.0 FTL icu unicode IBM Info-ZIP LGPL-2 LGPL-2.1 openafs-krb5-a
+ ZLIB MPL-1.0 MPL-1.1 NPL-1.1 openssl OPENLDAP RSA public-domain W3C
+ || ( BSD GPL-2+ ) gSOAP libpng tsm"
+
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="acl java +tsm_cit +tsm_hw"
+QA_PREBUILT="*"
+
+MY_LANGS="cs:CS_CZ de:DE_DE es:ES_ES fr:FR_FR hu:HU_HU it:IT_IT
+ ja:JA_JP ko:KO_KR pl:PL_PL pt:PT_BR ru:RU_RU zh:ZH_CN zh_TW:ZH_TW"
+MY_LANG_PV="${MY_PVR_ALLDOTS}-"
+for lang in ${MY_LANGS}; do
+ IUSE="${IUSE} linguas_${lang%:*}"
+ SRC_URI="${SRC_URI} linguas_${lang%:*}? ( \
+${BASE_URI}TIVsm-msg.${lang#*:}.x86_64.rpm -> \
+${MY_LANG_PV}TIVsm-msg.${lang#*:}.x86_64.rpm )"
+done
+unset lang
+
+DEPEND=""
+RDEPEND="
+ dev-libs/expat
+ dev-libs/libxml2
+ =sys-fs/fuse-2*
+ acl? ( sys-apps/acl )
+ java? ( virtual/jre:1.7 )
+"
+
+S="${WORKDIR}"
+
+pkg_setup() {
+ enewgroup tsm
+ DOC_CONTENTS="
+ Note that you have to be either root or member of the group tsm to
+ be able to use the Tivoli Storage Manager client."
+}
+
+src_unpack() {
+ local rpm rpms lang
+ unpack ${SRC_TAR}
+
+ for rpm in *.rpm; do
+ case ${rpm} in
+ TIVsm-APIcit.*|TIVsm-BAcit.*)
+ use tsm_cit && rpms="${rpms} ./${rpm}"
+ ;;
+ TIVsm-BAhdw.*)
+ use tsm_hw && rpms="${rpms} ./${rpm}"
+ ;;
+ TIVsm-JBB.*|*-filepath-*)
+ # "journal based backup" for all filesystems
+ # requires a kernel module.
+ # "Linux Filepath source code" available
+ # by request from vendor
+ ;;
+ *)
+ rpms="${rpms} ./${rpm}"
+ ;;
+ esac
+ done
+ for rpm in ${A}; do
+ case ${rpm} in
+ *.rpm)
+ rpms="${rpms} ${rpm}"
+ ;;
+ esac
+ done
+
+ rpm_unpack ${rpms}
+
+ # Avoid strange error messages caused by read-only files
+ chmod -R u+w "${S}" || die
+}
+
+src_prepare() {
+ # Avoid unnecessary dependency on ksh
+ sed -i 's:^#!/usr/bin/ksh:#!/bin/bash:' \
+ opt/tivoli/tsm/client/ba/bin/dsmj || die
+}
+
+src_install() {
+ cp -a opt "${D}" || die
+ cp -a usr "${D}" || die
+
+ # The RPM files contain postinstall scripts which can be extracted
+ # e.g. using https://bugs.gentoo.org/attachment.cgi?id=234663 .
+ # Below we try to mimic the behaviour of these scripts.
+ # We don't deal with SELinux compliance (yet), though.
+ local RPM_INSTALL_PREFIX CLIENTDIR i
+ RPM_INSTALL_PREFIX=/opt
+ CLIENTDIR=$RPM_INSTALL_PREFIX/tivoli/tsm/client
+
+ # We don't bother setting timestamps to build dates.
+ # But we should delete the corresponding files.
+ rm -f "${D}"$CLIENTDIR/api/bin*/.buildDate || die
+ rm -f "${D}"$CLIENTDIR/ba/bin*/.buildDate || die
+ rm -f "${D}"$CLIENTDIR/lang/.buildDate || die
+
+ # Create links for messages; this is spread over several postin scripts.
+ for i in $(cd "${D}"${CLIENTDIR}/lang; ls -1d ??_??); do
+ dosym ../../lang/${i} $CLIENTDIR/ba/bin/${i}
+ dosym ../../lang/${i} $CLIENTDIR/api/bin64/${i}
+ done
+
+ # Mimic TIVsm-API64 postinstall script
+ for i in libgpfs.so libdmapi.so; do
+ dosym ../..$CLIENTDIR/api/bin64/${i} /usr/lib64/${i}
+ done
+
+ # The TIVsm-BA postinstall script only does messages and ancient upgrades
+
+ # The gscrypt64 postinstall script only deals with s390[x] SELinux
+ # and the symlink for the iccs library which we handle in the loop below.
+
+ # Move stuff from /usr/local to /opt, #452332
+ mv "${D}"/usr/local/ibm "${D}"/opt/ || die
+ rmdir "${D}"/usr/local || die
+
+ # Mimic gskssl64 postinstall script
+ for i in sys p11 km ssl drld kicc ldap cms acmeidup valn dbfl iccs; do
+ dosym ../../opt/ibm/gsk8_64/lib64/libgsk8${i}_64.so \
+ /usr/lib64/libgsk8${i}_64.so
+ done
+ for i in capicmd ver; do
+ dosym ../../opt/ibm/gsk8_64/bin/gsk8${i}_64 /usr/bin/gsk${i}_64
+ done
+
+ # Done with the postinstall scripts as the RPMs contain them.
+ # Now on to some more Gentoo-specific installation.
+
+ [[ -d "${D}usr/lib" ]] && die "Using 32bit lib dir in 64bit only system"
+
+ # Avoid "QA Notice: Found an absolute symlink in a library directory"
+ local target
+ find "${D}"usr/lib* -lname '/*' | while read i; do
+ target=$(readlink "${i}")
+ rm -v "${i}" || die
+ dosym "../..${target}" "${i#${D}}"
+ done
+
+ # Install symlinks for sonames of libraries, bug #416503
+ dosym libvixMntapi.so.1.1.0 $CLIENTDIR/ba/bin/libvixMntapi.so.1
+ dosym libvixDiskLibVim.so.6.0.0 $CLIENTDIR/ba/bin/libvixDiskLibVim.so.6
+ dosym libvixDiskLib.so.6.0.0 $CLIENTDIR/ba/bin/libvixDiskLib.so.6
+
+ fowners :tsm /opt/tivoli/tsm/client/ba/bin/dsmtca
+ fperms 4710 /opt/tivoli/tsm/client/ba/bin/dsmtca
+
+ keepdir /var/log/tsm
+ insinto /etc/logrotate.d
+ newins "${FILESDIR}/tsm.logrotate" tsm
+
+ keepdir /etc/tivoli
+
+ cp -a "${S}/opt/tivoli/tsm/client/ba/bin/dsm.sys.smp" "${D}/etc/tivoli/dsm.sys" || die
+ echo ' PasswordDir "/etc/tivoli/"' >> ${D}/etc/tivoli/dsm.sys
+ echo ' PasswordAccess generate' >> ${D}/etc/tivoli/dsm.sys
+
+ # Added the hostname to be more friendly, the admin will need to edit this file anyway
+ echo ' NodeName' `hostname` >> ${D}/etc/tivoli/dsm.sys
+ echo ' ErrorLogName "/var/log/tsm/dsmerror.log"' >> ${D}/etc/tivoli/dsm.sys
+ echo ' SchedLogName "/var/log/tsm/dsmsched.log"' >> ${D}/etc/tivoli/dsm.sys
+ dosym ../../../../../../etc/tivoli/dsm.sys /opt/tivoli/tsm/client/ba/bin/dsm.sys
+
+ cp -a "${S}/opt/tivoli/tsm/client/ba/bin/dsm.opt.smp" "${D}/etc/tivoli/dsm.opt"
+ dosym ../../../../../../etc/tivoli/dsm.opt /opt/tivoli/tsm/client/ba/bin/dsm.opt
+
+ # Setup the env
+ dodir /etc/env.d
+ ENV_FILE="${D}/etc/env.d/80tivoli"
+ echo 'DSM_CONFIG="/etc/tivoli/dsm.opt"' >> ${ENV_FILE}
+ echo 'DSM_DIR="/opt/tivoli/tsm/client/ba/bin"' >> ${ENV_FILE}
+ echo 'DSM_LOG="/var/log/tsm"' >> ${ENV_FILE}
+ echo 'ROOTPATH="/opt/tivoli/tsm/client/ba/bin"' >> ${ENV_FILE}
+
+ newconfd "${FILESDIR}/dsmc.conf.d" dsmc
+ newinitd "${FILESDIR}/dsmc.init.d" dsmc
+ newinitd "${FILESDIR}/dsmcad.init.d-r1" dsmcad
+
+ systemd_dounit "${FILESDIR}/dsmc.service"
+ systemd_dounit "${FILESDIR}/dsmcad.service"
+
+ readme.gentoo_create_doc
+}
+
+pkg_postinst() {
+ local i dirs
+ for i in /var/log/tsm/dsm{error,sched,j,webcl}.log; do
+ if [[ ! -e $i ]]; then
+ touch $i || die
+ chown :tsm $i || die
+ chmod 0660 $i || die
+ fi
+ done
+
+ # Bug #375041: the log directory itself should not be world writable.
+ # Have to do this in postinst due to bug #141619
+ chown root:tsm /var/log/tsm || die
+ chmod 0750 /var/log/tsm || die
+
+ # Bug 508052: directories used to be too restrictive, have to widen perms.
+ dirs=( /opt/tivoli $(find /opt/tivoli/tsm -type d) )
+ chown root:root "${dirs[@]}" || die
+ chmod 0755 "${dirs[@]}" || die
+
+ readme.gentoo_print_elog
+}
diff --git a/app-backup/vzdump/Manifest b/app-backup/vzdump/Manifest
new file mode 100644
index 000000000000..a998a9e6e2fe
--- /dev/null
+++ b/app-backup/vzdump/Manifest
@@ -0,0 +1 @@
+DIST vzdump-1.2.tar.gz 20296 SHA256 356216d38281d956cb7ba21d7c56df9a57b51bf23410ac835a7dd8f0cba1c62e SHA512 c24bf785704ca3a624127b322a87fee5436fa272e42db159bd08b575405a9ec427d9ad3c82bb0a839495ece4f53b7dafcadc0430b8074368bb8cd844eb31b6cc WHIRLPOOL 3ca8bec0140756adcd66ecad4207b31413032c6c54fe05ce723d4a932e8893d3df463ff71e37e1f18d52792dbb37b5d08b5d9a940c09cac71a591307b1cf0fdb
diff --git a/app-backup/vzdump/metadata.xml b/app-backup/vzdump/metadata.xml
new file mode 100644
index 000000000000..a6301c038226
--- /dev/null
+++ b/app-backup/vzdump/metadata.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer>
+ <email>pva@gentoo.org</email>
+ <name>Peter Volkov</name>
+</maintainer>
+<maintainer>
+ <email>andreis.vinogradovs@gmail.com</email>
+ <name>Andreis Vinogradovs</name>
+ <description>Primary maintainer, assign bugs to him</description>
+</maintainer>
+<longdescription lang="en">
+vzdump is a utility to make consistent snapshots of running OpenVZ VEs. It basically creates a tar archive of the VE private area, which also includes the VE configuration files.
+There are several ways to provide consistency:
+ - stop the VE during backup (very long downtime)
+ - use rsync and suspend/resume (minimal downtime)
+ - use LVM2 (no downtime)
+</longdescription>
+</pkgmetadata>
+
diff --git a/app-backup/vzdump/vzdump-1.2.ebuild b/app-backup/vzdump/vzdump-1.2.ebuild
new file mode 100644
index 000000000000..49ba300a523f
--- /dev/null
+++ b/app-backup/vzdump/vzdump-1.2.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI="2"
+
+DESCRIPTION="A utility to make consistent snapshots of running OpenVZ containers"
+HOMEPAGE="http://pve.proxmox.com/wiki/VZDump"
+SRC_URI="http://www.proxmox.com/cms_proxmox/cms/upload/vzdump/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~x86 ~amd64"
+IUSE=""
+
+RDEPEND="dev-lang/perl
+ dev-perl/LockFile-Simple
+ virtual/perl-Getopt-Long
+ sys-cluster/vzctl
+ net-misc/rsync
+ app-misc/cstream
+ virtual/mta
+ sys-fs/lvm2"
+
+src_compile() {
+ :;
+}
+
+src_install() {
+ local installvendorlib
+ eval "$(perl -V:installvendorlib )"
+ make PERLLIBDIR="${installvendorlib}/PVE" DESTDIR="${D}" install || die "make install failed"
+ dodoc ChangeLog TODO
+}