summaryrefslogtreecommitdiff
path: root/app-backup
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /app-backup
reinit the tree, so we can have metadata
Diffstat (limited to 'app-backup')
-rw-r--r--app-backup/amanda/Manifest35
-rw-r--r--app-backup/amanda/amanda-3.3.9.ebuild475
-rw-r--r--app-backup/amanda/amanda-3.4.1.ebuild482
-rw-r--r--app-backup/amanda/amanda-3.4.2.ebuild479
-rw-r--r--app-backup/amanda/amanda-3.4.3.ebuild479
-rw-r--r--app-backup/amanda/amanda-3.4.4.ebuild479
-rw-r--r--app-backup/amanda/amanda-3.4.5.ebuild479
-rw-r--r--app-backup/amanda/amanda-3.5.ebuild480
-rw-r--r--app-backup/amanda/files/amanda-3.3.9-stuck.patch11
-rw-r--r--app-backup/amanda/files/amanda-3.4.1-labelstr.patch164
-rw-r--r--app-backup/amanda/files/amanda-3.4.1-slots.patch16
-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.xml30
-rw-r--r--app-backup/attic/Manifest5
-rw-r--r--app-backup/attic/attic-0.16.ebuild34
-rw-r--r--app-backup/attic/attic-9999.ebuild34
-rw-r--r--app-backup/attic/metadata.xml11
-rw-r--r--app-backup/backintime/Manifest7
-rw-r--r--app-backup/backintime/backintime-1.1.12.ebuild77
-rw-r--r--app-backup/backintime/backintime-1.1.8-r1.ebuild77
-rw-r--r--app-backup/backintime/metadata.xml17
-rw-r--r--app-backup/backup-manager/Manifest9
-rw-r--r--app-backup/backup-manager/backup-manager-0.7.13-r1.ebuild45
-rw-r--r--app-backup/backup-manager/backup-manager-0.7.13.ebuild46
-rw-r--r--app-backup/backup-manager/backup-manager-0.7.5.ebuild43
-rw-r--r--app-backup/backup-manager/files/Makefile-fix.diff25
-rw-r--r--app-backup/backup-manager/metadata.xml15
-rw-r--r--app-backup/backupninja/Manifest5
-rw-r--r--app-backup/backupninja/backupninja-1.0.1.ebuild26
-rw-r--r--app-backup/backupninja/metadata.xml13
-rw-r--r--app-backup/backuppc/Manifest15
-rw-r--r--app-backup/backuppc/backuppc-3.3.1-r4.ebuild196
-rw-r--r--app-backup/backuppc/backuppc-3.3.1-r5.ebuild197
-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.patch137
-rw-r--r--app-backup/backuppc/files/3.3.0/03-reasonable-config.pl-defaults.patch64
-rw-r--r--app-backup/backuppc/files/99_backuppc.conf32
-rw-r--r--app-backup/backuppc/files/backuppc-3.3.1-perl522.patch17
-rw-r--r--app-backup/backuppc/files/backuppc-3.3.1-perl526.patch21
-rw-r--r--app-backup/backuppc/files/backuppc.service13
-rw-r--r--app-backup/backuppc/metadata.xml8
-rw-r--r--app-backup/bacula/Manifest41
-rw-r--r--app-backup/bacula/bacula-5.2.13-r5.ebuild424
-rw-r--r--app-backup/bacula/bacula-7.0.5-r1.ebuild402
-rw-r--r--app-backup/bacula/bacula-7.0.5-r2.ebuild404
-rw-r--r--app-backup/bacula/bacula-7.4.4-r2.ebuild412
-rw-r--r--app-backup/bacula/bacula-7.4.6.ebuild412
-rw-r--r--app-backup/bacula/bacula-7.4.7.ebuild412
-rw-r--r--app-backup/bacula/bacula-9.0.3.ebuild418
-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/7.2.0/bacula-7.2.0-doc.patch12
-rw-r--r--app-backup/bacula/files/7.2.0/bacula-7.2.0-fix-static.patch56
-rw-r--r--app-backup/bacula/files/9.0.2/bacula-9.0.2-fix-static.patch63
-rw-r--r--app-backup/bacula/files/9.0.2/bacula-9.0.2-lib-search-path.patch25
-rw-r--r--app-backup/bacula/files/bacula-dir.confd16
-rw-r--r--app-backup/bacula/files/bacula-dir.initd24
-rw-r--r--app-backup/bacula/files/bacula-fd.confd7
-rw-r--r--app-backup/bacula/files/bacula-fd.initd21
-rw-r--r--app-backup/bacula/files/bacula-fix-sonames.patch36
-rw-r--r--app-backup/bacula/files/bacula-sd.confd10
-rw-r--r--app-backup/bacula/files/bacula-sd.initd21
-rwxr-xr-xapp-backup/bacula/files/newscripts/bacula-dir.initd15
-rwxr-xr-xapp-backup/bacula/files/newscripts/bacula-fd.initd12
-rwxr-xr-xapp-backup/bacula/files/newscripts/bacula-sd.initd11
-rw-r--r--app-backup/bacula/metadata.xml18
-rw-r--r--app-backup/bareos/Manifest21
-rw-r--r--app-backup/bareos/bareos-13.2.4-r1.ebuild403
-rw-r--r--app-backup/bareos/bareos-14.2.2.ebuild414
-rw-r--r--app-backup/bareos/bareos-14.2.5.ebuild414
-rw-r--r--app-backup/bareos/bareos-15.2.2.ebuild428
-rw-r--r--app-backup/bareos/bareos-16.2.4.ebuild428
-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.confd17
-rw-r--r--app-backup/bareos/files/bareos-dir.initd21
-rw-r--r--app-backup/bareos/files/bareos-fd.confd7
-rw-r--r--app-backup/bareos/files/bareos-fd.initd21
-rw-r--r--app-backup/bareos/files/bareos-sd.confd10
-rw-r--r--app-backup/bareos/files/bareos-sd.initd21
-rw-r--r--app-backup/bareos/metadata.xml28
-rw-r--r--app-backup/borgbackup/Manifest11
-rw-r--r--app-backup/borgbackup/borgbackup-1.0.10.ebuild39
-rw-r--r--app-backup/borgbackup/borgbackup-1.0.11.ebuild39
-rw-r--r--app-backup/borgbackup/borgbackup-1.0.9.ebuild39
-rw-r--r--app-backup/borgbackup/borgbackup-1.1.0.ebuild40
-rw-r--r--app-backup/borgbackup/borgbackup-9999.ebuild40
-rw-r--r--app-backup/borgbackup/metadata.xml15
-rw-r--r--app-backup/borgweb/Manifest3
-rw-r--r--app-backup/borgweb/borgweb-0.2.0-r2.ebuild21
-rw-r--r--app-backup/borgweb/metadata.xml11
-rw-r--r--app-backup/btrbk/Manifest7
-rw-r--r--app-backup/btrbk/btrbk-0.24.0-r1.ebuild32
-rw-r--r--app-backup/btrbk/btrbk-0.25.1.ebuild32
-rw-r--r--app-backup/btrbk/btrbk-9999.ebuild32
-rw-r--r--app-backup/btrbk/metadata.xml28
-rw-r--r--app-backup/bup/Manifest9
-rw-r--r--app-backup/bup/bup-0.28.1.ebuild57
-rw-r--r--app-backup/bup/bup-0.29-r1.ebuild60
-rw-r--r--app-backup/bup/bup-0.29.1.ebuild60
-rw-r--r--app-backup/bup/bup-0.29.ebuild57
-rw-r--r--app-backup/bup/metadata.xml14
-rw-r--r--app-backup/burp/Manifest28
-rw-r--r--app-backup/burp/burp-1.4.40-r5.ebuild115
-rw-r--r--app-backup/burp/burp-2.0.54-r1.ebuild112
-rw-r--r--app-backup/burp/burp-2.0.54-r2.ebuild114
-rw-r--r--app-backup/burp/burp-2.0.54.ebuild110
-rw-r--r--app-backup/burp/burp-2.1.10.ebuild112
-rw-r--r--app-backup/burp/burp-2.1.12.ebuild114
-rw-r--r--app-backup/burp/burp-2.1.20.ebuild113
-rw-r--r--app-backup/burp/files/1.4.40-bedup-conf-path.patch33
-rw-r--r--app-backup/burp/files/1.4.40-non-zero-or-build-failure.patch13
-rw-r--r--app-backup/burp/files/1.4.40-tinfo.patch22
-rw-r--r--app-backup/burp/files/burp-2.0.54-ncurses_pkg-config.patch37
-rw-r--r--app-backup/burp/files/burp-2.0.54-no_mkdir_run.patch10
-rw-r--r--app-backup/burp/files/burp-2.0.54-protocol1_by_default.patch24
-rw-r--r--app-backup/burp/files/burp-2.0.54-server_user.patch13
-rw-r--r--app-backup/burp/files/burp-2.1.20-no_mkdir_run.patch10
-rw-r--r--app-backup/burp/files/burp-2.1.20-protocol1_by_default.patch24
-rw-r--r--app-backup/burp/files/burp.initd46
-rw-r--r--app-backup/burp/files/burp.service11
-rw-r--r--app-backup/burp/files/burp.tmpfiles1
-rw-r--r--app-backup/burp/files/burp2.initd45
-rw-r--r--app-backup/burp/metadata.xml18
-rw-r--r--app-backup/buttersink/Manifest4
-rw-r--r--app-backup/buttersink/buttersink-0.6.8.ebuild47
-rw-r--r--app-backup/buttersink/buttersink-9999.ebuild47
-rw-r--r--app-backup/buttersink/metadata.xml11
-rw-r--r--app-backup/ccollect/Manifest5
-rw-r--r--app-backup/ccollect/ccollect-0.8.ebuild75
-rw-r--r--app-backup/ccollect/metadata.xml7
-rw-r--r--app-backup/cdbackup/Manifest5
-rw-r--r--app-backup/cdbackup/cdbackup-0.7.1-r1.ebuild34
-rw-r--r--app-backup/cdbackup/metadata.xml5
-rw-r--r--app-backup/cdbkup/Manifest5
-rw-r--r--app-backup/cdbkup/cdbkup-1.0-r2.ebuild36
-rw-r--r--app-backup/cdbkup/metadata.xml10
-rw-r--r--app-backup/cpdup/Manifest7
-rw-r--r--app-backup/cpdup/cpdup-1.18.ebuild45
-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.xml8
-rw-r--r--app-backup/dar/Manifest7
-rw-r--r--app-backup/dar/dar-2.5.11.ebuild96
-rw-r--r--app-backup/dar/dar-2.5.12.ebuild96
-rw-r--r--app-backup/dar/metadata.xml24
-rw-r--r--app-backup/deja-dup/Manifest5
-rw-r--r--app-backup/deja-dup/deja-dup-34.3.ebuild74
-rw-r--r--app-backup/deja-dup/metadata.xml14
-rw-r--r--app-backup/dirvish/Manifest6
-rw-r--r--app-backup/dirvish/dirvish-1.2.1.ebuild38
-rw-r--r--app-backup/dirvish/files/master.conf.example33
-rw-r--r--app-backup/dirvish/metadata.xml10
-rw-r--r--app-backup/duplicity/Manifest14
-rw-r--r--app-backup/duplicity/duplicity-0.7.10.ebuild51
-rw-r--r--app-backup/duplicity/duplicity-0.7.11.ebuild51
-rw-r--r--app-backup/duplicity/duplicity-0.7.12.ebuild51
-rw-r--r--app-backup/duplicity/duplicity-0.7.13.1.ebuild51
-rw-r--r--app-backup/duplicity/duplicity-0.7.14.ebuild51
-rw-r--r--app-backup/duplicity/files/duplicity-0.6.24-skip-test.patch10
-rw-r--r--app-backup/duplicity/metadata.xml15
-rw-r--r--app-backup/duply/Manifest16
-rw-r--r--app-backup/duply/duply-1.11.2.ebuild28
-rw-r--r--app-backup/duply/duply-1.11.3.ebuild28
-rw-r--r--app-backup/duply/duply-1.9.2.ebuild27
-rw-r--r--app-backup/duply/duply-2.0.1.ebuild28
-rw-r--r--app-backup/duply/duply-2.0.2.ebuild28
-rw-r--r--app-backup/duply/duply-2.0.3.ebuild28
-rw-r--r--app-backup/duply/files/README.gentoo4
-rw-r--r--app-backup/duply/metadata.xml16
-rw-r--r--app-backup/flexbackup/Manifest18
-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/files/flexbackup-1.2.1-tar-1.29.patch15
-rw-r--r--app-backup/flexbackup/flexbackup-1.2.1-r12.ebuild84
-rw-r--r--app-backup/flexbackup/flexbackup-1.2.1-r13.ebuild90
-rw-r--r--app-backup/flexbackup/metadata.xml10
-rw-r--r--app-backup/fsarchiver/Manifest7
-rw-r--r--app-backup/fsarchiver/fsarchiver-0.8.1.ebuild39
-rw-r--r--app-backup/fsarchiver/fsarchiver-0.8.2.ebuild39
-rw-r--r--app-backup/fsarchiver/metadata.xml12
-rw-r--r--app-backup/furball/Manifest5
-rw-r--r--app-backup/furball/furball-0.5.ebuild21
-rw-r--r--app-backup/furball/metadata.xml5
-rw-r--r--app-backup/genbackupdata/Manifest3
-rw-r--r--app-backup/genbackupdata/genbackupdata-1.9.ebuild31
-rw-r--r--app-backup/genbackupdata/metadata.xml8
-rw-r--r--app-backup/hdup/Manifest5
-rw-r--r--app-backup/hdup/hdup-2.0.14.ebuild58
-rw-r--r--app-backup/hdup/metadata.xml5
-rw-r--r--app-backup/holland-backup-example/Manifest5
-rw-r--r--app-backup/holland-backup-example/holland-backup-example-1.0.10.ebuild39
-rw-r--r--app-backup/holland-backup-example/metadata.xml5
-rw-r--r--app-backup/holland-backup-mysql-lvm/Manifest5
-rw-r--r--app-backup/holland-backup-mysql-lvm/holland-backup-mysql-lvm-1.0.10.ebuild51
-rw-r--r--app-backup/holland-backup-mysql-lvm/metadata.xml5
-rw-r--r--app-backup/holland-backup-mysql-meta/Manifest4
-rw-r--r--app-backup/holland-backup-mysql-meta/holland-backup-mysql-meta-1.0.10.ebuild26
-rw-r--r--app-backup/holland-backup-mysql-meta/metadata.xml10
-rw-r--r--app-backup/holland-backup-mysqldump/Manifest5
-rw-r--r--app-backup/holland-backup-mysqldump/holland-backup-mysqldump-1.0.10.ebuild52
-rw-r--r--app-backup/holland-backup-mysqldump/metadata.xml5
-rw-r--r--app-backup/holland-backup-mysqlhotcopy/Manifest5
-rw-r--r--app-backup/holland-backup-mysqlhotcopy/holland-backup-mysqlhotcopy-1.0.10.ebuild46
-rw-r--r--app-backup/holland-backup-mysqlhotcopy/metadata.xml5
-rw-r--r--app-backup/holland-backup-pgdump/Manifest5
-rw-r--r--app-backup/holland-backup-pgdump/holland-backup-pgdump-1.0.10.ebuild38
-rw-r--r--app-backup/holland-backup-pgdump/metadata.xml5
-rw-r--r--app-backup/holland-backup-random/Manifest5
-rw-r--r--app-backup/holland-backup-random/holland-backup-random-1.0.10.ebuild39
-rw-r--r--app-backup/holland-backup-random/metadata.xml5
-rw-r--r--app-backup/holland-backup-sqlite/Manifest5
-rw-r--r--app-backup/holland-backup-sqlite/holland-backup-sqlite-1.0.10.ebuild39
-rw-r--r--app-backup/holland-backup-sqlite/metadata.xml5
-rw-r--r--app-backup/holland-lib-common/Manifest5
-rw-r--r--app-backup/holland-lib-common/holland-lib-common-1.0.10.ebuild25
-rw-r--r--app-backup/holland-lib-common/metadata.xml5
-rw-r--r--app-backup/holland-lib-lvm/Manifest5
-rw-r--r--app-backup/holland-lib-lvm/holland-lib-lvm-1.0.10.ebuild25
-rw-r--r--app-backup/holland-lib-lvm/metadata.xml5
-rw-r--r--app-backup/holland-lib-mysql/Manifest5
-rw-r--r--app-backup/holland-lib-mysql/holland-lib-mysql-1.0.10.ebuild38
-rw-r--r--app-backup/holland-lib-mysql/metadata.xml5
-rw-r--r--app-backup/holland/Manifest5
-rw-r--r--app-backup/holland/holland-1.0.10.ebuild55
-rw-r--r--app-backup/holland/metadata.xml5
-rw-r--r--app-backup/kbackup/Manifest5
-rw-r--r--app-backup/kbackup/kbackup-1.0.ebuild39
-rw-r--r--app-backup/kbackup/metadata.xml8
-rw-r--r--app-backup/kfoldersync/Manifest4
-rw-r--r--app-backup/kfoldersync/kfoldersync-3.4.1.ebuild33
-rw-r--r--app-backup/kfoldersync/metadata.xml15
-rw-r--r--app-backup/luckybackup/Manifest5
-rw-r--r--app-backup/luckybackup/luckybackup-0.4.8.ebuild52
-rw-r--r--app-backup/luckybackup/metadata.xml11
-rw-r--r--app-backup/metadata.xml42
-rw-r--r--app-backup/mirdir/Manifest5
-rw-r--r--app-backup/mirdir/metadata.xml11
-rw-r--r--app-backup/mirdir/mirdir-2.1-r2.ebuild26
-rw-r--r--app-backup/mylvmbackup/Manifest5
-rw-r--r--app-backup/mylvmbackup/metadata.xml9
-rw-r--r--app-backup/mylvmbackup/mylvmbackup-0.14.ebuild31
-rw-r--r--app-backup/obnam/Manifest10
-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.19.1.ebuild42
-rw-r--r--app-backup/obnam/obnam-1.21.ebuild42
-rw-r--r--app-backup/obnam/obnam-1.22.ebuild42
-rw-r--r--app-backup/pdumpfs/Manifest7
-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.xml19
-rw-r--r--app-backup/pdumpfs/pdumpfs-1.3-r2.ebuild47
-rw-r--r--app-backup/qt4-fsarchiver/Manifest7
-rw-r--r--app-backup/qt4-fsarchiver/metadata.xml8
-rw-r--r--app-backup/qt4-fsarchiver/qt4-fsarchiver-0.6.19.6.ebuild65
-rw-r--r--app-backup/qt4-fsarchiver/qt4-fsarchiver-0.6.19.7.ebuild65
-rw-r--r--app-backup/rdedup/Manifest34
-rw-r--r--app-backup/rdedup/metadata.xml11
-rw-r--r--app-backup/rdedup/rdedup-1.0.2.ebuild64
-rw-r--r--app-backup/rdiff-backup/Manifest7
-rw-r--r--app-backup/rdiff-backup/files/rdiff-backup-1.3.3-librsync-1.0.0.patch16
-rw-r--r--app-backup/rdiff-backup/metadata.xml16
-rw-r--r--app-backup/rdiff-backup/rdiff-backup-1.3.3-r1.ebuild32
-rw-r--r--app-backup/rdiff-backup/rdiff-backup-1.3.3-r2.ebuild34
-rw-r--r--app-backup/rdumpfs/Manifest5
-rw-r--r--app-backup/rdumpfs/metadata.xml11
-rw-r--r--app-backup/rdumpfs/rdumpfs-0.1.ebuild28
-rw-r--r--app-backup/rdup/Manifest3
-rw-r--r--app-backup/rdup/metadata.xml11
-rw-r--r--app-backup/rdup/rdup-1.1.15.ebuild41
-rw-r--r--app-backup/rear/Manifest10
-rw-r--r--app-backup/rear/files/rear-1.15-add-support-for-gentoo-kernels.patch19
-rw-r--r--app-backup/rear/metadata.xml22
-rw-r--r--app-backup/rear/rear-1.15-r1.ebuild58
-rw-r--r--app-backup/rear/rear-1.17.0.ebuild56
-rw-r--r--app-backup/rear/rear-1.17.1.ebuild56
-rw-r--r--app-backup/reoback/Manifest5
-rw-r--r--app-backup/reoback/metadata.xml8
-rw-r--r--app-backup/reoback/reoback-1.0_p3-r1.ebuild43
-rw-r--r--app-backup/restic/Manifest7
-rw-r--r--app-backup/restic/metadata.xml15
-rw-r--r--app-backup/restic/restic-0.6.1.ebuild45
-rw-r--r--app-backup/restic/restic-0.7.1.ebuild45
-rw-r--r--app-backup/restic/restic-0.7.3.ebuild62
-rw-r--r--app-backup/rsnapshot/Manifest11
-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.xml13
-rw-r--r--app-backup/rsnapshot/rsnapshot-1.3.1-r2.ebuild51
-rw-r--r--app-backup/rsnapshot/rsnapshot-1.4.1.ebuild44
-rw-r--r--app-backup/rsnapshot/rsnapshot-1.4.2.ebuild50
-rw-r--r--app-backup/sarab/Manifest7
-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.ebuild39
-rw-r--r--app-backup/simplebackup/Manifest5
-rw-r--r--app-backup/simplebackup/metadata.xml8
-rw-r--r--app-backup/simplebackup/simplebackup-1.8.1-r1.ebuild28
-rw-r--r--app-backup/snapper/Manifest14
-rw-r--r--app-backup/snapper/files/cron-confd.patch32
-rw-r--r--app-backup/snapper/files/snapper-0.5.0-gcc6.patch21
-rw-r--r--app-backup/snapper/metadata.xml41
-rw-r--r--app-backup/snapper/snapper-0.2.8-r1.ebuild72
-rw-r--r--app-backup/snapper/snapper-0.3.3.ebuild72
-rw-r--r--app-backup/snapper/snapper-0.4.1.ebuild72
-rw-r--r--app-backup/snapper/snapper-0.5.0.ebuild74
-rw-r--r--app-backup/snapper/snapper-9999.ebuild71
-rw-r--r--app-backup/spideroak-bin/Manifest6
-rw-r--r--app-backup/spideroak-bin/metadata.xml8
-rw-r--r--app-backup/spideroak-bin/spideroak-bin-6.3.0-r1.ebuild104
-rw-r--r--app-backup/tarsnap/Manifest7
-rw-r--r--app-backup/tarsnap/metadata.xml8
-rw-r--r--app-backup/tarsnap/tarsnap-1.0.35.ebuild37
-rw-r--r--app-backup/tarsnap/tarsnap-1.0.37.ebuild43
-rw-r--r--app-backup/tob/Manifest8
-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.xml5
-rw-r--r--app-backup/tob/tob-0.26-r2.ebuild38
-rw-r--r--app-backup/tsm/Manifest92
-rw-r--r--app-backup/tsm/files/dsmc.conf.d7
-rw-r--r--app-backup/tsm/files/dsmc.init.d27
-rw-r--r--app-backup/tsm/files/dsmc.service10
-rw-r--r--app-backup/tsm/files/dsmcad.init.d-r125
-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.xml26
-rw-r--r--app-backup/tsm/tsm-7.1.0.0-r1.ebuild239
-rw-r--r--app-backup/tsm/tsm-7.1.0.3.ebuild239
-rw-r--r--app-backup/tsm/tsm-7.1.1.4.ebuild239
-rw-r--r--app-backup/tsm/tsm-7.1.2.0.ebuild239
-rw-r--r--app-backup/tsm/tsm-7.1.2.3.ebuild239
-rw-r--r--app-backup/tsm/tsm-7.1.3.1-r1.ebuild243
-rw-r--r--app-backup/tsm/tsm-7.1.3.1.ebuild240
-rw-r--r--app-backup/tsm/tsm-7.1.3.2.ebuild243
-rw-r--r--app-backup/tsm/tsm-7.1.4.4-r1.ebuild231
-rw-r--r--app-backup/tsm/tsm-7.1.4.4.ebuild227
-rw-r--r--app-backup/untangle-https-backup/Manifest4
-rw-r--r--app-backup/untangle-https-backup/metadata.xml8
-rw-r--r--app-backup/untangle-https-backup/untangle-https-backup-0.0.6.ebuild26
-rw-r--r--app-backup/vzdump/Manifest5
-rw-r--r--app-backup/vzdump/metadata.xml12
-rw-r--r--app-backup/vzdump/vzdump-1.2.ebuild33
-rw-r--r--app-backup/zbackup/Manifest6
-rw-r--r--app-backup/zbackup/files/zbackup-1.4.4-tartool.patch11
-rw-r--r--app-backup/zbackup/files/zbackup-9999-tartool.patch11
-rw-r--r--app-backup/zbackup/metadata.xml26
-rw-r--r--app-backup/zbackup/zbackup-1.4.4.ebuild34
-rw-r--r--app-backup/zbackup/zbackup-9999.ebuild36
386 files changed, 21586 insertions, 0 deletions
diff --git a/app-backup/amanda/Manifest b/app-backup/amanda/Manifest
new file mode 100644
index 000000000000..c9e323848893
--- /dev/null
+++ b/app-backup/amanda/Manifest
@@ -0,0 +1,35 @@
+AUX amanda-3.3.9-stuck.patch 422 SHA256 f68e018db18bb18b7fde4b1a841d23854e91eeb17f05cbbfad58da5b1900cac9 SHA512 8028505fd3f1946f13dae631bfd6a74f6d7688c658148a250e473ed85fd1268fae18278ede5f0499200cd84a2bc5481edb2d0f4fec2bab7a57528b9957396c42 WHIRLPOOL 6d848989be9cf17e5e4d672db2bce3c548c9f1abe86c8b0a6ad4812684c1813e09d4d17437d2c3e10028b2714b2ecd5d99a650a7bae872a6ed2a96ad08876a49
+AUX amanda-3.4.1-labelstr.patch 6224 SHA256 5b677593244657209a254475a4ce7d92caf1423a78b40523cc2b2d5b7b144ff5 SHA512 337a5fd0eef9521932842248414f4402e8623122f4fb401e909750ec690019daf75b3018cc1c7b50a682bae7cd96187e1406fc7767a8b34297546abe70f0f035 WHIRLPOOL 5a686c96df6063d1e8114030f3a6833890607ff4f7ce5499cd2ddf1e9b14c69d565b3f25388502dd186c94615ec8157378395385da09b43631b347545c141f51
+AUX amanda-3.4.1-slots.patch 512 SHA256 3732ec4ec5ee6c6fb704a1429337c8363a71bff1445cb973bb6a92757dee4695 SHA512 ce4fb2184b58c303ce785d661c740dfe25160f2ac1d87283414f4b8bbe6a464e123eea663f5505a3edc9d1542551fe06b744460ce395a4de14b679817a8a74b4 WHIRLPOOL 5d44764300bf105bd76377fdfb4c0888f48a0d61cfb79f79e465b2bc4617e4b981210b46d6d4f7e7b9646c3c5286cf96a4877dab9761af32b8045fae87289c0b
+AUX amanda-amandahosts-client-2.5.1_p3-r1 343 SHA256 26a446ae74aafcb90a05bb66430b70e35c5536ee9e42137abc7925bf1175e84e SHA512 7c0c4fc6d18b37ee8c11e64f98074b93f52f1bdcb97949648ced82d83ada2ea688f79531efa4c3e596f7390770540f45a7b122bba862cbd5218f1b870594f751 WHIRLPOOL df1dcdd48d2b2bf9588f99ef450549c6bd7dcfaff113e2804b67444cb1a283c426000dde9cef48cd099e02ab68b16b10da346f3d5a90e50ab82c601dca8d7587
+AUX amanda-amandahosts-server-2.5.1_p3-r1 340 SHA256 9e07c28b344ff42c6a8f31af2d9dac780a00ff28e40850a0b115e26990ecc0e7 SHA512 b11076634608c16cec4350364d60bcf3d22c12f07c0d8fab53d854e4fb21197eb016fb7f75d8153295ef9f997a3850fcd56b9fe268fa8dde5fd39d9dcbabb08b WHIRLPOOL 670afb2158089ce633f992bc3fe93b104ed87ab9f2952323f6d5523e18913b40eed290974d7399a6132d5ec376ad3348fc2c443776d20e798c7df209141e6d23
+AUX amanda-cron 419 SHA256 17e1a36c21264a9b254e64e9b7529d70402acd40772d158795490ac5fc08b01a SHA512 93aa1a6bcc66bc5147210bd0dd52ae664064cc708cbe59969a5bc9e783e4972841ad7cb89f3ae111ac7695c42e1b91f727890b8e58c4f8757f08e5eae90fb505 WHIRLPOOL 72a1da31879e9589d2a55e87d85371ff67eb2d5b58a80906eaf2a1922ffbc9fa4b6978e5d0538c8e529e91f66a2ce00b5a897003f30dde1c59307e029d6b6f4b
+AUX amanda-devfs 349 SHA256 f21584bc65947e3ac671f89af04966aafd751360ef0465ce8ca1a249b0ee253a SHA512 44ff6ec5793f6a271e7315b4c45b894fd86e54b4cc6a063c79e69732db9347d45d9a30fb169759de124e568c19f281dba928c7b1696589d43aa83caad6e4836a WHIRLPOOL 15023cf20feee469f085b5259b36e64d0841b87557b12a1e2f83a1a8e1ed23001aa07c99778ecfff90d30b3dceb62052a2d128bfa653e1a427b8594dacfd5ed5
+AUX amanda-inetd.amanda.sample-2.6.0_p2-r2 326 SHA256 4056a53e1a6f3dd5527da9fd85e810e21ebab0fe9100043b2ac165743d5a9b79 SHA512 8d5c6896f05bb66c2c524d6a9b547008dc218ddd4866b6ce7d8e0e0099c8cd5e6b6f05c9fd7fa1035a2627200ef2becc2981c4d213c9695ffed76af4de82dfd1 WHIRLPOOL 3a9c4b9ce906b87d23453f6ac2a6c45424b192dabc03d1e331f25e71fce4839211fcd797b9873614eb2396aa2173b264bfb04ff6d33e20f9a0405415c99df892
+AUX amanda-profile 49 SHA256 5781459910f0f72b1bfe15d758f17e7d6c8e33b5856b62a8d5cedf64a2917e76 SHA512 a7125e77858f22ed7c27ef9a070314c174e15ae530f871b1cfa27f9dd5c1f9a97029b30a6265e825c5e0a05428a04d41d41afe557eb01fcd40fdc50df3799ca8 WHIRLPOOL 5bdf92ed2d4be69908be107f46443ec9a1c6cd09bf09948224bfa02662a9d79cc3524ae778a76d2d3b19d30dc633117248dbb0201f7a575b8b08e154179ad108
+AUX amanda-xinetd-2.6.1_p1-client 640 SHA256 1581e772a0c7fccc29bd4b19b3e1c8a04942c7d683dc269b4de16826a362a259 SHA512 1c8ad07bfe79a20cb17208255a327b0ceb0f47834ceeedc97df23a2987816169988f9df0432e7df70dc7ebccf35628c0b38f00a0ec210ddec558190df89b1191 WHIRLPOOL 7884ae5cbb7280aba695a932f08862dbd09b8df46e8f80e534fee4c1a4b245464362718c53ff510c907f564b5709f506d6ea2fda93818603ac76fd4529081e3b
+AUX amanda-xinetd-2.6.1_p1-server 660 SHA256 a43edca3dcd152cd886d13c4ceb963b1e450909bbec257c9e7ac4382de616ac8 SHA512 ae0bf03a446becb54e7cbe3e39db990125f2d67a91bb59deaccbb112a0855c45a7840ac68e5e1c6543c03890c7e3e929b0e94527686d678de78044fa0d316c26 WHIRLPOOL 8c244f31382823b1a9e2b18621b46802f5f30de76c64e0223eecc51c0fb597763b53e7a2a4da7fb9e503a0e7da79e9396c6343ae6a9c412c1aff345d0421cc95
+AUX amanda.service 199 SHA256 1091b9be5b0b48a543d360f308d8e50645546bbf63335cb96d635046d0dae7e6 SHA512 cc54f9423a6f88d2393c96c871d59e8e1f4bbc027ee3cf1cd865609fcf469f1aa3807a5e942efd5ffa77dc7d1d9b657698a8b9ed8c418cc40fd5267610606c0e WHIRLPOOL bf518fcb58967854b011ecc73f4d79d16be7b1caa9d9cdbae4c2c823ba2240c03f5924ddac7f6874957e47d464abed71cb467332eb5f388be4f77a7bec608fc2
+AUX amanda.service-r1 219 SHA256 e226993c391cceb27ef9b05984df49555ec7c03e18bec135ddf74cb0cc87be9b SHA512 81ebe6f7d1005533d459fde64f7d5f43b06da785c8983bb5a6ed0b9c1abfb4b5106e1050166cc8e34acdf9890df6a6afe605fa3cd0310964ce17b8db1eb8206c WHIRLPOOL 352d42752f45d8789344300c8d73d09c78bc3c07f553e6dc953cd8e84c34d02dd2a6ddab8e6fb03f9d768b6ed23191084b784033a54983b7869ffb3bc8eab30f
+AUX amanda.socket 107 SHA256 47df2b337c4726068a5bf5d3dfb9ad6dba5c36f5851a445a1ff601040dbb8b86 SHA512 4017590985a4e194174cf2ea16ccac5600aaee0d874144a9a28121bcf607d8a116d1f6fe50e10a54330777ccac39b703865b486c7d4e9cca363d8b53c715ee4f WHIRLPOOL 579871cdab024d12b9089f133bf446c1ac2560f807ff0a2e0b0a9a779df9b1e1e87a687b5b9c63f001c9dc342537e194d3c66fbc5772a9affaac423f9dcca1ea
+AUX example_amanda.conf 635 SHA256 a1b0520fb0fca0f4146c59589987fffa637a0ce643a91d6d71dde6f538faf325 SHA512 c025aeba89ae686a7bdc5211d9f9b52663cbf8d90fc293f8e3b7ec4b86810d0098e125f4d41bd76af4f3a451bf98b292aa062760c40efba226e15a06bb3a85a9 WHIRLPOOL 50d4e2bab918f54be0ffe6cba018bf468b55e5286d58b99f0d0d7ed0b69761f020c3c1224f8c00e4457acf068ecf54019283bdfb032a4b58931f4089f85258a9
+AUX example_disklist-2.5.1_p3-r1 177 SHA256 bc0388e7de0cc36888d3b27430b4a6b138dd39c77263fdc53dfee9f0b93142f8 SHA512 43fd73b55d48396e1863b23b20b84781aaa7e38200ee4fdbcb898c9a8c5479e24b8448a68ceac01bd6339202935bbf32f02e70a779ee989eeb368ec88d890ae3 WHIRLPOOL 8784e8944c67644e204160aa488486fd028b2f79333bae724d9fb5bf3cf66fb306e8d59e3d9172a0bf9d8639c41899a97d1aa9c7f8f4c1f38adbbc07e98bb8af
+AUX example_global.conf 1377 SHA256 5223d061cd160b241e0d1fad1e328d241387fecb753e797d2e216f77d97a8808 SHA512 c432bdfb97ceb1005bc004d12208f90b09d4c41c8562b8bba0f7b43bbe510672038ca1658a764cff7c6f8e56fa1439a7c15c69714773438e602a693a4f8195a5 WHIRLPOOL 778bdc964d4a7af1bf28775a4c0b46378ebb9812cfe4fb2bb96e4d85d42a96a5dfc60b93f5bfc6e760fcbe9d79477b902466c4a8c1478729568260a96d17a435
+AUX local-amanda-perl5.20.patch 4509 SHA256 58f88bc8aa469c9e62beda31003f5a257a67896e0941b6c3b6defdfab9551dc8 SHA512 222161f9e341232e1e9582ce02d02e6c80977f70c7a566b397023d623086cfddcd913e2e1c322d8dd2d02f4406aa41e523196bb82553c654e43e9217af4063cf WHIRLPOOL c7469768d0268e20358d68019054802e7adc802f52069ddcc07cd977e8678a3f4f3e03dff063e18583421a8ee83d8af92a2ef293c560da552b50271da0ee66b1
+DIST amanda-3.3.9.tar.gz 4673301 SHA256 2520b95ca96f1d521d582b7c94bd631486e7029eda1de8e1887d74b323549a41 SHA512 345670a20cff335453e8dcbf457d1fcdb9f266e4a03d729c2b1ba762f4fac323de4a87713d0fd54c11ca244a08dc97fb8c641625f7fa81cb241b3c17748b1b7e WHIRLPOOL e149ab7dbc30cf3585e41d9fb338dd96ab4dd440e31723be51b8ccc9e5841f8dda31d3b89418474e31c7c2498f40177c646f03713c256a4d9341152e2ce2c8e4
+DIST amanda-3.4.1.tar.gz 5338575 SHA256 1f69e9bdae774ac2394297dd9d7f98ccbce44ca9199317ada764ca173909d2ac SHA512 245bf334e36fe8b4361d9fc27ea7e7ef5bd2ecec74719caa16cc94d1ebb3abbef058e28d9afd85851654aaae0984531593a35c079d1ba4aed0fc5177e907ec16 WHIRLPOOL b9608456f28fb35137276f16ec24d79ae397a44450b42ec4fa28256763798dee623ab560ba0db147ff41d2abc57810e2318ae64741ea0a054a8ff853f4ad9c59
+DIST amanda-3.4.2.tar.gz 5353734 SHA256 175c6a2ef57fe480ddeeefc920a93c8d1cde4111eec76d76e088101a53eeafac SHA512 dea44ffa5eb30318336395ccbd582df2f83da9a4cf91def2834a2e65b2e0f36cafc1911f6b73c3afb63be256484a78b006bdeb1db5b3ecf87dc59d34754987fd WHIRLPOOL af08e2b7b42cead569b69edfa264c1439d21d455e36ba5d346a74631e037773f20cd0563c6cdf95eeea0ee0e1e45328e553a5490ef4c66545acc1a3bd85570d0
+DIST amanda-3.4.3.tar.gz 5355137 SHA256 8ebca59d7b5fc64179fee3d9de4289cd9e8dbb49558e0a21228b06e16105d688 SHA512 5fa7a8c59961f87568d3459e6b5368e50c6cf74e1a6c7599faf5f85d537e72668775acc11009d1d5699ab92d1c21553b5b86e06b804c6a1ae04500889726694a WHIRLPOOL e1c4cd778d5c71994d2c74fef07948476f367fff42e666fb1b516035746c1e9562b9bf4579875e922c44f8dd65924bf9fec5ca7d30bbee0998540c4c319d18b0
+DIST amanda-3.4.4.tar.gz 5363929 SHA256 467e44eccd47170cf8ec40e914a2fbc1e6d50966e6a71c46d96091183c54a3d3 SHA512 e73ee29a6074396a885b08d9b1160b1e379423596dde872a14a8c8cf5845c9fcf3ea08038007a99063169a863d8b9f3ca9c23b8f5609d463a5b1f2ddcd44be96 WHIRLPOOL 221848cd608fd3e45b4f172f56ab691dc2a1dd659f3a5f15df6a2e973daae0964d88fd359c9975147b358289feb77779342f26956b0e693f8683da8d621f04ea
+DIST amanda-3.4.5.tar.gz 5365381 SHA256 bf05ea512676c7520ccff8d711e17176ea2aec47f7c517669cee02e8ab201343 SHA512 441efef6a34a1cb645c8c5d1e909f25230322ceb38d1efa0a104de2d9051640f7032255c8d8c7391a918102aceeb5073048070471fb642e185a2a113c817e00c WHIRLPOOL c21b1cbf276d60fae48c9178b7ae56416c81af4729341e9251b95c50775a3fdaf147c8d1d0e7c33b9477cd215ea4c0c51ac22e16348d2dfd9af20587d53f4b32
+DIST amanda-3.5.tar.gz 5386719 SHA256 099eb36321b1360ebde6156fb1e75f3e0245520b6f886a0e8e0f31a7a6169be4 SHA512 31340eb250972b2d7b2ad5e51c4f3fafb9de15b9f51f688447214174c77ea89d344f50709ca51d6ba965f8ed6977608f22d7bc6811cc97b63207f7a7cec8219c WHIRLPOOL b6d12e046203f3f553e197215c1da8ed610f07a34ac6b8ca7e5b11846308d1ee490aaaaeee8daeae94b8b6b18fcb18bc26e434dc95042d08b443118ccb504801
+EBUILD amanda-3.3.9.ebuild 16036 SHA256 5b67f5d069e07a48107619859d5f2a7581ba1eb8f6cc169cec788b9b25627637 SHA512 bdad3638e00cd1dacea03f2d3bf65c3e4d0583d65e5a6225b7c662b15811a589f66a0efce3a0278437c86c3fee3b158d0f68df06d184898e1ed21f53290909ed WHIRLPOOL 4bf2fc533b6d913d324a037e11f2a2df65ab92c67e11e80426526426f3ba3ff6248125042fafda10ffce95fc6464d50b59fa8a454f511ed4d0c8a9e0cc7e78b7
+EBUILD amanda-3.4.1.ebuild 16498 SHA256 a2e11040f80fe04ebccb91b85646293cd70ceddedb25417fb4548258b310344c SHA512 bc02c4d64af086d84780ae834e3e3d908a2ea1d35d48566b546b1be64ea2d17c771715b88defb7ce7066717a6a6dd8a1b30255d4a71daeab51b00811814fff25 WHIRLPOOL 5bb42bf6f4335ec291aa8ddbe7caf79573cc8d69837fd5e1f37c47660eddbc1b175cefd460cfe17b2d3ef87091da020dd106592f813833bedfe9637e8fe1d37d
+EBUILD amanda-3.4.2.ebuild 16404 SHA256 0570908d57a2104337f4fd80bdbffda465f853841fe7e2b3d3c83c8a6b6934f7 SHA512 a515bcac574e1e372d1031bf62861229848db57b38b93636cba7d419b3df931261df2973c2a866ec76b865d6c51c18d2cd4e26506007ab5066f77b2ecf52fbe3 WHIRLPOOL a65376e768697bbf3320499dabd4b6f6dc06a4625cbbceed1292246426b46b8e0c0592e421b2d25bfbbee630cc2b92323e0290a741570049aa587c992d55947e
+EBUILD amanda-3.4.3.ebuild 16404 SHA256 0570908d57a2104337f4fd80bdbffda465f853841fe7e2b3d3c83c8a6b6934f7 SHA512 a515bcac574e1e372d1031bf62861229848db57b38b93636cba7d419b3df931261df2973c2a866ec76b865d6c51c18d2cd4e26506007ab5066f77b2ecf52fbe3 WHIRLPOOL a65376e768697bbf3320499dabd4b6f6dc06a4625cbbceed1292246426b46b8e0c0592e421b2d25bfbbee630cc2b92323e0290a741570049aa587c992d55947e
+EBUILD amanda-3.4.4.ebuild 16404 SHA256 0570908d57a2104337f4fd80bdbffda465f853841fe7e2b3d3c83c8a6b6934f7 SHA512 a515bcac574e1e372d1031bf62861229848db57b38b93636cba7d419b3df931261df2973c2a866ec76b865d6c51c18d2cd4e26506007ab5066f77b2ecf52fbe3 WHIRLPOOL a65376e768697bbf3320499dabd4b6f6dc06a4625cbbceed1292246426b46b8e0c0592e421b2d25bfbbee630cc2b92323e0290a741570049aa587c992d55947e
+EBUILD amanda-3.4.5.ebuild 16404 SHA256 0570908d57a2104337f4fd80bdbffda465f853841fe7e2b3d3c83c8a6b6934f7 SHA512 a515bcac574e1e372d1031bf62861229848db57b38b93636cba7d419b3df931261df2973c2a866ec76b865d6c51c18d2cd4e26506007ab5066f77b2ecf52fbe3 WHIRLPOOL a65376e768697bbf3320499dabd4b6f6dc06a4625cbbceed1292246426b46b8e0c0592e421b2d25bfbbee630cc2b92323e0290a741570049aa587c992d55947e
+EBUILD amanda-3.5.ebuild 16432 SHA256 ab391d4e7466344f16ca2742c08091c25a46e229e7b1ee61a0ef95e1dd64e573 SHA512 ea0f5f3b14756a6d7963676b5a900221c742602b804b65498d24ab99da7a4ade73eb257143dd671e6b9a8e7fb2adb2c0baed6155d884fc280e2704e01ff1c4cb WHIRLPOOL 70a316091f677df55b64863d978142fceff12fe51c6a807536ca6fe1a42ac3f4f27a4ad7c618db9d16510a741008caa6882958888beb686eac0ed963bfd33c17
+MISC ChangeLog 4708 SHA256 831e7eae515c8fec5369492b7860e85d80daccbbce108f436cbda0cc28b76854 SHA512 4479c9237de008ca99b7b0450b6355c73bcd818dc6a8ac9a6d697b0a318fbe3be461233cf9e0420cc0e19a9efc8e2bcc7b8ce4915438e84a06469e02ac96d605 WHIRLPOOL 9511a0c196f102ab373a8989d27d239bd92dd8ba9e1bfbbc2a020f6830448307438ffbfe7a7a334a4e93645db843f2b93ff7fca1116d268c316c271ad97b8e85
+MISC ChangeLog-2015 29730 SHA256 88035835a53c6f684fac73efcfcfab0b929f27fc9d31cba1cf0af35d94c3e5b7 SHA512 1b4e399131cd7254aa9810591b1f7995e090bf3d7158eb294f2026a9f6c8c9c6d4b0faeb467cda34897de2a3453449c4db5cf6a085c648cc368eeaa335a9c47a WHIRLPOOL 7805794488bc08ca51b19295ff968cee8b05740211323974dd8833f077f5d9b2ad0d7d6941d0a4e963df2056015db6f5765500474148d598b712f3a5bab2c8d5
+MISC metadata.xml 989 SHA256 cec6c3ecc560d78d2c4762e2de7d8af0ebe003126755c360480e7691fd8e3392 SHA512 4a11d8069a15404ef4e7e86ae0838937af6e5997ab654058e5e1c14baa9b9a8bb5768b0b8af663262d8c145a939ed8eaf7a771b7d03cfae0b4fcc31e0cb04c13 WHIRLPOOL 73d4da975102d9cd94cef785d9ef6acb3b2608789ace2a66394d1ab646450f2d55226fe418448335542f77492ef79ee79f6a5336989a5e4b2a4cae71ac011e3d
diff --git a/app-backup/amanda/amanda-3.3.9.ebuild b/app-backup/amanda/amanda-3.3.9.ebuild
new file mode 100644
index 000000000000..70ea0b2ba30e
--- /dev/null
+++ b/app-backup/amanda/amanda-3.3.9.ebuild
@@ -0,0 +1,475 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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 )
+ !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
+
+ epatch "${FILESDIR}"/${P}-stuck.patch
+}
+
+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 "systemd-users: enable and start amanda.socket or the relevant services"
+ elog "regarding what auth method you use."
+ 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 "The only exception is when you use the authentication method 'local'."
+
+ 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.4.1.ebuild b/app-backup/amanda/amanda-3.4.1.ebuild
new file mode 100644
index 000000000000..3171fd4f7c86
--- /dev/null
+++ b/app-backup/amanda/amanda-3.4.1.ebuild
@@ -0,0 +1,482 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools 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
+ dev-perl/JSON
+ dev-perl/Encode-Locale
+ 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 )
+ !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
+ dev-lang/swig
+ "
+
+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_TAPE_DEVICE 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_TAPE_DEVICE}" ]] && AMANDA_SERVER_TAPE_DEVICE="/dev/nst0"
+ [[ -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 "${EROOT}${ENVDIR}/${ENVDFILE}" ]]; then
+ # We don't just source it as we don't want everything in there.
+ eval $(egrep "^AMANDA_" "${EROOT}${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 || die
+ sed -i '/^check-local:/s,syntax-check,,g' "${S}"/perl/Makefile.am || die
+
+ # bug with glibc-2.16.0
+ sed -i -e '/gets is a security/d' "${S}"/gnulib/stdio.in.h || die
+
+ eautoreconf
+
+ # places for us to work in
+ mkdir -p "${MYFILESDIR}" || die
+ # Now we store the settings we just created
+ set | egrep "^AMANDA_" | grep -v '^AMANDA_ENV_SETTINGS' > "${TMPENVFILE}" || die
+
+ # 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}`" || die
+ done
+
+ if use minimal; then
+ cat "${MYFILESDIR}"/amanda-amandahosts-server.5.1_p3-r1 > "${T}"/amandahosts || die
+ else
+ sed -i -e 's:^\(my $amandahomedir\)=.*:\1 = $localstatedir;:' \
+ server-src/am{addclient,serverconfig}.pl || die
+ cat "${MYFILESDIR}"/amanda-amandahosts-client-2.5.1_p3-r1 > "${T}"/amandahosts || die
+ fi
+
+ eapply "${FILESDIR}"/${P}-slots.patch || die
+ eapply "${FILESDIR}"/${P}-labelstr.patch || die
+
+ eapply_user
+}
+
+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_TAPE_DEVICE} for tape server."
+ myconf="${myconf} --with-tape-device=${AMANDA_SERVER_TAPE_DEVICE}"
+ 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 '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 "systemd-users: enable and start amanda.socket or the relevant services"
+ elog "regarding what auth method you use."
+ 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 "The only exception is when you use the authentication method 'local'."
+ 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.4.2.ebuild b/app-backup/amanda/amanda-3.4.2.ebuild
new file mode 100644
index 000000000000..9e26503c1a4a
--- /dev/null
+++ b/app-backup/amanda/amanda-3.4.2.ebuild
@@ -0,0 +1,479 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools 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
+ dev-perl/JSON
+ dev-perl/Encode-Locale
+ 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 )
+ !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
+ dev-lang/swig
+ "
+
+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_TAPE_DEVICE 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_TAPE_DEVICE}" ]] && AMANDA_SERVER_TAPE_DEVICE="/dev/nst0"
+ [[ -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 "${EROOT}${ENVDIR}/${ENVDFILE}" ]]; then
+ # We don't just source it as we don't want everything in there.
+ eval $(egrep "^AMANDA_" "${EROOT}${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 || die
+ sed -i '/^check-local:/s,syntax-check,,g' "${S}"/perl/Makefile.am || die
+
+ # bug with glibc-2.16.0
+ sed -i -e '/gets is a security/d' "${S}"/gnulib/stdio.in.h || die
+
+ eautoreconf
+
+ # places for us to work in
+ mkdir -p "${MYFILESDIR}" || die
+ # Now we store the settings we just created
+ set | egrep "^AMANDA_" | grep -v '^AMANDA_ENV_SETTINGS' > "${TMPENVFILE}" || die
+
+ # 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}`" || die
+ done
+
+ if use minimal; then
+ cat "${MYFILESDIR}"/amanda-amandahosts-server-2.5.1_p3-r1 > "${T}"/amandahosts || die
+ else
+ sed -i -e 's:^\(my $amandahomedir\)=.*:\1 = $localstatedir;:' \
+ server-src/am{addclient,serverconfig}.pl || die
+ cat "${MYFILESDIR}"/amanda-amandahosts-client-2.5.1_p3-r1 > "${T}"/amandahosts || die
+ fi
+
+ eapply_user
+}
+
+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_TAPE_DEVICE} for tape server."
+ myconf="${myconf} --with-tape-device=${AMANDA_SERVER_TAPE_DEVICE}"
+ 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 '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 "systemd-users: enable and start amanda.socket or the relevant services"
+ elog "regarding what auth method you use."
+ 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 "The only exception is when you use the authentication method 'local'."
+ 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.4.3.ebuild b/app-backup/amanda/amanda-3.4.3.ebuild
new file mode 100644
index 000000000000..9e26503c1a4a
--- /dev/null
+++ b/app-backup/amanda/amanda-3.4.3.ebuild
@@ -0,0 +1,479 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools 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
+ dev-perl/JSON
+ dev-perl/Encode-Locale
+ 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 )
+ !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
+ dev-lang/swig
+ "
+
+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_TAPE_DEVICE 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_TAPE_DEVICE}" ]] && AMANDA_SERVER_TAPE_DEVICE="/dev/nst0"
+ [[ -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 "${EROOT}${ENVDIR}/${ENVDFILE}" ]]; then
+ # We don't just source it as we don't want everything in there.
+ eval $(egrep "^AMANDA_" "${EROOT}${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 || die
+ sed -i '/^check-local:/s,syntax-check,,g' "${S}"/perl/Makefile.am || die
+
+ # bug with glibc-2.16.0
+ sed -i -e '/gets is a security/d' "${S}"/gnulib/stdio.in.h || die
+
+ eautoreconf
+
+ # places for us to work in
+ mkdir -p "${MYFILESDIR}" || die
+ # Now we store the settings we just created
+ set | egrep "^AMANDA_" | grep -v '^AMANDA_ENV_SETTINGS' > "${TMPENVFILE}" || die
+
+ # 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}`" || die
+ done
+
+ if use minimal; then
+ cat "${MYFILESDIR}"/amanda-amandahosts-server-2.5.1_p3-r1 > "${T}"/amandahosts || die
+ else
+ sed -i -e 's:^\(my $amandahomedir\)=.*:\1 = $localstatedir;:' \
+ server-src/am{addclient,serverconfig}.pl || die
+ cat "${MYFILESDIR}"/amanda-amandahosts-client-2.5.1_p3-r1 > "${T}"/amandahosts || die
+ fi
+
+ eapply_user
+}
+
+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_TAPE_DEVICE} for tape server."
+ myconf="${myconf} --with-tape-device=${AMANDA_SERVER_TAPE_DEVICE}"
+ 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 '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 "systemd-users: enable and start amanda.socket or the relevant services"
+ elog "regarding what auth method you use."
+ 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 "The only exception is when you use the authentication method 'local'."
+ 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.4.4.ebuild b/app-backup/amanda/amanda-3.4.4.ebuild
new file mode 100644
index 000000000000..9e26503c1a4a
--- /dev/null
+++ b/app-backup/amanda/amanda-3.4.4.ebuild
@@ -0,0 +1,479 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools 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
+ dev-perl/JSON
+ dev-perl/Encode-Locale
+ 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 )
+ !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
+ dev-lang/swig
+ "
+
+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_TAPE_DEVICE 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_TAPE_DEVICE}" ]] && AMANDA_SERVER_TAPE_DEVICE="/dev/nst0"
+ [[ -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 "${EROOT}${ENVDIR}/${ENVDFILE}" ]]; then
+ # We don't just source it as we don't want everything in there.
+ eval $(egrep "^AMANDA_" "${EROOT}${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 || die
+ sed -i '/^check-local:/s,syntax-check,,g' "${S}"/perl/Makefile.am || die
+
+ # bug with glibc-2.16.0
+ sed -i -e '/gets is a security/d' "${S}"/gnulib/stdio.in.h || die
+
+ eautoreconf
+
+ # places for us to work in
+ mkdir -p "${MYFILESDIR}" || die
+ # Now we store the settings we just created
+ set | egrep "^AMANDA_" | grep -v '^AMANDA_ENV_SETTINGS' > "${TMPENVFILE}" || die
+
+ # 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}`" || die
+ done
+
+ if use minimal; then
+ cat "${MYFILESDIR}"/amanda-amandahosts-server-2.5.1_p3-r1 > "${T}"/amandahosts || die
+ else
+ sed -i -e 's:^\(my $amandahomedir\)=.*:\1 = $localstatedir;:' \
+ server-src/am{addclient,serverconfig}.pl || die
+ cat "${MYFILESDIR}"/amanda-amandahosts-client-2.5.1_p3-r1 > "${T}"/amandahosts || die
+ fi
+
+ eapply_user
+}
+
+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_TAPE_DEVICE} for tape server."
+ myconf="${myconf} --with-tape-device=${AMANDA_SERVER_TAPE_DEVICE}"
+ 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 '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 "systemd-users: enable and start amanda.socket or the relevant services"
+ elog "regarding what auth method you use."
+ 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 "The only exception is when you use the authentication method 'local'."
+ 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.4.5.ebuild b/app-backup/amanda/amanda-3.4.5.ebuild
new file mode 100644
index 000000000000..9e26503c1a4a
--- /dev/null
+++ b/app-backup/amanda/amanda-3.4.5.ebuild
@@ -0,0 +1,479 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools 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
+ dev-perl/JSON
+ dev-perl/Encode-Locale
+ 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 )
+ !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
+ dev-lang/swig
+ "
+
+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_TAPE_DEVICE 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_TAPE_DEVICE}" ]] && AMANDA_SERVER_TAPE_DEVICE="/dev/nst0"
+ [[ -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 "${EROOT}${ENVDIR}/${ENVDFILE}" ]]; then
+ # We don't just source it as we don't want everything in there.
+ eval $(egrep "^AMANDA_" "${EROOT}${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 || die
+ sed -i '/^check-local:/s,syntax-check,,g' "${S}"/perl/Makefile.am || die
+
+ # bug with glibc-2.16.0
+ sed -i -e '/gets is a security/d' "${S}"/gnulib/stdio.in.h || die
+
+ eautoreconf
+
+ # places for us to work in
+ mkdir -p "${MYFILESDIR}" || die
+ # Now we store the settings we just created
+ set | egrep "^AMANDA_" | grep -v '^AMANDA_ENV_SETTINGS' > "${TMPENVFILE}" || die
+
+ # 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}`" || die
+ done
+
+ if use minimal; then
+ cat "${MYFILESDIR}"/amanda-amandahosts-server-2.5.1_p3-r1 > "${T}"/amandahosts || die
+ else
+ sed -i -e 's:^\(my $amandahomedir\)=.*:\1 = $localstatedir;:' \
+ server-src/am{addclient,serverconfig}.pl || die
+ cat "${MYFILESDIR}"/amanda-amandahosts-client-2.5.1_p3-r1 > "${T}"/amandahosts || die
+ fi
+
+ eapply_user
+}
+
+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_TAPE_DEVICE} for tape server."
+ myconf="${myconf} --with-tape-device=${AMANDA_SERVER_TAPE_DEVICE}"
+ 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 '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 "systemd-users: enable and start amanda.socket or the relevant services"
+ elog "regarding what auth method you use."
+ 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 "The only exception is when you use the authentication method 'local'."
+ 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.5.ebuild b/app-backup/amanda/amanda-3.5.ebuild
new file mode 100644
index 000000000000..797dbc7a0265
--- /dev/null
+++ b/app-backup/amanda/amanda-3.5.ebuild
@@ -0,0 +1,480 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit autotools 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
+ dev-perl/JSON
+ dev-perl/Encode-Locale
+ 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 )
+ !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
+ dev-lang/swig
+ "
+
+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_TAPE_DEVICE 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_TAPE_DEVICE}" ]] && AMANDA_SERVER_TAPE_DEVICE="/dev/nst0"
+ [[ -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 "${EROOT}${ENVDIR}/${ENVDFILE}" ]]; then
+ # We don't just source it as we don't want everything in there.
+ eval $(egrep "^AMANDA_" "${EROOT}${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 || die
+ sed -i '/^check-local:/s,syntax-check,,g' "${S}"/perl/Makefile.am || die
+
+ # bug with glibc-2.16.0
+ sed -i -e '/gets is a security/d' "${S}"/gnulib/stdio.in.h || die
+
+ eautoreconf
+
+ # places for us to work in
+ mkdir -p "${MYFILESDIR}" || die
+ # Now we store the settings we just created
+ set | egrep "^AMANDA_" | grep -v '^AMANDA_ENV_SETTINGS' > "${TMPENVFILE}" || die
+
+ # 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}`" || die
+ done
+
+ if use minimal; then
+ cat "${MYFILESDIR}"/amanda-amandahosts-server-2.5.1_p3-r1 > "${T}"/amandahosts || die
+ else
+ sed -i -e 's:^\(my $amandahomedir\)=.*:\1 = $localstatedir;:' \
+ server-src/am{addclient,serverconfig}.pl || die
+ cat "${MYFILESDIR}"/amanda-amandahosts-client-2.5.1_p3-r1 > "${T}"/amandahosts || die
+ fi
+
+ eapply_user
+}
+
+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_TAPE_DEVICE} for tape server."
+ myconf="${myconf} --with-tape-device=${AMANDA_SERVER_TAPE_DEVICE}"
+ 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
+
+ # 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
+ systemd_newunit "${FILESDIR}"/amanda.service 'amanda@.service'
+
+ 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} || die
+ mv "${D}/usr/share/amanda/example" "${D}/usr/share/doc/${PF}/" || die
+ 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' -delete || die
+}
+
+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" || die
+ mkdir -p "${ROOT}/${AMANDA_USER_HOMEDIR}/amanda/" || die
+ cp -dp "${ROOT}/etc/amandates" "${ROOT}/${AMANDA_USER_HOMEDIR}/amanda/amandates" || die
+ 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 "systemd-users: enable and start amanda.socket or the relevant services"
+ elog "regarding what auth method you use."
+ 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 "The only exception is when you use the authentication method 'local'."
+ 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"
+ local i
+ 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} || die
+ chmod u=srwx,g=rx,o= "${root}"/${i} || die
+ done
+}
diff --git a/app-backup/amanda/files/amanda-3.3.9-stuck.patch b/app-backup/amanda/files/amanda-3.3.9-stuck.patch
new file mode 100644
index 000000000000..88892e41be3b
--- /dev/null
+++ b/app-backup/amanda/files/amanda-3.3.9-stuck.patch
@@ -0,0 +1,11 @@
+--- a/amanda/server-src/driver.c
++++ b/amanda/server-src/driver.c
+@@ -3957,6 +3957,8 @@
+ driver_debug(2, _("new_data: %lld\n"), (long long)new_data);
+ driver_debug(2, _("data_free: %lld\n"), (long long)data_free);
+ ;
++ tapeq_size -= data_free;
++ tapeq_size += new_data;
+ driver_debug(2, _("tapeq_size: %lld\n"), (long long)tapeq_size);
+
+ sched_size = runq_size + tapeq_size + dumpers_size; \ No newline at end of file
diff --git a/app-backup/amanda/files/amanda-3.4.1-labelstr.patch b/app-backup/amanda/files/amanda-3.4.1-labelstr.patch
new file mode 100644
index 000000000000..b169c8ae6472
--- /dev/null
+++ b/app-backup/amanda/files/amanda-3.4.1-labelstr.patch
@@ -0,0 +1,164 @@
+diff --git a/installcheck/Amanda_Rest_Storages.pl b/installcheck/Amanda_Rest_Storages.pl
+index f3c699b..3e4e889 100644
+--- a/installcheck/Amanda_Rest_Storages.pl
++++ b/installcheck/Amanda_Rest_Storages.pl
+@@ -308,6 +308,7 @@ is_deeply (Installcheck::Rest::remove_source_line($reply),
+ 'inventory' => [
+ {'current' => 1,
+ 'label' => "DISKFLAT-001",
++ 'label_match' => '1',
+ 'device_status' => '0',
+ 'reserved' => 0,
+ 'f_type' => '1',
+@@ -467,6 +468,7 @@ is_deeply (Installcheck::Rest::remove_source_line($reply),
+ 'label' => 'DISKFLAT-001',
+ 'datestamp' => '20140509113436',
+ 'write_protected' => '',
++ 'label_match' => '1',
+ 'process' => 'Amanda::Rest::Storages',
+ 'running_on' => 'amanda-server',
+ 'component' => 'rest-server',
+diff --git a/installcheck/amtape.pl b/installcheck/amtape.pl
+index 1a3527f..700c5a2 100644
+--- a/installcheck/amtape.pl
++++ b/installcheck/amtape.pl
+@@ -177,13 +177,13 @@ like($Installcheck::Run::stderr,
+ ok(run('amtape', 'TESTCONF', 'show'),
+ "'amtape TESTCONF show'");
+ like($Installcheck::Run::stderr,
+- qr/slot +2:.*label MyTape\nslot +3/,
++ qr/slot +2:.*label MyTape \(label do not match labelstr\)\nslot +3/,
+ "'amtape TESTCONF show' ..result correct");
+
+ ok(run('amtape', 'TESTCONF', 'show', '2'),
+ "'amtape TESTCONF show'");
+ like($Installcheck::Run::stderr,
+- qr/^slot +2:.*label MyTape$/,
++ qr/^slot +2:.*label MyTape \(label do not match labelstr\)$/,
+ "'amtape TESTCONF show 2' ..result correct");
+
+ ok(run('amtape', 'TESTCONF', 'show', '1,3'),
+@@ -252,13 +252,13 @@ like(run_err('amtape', 'TESTCONF', 'update'),
+ ok(run('amtape', 'TESTCONF', 'show'),
+ "'amtape TESTCONF show'");
+ like($Installcheck::Run::stderr,
+- qr/slot +2:.*label MyTape\nslot +3/,
++ qr/slot +2:.*label MyTape \(label do not match labelstr\)\nslot +3/,
+ "..result correct");
+
+ ok(run('amtape', 'TESTCONF', 'inventory'),
+ "'amtape TESTCONF inventory'");
+ like($Installcheck::Run::stdout,
+- qr/slot +1: blank\nslot +2: label MyTape \(current\)\nslot +3/,
++ qr/slot +1: blank\nslot +2: label MyTape \(current\) \(label do not match labelstr\)\nslot +3/,
+ "..result correct");
+
+ ok(run('amtape', 'TESTCONF', 'taper'),
+diff --git a/perl/Amanda/Changer.pm b/perl/Amanda/Changer.pm
+index 92ed9b6..4b4aad4 100644
+--- a/perl/Amanda/Changer.pm
++++ b/perl/Amanda/Changer.pm
+@@ -60,9 +60,10 @@ sub local_message {
+ } elsif ($self->{'code'} == 1100014) {
+ return "$self->{'err'}";
+ } elsif ($self->{'code'} == 1100015) {
+- return sprintf("slot %3s: date %-14s label %s%s", $self->{'slot'},
++ return sprintf("slot %3s: date %-14s label %s%s%s", $self->{'slot'},
+ $self->{'datestamp'}, $self->{'label'},
+- $self->{'write_protected'}?" (Write protected)":"");
++ $self->{'write_protected'}?" (Write protected)":"",
++ $self->{'label_match'}?"":" (label do not match labelstr)");
+ } elsif ($self->{'code'} == 1100016) {
+ return sprintf("slot %3s: unlabeled volume%s", $self->{'slot'},
+ $self->{'write_protected'}?" (Write protected)":"");
+@@ -2014,6 +2015,13 @@ sub show {
+ my $st = $dev->read_label();
+ my $write_protected = !$dev->check_writable();
+ if ($st == $DEVICE_STATUS_SUCCESS) {
++ my $label_match = match_labelstr(
++ $self->{'storage'}->{'labelstr'},
++ $self->{'storage'}->{'autolabel'},
++ $dev->volume_label(),
++ $res->{'barcode'},
++ $res->{'meta'},
++ $self->{'storage'}->{'storage_name'});
+ $params{'user_msg'}->(Amanda::Changer::Message->new(
+ source_filename => __FILE__,
+ source_line => __LINE__,
+@@ -2022,7 +2030,8 @@ sub show {
+ slot => $last_slot,
+ datestamp => $dev->volume_time(),
+ label => $dev->volume_label(),
+- write_protected => $write_protected));
++ write_protected => $write_protected,
++ label_match => $label_match));
+ } elsif ($st == $DEVICE_STATUS_VOLUME_UNLABELED) {
+ $params{'user_msg'}->(Amanda::Changer::Message->new(
+ source_filename => __FILE__,
+diff --git a/perl/Amanda/Rest/Storages.pm b/perl/Amanda/Rest/Storages.pm
+index 680115b..b1b59d2 100644
+--- a/perl/Amanda/Rest/Storages.pm
++++ b/perl/Amanda/Rest/Storages.pm
+@@ -436,6 +436,17 @@ sub inventory {
+ $inv->{'retention_type'} = $tl->get_retention_name($retention_type);
+ }
+ }
++ for my $inv (@$inventory) {
++ if ($inv->{label}) {
++ $inv->{'label_match'} = Amanda::Util::match_labelstr(
++ $storage->{'labelstr'},
++ $storage->{'autolabel'},
++ $inv->{'label'},
++ $inv->{'barcode'},
++ $inv->{'metae'},
++ $storage->{'storage_name'});
++ }
++ }
+ push @result_messages, Amanda::Changer::Message->new(
+ source_filename => __FILE__,
+ source_line => __LINE__,
+diff --git a/server-src/amtape.pl b/server-src/amtape.pl
+index b63607e..d06eefe 100644
+--- a/server-src/amtape.pl
++++ b/server-src/amtape.pl
+@@ -30,7 +30,7 @@ use Text::Wrap;
+ use Amanda::Device qw( :constants );
+ use Amanda::Debug qw( :logging );
+ use Amanda::Config qw( :init :getconf config_dir_relative );
+-use Amanda::Util qw( :constants );
++use Amanda::Util qw( :constants match_labelstr );
+ use Amanda::Storage;
+ use Amanda::Changer;
+ use Amanda::Constants;
+@@ -219,6 +219,7 @@ sub {
+ for my $sl (@$inv) {
+ my $line = "slot $sl->{slot}:";
+ my $tle;
++ my $meta;
+ if ($sl->{'state'} == Amanda::Changer::SLOT_EMPTY) {
+ $line .= " empty";
+ } elsif (!defined($sl->{device_status}) && !defined($sl->{label})) {
+@@ -230,6 +231,7 @@ sub {
+ if (defined $tle) {
+ if ($tle->{'meta'}) {
+ $line .= " ($tle->{'meta'})";
++ $meta = $tle->{'meta'};
+ }
+ }
+ } elsif ($sl->{'device_status'} == $DEVICE_STATUS_VOLUME_UNLABELED) {
+@@ -263,6 +265,15 @@ sub {
+ $line .= " [device error]";
+ }
+ }
++ if ($sl->{'label'}) {
++ if (!match_labelstr($storage->{'labelstr'},
++ $storage->{'autolabel'},
++ $sl->{label},
++ $sl->{'barcode'}, $meta,
++ $storage->{'storage_name'})) {
++ $line .= " (label do not match labelstr)";
++ }
++ }
+ if (defined $tle) {
+ my $retention_type = Amanda::Tapelist::get_retention_type($tle->{pool}, $tle->{label});
+ $line .= " [" . $tl->get_retention_name($retention_type) . "]";
diff --git a/app-backup/amanda/files/amanda-3.4.1-slots.patch b/app-backup/amanda/files/amanda-3.4.1-slots.patch
new file mode 100644
index 000000000000..1e4e583ecc26
--- /dev/null
+++ b/app-backup/amanda/files/amanda-3.4.1-slots.patch
@@ -0,0 +1,16 @@
+diff --git a/perl/Amanda/Changer/aggregate.pm b/perl/Amanda/Changer/aggregate.pm
+index a2bd962..ecf9d28 100644
+--- a/perl/Amanda/Changer/aggregate.pm
++++ b/perl/Amanda/Changer/aggregate.pm
+@@ -391,7 +391,10 @@ sub info_key {
+ my $kid = 0;
+ for (@$kid_results) {
+ my ($err, %kid_info) = @$_;
+- next unless exists($kid_info{'slots'});
++ if (!exists($kid_info{'slots'})){
++ $kid++;
++ next;
++ }
+ my $kid_slots = $kid_info{'slots'};
+ push @slots, map "$kid:$_", @{$kid_slots};
+ $kid++;
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..e191fc902dcf
--- /dev/null
+++ b/app-backup/amanda/metadata.xml
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>robbat2@gentoo.org</email>
+ <description>Primary maintainer</description>
+ <name>Robin H. Johnson</name>
+ </maintainer>
+ <maintainer type="person">
+ <email>lists@xunil.at</email>
+ <name>Stefan G. Weichinger</name>
+ <description>Proxied developer</description>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <maintainer type="person">
+ <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/attic/Manifest b/app-backup/attic/Manifest
new file mode 100644
index 000000000000..decde2ff7102
--- /dev/null
+++ b/app-backup/attic/Manifest
@@ -0,0 +1,5 @@
+DIST attic-0.16.tar.gz 87985 SHA256 ce44800b08540cbe334f0a4f5da49585850c1eea1bf621c2766bbdcc98a13e09 SHA512 16139cd93bff59414cc1ce3fd68e2dd0aed4937a20bd1003880961ad2e239a1e982fd0d4f6b791165464213b88dea6ccd8e5e59d2087809be2e1bfdfd3b3186c WHIRLPOOL e3f0963cca0ede9d5400393cb5aabf66433c87bbc0dd997e2d63991e69d380113c6a25075ecac0ab61e5807676bf2aa87e72257133df0f2ee879ccaef586e5a3
+EBUILD attic-0.16.ebuild 794 SHA256 5a17295270f3d3cd431904781db25ac9cd7c020116cce72ac8f4d449e372635a SHA512 73001a32fd828a52085eef8ea01201b81243dbfee19892a983a96752c240734d4cb3d7a11604690658ad1222b702cf344506fadc717a8174014b45dbe144d0b4 WHIRLPOOL cb39dae767ad2fa65e0e0e678d8ab189683b31714df6d6e51d9165d7744815c9821bb2a677d117754bc5ec8133f12d1b7d08277bb32465600ce246226158acc5
+EBUILD attic-9999.ebuild 794 SHA256 5a17295270f3d3cd431904781db25ac9cd7c020116cce72ac8f4d449e372635a SHA512 73001a32fd828a52085eef8ea01201b81243dbfee19892a983a96752c240734d4cb3d7a11604690658ad1222b702cf344506fadc717a8174014b45dbe144d0b4 WHIRLPOOL cb39dae767ad2fa65e0e0e678d8ab189683b31714df6d6e51d9165d7744815c9821bb2a677d117754bc5ec8133f12d1b7d08277bb32465600ce246226158acc5
+MISC ChangeLog 1634 SHA256 ce4da1f98cbccf3a8c034fdc273e9e259eb3cfc93511db394253cdb161d533cb SHA512 6c292cc3504208ba76f591beddf1dff574a4db23329ad0d0169ee5d35a226cad4047dff9a24d96c8e98610ff17fed0d2f0c02ee72a141ee7d1da8da82aabe6d5 WHIRLPOOL 5c5586cc52cc96fcea497e18fbfc656944820ccd672c4fe2d3ca272f9463ab0c02a49797870f5143bfca4839d1f4b77a850bf092a8d162188b19bd5f2ddd6627
+MISC metadata.xml 328 SHA256 1aa7e712e36c0434722744bf26f94a4f2c1b3e257307c0ede0b073d834339843 SHA512 2c24d7eaef0da74758f5726e2b88d2dc11db8a2ea3999abee9305c5e66b236b50d56034d5fae9a7b1d9caa98c7fa3aa54dd06d5279b3a636532010130e40f36a WHIRLPOOL 88ac790e23691d34c9811b6c684b9594cd0c46b6b49154538c521875eaa92334a9057f93056ee8e163db58b7d9da04a8fe1238ed9fdebdb3f41c0e56911a436a
diff --git a/app-backup/attic/attic-0.16.ebuild b/app-backup/attic/attic-0.16.ebuild
new file mode 100644
index 000000000000..faaffb46778a
--- /dev/null
+++ b/app-backup/attic/attic-0.16.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+PYTHON_COMPAT=( python3_{4,5} )
+
+inherit distutils-r1
+
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://github.com/jborg/attic.git"
+ inherit git-r3
+else
+ SRC_URI="https://github.com/jborg/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+DESCRIPTION="Attic is a deduplicating backup program written in Python."
+HOMEPAGE="https://attic-backup.org/"
+
+LICENSE="BSD"
+SLOT="0"
+IUSE="libressl"
+
+RDEPEND="
+ dev-python/msgpack[${PYTHON_USEDEP}]
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ dev-python/llfuse[${PYTHON_USEDEP}]"
+
+DEPEND="
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ dev-python/cython[${PYTHON_USEDEP}]
+ ${RDEPEND}"
diff --git a/app-backup/attic/attic-9999.ebuild b/app-backup/attic/attic-9999.ebuild
new file mode 100644
index 000000000000..faaffb46778a
--- /dev/null
+++ b/app-backup/attic/attic-9999.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+PYTHON_COMPAT=( python3_{4,5} )
+
+inherit distutils-r1
+
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://github.com/jborg/attic.git"
+ inherit git-r3
+else
+ SRC_URI="https://github.com/jborg/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+DESCRIPTION="Attic is a deduplicating backup program written in Python."
+HOMEPAGE="https://attic-backup.org/"
+
+LICENSE="BSD"
+SLOT="0"
+IUSE="libressl"
+
+RDEPEND="
+ dev-python/msgpack[${PYTHON_USEDEP}]
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ dev-python/llfuse[${PYTHON_USEDEP}]"
+
+DEPEND="
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ dev-python/cython[${PYTHON_USEDEP}]
+ ${RDEPEND}"
diff --git a/app-backup/attic/metadata.xml b/app-backup/attic/metadata.xml
new file mode 100644
index 000000000000..3cefbbec9038
--- /dev/null
+++ b/app-backup/attic/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 type="person">
+ <email>blueness@gentoo.org</email>
+ <name>Anthony G. Basile</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">jborg/attic</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-backup/backintime/Manifest b/app-backup/backintime/Manifest
new file mode 100644
index 000000000000..996f79516be5
--- /dev/null
+++ b/app-backup/backintime/Manifest
@@ -0,0 +1,7 @@
+DIST backintime-1.1.12.tar.gz 656192 SHA256 a835e4eccb70ea3e8156861750a4c93d33dbc0e8590daf390c5a54dcc6b0ee4c SHA512 e1dc3e3d2bac8b0f390898029978e806128ffd6005471a7e8a697c44f9e271f9902b496b33b037133f9a509f4ca3f8b8f10adf681b670ec9a1a751dfc786cb62 WHIRLPOOL 8ada493d2cbb38879bc7481899eb41fa235b9e4e7d3a003d40b230c32924e568a2fa0b43bbd875c734279f36d63dd678cd7eabf406a18cc4b7c45d716cacfae1
+DIST backintime-1.1.8.tar.gz 617754 SHA256 a1f2d210e95633dfe383eb50b3b560d1e09c43de4ce89dd4cb193cab40cb8a1e SHA512 550e270dcf341ec5ad952f4decd836007d19ff9bf60cada834dfb488dbf29954b6fd3ed80a4f8fb4406a0166895a7f7c922e5622d06c43086dd54073e5aabd99 WHIRLPOOL ea9af3c432c61def4214e1d1e2c70e40cb7e50867bb0fa08930740c13133293ad135fd6c97295ab176deaedacb33e72583dc7c34dcfc3cb375a8b6e7fc7ab632
+EBUILD backintime-1.1.12.ebuild 1633 SHA256 b2332f0370af8a38747721c50b5b92a9f58b437745236ac21e92b859b164fcb7 SHA512 c55b2dca49cacfec814dba615f50490d2a2edbf0b64ebc43f58b9319cde00082d86f89b74070d317791205e83e637e085019cc0b4b1fe3d7433d658c01bed2d1 WHIRLPOOL 8456775b4ea503cb143f84c3218a5ec16fbe463a7fa7a75c6cc3394ebe84efd91e0e08a4349377eeefbdcdd1055550bce62d2c50cc1680c6b91868b7e45b4a40
+EBUILD backintime-1.1.8-r1.ebuild 1629 SHA256 ff66f0273928ecadc517d5c51ada201236cf485508b6e6680d37cf5930d05b98 SHA512 db1ecccbb71f8241500629fa2147d540e0bc9f1353c6fb117b724505629cbdfecc478fb58ac9f5a0cce79b7c87e046f1ab8a005596185f0d0989d445be3a4bce WHIRLPOOL febf44abe44e213b6e516d7da6df2ca36777febfb501783a4cbd00594730016e2b30404c6438df91065fe409b56466a6bcc8b5b98a3995c55a33a2b487d70bb9
+MISC ChangeLog 5790 SHA256 00d817126521acc73a00db54881dd5853b7ffd21941d8e10af9d949bc9889430 SHA512 c11ef57c726c2c0db2fbc69dd58cf671f5ccc3f6d123096dbd8ffba590de11e4526617e01f2e14895efdf4e1032032f4407de013bed84e5918dbc081feb47ccd WHIRLPOOL b8ef01b141fd426fe3d790573649294d78a4263697be4418a7641a8a689a57d98aa036c63b48a0de101c57fc69fd37713866e05648b723a6281600f17a0e4399
+MISC ChangeLog-2015 6310 SHA256 fad5939df8d03aac036b342d6ec43c275d140d9bf6124e843c5fc976553a3ef2 SHA512 26c2892ad1283a0fb94b740730862f53a4953af491d95f32a3b85ca4f0c101d61bc5063d04996dddaa14553f7a896d2aa603e709e0437cfe2f53e0353b07baf0 WHIRLPOOL 1844e8228954a97b24ae805945129773641229fced080eed9c94d1b84b6be1f2df110cf9b2a2110bc42358a8b60fdc856cb2d1f5782eca8d6495f55b8cc47054
+MISC metadata.xml 711 SHA256 835c45e376b32e6d4880eaba756e3734eefad45c18f8fa1fa1fc8031aaab3423 SHA512 fe6e7c43c31f3870182e89a4df61755cbf3cd39531030880aa5d011aa0779e180fec21189eac0702971837f21d22d12a8a6b660ea6a3a47a6aff3801819a7c85 WHIRLPOOL e30aedd6d7ff7ff4829b28edd508aafd2c2ffc486f2dd1864765d828ffc44bd3474f532aa351bfcfe9c6d64aed63b85a3421ee186da1b96df49a8d6599eddb0f
diff --git a/app-backup/backintime/backintime-1.1.12.ebuild b/app-backup/backintime/backintime-1.1.12.ebuild
new file mode 100644
index 000000000000..39ccb01f130a
--- /dev/null
+++ b/app-backup/backintime/backintime-1.1.12.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python3_{4,5} )
+
+inherit eutils python-single-r1
+
+DESCRIPTION="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"
+
+DEPEND="${PYTHON_DEPS}
+ dev-python/dbus-python[${PYTHON_USEDEP}]
+ dev-python/keyring[${PYTHON_USEDEP}]
+ net-misc/openssh
+ net-misc/rsync[xattr,acl]"
+RDEPEND="${DEPEND}
+ qt4? ( dev-python/PyQt4 )"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+src_prepare() {
+ #fix doc install location
+ sed -e "s:/doc/${PN}-common:/doc/${PF}:g" \
+ -i common/configure || die
+ sed -e "s:/doc/${PN}-qt4:/doc/${PF}:g" \
+ -i qt4/configure || die
+ sed -e "/addInstallFile \"..\/VERSION/d" \
+ -e "/addInstallFile \"..\/LICENSE/d" \
+ -e "/addInstallFile \"..\/debian\/copyright/d" \
+ -i {qt4,common}/configure || 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/backintime-1.1.8-r1.ebuild b/app-backup/backintime/backintime-1.1.8-r1.ebuild
new file mode 100644
index 000000000000..22be00238312
--- /dev/null
+++ b/app-backup/backintime/backintime-1.1.8-r1.ebuild
@@ -0,0 +1,77 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python3_4 )
+
+inherit eutils python-single-r1
+
+DESCRIPTION="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"
+
+DEPEND="${PYTHON_DEPS}
+ dev-python/dbus-python[${PYTHON_USEDEP}]
+ dev-python/keyring[${PYTHON_USEDEP}]
+ net-misc/openssh
+ net-misc/rsync[xattr,acl]"
+RDEPEND="${DEPEND}
+ qt4? ( dev-python/PyQt4 )"
+
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+src_prepare() {
+ #fix doc install location
+ sed -e "s:/doc/${PN}-common:/doc/${PF}:g" \
+ -i common/configure || die
+ sed -e "s:/doc/${PN}-qt4:/doc/${PF}:g" \
+ -i qt4/configure || die
+ sed -e "/addInstallFile \"..\/VERSION/d" \
+ -e "/addInstallFile \"..\/LICENSE/d" \
+ -e "/addInstallFile \"..\/debian\/copyright/d" \
+ -i {qt4,common}/configure || 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/metadata.xml b/app-backup/backintime/metadata.xml
new file mode 100644
index 000000000000..c5512af96e82
--- /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 type="person">
+ <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 (&gt;= 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..e9a63c79c9c1
--- /dev/null
+++ b/app-backup/backup-manager/Manifest
@@ -0,0 +1,9 @@
+AUX Makefile-fix.diff 1041 SHA256 e4e394d7dd9297fb0743cebaae718f96d7171d1995ffdd009d156b513a49f11d SHA512 fd5cadb2fb549e51d21dd9929e6e2349b86c462723c667e9f2d3ba914d150f4d605cd44a905bf1e3c9dcab63deb329b9c01af96413cbf0a8c7656a960e068d0d WHIRLPOOL 15624d328591480737b4e400b7b519b012505566d3685d60a5b2ecd93fbd794f024acca577cf6f8267f52243fb27f6f8a4e3c4fcb932eb773857de53d9686dde
+DIST backup-manager-0.7.13.tar.gz 144494 SHA256 842d4e0e95c5ae3a1dd0f12b1911e70e73da9dd850b4bb077ff2e9134f9d89db SHA512 ef43d9b95471299482e3cccd72652930804d85d623ef9ae731b25509504db774380527c42b9de2fe906a730890f1c6f6ab394bcfb917f0a70822a45166edf76f WHIRLPOOL a309f2208824acda34b8efc696136e174b1d3d0418d8ec35a6971aa1644542646725a358bd9c8c8c356379ae6d3d7f6131f2f91e31ca2f3c8261572003e5a15b
+DIST backup-manager-0.7.5.tar.gz 159855 SHA256 a7aa04ebec5b8a80d5e75d48121092afb969e1efb252b1ffdbcd28b04225e55a SHA512 3101e695d79c429e5a415a174c12b6217495aaefc0b44ee870bb492eea75ce07dacb766a45c60268a0f7da798d51b46f6d91f33b9d545360f09b92b61329bcef WHIRLPOOL 366e205c15084231fad81af9cbcebca34e7d3637476ba7046dc840d3f54c110469588ddc939c112525bac8d4764a7be2097c1b218f59af752af453091ff8299f
+EBUILD backup-manager-0.7.13-r1.ebuild 963 SHA256 541f0689110575afbf4a4715db4804831476df730e6e24d51166a1cb751d97a2 SHA512 392454776243ffab3c00e557f35c212ce21ed13b5ee67c9427043d78276fd32103b55cded04de3a6add59b7f02750b9d66acab6cd7ba82eabe0d31d66ceee4bb WHIRLPOOL 0d275cadadd82fd9f89601bc3d62f2fb99dce0287665a546c1c678249d5db4766be38b6a341c22a43c1a33aeae4af3a66aeb0e517d9fc96854b660a36733af13
+EBUILD backup-manager-0.7.13.ebuild 962 SHA256 1076d7a387aa5c2dac9b317b1886d12b02b9ae5a4daa639b64ff7afe1c32e85a SHA512 c8253c23e59e21436cffa2bfb6ddbc9bf63821b6e4da68d404e4c2e160e77e9ef5a499a19c8a402b6908b96947164f74680d2a8fb283a289d39a19700ede3ca7 WHIRLPOOL 5f96bbfaf6fffb6f67164d8d6797fe988f36d58ecb160b013e87d007e5440d05365f3d33196194e73693eb816feac99b6c07422378fc64cb6c13bfb87c891297
+EBUILD backup-manager-0.7.5.ebuild 1064 SHA256 6714642bf9c62fd3b7774eea83a59b9056831a81ef1abdc272436d88e3ac5f44 SHA512 1a0940dba01bbcbd71f6363bab0b03346a51017623d2d98ceb86100d6ae9ff235366f13afb16e7dc0102f0dcb373f3d254d6b827aef239543489fb1838319823 WHIRLPOOL d5a08ecef12937352db3a4d1c6417743de149edd7cf7aedf90d8f38ded061f0f718bcca8ec04994ea4bb9b518ed74b270eb0adaefb3575c550fd704958a2a8df
+MISC ChangeLog 4170 SHA256 8a86ff278c497c7d57f7ef5202e601a82578bf90d9cd13dae0a595c79c3e6dac SHA512 cf24cc2abc4a190c68c66704f6bdd7e08cd42a2208bdbc508a708311fdc4b5de05773eac685e4503b1d178f57f8071e245afd5ab091ad2a8315c7074c618b7e8 WHIRLPOOL 98512e9ea78b32b62319a1eda357a621b63d044202e3b5c7016d1a433e9c6411905e09e51c4b466e3648954439e92613cd3d8f27ba986c24f79e3ea490101c76
+MISC ChangeLog-2015 4577 SHA256 8d75af80413a0913199bbf88c5e8b6d848bfb706db46b910f87a8cee03d93fa7 SHA512 19c8d3481d21c8538cb601d4c6d41b398555e0b6c42fd14104e99afdb1d905951681d0ba4ee5bba6bc4a8e369651f1a7de3f987e5eaee20f79088abbea182299 WHIRLPOOL 8594e3e1b348376688793c6619d1a122ae45fcc9f118fd9fa6bf619b53cf12b743b39fee04d51d76f9e94852a6f06fd125a68fac394fe1fb915b21947a7544a4
+MISC metadata.xml 712 SHA256 37421865fade53ac120fd111cb5b7e893ab25ca55eed76abd995541f56e91bf6 SHA512 1b3d8f5cdfd07addebff36b791717228cedfa17fba5f00d142a0ce702c02644b98cfb9bfc04f3795758d91539ad645dd1fa376c54f95ebe42b5cd971cc5a669c WHIRLPOOL d24e27ce0bf437823ba619aad7eaa9253ebd32f01c015323e38cbc9507a41141551cd3c1afd6ccc483699e07ce8c70d4ebb6d92d243bdc4e64733c0139cf3ce5
diff --git a/app-backup/backup-manager/backup-manager-0.7.13-r1.ebuild b/app-backup/backup-manager/backup-manager-0.7.13-r1.ebuild
new file mode 100644
index 000000000000..7f680b293b8f
--- /dev/null
+++ b/app-backup/backup-manager/backup-manager-0.7.13-r1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils
+
+MY_P=Backup-Manager-${PV}
+DESCRIPTION="Backup Manager is a command line backup tool for GNU/Linux"
+HOMEPAGE="https://github.com/sukria/Backup-Manager"
+SRC_URI="https://github.com/sukria/Backup-Manager/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="s3"
+
+DEPEND="dev-lang/perl:=
+ sys-devel/gettext"
+
+RDEPEND="${DEPEND}
+ s3? ( dev-perl/Net-Amazon-S3
+ dev-perl/File-Slurp )"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ sed -e "/^PERL5DIR/s/sitelib/vendorlib/" \
+ -e "/sed/s:=\$(DESTDIR)/:=:" \
+ -i Makefile || die
+
+ default
+}
+
+src_compile() {
+ default
+ emake -C po
+}
+
+src_install() {
+ emake DESTDIR="${D}" PREFIX=/usr install
+
+ dodir /etc
+ cp -a "${D}"/usr/share/backup-manager/backup-manager.conf.tpl "${D}"/etc/backup-manager.conf || die
+ chmod 0600 "${D}"/etc/backup-manager.conf || die
+}
diff --git a/app-backup/backup-manager/backup-manager-0.7.13.ebuild b/app-backup/backup-manager/backup-manager-0.7.13.ebuild
new file mode 100644
index 000000000000..719ec4c03216
--- /dev/null
+++ b/app-backup/backup-manager/backup-manager-0.7.13.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils
+
+MY_P=Backup-Manager-${PV}
+DESCRIPTION="Backup Manager is a command line backup tool for GNU/Linux"
+HOMEPAGE="https://github.com/sukria/Backup-Manager"
+SRC_URI="https://github.com/sukria/Backup-Manager/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="s3"
+
+DEPEND="dev-lang/perl
+ sys-devel/gettext"
+
+RDEPEND="${DEPEND}
+ s3? ( dev-perl/Net-Amazon-S3
+ dev-perl/File-Slurp )"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ sed -e "/^PERL5DIR/s/sitelib/vendorlib/" \
+ -e "/sed/s:=\$(DESTDIR)/:=:" \
+ -i Makefile || die
+
+ default
+}
+
+src_compile() {
+ default
+ emake -C po
+}
+
+src_install() {
+ emake DESTDIR="${D}" PREFIX=/usr install
+
+ dodir /etc
+ cp -a "${D}"/usr/share/backup-manager/backup-manager.conf.tpl "${D}"/etc/backup-manager.conf || die
+ chmod 0600 "${D}"/etc/backup-manager.conf || die
+}
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..239fcb55ed52
--- /dev/null
+++ b/app-backup/backup-manager/backup-manager-0.7.5.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+inherit eutils
+
+DESCRIPTION="Backup Manager is a command line backup tool for GNU/Linux"
+HOMEPAGE="https://github.com/sukria/Backup-Manager"
+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}"
+
+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/metadata.xml b/app-backup/backup-manager/metadata.xml
new file mode 100644
index 000000000000..3226a9a10578
--- /dev/null
+++ b/app-backup/backup-manager/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 type="person">
+ <email>voyageur@gentoo.org</email>
+ <name>Bernard Cafarelli</name>
+ </maintainer>
+ <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>
+ <upstream>
+ <remote-id type="github">sukria/Backup-Manager</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-backup/backupninja/Manifest b/app-backup/backupninja/Manifest
new file mode 100644
index 000000000000..3d1c129919dc
--- /dev/null
+++ b/app-backup/backupninja/Manifest
@@ -0,0 +1,5 @@
+DIST backupninja-1.0.1.tar.gz 167991 SHA256 10fa5dbcd569a082b8164cd30276dd04a238c7190d836bcba006ea3d1235e525 SHA512 24b898526c1efa91cde6b1a0f0f7c0820c7db5b11ea36f458b45a91e94adfc77636421d7ad2245c196999886a06a3be43253e52654bc07423b1ac5571275c580 WHIRLPOOL 9e501bd6c098ea47bf99c881e63ce3c2c700ea04d3435fc9823716c7dc65f2868252b4740761b5e99892ca20a1ab9597f13d8092ca5e0f45783faa8d24d3b2b3
+EBUILD backupninja-1.0.1.ebuild 551 SHA256 9c5809d4b6e1cd24d7028eb303e5269d3171a0e1ddcca1735e2bad61ff532b1d SHA512 98be990b26dabd570740bda02d06bb5b63acd633014918b866e58ddf963f002b319858cf03e17aa0dc5ed2a4f386b889c274c7d32885f4f6e6bff6a058aa616b WHIRLPOOL fd7132af77105049f9a19d2ae70ba852d246cba3d35a987ed544959083da1fe432a7d3ad39b6d45c6c87e6b5b52465f11a442353ae95efa71fa3bacd661a4340
+MISC ChangeLog 2627 SHA256 342991db43144151934664849acc6cf35aefcffe0e982e64ebba8db91bf91381 SHA512 b88e2815b05b52a5ec67c587c0b88cc432aa8fdc4bd7933496b48874ef948fefe49a35ea1c85cbcff90a97e85cfe2e320eadc48fe188559ecb3cbae8c7af9a77 WHIRLPOOL d708c53483c82d4af53804ad4b0c2dcd7909c8b1d6970abaf1a624b2c3f03a1c9946770b5c9469de048426ebb0c96397539207ad2a038362d4169eab8e543430
+MISC ChangeLog-2015 1937 SHA256 df27b080818d3d7a130d76b191783f8548c5295dcc0b0b353b0f317d706bb84b SHA512 b987fb3ba30faba3083b61dd03c60b35dc145976f5c574bd981cb394919314210edcfbe1eabc5014299f6a8588f76e0f2b55754be0ea07905eebb09016fcdcdb WHIRLPOOL fbfb7b2744955acbb28d24e68c6a2483959fd85dedf556f28902c396729a62bfa02e8f045c3d1a6be47b222d3146f2280e7ba86d54bed0ebab870db464b4cd2a
+MISC metadata.xml 434 SHA256 9e16f305fac5380b5a71cbf7b303471e9752b68b294429ff1ffaa20e7cb6bbe4 SHA512 5f17f1115e5b5cf2b3d5240efe30f378707743203e034a8bb8de8ebe1697e011cbb669db744dd091cdcdb78730c89720be92d78a15a2dd171f7d5f4867fca347 WHIRLPOOL 9b62374ea281fe8aa24cb5bf59a08649b63db768506a77f7f1c6a2ef96ce9f3e45362da4b75dc996911895f73596f396e8febe6a12958f1fac89404f5271262c
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..52c076b2fd1c
--- /dev/null
+++ b/app-backup/backupninja/backupninja-1.0.1.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+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"
+
+RDEPEND="dev-util/dialog"
+
+DOCS=( AUTHORS FAQ TODO README NEWS )
+
+src_prepare() {
+ default
+ eautoreconf
+}
diff --git a/app-backup/backupninja/metadata.xml b/app-backup/backupninja/metadata.xml
new file mode 100644
index 000000000000..c0284962eeb9
--- /dev/null
+++ b/app-backup/backupninja/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 type="person">
+ <email>premek@vohnout.cz</email>
+ <name>Přemysl Vohnout</name>
+ <description>Proxied maintainer; set to assignee in all bugs</description>
+</maintainer>
+<maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+</maintainer>
+</pkgmetadata>
diff --git a/app-backup/backuppc/Manifest b/app-backup/backuppc/Manifest
new file mode 100644
index 000000000000..143c55d7f687
--- /dev/null
+++ b/app-backup/backuppc/Manifest
@@ -0,0 +1,15 @@
+AUX 3.2.0/04-add-docdir-marker.patch 470 SHA256 9236caf66f1d5cd607ced53173cd127d49bfacb08212e93e0beff37ad80cc4bb SHA512 82b3fbb9c86405f2d8ab12f0a8de21d4b793ec012bfb1cd0fb3a51b769c3d29cfda1adf1b701826fd3e36e0a8aaf10b84b75643620b6512bd2351bbe768fc636 WHIRLPOOL 3526872a7f3ee121791624f4ba8c19a9cbbf899813ec832e2bcb6da77b9e936c845f893e9665d038d918802cc99fee92712737df12d734a411c118a97376d2ed
+AUX 3.2.0/05-nicelevel.patch 756 SHA256 a707a592754fadc92a769a488518b355468afa8d57a280e29adff4e8c4384566 SHA512 b33fe04ba54c8d28c51a3c2d85b13e204db9a7f4f193d25888c168234f6fbe6f02a49403b7097f056d7ab8495cddaf457f1776d64bcc84188d2d67e8ea77c1f6 WHIRLPOOL bf6150e8e4c149762c0b53ac79d591215f2594eaeabb1408c6bc432653a5b713bf5894e94d4480eb765be10a3b7a9294f87994e022529e750e19ebe68f4ce746
+AUX 3.3.0/01-fix-configure.pl.patch 1098 SHA256 54b7371fd3f68a9d3dde5f06b93992aa3c5a17f0d759c7b674fa7a640b461d43 SHA512 532b88689e50c0a399b42a3264975e1fc71a97b9edfd60faf5e94d0bfad972717c380b8925ca4d7df1e402b13f7104082a57bbecd3fbf74113c6f0e4d0990584 WHIRLPOOL 1eb3dcc5bae154a02132a55c80142196dd98f932678df73cdb88b2fafaa3cc88d9583cee21046794f7e6eeb24573d4d6258fd6bcf84ac0a2da45ae4c613d639f
+AUX 3.3.0/02-fix-config.pl-formatting.patch 3900 SHA256 e75fcd312bb0a7c6dc86f9d3c66686789ecaffe7ecb3ce24c413f4accbcf46ed SHA512 e61e0bd445c57e1726411a5dec3a21f0d0f6ab6d394cc1882f0de467f9515d6299f3bf4955fbfaafd049097f0814665114e8453d750db19a063202af1378f394 WHIRLPOOL 498d719c853888af6abd6a9185be39c38fcd163bf57119657a611387deeed723ce2dea76f820aa73e57fa7385c8cab3d27d550805834d691ed9ffec3d2f5cc83
+AUX 3.3.0/03-reasonable-config.pl-defaults.patch 1904 SHA256 343245b84f80dd556cef02fda338729204442be8eb0f6c01b69634edee59b31f SHA512 19033dfefa135cba82d7fef50e619916af710d40c46c214e508cd83cf9cbcf032b8fa54e960e5c685e428b3646777b1040c6d067e0d642d8ba9623ade0fb6d11 WHIRLPOOL d30398f169dca1324784de4e7046cfcb7a71b9022f0cb67cc114e2f7b4e8695702ddde8bacee6c04645958c446f2cfa5d218fd70b992b356f2ab199da15b96c1
+AUX 99_backuppc.conf 718 SHA256 13b0e98b8a306de5b32330b53840a1a1e07c48f62aa6544fea5167fae3fed04f SHA512 cb68dfbb635564740428850ea3f026ebc0b8e22b2bca52640b2f367e5487fa205b00ec82e4e192b311e2886686b81f9ea52de54886994c6cce1cd154937fa0ee WHIRLPOOL 2d9abe48f24ffeabedaafb37e0219b4b6e1e044b195ae32c8afedabaf57188db5709dff5c992f3102bdb1e3724f25c496e08975d861a3beb378df0cb0c4d005c
+AUX backuppc-3.3.1-perl522.patch 607 SHA256 39e5b941705920f2a8f2ec73523d920861af0278021072e3d18a8826a5d1908a SHA512 4d33fff4df53ee885676d58f78984616bb413fcbfd16fdacff0656d70a7c70c012c25f2fd685b360d878ebd407e76fab23103617f2bde0007ad9fc6bf34128c0 WHIRLPOOL 1ad5f7b15ff99130bddac84fec205a0d2fbf25f68dfecb25375599d5dc8272552e1e6aa46006852f631d472a3ab76ec82efb23cda0841633a9c4d308b24a9e74
+AUX backuppc-3.3.1-perl526.patch 969 SHA256 c3a9ecbd526268b4610025455467ff594f8a9bc3bc94ea602616253760b1d485 SHA512 da626131a3253bbc6fe46a06f74462a2d356a71ae369e8de88acca2d85376be0d6ad16c8c566f7c80b93e794808f8b1c09a75707d5031dc64b93ab0f698faced WHIRLPOOL bbf89cf615cb0e2db781589e41e27256d0cc4827028fca45423fbc61c625f23f8117011b9928f6f324efcf2a40bd8b48c08d08e1453de3824f9763bcbbd36124
+AUX backuppc.service 231 SHA256 64114b3ba85c4f6fe313734523c5c2f53f269bf69aea71b85d8f2a8fad7f80f8 SHA512 9a7cb7ac7da2851cfaf90fafe082800fbac34a5a40a9f6aed1ea817b6f9aeb5be60cb3cfb35c263997c2ac1d22f3384752a23f44158572a9efc8f2c48e99c969 WHIRLPOOL 73d966f11ee9070c73016a77373bc80cf90b746fe67f53a178f439767c72b6d2efcfc16b66d4771e11a5862006e26bcff433da1dc4668635ea3e8f1254b28ef9
+DIST BackupPC-3.3.1.tar.gz 556461 SHA256 c9cc4aec28a7474a68d40f4bc460ff15140e05c96900c7f98ff3ef06c4f6ae4c SHA512 b6bb9de3103c5062098d80755055b7461ae9133a4a46a66b3d0af89d081086571694db1898e7d85880defa15b030bad522812116ae5361c0fbde90b877d139c6 WHIRLPOOL 1d895f530932fc1287cde9db584befc6ca0850b5841cc4e60927442d0db662ec092bda4efa4953650d3bfa13deb6e9fafa25c10f82e19b39c67969bb4e143bac
+EBUILD backuppc-3.3.1-r4.ebuild 5477 SHA256 6a38cb3548b056d35fa06112f1b4a90144db7276dfb48145f3d71f9cc0656396 SHA512 baaa06ec3fad3743f213def8dada6ada60973068f9629d9508e561570567189736190aa7be557c6b3a917f238b331ce4ea79c1160e9e916e6c233ffe455f8e82 WHIRLPOOL 38361bed12d687eb8f7595afd3d33ff5d425146add36998d30c47f825a4076a23b70348b4ade37120b01bce396cacaf5bb7e9c4f47751926c1653529cb221e8a
+EBUILD backuppc-3.3.1-r5.ebuild 5527 SHA256 c11b158eeaf4533f47501332979c77c6deea69f94ba900467970cffe36f9035c SHA512 62674f0cbf192ccabcdf07c638949e97138229d63bf20fd785513a19f2612b3d2fc78a92010125bb509c23ca1f7aee4d68ff776af0c985732bf2db2d8ed34998 WHIRLPOOL 925f19a4572a28fe3f01a0b3ed9259cf79e6f172d06c06021627bd3044dd5eb908bb2860f7a2b4a535d80a3595cc777d348b5c35ac6189424ec550c9f5646746
+MISC ChangeLog 5475 SHA256 3314e604fac7c9aa6f2aaeac3455267155348c8098410ab78036de0c9e1c9481 SHA512 9489dd75dd8d3a4293dfacca4e87cf8950caeb12bc1ffab6799e760595d11baededaa1ee539c5162284a1aeee727fefafb69761a3f6cc23073d877434cf6d0a7 WHIRLPOOL 38b1bd5d921381f44c3c5e5d32dccc4821075b963673efed1953210b0d59b5e72fe476d5a27601777bfe8b76b3569e9f0907ff4e38e6884f34401f08e8694eef
+MISC ChangeLog-2015 4969 SHA256 ff971ce4f576305d8716057a045d3e03ce91c11b911d53b654e818afeda89b28 SHA512 94f00aa13f98e63dc1ab372fd44430afd868d9e5c3353782ece3aa6d88d20677afa560d4cf9d0b741342f97d24253185913107b30773cba1a21e0bf36f24140e WHIRLPOOL 556015ae5a37c510febd7926ec277a1839bf6162e70ce246c1f966b79f82d67d6d797bcea4540650a2b80a19350bafa3aab3f37a36b14edd96ddc00820dbc700
+MISC metadata.xml 245 SHA256 2ed31d145dc2ab60b1831fb2907b6345be8646b5200997e2d2f8e2b3ef8cf6dc SHA512 4129c00f4fd37b4c2e051df35c98105ee97b74bc2a8af78e97f2cbc4c97d14740456fc01ed2ab5c6df3bab10a17ce1728de9e4b83cfee393a8841e8933232877 WHIRLPOOL 757f6848afff294f8f748273dc054a16758d724a506b103b87a5bdf0f0a2a4200637b456eb3d94b3b42e2439633c15387b2035a32d7fe4cef1f2b23cd17d2c87
diff --git a/app-backup/backuppc/backuppc-3.3.1-r4.ebuild b/app-backup/backuppc/backuppc-3.3.1-r4.ebuild
new file mode 100644
index 000000000000..62d816fa2e8a
--- /dev/null
+++ b/app-backup/backuppc/backuppc-3.3.1-r4.ebuild
@@ -0,0 +1,196 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit depend.apache eutils user systemd
+
+MY_P="BackupPC-${PV}"
+
+DESCRIPTION="High-performance backups 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"
+
+# The CGI modules are handled in $RDEPEND.
+APACHE_MODULES="apache2_modules_alias," # RedirectMatch
+APACHE_MODULES+="apache2_modules_authn_core," # AuthType
+APACHE_MODULES+="apache2_modules_authz_core," # Require
+APACHE_MODULES+="apache2_modules_authz_host," # Require host
+APACHE_MODULES+="apache2_modules_authz_user" # Require valid-user
+
+DEPEND="dev-lang/perl
+ app-admin/apache-tools
+ app-admin/makepasswd"
+
+# Older versions of mod_perl think they're compatibile with apache-2.4,
+# so we require the new one explicitly.
+RDEPEND="${DEPEND}
+ virtual/perl-IO-Compress
+ dev-perl/Archive-Zip
+ dev-perl/CGI
+ dev-perl/libwww-perl
+ app-arch/tar
+ app-arch/par2cmdline
+ app-arch/gzip
+ app-arch/bzip2
+ virtual/mta
+ >=www-apache/mod_perl-2.0.9
+ www-apache/mpm_itk
+ || ( >=www-servers/apache-2.4[${APACHE_MODULES},apache2_modules_cgi]
+ >=www-servers/apache-2.4[${APACHE_MODULES},apache2_modules_cgid]
+ >=www-servers/apache-2.4[${APACHE_MODULES},apache2_modules_fcgid] )
+ net-misc/rsync
+ dev-perl/File-RsyncP
+ rss? ( dev-perl/XML-RSS )
+ samba? ( net-fs/samba )"
+
+need_apache2_4
+
+SLOT="0"
+
+S="${WORKDIR}/${MY_P}"
+
+CGIDIR="/usr/lib/backuppc/htdocs"
+CONFDIR="/etc/BackupPC"
+DATADIR="/var/lib/backuppc"
+DOCDIR="/usr/share/doc/${PF}"
+LOGDIR="/var/log/BackupPC"
+
+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"
+
+ epatch "${FILESDIR}/3.2.0/04-add-docdir-marker.patch"
+ epatch "${FILESDIR}/3.2.0/05-nicelevel.patch"
+
+ epatch "${FILESDIR}"/${P}-perl522.patch #580254
+
+ # Fix docs location using the marker that we've patched in.
+ sed -i "s+__DOCDIR__+${DOCDIR}+" "lib/BackupPC/CGI/View.pm" \
+ || die "failed to sed the documentation location"
+}
+
+src_install() {
+ 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 127.0.0.1 \
+ --uid-ignore \
+ --dest-dir "${D%/}" \
+ --html-dir "${CGIDIR}"/image \
+ --html-dir-url /image \
+ --cgi-dir "${CGIDIR}" \
+ --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" || die
+
+ 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"
+
+ insinto "${APACHE_MODULES_CONFDIR}"
+ doins "${FILESDIR}"/99_backuppc.conf
+
+ # Make sure that the ownership is correct
+ chown -R backuppc:backuppc "${D}${CONFDIR}" || die
+ chown -R backuppc:backuppc "${D}${DATADIR}" || die
+ chown -R backuppc:backuppc "${D}${LOGDIR}" || die
+}
+
+pkg_postinst() {
+ elog "Installation finished, you 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 by running:"
+ elog
+ elog " # /etc/init.d/backuppc start"
+ elog
+ elog "- To enable the GUI, first edit ${ROOT}etc/conf.d/apache2 and add,"
+ elog
+ elog " \"-D BACKUPPC -D PERL -D MPM_ITK\""
+ elog
+ elog " to the APACHE2_OPTS line."
+ elog
+ elog " Then you must edit ${ROOT}etc/apache2/modules.d/00_mpm_itk.conf"
+ elog " and adjust the values of LimitUIDRange/LimitGIDRange to include"
+ elog " the UID and GID of the backuppc user."
+ elog
+ elog " Finally, start apache:"
+ elog
+ elog " # /etc/init.d/apache2 start"
+ elog
+ elog " The web interface should now be running on,"
+ elog
+ elog " http://127.0.0.1:8080/"
+ elog
+
+ # 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 ""
+ elog " # htpasswd ${CONFDIR}/users.htpasswd newUser"
+ fi
+}
diff --git a/app-backup/backuppc/backuppc-3.3.1-r5.ebuild b/app-backup/backuppc/backuppc-3.3.1-r5.ebuild
new file mode 100644
index 000000000000..879139e9d5e9
--- /dev/null
+++ b/app-backup/backuppc/backuppc-3.3.1-r5.ebuild
@@ -0,0 +1,197 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+inherit depend.apache eutils user systemd
+
+MY_P="BackupPC-${PV}"
+
+DESCRIPTION="High-performance backups 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"
+
+# The CGI modules are handled in $RDEPEND.
+APACHE_MODULES="apache2_modules_alias," # RedirectMatch
+APACHE_MODULES+="apache2_modules_authn_core," # AuthType
+APACHE_MODULES+="apache2_modules_authz_core," # Require
+APACHE_MODULES+="apache2_modules_authz_host," # Require host
+APACHE_MODULES+="apache2_modules_authz_user" # Require valid-user
+
+DEPEND="dev-lang/perl
+ app-admin/apache-tools
+ app-admin/makepasswd"
+
+# Older versions of mod_perl think they're compatibile with apache-2.4,
+# so we require the new one explicitly.
+RDEPEND="${DEPEND}
+ virtual/perl-IO-Compress
+ dev-perl/Archive-Zip
+ dev-perl/CGI
+ dev-perl/libwww-perl
+ app-arch/tar
+ app-arch/par2cmdline
+ app-arch/gzip
+ app-arch/bzip2
+ virtual/mta
+ >=www-apache/mod_perl-2.0.9
+ www-apache/mpm_itk
+ || ( >=www-servers/apache-2.4[${APACHE_MODULES},apache2_modules_cgi]
+ >=www-servers/apache-2.4[${APACHE_MODULES},apache2_modules_cgid]
+ >=www-servers/apache-2.4[${APACHE_MODULES},apache2_modules_fcgid] )
+ net-misc/rsync
+ dev-perl/File-RsyncP
+ rss? ( dev-perl/XML-RSS )
+ samba? ( net-fs/samba )"
+
+need_apache2_4
+
+SLOT="0"
+
+S="${WORKDIR}/${MY_P}"
+
+CGIDIR="/usr/lib/backuppc/htdocs"
+CONFDIR="/etc/BackupPC"
+DATADIR="/var/lib/backuppc"
+DOCDIR="/usr/share/doc/${PF}"
+LOGDIR="/var/log/BackupPC"
+
+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"
+
+ epatch "${FILESDIR}/3.2.0/04-add-docdir-marker.patch"
+ epatch "${FILESDIR}/3.2.0/05-nicelevel.patch"
+
+ epatch "${FILESDIR}"/${P}-perl522.patch #580254
+ epatch "${FILESDIR}"/${P}-perl526.patch #594128
+
+ # Fix docs location using the marker that we've patched in.
+ sed -i "s+__DOCDIR__+${DOCDIR}+" "lib/BackupPC/CGI/View.pm" \
+ || die "failed to sed the documentation location"
+}
+
+src_install() {
+ 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 127.0.0.1 \
+ --uid-ignore \
+ --dest-dir "${D%/}" \
+ --html-dir "${CGIDIR}"/image \
+ --html-dir-url /image \
+ --cgi-dir "${CGIDIR}" \
+ --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" || die
+
+ 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"
+
+ insinto "${APACHE_MODULES_CONFDIR}"
+ doins "${FILESDIR}"/99_backuppc.conf
+
+ # Make sure that the ownership is correct
+ chown -R backuppc:backuppc "${D}${CONFDIR}" || die
+ chown -R backuppc:backuppc "${D}${DATADIR}" || die
+ chown -R backuppc:backuppc "${D}${LOGDIR}" || die
+}
+
+pkg_postinst() {
+ elog "Installation finished, you 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 by running:"
+ elog
+ elog " # /etc/init.d/backuppc start"
+ elog
+ elog "- To enable the GUI, first edit ${ROOT}etc/conf.d/apache2 and add,"
+ elog
+ elog " \"-D BACKUPPC -D PERL -D MPM_ITK\""
+ elog
+ elog " to the APACHE2_OPTS line."
+ elog
+ elog " Then you must edit ${ROOT}etc/apache2/modules.d/00_mpm_itk.conf"
+ elog " and adjust the values of LimitUIDRange/LimitGIDRange to include"
+ elog " the UID and GID of the backuppc user."
+ elog
+ elog " Finally, start apache:"
+ elog
+ elog " # /etc/init.d/apache2 start"
+ elog
+ elog " The web interface should now be running on,"
+ elog
+ elog " http://127.0.0.1:8080/"
+ elog
+
+ # 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 ""
+ elog " # htpasswd ${CONFDIR}/users.htpasswd newUser"
+ fi
+}
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..79ad6547fa6f
--- /dev/null
+++ b/app-backup/backuppc/files/3.3.0/02-fix-config.pl-formatting.patch
@@ -0,0 +1,137 @@
+--- conf/config.pl.dist 2013-09-23 23:05:50.332064754 +0300
++++ conf/config.pl 2013-09-23 23:07:44.110943607 +0300
+@@ -355,7 +355,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 +373,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 +383,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 +458,7 @@
+ # $Conf{FullKeepCnt} = 4;
+ # $Conf{FullKeepCnt} = [4];
+ #
+-$Conf{FullKeepCnt} = 1;
++$Conf{FullKeepCnt} = [1];
+
+ #
+ # Very old full backups are removed after $Conf{FullAgeMax} days. However,
+@@ -688,7 +688,7 @@
+ # '*' => ['/myFiles', '/important'], # these are other shares
+ # };
+ #
+-$Conf{BackupFilesOnly} = undef;
++$Conf{BackupFilesOnly} = {};
+
+ #
+ # List of directories or files to exclude from the backup. For Smb,
+@@ -749,7 +749,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
+@@ -932,7 +932,7 @@
+ #
+ # 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.
+@@ -1054,7 +1054,7 @@
+ #
+ # 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
+@@ -1233,7 +1233,7 @@
+ #
+ # $Conf{RsyncShareName} = ['/', '/var', '/data', '/boot'];
+ #
+-$Conf{RsyncShareName} = '/';
++$Conf{RsyncShareName} = ['/'];
+
+ #
+ # Rsync daemon port on the client, for $Conf{XferMethod} = "rsyncd".
+@@ -1285,7 +1285,7 @@
+ #
+ # 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
+@@ -1883,7 +1883,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
+@@ -1938,7 +1938,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
+@@ -1965,7 +1965,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
+@@ -2102,14 +2102,17 @@
+ {
+ link => "?action=view&type=docs",
+ lname => "Documentation", # actually displays $Lang->{Documentation}
++ name => undef,
+ },
+ {
+ link => "http://backuppc.wiki.sourceforge.net",
+ name => "Wiki", # displays literal "Wiki"
++ lname => undef,
+ },
+ {
+ link => "http://backuppc.sourceforge.net",
+ name => "SourceForge", # displays literal "SourceForge"
++ lname => undef,
+ },
+ ];
+
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..8b54fc87b050
--- /dev/null
+++ b/app-backup/backuppc/files/3.3.0/03-reasonable-config.pl-defaults.patch
@@ -0,0 +1,64 @@
+--- conf/config.pl.formatted 2013-09-23 23:12:30.708129365 +0300
++++ conf/config.pl 2013-09-23 23:12:39.448043656 +0300
+@@ -1305,7 +1305,7 @@
+ '--times',
+ '--block-size=2048',
+ '--recursive',
+-
++ '--specials',
+ #
+ # Rsync >= 2.6.3 supports the --checksum-seed option
+ # which allows rsync checksum caching on the server.
+@@ -1313,7 +1313,7 @@
+ # you have a recent client rsync version and you want
+ # to enable checksum caching.
+ #
+- #'--checksum-seed=32761',
++ '--checksum-seed=32761',
+ ];
+
+ #
+@@ -1383,6 +1383,7 @@
+ '--relative',
+ '--ignore-times',
+ '--recursive',
++ '--specials',
+
+ #
+ # Rsync >= 2.6.3 supports the --checksum-seed option
+@@ -1391,7 +1392,7 @@
+ # you have a recent client rsync version and you want
+ # to enable checksum caching.
+ #
+- #'--checksum-seed=32761',
++ '--checksum-seed=32761',
+
+ #
+ # Add additional arguments here
+@@ -2029,7 +2030,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.
+@@ -2076,7 +2077,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
+@@ -2262,7 +2263,7 @@
+ ClientTimeout => 1,
+ MaxOldPerPCLogFiles => 1,
+ CompressLevel => 1,
+- ClientNameAlias => 1,
++ ClientNameAlias => 0,
+ DumpPreUserCmd => 0,
+ DumpPostUserCmd => 0,
+ RestorePreUserCmd => 0,
diff --git a/app-backup/backuppc/files/99_backuppc.conf b/app-backup/backuppc/files/99_backuppc.conf
new file mode 100644
index 000000000000..eae766e4fa75
--- /dev/null
+++ b/app-backup/backuppc/files/99_backuppc.conf
@@ -0,0 +1,32 @@
+<IfDefine BACKUPPC>
+
+
+Listen 8080
+<VirtualHost 127.0.0.1:8080>
+ AssignUserId backuppc backuppc
+ DocumentRoot "/usr/lib/backuppc/htdocs/"
+ RedirectMatch ^/$ /BackupPC_Admin
+
+ <Directory "/usr/lib/backuppc/htdocs">
+ AuthType Basic
+ AuthName "BackupPC Community Edition Administrative Interface"
+ AuthUserFile "/etc/BackupPC/users.htpasswd"
+ Options ExecCGI
+ Require valid-user
+ Require host 127.0.0.1
+ </Directory>
+
+ <Location "/BackupPC_Admin">
+ SetHandler perl-script
+ PerlResponseHandler ModPerl::Registry
+ PerlOptions +ParseHeaders
+ </Location>
+
+ <Directory "/usr/lib/backuppc/htdocs/image">
+ Require all granted
+ Options -ExecCGI
+ </Directory>
+</VirtualHost>
+
+
+</IfDefine>
diff --git a/app-backup/backuppc/files/backuppc-3.3.1-perl522.patch b/app-backup/backuppc/files/backuppc-3.3.1-perl522.patch
new file mode 100644
index 000000000000..fb7eeeef1e02
--- /dev/null
+++ b/app-backup/backuppc/files/backuppc-3.3.1-perl522.patch
@@ -0,0 +1,17 @@
+--- lib/BackupPC/CGI/Browse.pm 2016-11-22 20:52:03.622509160 +0100
++++ lib/BackupPC/CGI/Browse.pm 2016-11-22 20:50:35.871018400 +0100
+@@ -62,13 +62,13 @@ fix bug https://bugzilla.redhat.com/attachment.cgi?id=1104083
+ #
+ my @Backups = $bpc->BackupInfoRead($host);
+
+ #
+ # default to the newest backup
+ #
+- if ( !defined($In{num}) && defined(@Backups) && @Backups > 0 ) {
++ if ( !defined($In{num}) && @Backups > 0 ) {
+ $i = @Backups - 1;
+ $num = $Backups[$i]{num};
+ }
+
+ for ( $i = 0 ; $i < @Backups ; $i++ ) {
+ last if ( $Backups[$i]{num} == $num );
diff --git a/app-backup/backuppc/files/backuppc-3.3.1-perl526.patch b/app-backup/backuppc/files/backuppc-3.3.1-perl526.patch
new file mode 100644
index 000000000000..3a04f94835c3
--- /dev/null
+++ b/app-backup/backuppc/files/backuppc-3.3.1-perl526.patch
@@ -0,0 +1,21 @@
+diff -ruN BackupPC-3.3.1.orig/lib/BackupPC/Lib.pm BackupPC-3.3.1/lib/BackupPC/Lib.pm
+--- BackupPC-3.3.1.orig/lib/BackupPC/Lib.pm 2015-01-12 01:19:53.000000000 +0100
++++ BackupPC-3.3.1/lib/BackupPC/Lib.pm 2017-07-08 00:31:52.100003197 +0200
+@@ -1261,7 +1261,7 @@
+ #
+ # Replace scalar variables first
+ #
+- $arg =~ s[\${(\w+)}(\+?)]{
++ $arg =~ s[\$\{(\w+)}(\+?)]{
+ exists($vars->{$1}) && ref($vars->{$1}) ne "ARRAY"
+ ? ($2 eq "+" ? $bpc->shellEscape($vars->{$1}) : $vars->{$1})
+ : "\${$1}$2"
+@@ -1270,7 +1270,7 @@
+ # Now replicate any array arguments; this just works for just one
+ # array var in each argument.
+ #
+- if ( $arg =~ m[(.*)\${(\w+)}(\+?)(.*)] && ref($vars->{$2}) eq "ARRAY" ) {
++ if ( $arg =~ m[(.*)\$\{(\w+)}(\+?)(.*)] && ref($vars->{$2}) eq "ARRAY" ) {
+ my $pre = $1;
+ my $var = $2;
+ my $esc = $3;
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/metadata.xml b/app-backup/backuppc/metadata.xml
new file mode 100644
index 000000000000..13724624fa85
--- /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>
+ <!-- maintainer-needed -->
+ <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..14f1ddee8312
--- /dev/null
+++ b/app-backup/bacula/Manifest
@@ -0,0 +1,41 @@
+AUX 5.2.10/bacula-5.2.10-fix-static.patch 2833 SHA256 72d4a45e1d017e8543dd592ff6560457af43a774b5d322b184093dcd30b6d9d3 SHA512 9982373d39eae1d6e24468cb0c0019cd4ab846d0971a1929242e5d67c05cb172a37aa0125883e42545b3d388e0e35a26240d541ec8d88e691b2444eee691518f WHIRLPOOL 8b52d352a6e38bad6d8290b6bee11b343262948990f8d9a91c4193da17fbe4961621e7d64e014994cd42bbcca7030d1f2fecc9b88c534b966396596d191c53b5
+AUX 5.2.12/bacula-5.2.12-depend.patch 627 SHA256 eddf93a57831f6e97590d482dae61d73f5a73199a20ac11a0badb5caf90dc87c SHA512 c48d2ea36e378f8a985f7f8c4456ce380e684e8a66749e6f6a95162b7eecf0f6a26b793ed4ec127b8e35b4217fed30f58841589b8c9ef74d281d6255d9345174 WHIRLPOOL ddfb28d64847b33f8012fac6cb6cf6fa739c62d4afca12aa741daa72238d2cd8e99484578f59de2337b35c3fd1e857a5380302d4fb0e19927f0976d026fd59c1
+AUX 5.2.3/bacula-5.2.3-Makefile.patch 924 SHA256 0b2428d3ee7ea5ceae4e02d3c315cc6f6b59d21d44749967dd121e29c060942d SHA512 f1b5da39d01f6b00851810c6a0cbcda9ac0561fb165054f6f2c4540943b41af9d524a6a8aca1ae87d55fa8624aecf44c3c0db03c2d7c22690a84c16994289eed WHIRLPOOL 0aeddbe01415260fce862dfa0b387bb5a443b29ed1367ea0fb0c2350c2af24f4f1934497d1590612fa3a3e62e929e5811caa9591e99e5a76fcfc6d73769baa1a
+AUX 5.2.3/bacula-5.2.3-as-needed.patch 765 SHA256 addf9c8054f505e72e840dc99166ebf5819b2f8c720b8dc1a6bda3fe44ad5c26 SHA512 5e303c5c53d6cef8e875d32811d23a9b6f354c394a6dce11646ad3f4c827b03cf1bd3c0267ff8873e1a176eb0b33314b712d8c9dc3c4c4ba24306d80b3bae4c7 WHIRLPOOL 865d59bb21ec09b91b8c86b52335308b7672b70776979e6866f5bc8848454ea7af020a24773590dee8918172bff5bea32ecb2932ed9709178aab37699e97f771
+AUX 5.2.3/bacula-5.2.3-doc.patch 464 SHA256 e9d28164908ebdad190c4a89d4222c60c5afb71b5f0e8fe8e00a79ecadc25a98 SHA512 c4127364c9472f2f7d51ed1b4753e1c539e88c91bf7d796f1594f6c5e193a366fe169ee35818fd21349c3218a3b5631bd7f5110e2674744eb13ba5bbcc82a341 WHIRLPOOL 129ecddc0e4f09ae54301fcaa80296f342e822d48cb8eee39ebd45954e5a9a9fceb2a5cdd957aedec26c9454ccf0043edcfc63f8d19f695080f310b6a2b5c5b8
+AUX 5.2.3/bacula-5.2.3-fix-static.patch 2893 SHA256 356a8dff30c85ee968eafd6efec227d5be250af2a4eccbc1f05be639299ba215 SHA512 134c6cc739b3beec20fe6e227f7cd8fb8a04d25d039bd25764162e9ccd9b8c99000e0a985748b9d857bc04b19812ef9fbb7d435085501e3183b2c5f4097c57bc WHIRLPOOL 7ab47144bf67e01f95c9ed68977f1e613932ba8f75b8a7a8c61200c8f7e4d9198a9c5ef6e0490dcb72033cdf933a68da2a45354d762729c9886278d6c3b7f18d
+AUX 5.2.3/bacula-5.2.3-ldflags.patch 389 SHA256 b4b569fecdecbef0b5e0c1bcafddd61a48893ee1e33b52289a455a4773adc9ca SHA512 811fd6ffc2a1c4aeef3afd9001fd2bf01c70ef3f75ed6949ec6b064a9e6ce7a4893ffe464e5c9c67e33fdf92e00b0601500930165891b70d403d31a2ee347434 WHIRLPOOL 488a764b303c3ed077d55bf04ae91e33d24c69c71476d8ad3416608f60a8071471a96f2a539266509b20133d5cf0e0f66ac284aee99f5378030b7a6c394a1987
+AUX 5.2.3/bacula-5.2.3-lib-search-path.patch 631 SHA256 39462876c6cbd0bdd51a19ab737ea11090be8cedb5f98b1119e211b468a6c09a SHA512 cad584561a0f1be761c1e5dfd1e777215630aa174d26479397844873dabc63fb717a0123747f532bfc868c4943c1c1e48f12e0c2d4e05fdc871c1c7d6d80f3a2 WHIRLPOOL beb15bdcd96aca9ee82fb482e09be2672943d6c8f0ba2758a949e3d1c2429f28807099888657406c1caa29757f0b29223303297d48239a5e17be080fed49af76
+AUX 5.2.3/bacula-5.2.3-openssl-1.patch 863 SHA256 95f3074b393bb340b1e82c206ec5daaec86d2998c04038a2dce356a2e5e2c1e7 SHA512 729f01b5e88230561482cbe87fd185707be28ba92252e54a5111f0154f7d3df9cec9e31ee932bbdb34fe8b5e212cf43dc74d46460f68579e5f953ffe565a7a2c WHIRLPOOL 7cfa223e11fa7f8790d2eef3b3c585c4c4917000bc7a0cd2707d4ae5c555322c480a9c85b908deaa990882e7305909a8269ca3b7ab6c24a3badb29e7ed747bbc
+AUX 7.0.2/bacula-7.0.2-depend.patch 599 SHA256 e446f056f7e91cf3efbcdef1b8d6125dd53e2912c9f479181b327f275cfa753a SHA512 0474e077d89c5b1552f8b1929209db380ac67ca29add78987ad1593b139647a2d1822a0d89c3b117ca93024bffd74da7da5a5f23bc5095492c0cc9e4eddb24f6 WHIRLPOOL cba7765a871cbae363fd6aed2ea920573b4452f57c5fed39c89bedddaf4509ad6b8d13d77eecbeb8a404b027cb1103eeda074e9ce0b78ef9a9bab02774cee718
+AUX 7.0.2/bacula-7.0.2-fix-static.patch 2651 SHA256 5faf2cbe47858b4206120b70fcc5eaf6ac794c7052cec248e17f2976aae6f207 SHA512 c3e23760672547ab8cd2591400eb80b8021685069d3069d9e06cdde4de79a7bcb552c189792b3c4aa006dcfcf08f6bde1d4e154efd83cf9882f5bdb5b8cf77e5 WHIRLPOOL 08a4985d84ea2a0b00921a90031179fe74addb440c308f2e1e3c99021ee2dd9a3239a94769b71b5a213501f9b5fe7e8f809eaf60852a869d98dabbac131ec224
+AUX 7.2.0/bacula-7.2.0-doc.patch 435 SHA256 ee511b39024b62e5ec8a25b33609242f925c98ec0abb57e098d07d58aaf41135 SHA512 27d2839658e3471487dce023c806261e5b5d03212f12eab75885b9b61eb22e57c96e85c07a5f81c812974963904ab81b6ce15abf5381647bd2188abd14139b34 WHIRLPOOL 748a6d5b476910e533e59076c9112e3dfbc10b55748c2848843ca490a02ebfc7418fddf1ace9b0331ab19d41ae31d56eb4e1df147e4edf119cf9be094faeed1b
+AUX 7.2.0/bacula-7.2.0-fix-static.patch 2599 SHA256 41e5748cb28a992ac5d3f96b71d507f673c1139ea49a2ba267089e8bc4f534b8 SHA512 12b241ca20e7d3eff3c4fdf495c3f4f2074e41196379ae3bf5d655299413c0dec263200644745d081e77253fe20b07845d567de71dedb7564a6f64f134c3c905 WHIRLPOOL 491509f0e0de4a57f0cf09d843463ad054979de4a7d3db22f0f47c01a9edfb128a057a985d5684eb052c3408a7ac0cedb2d05a12ab6bfc048c01d40f3dfa2c74
+AUX 9.0.2/bacula-9.0.2-fix-static.patch 3637 SHA256 705ad93879b45e95fe61d938ecf6b69a7e3e41cff5436a2518a6be1e2e41c439 SHA512 218febc3ccbfeccea4a5b05f6086aeff7f4e0e88e3a6670a8a0406101e7276c35d254f4bfa6b6782ea5bdcd1ad8fc5080cff80bb9befcf4d7f968075eb850360 WHIRLPOOL e4f828792a589eba33003c3b4b6dab5207b2a281d357b311f854112900a9c960582e3986dbca53a13fb0555cff8a74bf9df22a5f3d438f14ecb8657c3931633a
+AUX 9.0.2/bacula-9.0.2-lib-search-path.patch 1431 SHA256 a3322fa346700ac2d7e8f757b017330f58b9370eced21040349bba53e5e6aa85 SHA512 3863102d2f8db4158dede306b07297da6550bbad1c77aea49a75de412a7f4630216ef2ae28fc51ffa8d8f9c373510e58982f28e32fdbb142a3551eef7f112b7d WHIRLPOOL ba239564d0e0c203ebb79065bc09d1c94ee834dd34de31b1bc080030537a4ed2916912d4875aaabb650bc71138fcfb806516892187bce3d3cfe733dd23e3875f
+AUX bacula-dir.confd 629 SHA256 34e00cbda7cb94da785fef529ac180f1bc2db63537269f5532ac181c2d0d60b3 SHA512 85ed5317313721a7b3776a257c204e0ac45a5221c6bd0b5886944cbd1e4829fe146e7af52cdc604cbf5e3d8722c955da40cbf989dc9ea7466653c98bf8c7cfdf WHIRLPOOL 833143b278f145415916dfdc3f708a33a92ba76aed1dec1b2ced5c94485fa5b06f00d63b0bff5b442c68aa89af38de957f699ca18d5585005294a169665ce675
+AUX bacula-dir.initd 505 SHA256 4fb95335584423f8364c45a41cbc75ae1ab8363010c496a2212c476dc6d18573 SHA512 de0003d6c873ecf9609a6e1838772a29555b4e5e251369035746ede296f4b0f1c85dcbe8822d526d6a5489ba0921a8566f7f2b963682fddb3560f6f7e817c40a WHIRLPOOL a40697af5feb81c5d75ad5ab3bf7624906ac10b7195f63a4f685a2afbfb5f093acd3f56a0750a95bf52047be6c6013a7c6f1b016bcd635554d28102a064507a0
+AUX bacula-fd.confd 241 SHA256 82939d9f6adeb680f8195c0acf8e6390d1502533fdd1a38b6d9426b806510a6f SHA512 0e5a21d8ed3cd39135c8db5b8c59e615161848aaca582851d3599fe0e6ad4f47c04fede13cdc648a2cbdc032de6ca00aa954111bbb2930eb006e7e0984cb882f WHIRLPOOL 6a35351a5a635b1f815a648ff83cde83d300c575ad14b9bd6f5e6b7d40db8d9613e7c13652a56dfafd4b50206f76a03e0595807490aba23bbfe21853ac33c5d5
+AUX bacula-fd.initd 430 SHA256 7aefb6070c48a663ccc8b95b2f9c592d0201c6338968a2d33326ee2ba50485b3 SHA512 e6bad66d11c3c82ba32e052bb2040205c4e1c5994c8dadc09a6235b9c2e5e3c49ea33ef9a9a76d3bcec0054488a14350f9963590c1834b15023735138adad48d WHIRLPOOL 2e104031c923f0063294139d3a46826390f578f15b6532850858d5f12aa8d860b71e6397b5fa8a41d6e84ad40c5fdc7b8d713170b3959e10d9068eabfacc5bb3
+AUX bacula-fix-sonames.patch 1041 SHA256 49dc13258f8af7a5e4df0393672cf5b1b8776ae744f99d09246080c2fb04932d SHA512 0b7a78915ff789988c9fa2bc8fcfcd3d76d3cb8350720134563ece63a97162db273c7d61eee45365c4de8b94b409a3cd4576d6b0239853c2a0d3a9dc8ebf888f WHIRLPOOL 03661682889446262302083b144071966adca4d0cdf0b6bc859ce364c9603a9e26f2a0032ed0332b6966a444317d3e5e73182548f51505de5e4c2ea6f21ed0af
+AUX bacula-sd.confd 391 SHA256 7a5d4678f2b5589de91d8d45ed6eccf8d44860b946fefe8a392e81a204aa6709 SHA512 ee7372582f6f8c7b4552ed5fd71293f712af22d0de30d02e3f5e08b3738da978eebc42dd601d88735f0412b1429be624a28d86e5f32aba2ddb127ca1ebd10e0d WHIRLPOOL d5ebcb7e5497f103b047e30cc04d2ea34b185be85137d35ce0c6881e70a5b14d74ddb48fd5bafbb031bb45e4fac38575b5daeaca037aa02d3255747928411c92
+AUX bacula-sd.initd 437 SHA256 237dbc674ea372850fb6de1bfb121c9fffebc5a675050d8d8be843378ddddafa SHA512 50603d6d5d5df95ac1752ecc7c3a48a0a5f42eca6c5af390a4f1af084861dbbcfa5d476d3f24ec473fd9b225f6ac78f3542e26cce5d499289d1ec44e22c5682f WHIRLPOOL c928abd4cc3781a8dc769618bd0810e589741cddb5d649583ccf2dea54afc9feea450be80710b175504bcc5d421bd7f1969c41350700eb8faf09067abf42d80e
+AUX newscripts/bacula-dir.initd 318 SHA256 e787e832df77a54443013635c8067dbbeb233d18acda2b80e907e38321454411 SHA512 aa6fddd67237f6f16e89e04290bc3540a87fe8ebaba9c641a3277d0d2f627cadf49dffb032a0fe5c77ab8983f4d67891b643279bad0a2aa9de5a86e6d64f196a WHIRLPOOL a4f1cb771300da8e08ad8cd5fcbe56791a9ff07ec31e627ebcb197d91ca45299a9ef0ec017a56972e98c514b75f376425b8565ef927edca9fb352301a054fa9e
+AUX newscripts/bacula-fd.initd 253 SHA256 b0fa587090c8df99c5fd71248c0f468d2004e79bc647d2b2c02381ca4eab1579 SHA512 8230bde8cbfdf2fc4892fb90891a85e36b2be42e4f2ea2140248f08f22bcfe3f1d8c3b419347a9b40143c3f2b4c75d7834cbadb3ed8b8372462580ffcf268bf7 WHIRLPOOL 2647939b99e05ddbcdeacc8754734a02b66fb9c87830a29f1433cede6b28d8a9814a80d3c15f891e8f200fff5d1cb6fe1660e8a4f2e423b7c4f125651e065342
+AUX newscripts/bacula-sd.initd 252 SHA256 5d29a7d31314be6bd7ea0d2b14928e811f13934c13c55f9fbb807bc2a0640fcb SHA512 f4e1252d3e106ebd842cb23c6994cbe29e48e07cff15726479628d1cc5695bd45a0102652203316efcf8a3b3454ad2ca08ee7c6a673880064d15f96c43c395d4 WHIRLPOOL 10b58974dc7eb13408c142cca43b6cb72ec0ddc2c4a6e04de181e820ef1e12030ebb2a796b4b9f152b423c69f53cb3b116e54557f31ee276ee0acbd17eed922e
+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
+DIST bacula-7.4.4.tar.gz 3312271 SHA256 01a53d4501b17aeea0c25f0b63e49b4586ac221107834a6c471c43bc602c4c47 SHA512 37f1fd0d91f027fc12cd43b5e575abf0f8d9ccad805775bd308a06cff843b77cfc599e0d45eaf83536c1be669a5189c35744b5774adaefa606fed31d63888029 WHIRLPOOL 53a45d30b2188cacfa092dae4f791c4bb9c3cd4fc0f30fa2fc1e212dfdaccb1fc50a3b709f2d69e71458916916e887362f09a1aabe0219c34867bb6c4d93d0e9
+DIST bacula-7.4.6.tar.gz 3312673 SHA256 4e8ea321b64cd49e29aecbdd3cb0dc10615302b18e2f26ffa7e7c82362c1cfed SHA512 2d8c47d184dd5d611bf3d209f0d39b0d2e60763bbb757a393c1ddb2fb361de855a4d53d4cbd76f4fda555cc7c069e79eefcb57fc01389a98dec6dc7815d0cde7 WHIRLPOOL d8831459a8f70a8a6b3b03b6b366ac62181ab2241f9bbf9fad46df95df1923873ec32795dd382c2c3fe66170b573d2ed54802e3784a47beed33aefd17ab84417
+DIST bacula-7.4.7.tar.gz 3312991 SHA256 6f6075c2ca90a63cdeeca39b0b82a3ea07ce9999dedc68951d88bed7fbc0be40 SHA512 2dcffe3f02de8e7dedc11f58aeca58fb95486757579065564753376d3fab7699d7577c189d0d34f8490706d773cd6a95d42ef1f35facb95e6fff10dad085c0d0 WHIRLPOOL bc897086f8589d952c6b9dad7751278d21be5e51d9bbcfd2c697f95191ca1295127bb0f06b98c1f05a13e9f7cd0ef61ce7aba87f3cd8d0503168114c9ad96c93
+DIST bacula-9.0.3.tar.gz 3951688 SHA256 ae8501960d43399bea13113274993637b6395d73d7d2c47f9b7a07cb4aa72251 SHA512 025cdcc3d92f2674cda7ed2f7d050a8826daf71d0f435d2b34b2514d3f03ab09a299a1882d9d9d51134445f8ba71bb38dc3fabf12d28877604a1b88d92623f7f WHIRLPOOL d82043a7de7e859e0e7059de71e29b046059e80a8c48ddba72ba783237a28fc339c34c51283f5c6a2de8d92e01ceb4a68729a023209677825596d7bed82acda4
+EBUILD bacula-5.2.13-r5.ebuild 12205 SHA256 4236ec0b8072720e7f2777fd02fcb3e171d7938b636c9b3e73bbdbc244a35bea SHA512 5bfa0d04a2ffb8ae2804825c90cd163d5ecbe72469f7c0834200aae86406e8556dedd6939a4148ad61d32eab1b91b1d7a20c28f5ed0606b1b5d227a58f0aaef4 WHIRLPOOL 63f148cedab124e3a45c0e303ceac4b0e26d202e73dc578334f23bd80a51f7aa3aaa91bca56c9feb8accacf04450663295e5bd88eb3ea95f58102c28f63a6562
+EBUILD bacula-7.0.5-r1.ebuild 11554 SHA256 9fea612692830d0ebf6bccfafa5a19152839285cadb2e5554ecd741ef39ca44b SHA512 5ea59a326e4a4263c73eb07ac98b0700c540fee7bb34899dcd862fe51cbf774a6394ab4e7576536f16871c0e44f6365bc55507a362e3fc8c41da2725debe6d39 WHIRLPOOL 4840bc09a8f75110a15371c7b3abdc2c39b69f3885b2bd85ea9fb0ccf2a5074aaffe653cf23fe0e39d32bc0d2ff4998018b218247894741ee5381aa40a94b411
+EBUILD bacula-7.0.5-r2.ebuild 11663 SHA256 60bdd8e3f20cc71b6e0bc4d85a615c20218bb29d43996ae4203b7e3cb5846496 SHA512 a29163b5a24b5d1a2ec8c50dfb68696b62f348751616780920fdca2b29f75db79671d8f7560728468eb24a9909f890107ea4feae2da7fffea8d2cab385932325 WHIRLPOOL c2a0e7d3d9ea59e8bd349ff59fd7f9aaff97d7b57f444129958ef9c51dcef306b1bc9e1f5e29bbd4ff7bb26b4d8c8235e7b71931522207ea60d98195958bfc97
+EBUILD bacula-7.4.4-r2.ebuild 11838 SHA256 3f76b73d54437ac226c0dde897a053cbfa9c489f512018035e21c841e04fd114 SHA512 4a7d1d1a5700bd14dec4121292c5e6b6868498665b76dd2d1f516bf2dbfffb433ba3d014b7eefbe32cd90e85c407d18638103c0dee9dd17fe30e039686dd8bc5 WHIRLPOOL b586bd7fc696fc9a1eab45de2f815b29784bc74f47290ad15a46f5e2d762cba84bb27eb8a2f0de979de6d93c84fd6b561c600d81b9599d55e0159f4023bfaef0
+EBUILD bacula-7.4.6.ebuild 11866 SHA256 8db037770b38fd896e5ea072d514806e2cb62d22bf2b80e7771511e8cabd394a SHA512 f84a1f04067ece6f9666a111a14be2013a992bfb4aef5f450f065899a06f61a74100732461f8a9a94b1e9b9ae075164bd9564886ec1b20de6ede9fcff6cbfd26 WHIRLPOOL 3b68ee764039c86f97632d2907687d2ff2fd10cdc2063351f5e307bf18501161efd5165048c73145af0ee173dc585d707542133b92d874205c587182f81bbd15
+EBUILD bacula-7.4.7.ebuild 11866 SHA256 8db037770b38fd896e5ea072d514806e2cb62d22bf2b80e7771511e8cabd394a SHA512 f84a1f04067ece6f9666a111a14be2013a992bfb4aef5f450f065899a06f61a74100732461f8a9a94b1e9b9ae075164bd9564886ec1b20de6ede9fcff6cbfd26 WHIRLPOOL 3b68ee764039c86f97632d2907687d2ff2fd10cdc2063351f5e307bf18501161efd5165048c73145af0ee173dc585d707542133b92d874205c587182f81bbd15
+EBUILD bacula-9.0.3.ebuild 11951 SHA256 89efbdfd5c43822ae296e6685c6a4a7cd6680b68b9b3021a5aafb045a15845a2 SHA512 5d1ce8edf72b57a290ce991cc54c672c45d4e35588bb81963faace7d63f8211296afe2aab85b6c7d86ab6659bec6a03b14d063159bbbae19195910bc2f862c7e WHIRLPOOL 7fad813d1f2a508f9de323db0d0f31e25f1643876d03390ccf7bbc745d59129f3db4605c4d31db54d455e02d3eabf7e9fb0f442d3300c400509d0a455d6d04a2
+MISC ChangeLog 7734 SHA256 f3b78b26aba5da531b9dfcc56d0758e91d0ae0b8a2667a9dd419afd40504e81f SHA512 3aa0afbb360bade82b0cf7e33732deb3fe682632f7b4e9927b0d5abcc673ef47fe8f367ba146f82048b5069d6333072bb3c0e1aaafb7ad0ff8796d9a91a5ce2b WHIRLPOOL 9743e57020aac2e32568fcdcff5b9c4e6265b89e4eac2d654ec843667d5d144421d4fb92f1cd0805d1cb55ee3376f2979b0fd4435363be6bc2be747328e40790
+MISC ChangeLog-2015 49668 SHA256 297dad986bd95f34e44ff433e7c6789e423a0594e8660c4ea52dad236f9912bc SHA512 fe381d9563dfe5fe430cc12253b9f7d614eedb5f809645bb7e81e26983149f6d5c7132610f319e448f7ca3c08f096a8e871ff1fe74f813f508de25c4ff6eff95 WHIRLPOOL 9360d9d9bf396ea79de5dc16b5927002fe37bcd08e5672fd51a54a971d74ee1f873bd591d794b059934399357a1560f838945a11f114f7c5b54487082e13c2bf
+MISC metadata.xml 626 SHA256 516063bb16d794d1c0b197c2f9d846d9ed53f5860a4e4bc8497e32d72064000f SHA512 69d63f22a63a53daada5561d751f9903932c9a4596c164894a9aa6465a0f4ac90af99548439545fff1cfbcac9a1eb266a91119cbf73cb13edebd16b440613e55 WHIRLPOOL f96ad0700a1ddf3ce4fa6b9e7dfc0f0614d18cc890e6792c57a832ec57d548e48385b5084d9fac1ccec52a22ff3cee9a895dd2c0770351c9a7cddf5a1459be13
diff --git a/app-backup/bacula/bacula-5.2.13-r5.ebuild b/app-backup/bacula/bacula-5.2.13-r5.ebuild
new file mode 100644
index 000000000000..f69c8982110e
--- /dev/null
+++ b/app-backup/bacula/bacula-5.2.13-r5.ebuild
@@ -0,0 +1,424 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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 libressl logwatch mysql postgres python qt4 readline +sqlite ssl static tcpd vim-syntax X"
+
+DEPEND="
+ dev-libs/gmp:0
+ !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:0 )
+ static? (
+ acl? ( virtual/acl[static-libs] )
+ sys-libs/zlib[static-libs]
+ dev-libs/lzo[static-libs]
+ sys-libs/ncurses:=[static-libs]
+ ssl? (
+ !libressl? ( dev-libs/openssl:0=[static-libs] )
+ libressl? ( dev-libs/libressl:0=[static-libs] )
+ )
+ )
+ !static? (
+ acl? ( virtual/acl )
+ sys-libs/zlib
+ dev-libs/lzo
+ sys-libs/ncurses:=
+ ssl? (
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ )
+ )
+ 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="!bacula-clientonly? ( ^^ ( mysql postgres sqlite ) )
+ 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
+ # bug 584442 and 504368
+ sed -i -e 's/@dir_user@/root/g' 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 and 577486
+ 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} \
+ --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..b1ca466cc162
--- /dev/null
+++ b/app-backup/bacula/bacula-7.0.5-r1.ebuild
@@ -0,0 +1,402 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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:0
+ !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: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 )
+ )"
+RDEPEND="${DEPEND}
+ !bacula-clientonly? (
+ !bacula-nosd? (
+ sys-block/mtx
+ app-arch/mt-st
+ )
+ )
+ vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )"
+
+REQUIRED_USE="!bacula-clientonly? ( ^^ ( mysql postgres sqlite ) )
+ 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/bacula-7.0.5-r2.ebuild b/app-backup/bacula/bacula-7.0.5-r2.ebuild
new file mode 100644
index 000000000000..cd88dc439ad2
--- /dev/null
+++ b/app-backup/bacula/bacula-7.0.5-r2.ebuild
@@ -0,0 +1,404 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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:0
+ !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: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 )
+ )"
+RDEPEND="${DEPEND}
+ !bacula-clientonly? (
+ !bacula-nosd? (
+ sys-block/mtx
+ app-arch/mt-st
+ )
+ )
+ vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )"
+
+REQUIRED_USE="!bacula-clientonly? ( ^^ ( mysql postgres sqlite ) )
+ 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
+ # bug 584442 and 504368
+ sed -i -e 's/@dir_user@/root/g' 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/bacula-7.4.4-r2.ebuild b/app-backup/bacula/bacula-7.4.4-r2.ebuild
new file mode 100644
index 000000000000..d707c4c8d815
--- /dev/null
+++ b/app-backup/bacula/bacula-7.4.4-r2.ebuild
@@ -0,0 +1,412 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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 libressl logwatch mysql postgres qt4 readline +sqlite ssl static tcpd vim-syntax X"
+
+DEPEND="
+ dev-libs/gmp:0
+ !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:0 )
+ static? (
+ acl? ( virtual/acl[static-libs] )
+ sys-libs/zlib[static-libs]
+ dev-libs/lzo[static-libs]
+ sys-libs/ncurses:=[static-libs]
+ ssl? (
+ !libressl? ( dev-libs/openssl:0=[static-libs] )
+ libressl? ( dev-libs/libressl:0=[static-libs] )
+ )
+ )
+ !static? (
+ acl? ( virtual/acl )
+ sys-libs/zlib
+ dev-libs/lzo
+ sys-libs/ncurses:=
+ ssl? (
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ )
+ )"
+RDEPEND="${DEPEND}
+ !bacula-clientonly? (
+ !bacula-nosd? (
+ sys-block/mtx
+ app-arch/mt-st
+ )
+ )
+ vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )"
+
+REQUIRED_USE="!bacula-clientonly? ( ^^ ( mysql postgres sqlite ) )
+ 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}"/7.2.0/${PN}-7.2.0-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.2.0/${PN}-7.2.0-fix-static.patch
+
+ # fix soname in libbaccat.so bug #602952
+ epatch "${FILESDIR}/bacula-fix-sonames.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
+ # bug 584442 and 504368
+ sed -i -e 's/@dir_user@/root/g' 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 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
+
+ # 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}/newscripts/${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
+
+ # 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
+
+ ewarn "ATTENTION!"
+ ewarn "The format of the database may have changed."
+ ewarn "If you just upgraded from a version below 7.2.0 you must run"
+ ewarn "'update_bacula_tables' now."
+ ewarn "Make sure to have a backup of your catalog before."
+ ewarn
+ 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.4.6.ebuild b/app-backup/bacula/bacula-7.4.6.ebuild
new file mode 100644
index 000000000000..8b30c32e7778
--- /dev/null
+++ b/app-backup/bacula/bacula-7.4.6.ebuild
@@ -0,0 +1,412 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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 libressl logwatch mysql postgres qt4 readline +sqlite ssl static tcpd vim-syntax X"
+
+DEPEND="
+ dev-libs/gmp:0
+ !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:0 )
+ static? (
+ acl? ( virtual/acl[static-libs] )
+ sys-libs/zlib[static-libs]
+ dev-libs/lzo[static-libs]
+ sys-libs/ncurses:=[static-libs]
+ ssl? (
+ !libressl? ( dev-libs/openssl:0=[static-libs] )
+ libressl? ( dev-libs/libressl:0=[static-libs] )
+ )
+ )
+ !static? (
+ acl? ( virtual/acl )
+ sys-libs/zlib
+ dev-libs/lzo
+ sys-libs/ncurses:=
+ ssl? (
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ )
+ )"
+RDEPEND="${DEPEND}
+ !bacula-clientonly? (
+ !bacula-nosd? (
+ sys-block/mtx
+ app-arch/mt-st
+ )
+ )
+ vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )"
+
+REQUIRED_USE="!bacula-clientonly? ( ^^ ( mysql postgres sqlite ) )
+ 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}"/7.2.0/${PN}-7.2.0-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.2.0/${PN}-7.2.0-fix-static.patch
+
+ # fix soname in libbaccat.so bug #602952
+ epatch "${FILESDIR}/bacula-fix-sonames.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
+ # bug 584442 and 504368
+ sed -i -e 's/@dir_user@/root/g' 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 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 /usr/share/logwatch/scripts/services
+ dodir /usr/share/logwatch/scripts/shared
+ dodir /etc/logwatch/conf/logfiles
+ dodir /etc/logwatch/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
+
+ # 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}/newscripts/${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
+
+ # 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
+
+ ewarn "ATTENTION!"
+ ewarn "The format of the database may have changed."
+ ewarn "If you just upgraded from a version below 7.2.0 you must run"
+ ewarn "'update_bacula_tables' now."
+ ewarn "Make sure to have a backup of your catalog before."
+ ewarn
+ 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.4.7.ebuild b/app-backup/bacula/bacula-7.4.7.ebuild
new file mode 100644
index 000000000000..8b30c32e7778
--- /dev/null
+++ b/app-backup/bacula/bacula-7.4.7.ebuild
@@ -0,0 +1,412 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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 libressl logwatch mysql postgres qt4 readline +sqlite ssl static tcpd vim-syntax X"
+
+DEPEND="
+ dev-libs/gmp:0
+ !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:0 )
+ static? (
+ acl? ( virtual/acl[static-libs] )
+ sys-libs/zlib[static-libs]
+ dev-libs/lzo[static-libs]
+ sys-libs/ncurses:=[static-libs]
+ ssl? (
+ !libressl? ( dev-libs/openssl:0=[static-libs] )
+ libressl? ( dev-libs/libressl:0=[static-libs] )
+ )
+ )
+ !static? (
+ acl? ( virtual/acl )
+ sys-libs/zlib
+ dev-libs/lzo
+ sys-libs/ncurses:=
+ ssl? (
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ )
+ )"
+RDEPEND="${DEPEND}
+ !bacula-clientonly? (
+ !bacula-nosd? (
+ sys-block/mtx
+ app-arch/mt-st
+ )
+ )
+ vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )"
+
+REQUIRED_USE="!bacula-clientonly? ( ^^ ( mysql postgres sqlite ) )
+ 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}"/7.2.0/${PN}-7.2.0-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.2.0/${PN}-7.2.0-fix-static.patch
+
+ # fix soname in libbaccat.so bug #602952
+ epatch "${FILESDIR}/bacula-fix-sonames.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
+ # bug 584442 and 504368
+ sed -i -e 's/@dir_user@/root/g' 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 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 /usr/share/logwatch/scripts/services
+ dodir /usr/share/logwatch/scripts/shared
+ dodir /etc/logwatch/conf/logfiles
+ dodir /etc/logwatch/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
+
+ # 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}/newscripts/${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
+
+ # 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
+
+ ewarn "ATTENTION!"
+ ewarn "The format of the database may have changed."
+ ewarn "If you just upgraded from a version below 7.2.0 you must run"
+ ewarn "'update_bacula_tables' now."
+ ewarn "Make sure to have a backup of your catalog before."
+ ewarn
+ 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-9.0.3.ebuild b/app-backup/bacula/bacula-9.0.3.ebuild
new file mode 100644
index 000000000000..0d286e64589d
--- /dev/null
+++ b/app-backup/bacula/bacula-9.0.3.ebuild
@@ -0,0 +1,418 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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="bacula-clientonly bacula-nodir bacula-nosd examples ipv6 libressl logwatch mysql postgres qt4 readline +sqlite ssl static tcpd vim-syntax X"
+
+DEPEND="
+ dev-libs/gmp:0
+ !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:0 )
+ static? (
+ virtual/acl[static-libs]
+ sys-libs/zlib[static-libs]
+ dev-libs/lzo[static-libs]
+ sys-libs/ncurses:=[static-libs]
+ ssl? (
+ !libressl? ( dev-libs/openssl:0=[static-libs] )
+ libressl? ( dev-libs/libressl:0=[static-libs] )
+ )
+ )
+ !static? (
+ virtual/acl
+ sys-libs/zlib
+ dev-libs/lzo
+ sys-libs/ncurses:=
+ ssl? (
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ )
+ )"
+RDEPEND="${DEPEND}
+ !bacula-clientonly? (
+ !bacula-nosd? (
+ sys-block/mtx
+ app-arch/mt-st
+ )
+ )
+ vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )"
+
+REQUIRED_USE="!bacula-clientonly? ( ^^ ( mysql postgres sqlite ) )
+ 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}"/7.2.0/${PN}-7.2.0-doc.patch
+
+ # bug #310087
+ epatch "${FILESDIR}"/5.2.3/${PN}-5.2.3-as-needed.patch
+
+ # bug #311161
+ epatch "${FILESDIR}"/9.0.2/${PN}-9.0.2-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}"/9.0.2/${PN}-9.0.2-fix-static.patch
+
+ # fix soname in libbaccat.so bug #602952
+ epatch "${FILESDIR}/bacula-fix-sonames.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
+ # bug 584442 and 504368
+ sed -i -e 's/@dir_user@/root/g' 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 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}"
+ if use mysql; then
+ myconf="${myconf} \
+ --disable-batch-insert"
+ else
+ myconf="${myconf} \
+ --enable-batch-insert"
+ fi
+ 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_with tcpd tcp-wrappers)"
+
+ econf \
+ --enable-acl \
+ --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 /usr/share/logwatch/scripts/services
+ dodir /usr/share/logwatch/scripts/shared
+ dodir /etc/logwatch/conf/logfiles
+ dodir /etc/logwatch/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
+
+ # 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}/newscripts/${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
+
+ # 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
+
+ ewarn "ATTENTION!"
+ ewarn "The format of the database may have changed."
+ ewarn "If you just upgraded from a version below 9.0.0 you must run"
+ ewarn "'update_bacula_tables' now."
+ ewarn "Make sure to have a backup of your catalog before."
+ ewarn
+ 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.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/7.2.0/bacula-7.2.0-doc.patch b/app-backup/bacula/files/7.2.0/bacula-7.2.0-doc.patch
new file mode 100644
index 000000000000..155746a876dd
--- /dev/null
+++ b/app-backup/bacula/files/7.2.0/bacula-7.2.0-doc.patch
@@ -0,0 +1,12 @@
+--- Makefile.in.orig 2015-09-03 20:03:22.000000000 +0200
++++ Makefile.in 2015-09-03 20:03:50.000000000 +0200
+@@ -35,8 +35,7 @@
+ autoconf/config.h.in autoconf/acconfig.h autoconf/Make.common.in \
+ autoconf/install-sh autoconf/mkinstalldirs
+
+-doc_files = VERIFYING ChangeLog README ReleaseNotes LICENSE \
+- LICENSE-FAQ LICENSE-FOSS INSTALL
++doc_files =
+
+ MKDIR = $(srcdir)/autoconf/mkinstalldirs
+ LIBTOOL_DEPS = @LIBTOOL_DEPS@
diff --git a/app-backup/bacula/files/7.2.0/bacula-7.2.0-fix-static.patch b/app-backup/bacula/files/7.2.0/bacula-7.2.0-fix-static.patch
new file mode 100644
index 000000000000..faf0d065b90f
--- /dev/null
+++ b/app-backup/bacula/files/7.2.0/bacula-7.2.0-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 2015-09-04 12:47:13.000000000 +0200
++++ src/filed/Makefile.in 2015-09-04 12:49:39.000000000 +0200
+@@ -66,13 +66,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) \
+- $(FDLIBS) $(ZLIBS) -lbacfind -lbaccfg -lbac -lm $(LIBS) \
+- $(DLIB) $(WRAPLIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) $(CAP_LIBS) $(AFS_LIBS) $(LZO_LIBS)
++ $(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) \
+- $(FDLIBS) $(ZLIBS) -lbacfind -lbaccfg -lbac -lm $(LIBS) \
+- $(DLIB) $(WRAPLIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) $(CAP_LIBS) $(AFS_LIBS) $(LZO_LIBS)
++ $(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/9.0.2/bacula-9.0.2-fix-static.patch b/app-backup/bacula/files/9.0.2/bacula-9.0.2-fix-static.patch
new file mode 100644
index 000000000000..bf6630a74a29
--- /dev/null
+++ b/app-backup/bacula/files/9.0.2/bacula-9.0.2-fix-static.patch
@@ -0,0 +1,63 @@
+--- src/console/Makefile.in.orig 2017-07-25 19:03:05.664760298 +0200
++++ src/console/Makefile.in 2017-07-25 19:05:43.576706091 +0200
+@@ -24,6 +24,7 @@
+ CONSSRCS = console.c console_conf.c authenticate.c @CONS_SRC@
+ CONSOBJS = console.o console_conf.o authenticate.o @CONS_OBJ@
+ JSONOBJS = bbconsjson.o console_conf.o
++ZLIBS=@ZLIBS@
+
+ # these are the objects that are changed by the .configure process
+ EXTRAOBJS = @OBJLIST@
+@@ -50,18 +51,18 @@
+
+ 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)
+
+ bbconsjson: Makefile $(JSONOBJS) ../lib/libbac$(DEFAULT_ARCHIVE_TYPE) ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE)
+ $(LIBTOOL_LINK) $(CXX) -L../lib -L../cats $(LDFLAGS) $(CONS_LDFLAGS) -o $@ $(JSONOBJS) \
+- $(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 -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)
+ strip $@
+
+
+--- src/filed/Makefile.in.orig 2017-07-25 19:09:19.655852979 +0200
++++ src/filed/Makefile.in 2017-07-25 19:11:39.519558592 +0200
+@@ -69,19 +69,19 @@
+ 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) \
+- $(FDLIBS) $(ZLIBS) -lbacfind -lbaccfg -lbac -lm $(LIBS) \
+- $(DLIB) $(WRAPLIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) $(CAP_LIBS) $(AFS_LIBS) $(LZO_LIBS)
++ $(FDLIBS) $(ZLIBS) -lbacfind -lbaccfg -lbac -lm \
++ $(DLIB) $(WRAPLIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) $(LIBS) $(CAP_LIBS) $(AFS_LIBS) $(LZO_LIBS)
+
+ bfdjson: Makefile $(JSONOBJS) ../findlib/libbacfind$(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 $@ $(JSONOBJS) \
+- $(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) \
+- $(FDLIBS) $(ZLIBS) -lbacfind -lbaccfg -lbac -lm $(LIBS) \
+- $(DLIB) $(WRAPLIBS) $(GETTEXT_LIBS) $(OPENSSL_LIBS) $(CAP_LIBS) $(AFS_LIBS) $(LZO_LIBS)
++ $(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/9.0.2/bacula-9.0.2-lib-search-path.patch b/app-backup/bacula/files/9.0.2/bacula-9.0.2-lib-search-path.patch
new file mode 100644
index 000000000000..33cf83dcf150
--- /dev/null
+++ b/app-backup/bacula/files/9.0.2/bacula-9.0.2-lib-search-path.patch
@@ -0,0 +1,25 @@
+# If upgrading the old libraries gets linked first. So fix order of
+# lib search path.
+--- src/console/Makefile.in.orig 2017-07-26 15:03:07.000000000 +0200
++++ src/console/Makefile.in 2017-07-23 18:31:57.000000000 +0200
+@@ -49,17 +49,17 @@
+
+
+ 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)
+
+ bbconsjson: Makefile $(JSONOBJS) ../lib/libbac$(DEFAULT_ARCHIVE_TYPE) ../lib/libbaccfg$(DEFAULT_ARCHIVE_TYPE)
+- $(LIBTOOL_LINK) $(CXX) $(LDFLAGS) $(CONS_LDFLAGS) -L../lib -L../cats -o $@ $(JSONOBJS) \
++ $(LIBTOOL_LINK) $(CXX) -L../lib -L../cats $(LDFLAGS) $(CONS_LDFLAGS) -o $@ $(JSONOBJS) \
+ $(DLIB) $(CONS_LIBS) -lbaccfg -lbac -lm $(LIBS) $(GETTEXT_LIBS) \
+ $(OPENSSL_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) \
++ $(LIBTOOL_LINK) $(CXX) -static -L../lib -L../cats $(LDFLAGS) $(CONS_LDFLAGS) -o $@ $(CONSOBJS) \
+ $(DLIB) $(CONS_LIBS) -lbaccfg -lbac -lm $(LIBS) $(GETTEXT_LIBS) \
+ $(OPENSSL_LIBS)
+ strip $@
diff --git a/app-backup/bacula/files/bacula-dir.confd b/app-backup/bacula/files/bacula-dir.confd
new file mode 100644
index 000000000000..59f684660cda
--- /dev/null
+++ b/app-backup/bacula/files/bacula-dir.confd
@@ -0,0 +1,16 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# 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..0601ca56e2c4
--- /dev/null
+++ b/app-backup/bacula/files/bacula-dir.initd
@@ -0,0 +1,24 @@
+#!/sbin/openrc-run
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..eed82ccbc6f4
--- /dev/null
+++ b/app-backup/bacula/files/bacula-fd.confd
@@ -0,0 +1,7 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# 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..1cc636edbf9c
--- /dev/null
+++ b/app-backup/bacula/files/bacula-fd.initd
@@ -0,0 +1,21 @@
+#!/sbin/openrc-run
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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-fix-sonames.patch b/app-backup/bacula/files/bacula-fix-sonames.patch
new file mode 100644
index 000000000000..d05b2b9a37fb
--- /dev/null
+++ b/app-backup/bacula/files/bacula-fix-sonames.patch
@@ -0,0 +1,36 @@
+=== modified file 'autoconf/ltmain.sh'
+--- autoconf/ltmain.sh 2011-11-06 20:34:58 +0000
++++ autoconf/ltmain.sh 2012-02-09 17:27:13 +0000
+@@ -2428,6 +2428,7 @@
+ -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
+ -shared only do dynamic linking of libtool libraries
+ -shrext SUFFIX override the standard shared library file extension
++ -soname SONAME override the standard shared object name
+ -static do not do any dynamic linking of uninstalled libtool libraries
+ -static-libtool-libs
+ do not do any dynamic linking of libtool libraries
+@@ -5422,6 +5423,11 @@
+ prev=
+ continue
+ ;;
++ soname)
++ soname_spec="$arg"
++ prev=
++ continue
++ ;;
+ weak)
+ func_append weak_libs " $arg"
+ prev=
+@@ -5741,6 +5747,11 @@
+ continue
+ ;;
+
++ -soname)
++ prev=soname
++ continue
++ ;;
++
+ -static | -static-libtool-libs)
+ # The effects of -static are defined in a previous loop.
+ # We used to do the same as -all-static on platforms that
+
diff --git a/app-backup/bacula/files/bacula-sd.confd b/app-backup/bacula/files/bacula-sd.confd
new file mode 100644
index 000000000000..8d6f7d2e60d4
--- /dev/null
+++ b/app-backup/bacula/files/bacula-sd.confd
@@ -0,0 +1,10 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# 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..a18840242efa
--- /dev/null
+++ b/app-backup/bacula/files/bacula-sd.initd
@@ -0,0 +1,21 @@
+#!/sbin/openrc-run
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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/files/newscripts/bacula-dir.initd b/app-backup/bacula/files/newscripts/bacula-dir.initd
new file mode 100755
index 000000000000..d717f07f7926
--- /dev/null
+++ b/app-backup/bacula/files/newscripts/bacula-dir.initd
@@ -0,0 +1,15 @@
+#!/sbin/openrc-run
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+command=/usr/sbin/bacula-dir
+command_args="${DIR_OPTIONS}"
+pidfile=/var/run/bacula-dir.9101.pid
+
+depend() {
+ need net
+ if [ "${LOCAL_DB}" -eq 1 ]; then
+ :
+ fi
+ use dns bacula-fd bacula-sd
+}
+
diff --git a/app-backup/bacula/files/newscripts/bacula-fd.initd b/app-backup/bacula/files/newscripts/bacula-fd.initd
new file mode 100755
index 000000000000..fe6a8815b9fd
--- /dev/null
+++ b/app-backup/bacula/files/newscripts/bacula-fd.initd
@@ -0,0 +1,12 @@
+#!/sbin/openrc-run
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+command=/usr/sbin/bacula-fd
+command_args="${FD_OPTIONS}"
+pidfile=/var/run/bacula-fd.9102.pid
+
+depend() {
+ need net
+ use dns
+}
diff --git a/app-backup/bacula/files/newscripts/bacula-sd.initd b/app-backup/bacula/files/newscripts/bacula-sd.initd
new file mode 100755
index 000000000000..07facefbb4a4
--- /dev/null
+++ b/app-backup/bacula/files/newscripts/bacula-sd.initd
@@ -0,0 +1,11 @@
+#!/sbin/openrc-run
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+command=/usr/sbin/bacula-sd
+command_args="${SD_OPTIONS}"
+pidfile=/var/run/bacula-sd.9103.pid
+
+depend() {
+ need net
+ use dns
+}
diff --git a/app-backup/bacula/metadata.xml b/app-backup/bacula/metadata.xml
new file mode 100644
index 000000000000..1ebf5f232fac
--- /dev/null
+++ b/app-backup/bacula/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <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..362d4df52a43
--- /dev/null
+++ b/app-backup/bareos/Manifest
@@ -0,0 +1,21 @@
+AUX bareos-12.4.5-Makefile.patch 924 SHA256 0b2428d3ee7ea5ceae4e02d3c315cc6f6b59d21d44749967dd121e29c060942d SHA512 f1b5da39d01f6b00851810c6a0cbcda9ac0561fb165054f6f2c4540943b41af9d524a6a8aca1ae87d55fa8624aecf44c3c0db03c2d7c22690a84c16994289eed WHIRLPOOL 0aeddbe01415260fce862dfa0b387bb5a443b29ed1367ea0fb0c2350c2af24f4f1934497d1590612fa3a3e62e929e5811caa9591e99e5a76fcfc6d73769baa1a
+AUX bareos-12.4.5-bat-ldflags.patch 389 SHA256 b4b569fecdecbef0b5e0c1bcafddd61a48893ee1e33b52289a455a4773adc9ca SHA512 811fd6ffc2a1c4aeef3afd9001fd2bf01c70ef3f75ed6949ec6b064a9e6ce7a4893ffe464e5c9c67e33fdf92e00b0601500930165891b70d403d31a2ee347434 WHIRLPOOL 488a764b303c3ed077d55bf04ae91e33d24c69c71476d8ad3416608f60a8071471a96f2a539266509b20133d5cf0e0f66ac284aee99f5378030b7a6c394a1987
+AUX bareos-dir.confd 672 SHA256 51db5b4757bef72123224b3101f2ca48016d8f2c360842be09711bfa93014009 SHA512 24e01b4baddaedce2a667c1d9f5422c3134a742fd8a4ddad9502a6b7a62a080e9133472e791cdea7ac2bb4a1737be9798405fc61b01096cc179f50139bcf7a24 WHIRLPOOL 83aa4aa728d31ba0d925501ee7d4b63c3ca317c08659e509676aa9d88a019092264f61aab5bb4b7316245fe76810138334ffe30058a64f4fb0ab14bd4bb68c8c
+AUX bareos-dir.initd 491 SHA256 bc97d667402ef863ff012c81b709915b01a8bae2497a5a359cc2534ac4bd5408 SHA512 044136eb9260001943d377f977ab913b7999374d9389c275744087cbd18d0a7311c87d96d05551e83a179dc82ab2d5151bf2c5945082eae4f9e6bf44cb5bf060 WHIRLPOOL c735bf497f76a1a2530c4b64103143f8825abf650fdf2513437c3132068c9023a535ff0e413a1b3f671bf34d84591a9c79845a9ccbed1e79b775be923ae12b0d
+AUX bareos-fd.confd 241 SHA256 0822f8b92036ff0150a85471d5f93e640049455ed548101242b8f79790e7e217 SHA512 e646adbd06765172da6f4af749b617c49cf57f072402a44dcb1eb4a289337c20c7677701489e5fe8991729097b55fe57d09a6573a7b4af4005435fd03ab39de5 WHIRLPOOL 23e43c3922b0be06b57003392e54b7162df75c9d115b64cdcad85e5d9c8e97742fb04f202281cbb700b549cbbb9cc998e6eaece42dd5706efee79b805b50e5eb
+AUX bareos-fd.initd 457 SHA256 8e24a895b776cb2a6f34637cfebec610e9d4bd1a50d610c2b3faf650e04760e4 SHA512 444802b07cff09feb931795869e7cb50f3406a9f895c3baf69a16607ea7ae2da6553d6f819f7fca2ec4c7c86ebffbc9ba925513325b547fb12aab411ac4d68eb WHIRLPOOL 9e054b091e94288f9343faad0f6c46cfcea1af41043d00447eb880d9337c4d33132b71754f1750695a864e05588c6faaebc4585d4b02b193d32363e3e4439b98
+AUX bareos-sd.confd 391 SHA256 f8e4d28ccd79af3067152acb2c6612ba34da8f7ca3f20c5bccee4eb988e1f411 SHA512 4db591d0818e0d53b663e1e96371713269fddeac2a46ca5938f8b69185578b61ba530d4357f0cc9f9232834c66692a77708b70140fb856635e7cb2e16870b28d WHIRLPOOL b28d3551fc4c8bfd03b3b586e6a87cc385730fee3b4281a24bcd1c71fed7f0138c3ebc58b5b6ec1ee4a37a392f604507b1e8dc36096316a9b32ede76ba2e133d
+AUX bareos-sd.initd 481 SHA256 b4ba83df0d1e0b6d8a9f7f9ebe0982c1c65826dbf19c90333c2812cead288f21 SHA512 e094df3f44ed39207129bb86020b223037acc7bda408a69711b68376d1044dbe67001370395dd4442df6b4e78e92dc5125dd14dad6c4826716df2084fbd45916 WHIRLPOOL 274ffc9783aba77c828052d5e31acc8170a2aa2e46c051f2c83e18cc7e73d0b17e94437a1c55c718c8c0475a02d85a2acf46d8138cef1c5977656ce70199f565
+DIST bareos-13.2.4.tar.gz 3467542 SHA256 def68891d074438e55d7a3e570cfaae1c1a8c9479d089815ba0f8f31e1d6eefc SHA512 d7e4bc016993f68521f4438b56adf51e88685195693d00d34103259c3c24d1d7c03cc2b7aecbb55ff88a00d5f169e9e42accd23b17bcd3c837ca78079a9f394f WHIRLPOOL 54b5ee5094be6569c1a7857ebcc98f1e24ee272485327397f1ab0833433a6b46e8b7e3f2cd927668600ba63f2d36a920dc64cb9dfc2f0dd69adb57a70b862848
+DIST bareos-14.2.2.tar.gz 3811787 SHA256 8792fe79689f7a1053ecb493ba52258acb29d0998b71d65178a311d46b7cf2bf SHA512 be490ab2f8085975f164ac554cac7d6bbef1af01c8350b5816b2033a37827de4a81bead6ce1e699fe5cc44085dce2b6a0330b91239fb87907e22f9c8dc710156 WHIRLPOOL 384415d553d61e7aa1eaa22611cc9d9eacf8338df82d911409e52a774e756b0539810c60be3dade91eadcc679794ad7c3bb5a155d7d699171f6a4fdead5a5470
+DIST bareos-14.2.5.tar.gz 3820963 SHA256 f42bc34afa913cfb4d6b7ef8856c7195d8b13b21c987da1039d46e6c60f06720 SHA512 600cdf8175b1199b73ddcf8a32df7bca446c294c4c830038f93fe3f053482916745675df3a51bc494cdab00b362d57657a34a94e78bac4bae3acced06347023d WHIRLPOOL 361c0edb411c824f128ccb5e27f4d637ecfdf4f2de7a428a8c4eace6d5c23a33a3868cc1b380dcbf6e06d6c7bb71ff222abad923ea9a0bfb74e78f0445c4058b
+DIST bareos-15.2.2.tar.gz 3928036 SHA256 f314e7d3e99e92b4261af97888ddcdaaedf513b638745b07270db3e6930e9008 SHA512 07b11c51695a6ff348317965625e5cdb8e296d4f3a4037718a98e266d94650ed1fb905c220ac791123d8ed92d0aed24854a6ab52887249849dbc00697d3300c3 WHIRLPOOL e43141e1ba670cd13da716739f4e3ed2a5f63e4dd43efbeed0a781429ff3b7cc6ddcb67d8f6ec47508b036f1da4ffc5cdbd4d49887e428de55969250817d529b
+DIST bareos-16.2.4.tar.gz 4275141 SHA256 9a96d9220150f1db643c932ac529b1e3ad179978ef6b06a2504c06db43b4ff3c SHA512 91f7f2b3d9889f4faa9834dc414e2250015d3d26bf8bd0c04c1f3fd882a50a4066ced145f7c8609c070e8f74b53574953e3fef344726c6863cd7bbc73c76a88c WHIRLPOOL 7c3192a80680240246b0fa342799fcc4bc4b71ee8255badd950ffbd570b246129e9a68340e2972e0f0e4746f537330d4ebccc3358cc840f5278562d8b97641b1
+EBUILD bareos-13.2.4-r1.ebuild 11271 SHA256 b921c8df48d4506212f531ee632045e514c531063394a9301b2651343e934784 SHA512 c21ff041810eb4672260dbbff621b67c14120e52b2f7cc961c6b9dfb5fc2866b126c380f67eaea2b7a97bd1e9f4c57405fd4182c0c3dc1d00bf2ce4f73c609b3 WHIRLPOOL e6c8fc536d61c496bc5da0e2b803d0c23b273a0d35cee0ea37b4d1f1dbe9fc03bfcf23b42279a58deb339c5c05fccff8b1ea4dcac98a26ec7ef1020babbc341f
+EBUILD bareos-14.2.2.ebuild 11625 SHA256 107e3643804a35de96bf72986141aff7455ca5a698fbac00d40a88c2e0bbb63d SHA512 946d2f66d2334b2f077604395a80bf28e72b939d1569d88a0d865f941b430735b9da59f604821cbdf890c27f7702774d78d3607e516f6329426d8d55bff581b1 WHIRLPOOL c8085068d0e2d3fde1eade3081233c2051cb126caff77f0fa00c8c66c472ff869ededffb3a8366550624430f15e0ff54aac39ade99cb3dd1fc735fd2c1706db5
+EBUILD bareos-14.2.5.ebuild 11625 SHA256 107e3643804a35de96bf72986141aff7455ca5a698fbac00d40a88c2e0bbb63d SHA512 946d2f66d2334b2f077604395a80bf28e72b939d1569d88a0d865f941b430735b9da59f604821cbdf890c27f7702774d78d3607e516f6329426d8d55bff581b1 WHIRLPOOL c8085068d0e2d3fde1eade3081233c2051cb126caff77f0fa00c8c66c472ff869ededffb3a8366550624430f15e0ff54aac39ade99cb3dd1fc735fd2c1706db5
+EBUILD bareos-15.2.2.ebuild 12003 SHA256 b0a51ab6c7f31d630a70d74931608782f9b362c04e6e8dfcd256a7afe36d4179 SHA512 52cecb0c65a4c1ed7cb7d15190c5edc0c9827c8ed306d789c02d9df6d963487b3b1327802c6de85e12b3b39856c1f5e7a83852b754210078fab889641d3f152c WHIRLPOOL dc3c51c7618c514f9450a1125719907cbcb538d578856c96b1c6a4d62895a5892307b33a8e32f9171d5c1cf00bb2dc50dc317de4c557bf5820eeb75a72925959
+EBUILD bareos-16.2.4.ebuild 12003 SHA256 b0a51ab6c7f31d630a70d74931608782f9b362c04e6e8dfcd256a7afe36d4179 SHA512 52cecb0c65a4c1ed7cb7d15190c5edc0c9827c8ed306d789c02d9df6d963487b3b1327802c6de85e12b3b39856c1f5e7a83852b754210078fab889641d3f152c WHIRLPOOL dc3c51c7618c514f9450a1125719907cbcb538d578856c96b1c6a4d62895a5892307b33a8e32f9171d5c1cf00bb2dc50dc317de4c557bf5820eeb75a72925959
+MISC ChangeLog 5095 SHA256 05b27308d15e2742ff1cf67491f6d0b66a8cf246aa7a5ba636f848fc499ecd8b SHA512 c888ccd1b7b47bb06066c5a68aa13814a8e92a3da26e8bc43a66f9d3b865ca89be07bcd29c0bf6e43fafdbb39fd7e98b88705fe4ff6849cdecf85ae42c7fd49d WHIRLPOOL c088e25cccfb7fef58b1f03d9096259a123059306fa3e393bddfe0dae4eb09bcb3744735440844dbbea4192ea77fcb42c7413857a8f4ff432e3c569dae926603
+MISC ChangeLog-2015 4195 SHA256 9ea205bb234b9362121d761d6bae2857833f5d52727a02258a1ca2dd96d68ae6 SHA512 90ac61578ab3ba85f428ed4cb71b8f24bfb4bdecd2feeb5fdd8757ea5ddca69ae7ccf879643aaec6c1e03544dcdca55062adf26493e771b02c48794bb25faf53 WHIRLPOOL 6b1686e87617013a2c0067391d625266a24e5adc0dc4641501b0d5f6658b1c1696f8764f718b6e019685fee84c824eac71a666903e5ed63398a4554f9db4e97e
+MISC metadata.xml 1440 SHA256 e4f510b28cb70fc9ef58bc590f67e0eae4c8ad47f6c645e670d5e788a5ab2966 SHA512 b76bc10f031dc5ab0abd71980706a3beebfb50a8e7d273bdfbf85124309ba98ab4542d6e273691a8105c8c5a078b3886d891131a79c587ab62f361e7bba7b5b7 WHIRLPOOL 1c27947c74f3114e9829724eb4491dc5d70e044b32e7b53a63bedd41cc3dcaad2500c5c6627b4dc21a8eed92af670b2e9eaade8851ff937217c5edfa13ea5536
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..1890fd8e3bd8
--- /dev/null
+++ b/app-backup/bareos/bareos-13.2.4-r1.ebuild
@@ -0,0 +1,403 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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 libressl 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? (
+ !libressl? ( dev-libs/openssl:0=[static-libs] )
+ libressl? ( dev-libs/libressl:0=[static-libs] )
+ )
+ )
+ !static? (
+ acl? ( virtual/acl )
+ dev-libs/lzo
+ ssl? (
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl: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.2.ebuild b/app-backup/bareos/bareos-14.2.2.ebuild
new file mode 100644
index 000000000000..e9e440269f51
--- /dev/null
+++ b/app-backup/bareos/bareos-14.2.2.ebuild
@@ -0,0 +1,414 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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 libressl 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? (
+ !libressl? ( dev-libs/openssl:0=[static-libs] )
+ libressl? ( dev-libs/libressl:0=[static-libs] )
+ )
+ )
+ !static? (
+ acl? ( virtual/acl )
+ dev-libs/lzo
+ ssl? (
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl: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/bareos-14.2.5.ebuild b/app-backup/bareos/bareos-14.2.5.ebuild
new file mode 100644
index 000000000000..e9e440269f51
--- /dev/null
+++ b/app-backup/bareos/bareos-14.2.5.ebuild
@@ -0,0 +1,414 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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 libressl 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? (
+ !libressl? ( dev-libs/openssl:0=[static-libs] )
+ libressl? ( dev-libs/libressl:0=[static-libs] )
+ )
+ )
+ !static? (
+ acl? ( virtual/acl )
+ dev-libs/lzo
+ ssl? (
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl: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/bareos-15.2.2.ebuild b/app-backup/bareos/bareos-15.2.2.ebuild
new file mode 100644
index 000000000000..a90878f44490
--- /dev/null
+++ b/app-backup/bareos/bareos-15.2.2.ebuild
@@ -0,0 +1,428 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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="X acl cephfs clientonly +director fastlz glusterfs gnutls ipv6 jansson lmdb libressl
+ logwatch mysql ndmp postgres python qt4 rados rados-striper readline scsi-crypto
+ sql-pooling +sqlite ssl static +storage-daemon tcpd vim-syntax"
+REQUIRED_USE="!clientonly? ( || ( mysql postgres sqlite ) )"
+
+DEPEND="
+ !app-backup/bacula
+ cephfs? ( sys-cluster/ceph )
+ rados? ( sys-cluster/ceph )
+ rados-striper? ( >=sys-cluster/ceph-0.94.2 )
+ 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
+ jansson? ( dev-libs/jansson )
+ )
+ )
+ 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? (
+ !gnutls? (
+ !libressl? ( dev-libs/openssl:0=[static-libs] )
+ libressl? ( dev-libs/libressl:0=[static-libs] )
+ )
+ gnutls? ( net-libs/gnutls[static-libs] )
+ )
+ )
+ !static? (
+ acl? ( virtual/acl )
+ dev-libs/lzo
+ ssl? (
+ !gnutls? (
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ )
+ gnutls? ( net-libs/gnutls )
+ )
+ 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=''
+
+ addpredict /var/lib/logrotate.status
+
+ 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 rados-striper) \
+ $(use_with cephfs) \
+ $(use_with jansson) \
+ "
+
+ econf \
+ --libdir=/usr/$(get_libdir) \
+ --docdir=/usr/share/doc/${PF} \
+ --htmldir=/usr/share/doc/${PF}/html \
+ --with-pid-dir=/run/bareos \
+ --sysconfdir=/etc \
+ --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-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
+ newicon src/images/bareos_logo_shadow.png 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-16.2.4.ebuild b/app-backup/bareos/bareos-16.2.4.ebuild
new file mode 100644
index 000000000000..a90878f44490
--- /dev/null
+++ b/app-backup/bareos/bareos-16.2.4.ebuild
@@ -0,0 +1,428 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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="X acl cephfs clientonly +director fastlz glusterfs gnutls ipv6 jansson lmdb libressl
+ logwatch mysql ndmp postgres python qt4 rados rados-striper readline scsi-crypto
+ sql-pooling +sqlite ssl static +storage-daemon tcpd vim-syntax"
+REQUIRED_USE="!clientonly? ( || ( mysql postgres sqlite ) )"
+
+DEPEND="
+ !app-backup/bacula
+ cephfs? ( sys-cluster/ceph )
+ rados? ( sys-cluster/ceph )
+ rados-striper? ( >=sys-cluster/ceph-0.94.2 )
+ 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
+ jansson? ( dev-libs/jansson )
+ )
+ )
+ 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? (
+ !gnutls? (
+ !libressl? ( dev-libs/openssl:0=[static-libs] )
+ libressl? ( dev-libs/libressl:0=[static-libs] )
+ )
+ gnutls? ( net-libs/gnutls[static-libs] )
+ )
+ )
+ !static? (
+ acl? ( virtual/acl )
+ dev-libs/lzo
+ ssl? (
+ !gnutls? (
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ )
+ gnutls? ( net-libs/gnutls )
+ )
+ 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=''
+
+ addpredict /var/lib/logrotate.status
+
+ 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 rados-striper) \
+ $(use_with cephfs) \
+ $(use_with jansson) \
+ "
+
+ econf \
+ --libdir=/usr/$(get_libdir) \
+ --docdir=/usr/share/doc/${PF} \
+ --htmldir=/usr/share/doc/${PF}/html \
+ --with-pid-dir=/run/bareos \
+ --sysconfdir=/etc \
+ --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-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
+ newicon src/images/bareos_logo_shadow.png 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..5503131f8f3a
--- /dev/null
+++ b/app-backup/bareos/files/bareos-dir.confd
@@ -0,0 +1,17 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# 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..826d27a829c9
--- /dev/null
+++ b/app-backup/bareos/files/bareos-dir.initd
@@ -0,0 +1,21 @@
+#!/sbin/openrc-run
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..cd7ac02c50df
--- /dev/null
+++ b/app-backup/bareos/files/bareos-fd.confd
@@ -0,0 +1,7 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# 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..e272daa88ecd
--- /dev/null
+++ b/app-backup/bareos/files/bareos-fd.initd
@@ -0,0 +1,21 @@
+#!/sbin/openrc-run
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..017c80bafdfa
--- /dev/null
+++ b/app-backup/bareos/files/bareos-sd.confd
@@ -0,0 +1,10 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# 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..f20be4ecf56e
--- /dev/null
+++ b/app-backup/bareos/files/bareos-sd.initd
@@ -0,0 +1,21 @@
+#!/sbin/openrc-run
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..4f7694434a3e
--- /dev/null
+++ b/app-backup/bareos/metadata.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <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="gnutls">When ssl is enabled, use GnuTLS instead of OpenSSL</flag>
+ <flag name="jansson">JSON API support using JANSSON for director</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="rados-striper">Enable use of rados-striper</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/borgbackup/Manifest b/app-backup/borgbackup/Manifest
new file mode 100644
index 000000000000..93f3fea02203
--- /dev/null
+++ b/app-backup/borgbackup/Manifest
@@ -0,0 +1,11 @@
+DIST borgbackup-1.0.10.tar.gz 563363 SHA256 978f28f144924005219da989b1b436a32b2735a34c6d0dc15bb0a1ccffad59e9 SHA512 db0d315b8381f853c192e0b6672bac8275ef2046dc307f88bbd9641f941feedb91bdfdb074b2b33141a6b94db204588fb87b6ea1b746648d20f30f1268055d7a WHIRLPOOL 055c925bd843fbd9dc73eb7b9a8ceb71510ba6f4e2e3668204fd73f73b610d44c070517af440e12e0d05844d42128d87b8d4defdc863a642a678ae5834af8261
+DIST borgbackup-1.0.11.tar.gz 603381 SHA256 fc6efd2d19454625532e0defac90cd8e8737665e10ae59edb15356ee5a99d291 SHA512 438d39557a4ebc936f606a880b7f1c915fd5497b11663f03b8a767af7cca522a1b235be0f81c4310d8f12e19d147b438481b7ac82e7371588237de8f1e229525 WHIRLPOOL b998593db3487c0d533820054ff63ca30f0975481fa33f8aacf0d0552c21d37e26879c8a01ca611792b09946d09f82d602685fe2317f701faa015c96ea916f3d
+DIST borgbackup-1.0.9.tar.gz 541796 SHA256 35860840e0429d4bb3acc8b9dd33aa5996a42fb2b678813a982b321a7dba3cb2 SHA512 5623916b143a3d39cab41bc5cca82589a612035d9be0bfd0d211656a975b986bc0c04133bdd1ba44b628fffd84f2c4294530a7c37b9c874e878b77d6105ff0ad WHIRLPOOL 76d740c07bc9767c80e3a725cdbba3f0c990d0e67643089e38f020aa611248f3d3694b07605c12d17645e7af5c1ba7ce7b86a458496350c8c798ab6b97cd0cde
+DIST borgbackup-1.1.0.tar.gz 2912847 SHA256 b40c1120c480a8235ce403b8e6e7abf1377458896f438eafce60f54916789e6f SHA512 052c9780ede503d0ace18ceea2f7d323027c553418c09e7c2202bb3a72d9ff7d34cfd35e2beab42e5cc65d9c28748d469060799c8dd87dcc3fdd9bfa9ba8e9f2 WHIRLPOOL b12bf0086256dd73a30c904fb9883787eef9cd5c4ace1fb2a5791ad8eb37ecd8bf0738b44c793db799f90fffb1e9f23f26d1270dbb80c7eb3265325e079c1a2d
+EBUILD borgbackup-1.0.10.ebuild 920 SHA256 bdf054eec73a0bced4ca0d973cef01a08e8008802f26267bcb4d350f3f5ac6a2 SHA512 7422ea0b80900d17c15c785aecced12742a1725a5133b71a2db5cf904a31fcdb0a519f9b53b7bed20a9095077237b0e91ae3609c1f778eb148b509097907c9f5 WHIRLPOOL f2ecd3f3eb07bdb6981f50db079e112f52b6ac053ccb1f4b220631dbcae82e6a8108f67b24433293ce0cb5a34fc4d694a40edd778b7c799a95ad4b91b9435fc6
+EBUILD borgbackup-1.0.11.ebuild 920 SHA256 bdf054eec73a0bced4ca0d973cef01a08e8008802f26267bcb4d350f3f5ac6a2 SHA512 7422ea0b80900d17c15c785aecced12742a1725a5133b71a2db5cf904a31fcdb0a519f9b53b7bed20a9095077237b0e91ae3609c1f778eb148b509097907c9f5 WHIRLPOOL f2ecd3f3eb07bdb6981f50db079e112f52b6ac053ccb1f4b220631dbcae82e6a8108f67b24433293ce0cb5a34fc4d694a40edd778b7c799a95ad4b91b9435fc6
+EBUILD borgbackup-1.0.9.ebuild 920 SHA256 5b1df0422af525c1056ba16768302b9bbe255ba75608beed1f5a14c404f6bfc6 SHA512 c13be8e551540b87792d2d76a8358f2bbdb5a608eed565f6df312dfa16b0bd19bded17007feb1e43746a35b8adb99f302f1e58000f8ce59383b63cc339dd1373 WHIRLPOOL ebf54c3eac6253e5bbd3ac1169a3770863c0a6303d5c0529b4df1991d7ddd28eeaf318442367e99a4b4747a25d285b280b59c44b69ba36a1a1a0886716e809ae
+EBUILD borgbackup-1.1.0.ebuild 942 SHA256 cefc723a05dc65c970fadc9d9cf74feb910866cf8c8ac424dbbdba2af634da8a SHA512 1891afff5a9e5b87cb05fce1d1c5fc5a3b7b28ff30da260ceb3de5086b4bf7e8a9c26db6c7227edae4a024ed561dad0ece87365ffd034641e6ad5516cd2a4a09 WHIRLPOOL 8499057f385bb797c7992f995f9650b2222c9632a6d30f7fe53c7f11a18b1b88286683cd10ffcd419612b274d8ee23a437f6897c0938315d829b83eea063ce3d
+EBUILD borgbackup-9999.ebuild 942 SHA256 cefc723a05dc65c970fadc9d9cf74feb910866cf8c8ac424dbbdba2af634da8a SHA512 1891afff5a9e5b87cb05fce1d1c5fc5a3b7b28ff30da260ceb3de5086b4bf7e8a9c26db6c7227edae4a024ed561dad0ece87365ffd034641e6ad5516cd2a4a09 WHIRLPOOL 8499057f385bb797c7992f995f9650b2222c9632a6d30f7fe53c7f11a18b1b88286683cd10ffcd419612b274d8ee23a437f6897c0938315d829b83eea063ce3d
+MISC ChangeLog 2481 SHA256 f10f2f0cc9530bbc7e7c787c3cc64a12943eea4f0e264cfe4b48fb3578e5d4e1 SHA512 c32e758e363ee4dd55e40c46d0a7de447db6f038419a2f5d2b2d99d581644c0b01a54dabd6bc66f766891aa0478adbe5d1114de601f7c0a3912c2762ec8c8984 WHIRLPOOL eb0927e130dd2a1ae019e73413086d88bb5a5dd5993c68a61fd2b2c9845b4c5a3893771b62fc0bc24b4443e5506a87714f49b9769e49f9f4c6451b132e0aff6f
+MISC metadata.xml 458 SHA256 9ab202d2b1824b39716842005cebb62da19fdee18672ddfde42109bee74a10bc SHA512 46eb78c0bb1233efee20254c9424a62dff31aa258273044342623da9af407a6b667e3d36bf3d1cc10f032766ec808c3afee59171f6c5b1eaeae006d77fd132be WHIRLPOOL 576b41837319050ed4dcd232ac9625b19bbcf55368bf94d62f8afdd3043564d262fe5cbad929e1e8d216c70da20a77c88a2ae57da72a83450357974a5f624ab7
diff --git a/app-backup/borgbackup/borgbackup-1.0.10.ebuild b/app-backup/borgbackup/borgbackup-1.0.10.ebuild
new file mode 100644
index 000000000000..27907669fe92
--- /dev/null
+++ b/app-backup/borgbackup/borgbackup-1.0.10.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python3_{4,5,6} )
+
+inherit distutils-r1
+
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://github.com/${PN}/borg.git"
+ inherit git-r3
+else
+ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+DESCRIPTION="Deduplicating backup program with compression and authenticated encryption"
+HOMEPAGE="https://borgbackup.readthedocs.io/"
+
+LICENSE="BSD"
+SLOT="0"
+IUSE="libressl +fuse"
+
+# Unformately we have a file conflict with app-office/borg, bug #580402
+RDEPEND="
+ !!app-office/borg
+ app-arch/lz4
+ dev-python/msgpack[${PYTHON_USEDEP}]
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ fuse? ( dev-python/llfuse[${PYTHON_USEDEP}] )
+"
+
+DEPEND="
+ dev-python/setuptools_scm[${PYTHON_USEDEP}]
+ dev-python/cython[${PYTHON_USEDEP}]
+ ${RDEPEND}
+"
diff --git a/app-backup/borgbackup/borgbackup-1.0.11.ebuild b/app-backup/borgbackup/borgbackup-1.0.11.ebuild
new file mode 100644
index 000000000000..27907669fe92
--- /dev/null
+++ b/app-backup/borgbackup/borgbackup-1.0.11.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python3_{4,5,6} )
+
+inherit distutils-r1
+
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://github.com/${PN}/borg.git"
+ inherit git-r3
+else
+ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+DESCRIPTION="Deduplicating backup program with compression and authenticated encryption"
+HOMEPAGE="https://borgbackup.readthedocs.io/"
+
+LICENSE="BSD"
+SLOT="0"
+IUSE="libressl +fuse"
+
+# Unformately we have a file conflict with app-office/borg, bug #580402
+RDEPEND="
+ !!app-office/borg
+ app-arch/lz4
+ dev-python/msgpack[${PYTHON_USEDEP}]
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ fuse? ( dev-python/llfuse[${PYTHON_USEDEP}] )
+"
+
+DEPEND="
+ dev-python/setuptools_scm[${PYTHON_USEDEP}]
+ dev-python/cython[${PYTHON_USEDEP}]
+ ${RDEPEND}
+"
diff --git a/app-backup/borgbackup/borgbackup-1.0.9.ebuild b/app-backup/borgbackup/borgbackup-1.0.9.ebuild
new file mode 100644
index 000000000000..ffc77cac9ceb
--- /dev/null
+++ b/app-backup/borgbackup/borgbackup-1.0.9.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+PYTHON_COMPAT=( python3_{4,5} )
+
+inherit distutils-r1
+
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://github.com/${PN}/borg.git"
+ inherit git-r3
+else
+ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+ KEYWORDS="amd64 ~x86"
+fi
+
+DESCRIPTION="Deduplicating backup program with compression and authenticated encryption."
+HOMEPAGE="https://borgbackup.readthedocs.io/"
+
+LICENSE="BSD"
+SLOT="0"
+IUSE="libressl +fuse"
+
+# Unformately we have a file conflict with app-office/borg, bug #580402
+RDEPEND="
+ !!app-office/borg
+ app-arch/lz4
+ dev-python/msgpack[${PYTHON_USEDEP}]
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ fuse? ( dev-python/llfuse[${PYTHON_USEDEP}] )
+"
+
+DEPEND="
+ dev-python/setuptools_scm[${PYTHON_USEDEP}]
+ dev-python/cython[${PYTHON_USEDEP}]
+ ${RDEPEND}
+"
diff --git a/app-backup/borgbackup/borgbackup-1.1.0.ebuild b/app-backup/borgbackup/borgbackup-1.1.0.ebuild
new file mode 100644
index 000000000000..664c1f81223c
--- /dev/null
+++ b/app-backup/borgbackup/borgbackup-1.1.0.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python3_{4,5,6} )
+
+inherit distutils-r1
+
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://github.com/${PN}/borg.git"
+ inherit git-r3
+else
+ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+DESCRIPTION="Deduplicating backup program with compression and authenticated encryption"
+HOMEPAGE="https://borgbackup.readthedocs.io/"
+
+LICENSE="BSD"
+SLOT="0"
+IUSE="libressl"
+
+# Unfortunately we have a file conflict with app-office/borg, bug #580402
+RDEPEND="
+ !!app-office/borg
+ app-arch/lz4
+ dev-python/llfuse[${PYTHON_USEDEP}]
+ dev-python/msgpack[${PYTHON_USEDEP}]
+ dev-python/pyzmq[${PYTHON_USEDEP}]
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+"
+
+DEPEND="
+ dev-python/setuptools_scm[${PYTHON_USEDEP}]
+ dev-python/cython[${PYTHON_USEDEP}]
+ ${RDEPEND}
+"
diff --git a/app-backup/borgbackup/borgbackup-9999.ebuild b/app-backup/borgbackup/borgbackup-9999.ebuild
new file mode 100644
index 000000000000..664c1f81223c
--- /dev/null
+++ b/app-backup/borgbackup/borgbackup-9999.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python3_{4,5,6} )
+
+inherit distutils-r1
+
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="https://github.com/${PN}/borg.git"
+ inherit git-r3
+else
+ SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+DESCRIPTION="Deduplicating backup program with compression and authenticated encryption"
+HOMEPAGE="https://borgbackup.readthedocs.io/"
+
+LICENSE="BSD"
+SLOT="0"
+IUSE="libressl"
+
+# Unfortunately we have a file conflict with app-office/borg, bug #580402
+RDEPEND="
+ !!app-office/borg
+ app-arch/lz4
+ dev-python/llfuse[${PYTHON_USEDEP}]
+ dev-python/msgpack[${PYTHON_USEDEP}]
+ dev-python/pyzmq[${PYTHON_USEDEP}]
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+"
+
+DEPEND="
+ dev-python/setuptools_scm[${PYTHON_USEDEP}]
+ dev-python/cython[${PYTHON_USEDEP}]
+ ${RDEPEND}
+"
diff --git a/app-backup/borgbackup/metadata.xml b/app-backup/borgbackup/metadata.xml
new file mode 100644
index 000000000000..9d5eca83c70b
--- /dev/null
+++ b/app-backup/borgbackup/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 type="person">
+ <email>blueness@gentoo.org</email>
+ <name>Anthony G. Basile</name>
+ </maintainer>
+ <use>
+ <flag name="fuse">Mount archive as a FUSE filesystem.</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">borgbackup/borg</remote-id>
+ <remote-id type="pypi">borgbackup</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-backup/borgweb/Manifest b/app-backup/borgweb/Manifest
new file mode 100644
index 000000000000..745baa63f351
--- /dev/null
+++ b/app-backup/borgweb/Manifest
@@ -0,0 +1,3 @@
+DIST borgweb-0.2.0.tar.gz 503852 SHA256 56a4cb485a1950098925230644ffc958c94f2a311125bee557dbbcdb5c257cef SHA512 7898caf803b82e910eaa1672b892657038da6606777ecefd97c27698c14524094f0c1741621ad4ff9a230d66454de419558644ba185488b0fdb5e1aa604010a0 WHIRLPOOL 6fc809ea502b860d5f92f85463e4f4114bfe40d9f756f49cbe911ade566a10610b73ce7a9c139797b1f1e1642a82b5e77f0b3f7776d278a1da57e95b454535be
+EBUILD borgweb-0.2.0-r2.ebuild 522 SHA256 8368391bec27e91c43dbd876162205947f103111fb60ed8b00b1dbaa78268ef5 SHA512 a52f14f832a66c11567e3621869185ed6756e29e7460d54e9451662caa0845cf44c0cf2ac38361077f196e3719098a6d967e38b66c988fb05025459b1f517473 WHIRLPOOL 83be08b3b2f26f1ee98d37731180c3c36250b631cdee243680cb33703863942ae48ca25b5a4a35880c7f07dd5f853bb34f99588b861e17d2441246afddd8377e
+MISC metadata.xml 332 SHA256 444dd6bee8bc40200da9ce3b479cfb45e803c42aa4177b475ab54d93cfb91824 SHA512 4a8daf7ccdafc221264a6fce41f8fca702ca101cfbfd113ea9f300b31c53bc1be89b89f5fa1b54b16af5c3e0f36e720cd862829fc3eabf4f27c0c80e7235347b WHIRLPOOL bd889b0400f89e971a2c5642cb6cadaee63b5661986fbbd8892f73f010711e987b1086d7483c6e8c954160bec6ee2d7ea8f9190024bc6923e8f21d99a62f1715
diff --git a/app-backup/borgweb/borgweb-0.2.0-r2.ebuild b/app-backup/borgweb/borgweb-0.2.0-r2.ebuild
new file mode 100644
index 000000000000..e3b355a9bb84
--- /dev/null
+++ b/app-backup/borgweb/borgweb-0.2.0-r2.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python3_{4,5,6} )
+
+inherit distutils-r1
+
+DESCRIPTION="Browser-based user interface for BorgBackup"
+HOMEPAGE="https://pypi.python.org/pypi/borgweb"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
+RDEPEND="app-backup/borgbackup[${PYTHON_USEDEP}]
+ dev-python/flask[${PYTHON_USEDEP}]"
diff --git a/app-backup/borgweb/metadata.xml b/app-backup/borgweb/metadata.xml
new file mode 100644
index 000000000000..87b7e668d559
--- /dev/null
+++ b/app-backup/borgweb/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 type="person">
+ <email>blueness@gentoo.org</email>
+ <name>Anthony G. Basile</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="pypi">borgweb</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-backup/btrbk/Manifest b/app-backup/btrbk/Manifest
new file mode 100644
index 000000000000..e0a483f2aa10
--- /dev/null
+++ b/app-backup/btrbk/Manifest
@@ -0,0 +1,7 @@
+DIST btrbk-0.24.0.tar.xz 72308 SHA256 032671c2905005d91a87b85acf8daec05df09bfad9e191092610094fb9a65906 SHA512 fbe180743743ead1241968765b5ae6eff37b2925bee8379443568c126426f2098d280a3f62d13e5f5b63f967ac9889ad9331d73f354d0cd441c907ba92258267 WHIRLPOOL 19052093dcec40d4a8bd5593538f6ec44ea2bbaf6a846f966cebb1f1ff76b9c94700a0bad6f16f33258f92fa05180efc2ba770f02db5553e755beb21b6761ed9
+DIST btrbk-0.25.1.tar.xz 74904 SHA256 25bbfe9352b833761c2ec929d744faa2b33670dac0dc00b6e51ed0d2d64e0c0b SHA512 6802e379f49c5433a811f6f844cf2663c752b23d8d678f001bb8cba9b099c7527983e23169814c7469ab8682b95fa0f742d1088415747ebebfe0fcc36425cd05 WHIRLPOOL 05850216548c01d86b0ec508e11d8085dec597b41bad491cbf65aa9f41432a09b2a0f79ec821bf16c0e7f24271bcb4cce1f9b52352d7d6cd67ef2ac9850a19e0
+EBUILD btrbk-0.24.0-r1.ebuild 755 SHA256 c02912cf0119b0b09309ffc1739e379b2953c317dbcfe09738e2b4178ef71014 SHA512 2924123eeabd0b1e7a325d9b413c6ff9ee750184b85ea1f460f236aa74e978df1e5537ab77fc49e8f82148caff743724355d31cf60aa5e760d1615b60d22f7e5 WHIRLPOOL 30efc9e0d7200452ca9f067fa7117b9beea0ca50b85f82da1468feacfb4cb9044c7356206b8f5ae7a1b60e4c75b00856e1bed35073624ce0bf8e2f2735ca441a
+EBUILD btrbk-0.25.1.ebuild 732 SHA256 d41a25ee959050278035cb0efd0a04ea178aea07e5dbea12a383395709ba2954 SHA512 5824ad725fc0b348a4535440d09334373232b00d56c2780a7cd09e4e55393493b0e50769109e559a17fd97b92f87f142fec06a99df54dec0bafc70bca35f3763 WHIRLPOOL d06b1ea0d54bf191dbceb4a36970811a7685ed74b087ef6fd50bd58e2595e9d303f95ec661b248f645b9d6c48a33060ed9d25b7f89b1ac3549c51acda194a51a
+EBUILD btrbk-9999.ebuild 727 SHA256 f5c82444910c395ded7ac84d4d35ff133b386deed5a885bc53088656b5f01a10 SHA512 069e00f67c7297878d4402c8d0cadaed5a66bd3c82b57943183f09699ea490363fa3fa5f59a496a598fd2b1271458b39086bd7b86d63dd48f573915e452b4dd9 WHIRLPOOL 781ebfe5e2460d7e1e6da8d722f2e4d5875635f29442c34481dfc94f2c8a81da83eeeab5df99efda841f7f9a77445b271171fdc6432364397b4276f5ed7c8f5d
+MISC ChangeLog 1286 SHA256 5604921fc169564d3cf64b6019264bed359be6b8386e61848c71b046ea1a781b SHA512 1604ea86d959c589918165ca9dcb3dae1d02022136fa4104476019a001acf9d96c5378de99be37935c829abc6163c20f8728ec6e2b0e4e5cf06cb0ab89084e6a WHIRLPOOL 7fd405e092d1d1694569641b37cd50aef6c5ff54e8c9d42ff3cef339fd02251be4f090bcd0042bf44212886f7e046767812464fabad3f224991719b35aaea2a9
+MISC metadata.xml 1076 SHA256 23200092d49b40efafb544650030b4c6ee55c29d1cd6dfcf87465f7d3ae38fa8 SHA512 20141d3aeba7ebe743ed3101af70c3f6515f11aaed4d43a73d507c18a933d30e778d10cfc17b98e33c616e80c79edd157d64fb0f54e35ad64a7e3114b3fd667f WHIRLPOOL 467546a7acf94ad5dd478267798850071b9b3613dfbce9172073d7a88b53dc37f000c0fcf2afa06add16992ed2198f14da515332f40c08fa39ab7c9acaaa8fbf
diff --git a/app-backup/btrbk/btrbk-0.24.0-r1.ebuild b/app-backup/btrbk/btrbk-0.24.0-r1.ebuild
new file mode 100644
index 000000000000..8f10060231fa
--- /dev/null
+++ b/app-backup/btrbk/btrbk-0.24.0-r1.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit systemd
+
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="git://dev.tty0.ch/btrbk.git"
+ inherit git-r3
+ SRC_URI=""
+ KEYWORDS=""
+else
+ SRC_URI="https://digint.ch/download/btrbk/releases/${P}.tar.xz"
+ KEYWORDS="amd64 arm x86"
+fi
+
+DESCRIPTION="Tool for creating snapshots and remote backups of btrfs subvolumes"
+HOMEPAGE="https://digint.ch/btrbk/"
+LICENSE="GPL-3+"
+SLOT="0"
+IUSE="+pv"
+
+DEPEND=""
+RDEPEND="dev-lang/perl
+ net-misc/openssh
+ pv? ( sys-apps/pv )
+ >=sys-fs/btrfs-progs-3.18.2 <sys-fs/btrfs-progs-4.8.3"
+
+src_install() {
+ emake DESTDIR="${D}" DOCDIR="/usr/share/doc/${PF}" SYSTEMDDIR="$(systemd_get_systemunitdir)" install
+}
diff --git a/app-backup/btrbk/btrbk-0.25.1.ebuild b/app-backup/btrbk/btrbk-0.25.1.ebuild
new file mode 100644
index 000000000000..11d760f7b36d
--- /dev/null
+++ b/app-backup/btrbk/btrbk-0.25.1.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit systemd
+
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="git://dev.tty0.ch/btrbk.git"
+ inherit git-r3
+ SRC_URI=""
+ KEYWORDS=""
+else
+ SRC_URI="https://digint.ch/download/btrbk/releases/${P}.tar.xz"
+ KEYWORDS="~amd64 ~arm ~x86"
+fi
+
+DESCRIPTION="Tool for creating snapshots and remote backups of btrfs subvolumes"
+HOMEPAGE="https://digint.ch/btrbk/"
+LICENSE="GPL-3+"
+SLOT="0"
+IUSE="+pv"
+
+DEPEND=""
+RDEPEND="dev-lang/perl
+ net-misc/openssh
+ pv? ( sys-apps/pv )
+ >=sys-fs/btrfs-progs-3.18.2"
+
+src_install() {
+ emake DESTDIR="${D}" DOCDIR="/usr/share/doc/${PF}" SYSTEMDDIR="$(systemd_get_systemunitdir)" install
+}
diff --git a/app-backup/btrbk/btrbk-9999.ebuild b/app-backup/btrbk/btrbk-9999.ebuild
new file mode 100644
index 000000000000..8718b6220261
--- /dev/null
+++ b/app-backup/btrbk/btrbk-9999.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit systemd
+
+if [[ ${PV} == "9999" ]] ; then
+ EGIT_REPO_URI="git://dev.tty0.ch/btrbk.git"
+ inherit git-r3
+ SRC_URI=""
+ KEYWORDS=""
+else
+ SRC_URI="https://digint.ch/download/btrbk/releases/${P}.tar.xz"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+DESCRIPTION="Tool for creating snapshots and remote backups of btrfs subvolumes"
+HOMEPAGE="https://digint.ch/btrbk/"
+LICENSE="GPL-3+"
+SLOT="0"
+IUSE="+pv"
+
+DEPEND=""
+RDEPEND="dev-lang/perl
+ net-misc/openssh
+ pv? ( sys-apps/pv )
+ >=sys-fs/btrfs-progs-3.18.2"
+
+src_install() {
+ emake DESTDIR="${D}" DOCDIR="/usr/share/doc/${PF}" SYSTEMDDIR="$(systemd_get_systemunitdir)" install
+}
diff --git a/app-backup/btrbk/metadata.xml b/app-backup/btrbk/metadata.xml
new file mode 100644
index 000000000000..d5e883ce6629
--- /dev/null
+++ b/app-backup/btrbk/metadata.xml
@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>candrews@gentoo.org</email>
+ <name>Craig Andrews</name>
+ </maintainer>
+ <maintainer type="person">
+ <email>axel@tty0.ch</email>
+ <name>Axel Burri</name>
+ </maintainer>
+ <longdescription lang="en">
+ Tool for creating snapshots and remote backups of btrfs subvolumes
+ </longdescription>
+ <upstream>
+ <maintainer status="active">
+ <email>axel@tty0.ch</email>
+ <name>Axel Burri</name>
+ </maintainer>
+ <bugs-to>https://github.com/digint/btrbk/issues</bugs-to>
+ <changelog>https://raw.githubusercontent.com/digint/btrbk/master/ChangeLog</changelog>
+ <doc>https://github.com/digint/btrbk/blob/master/README.md</doc>
+ <remote-id type="github">digint/btrbk</remote-id>
+ </upstream>
+ <use>
+ <flag name='pv'>Use sys-apps/pv to enable progress bar functionality</flag>
+ </use>
+</pkgmetadata>
diff --git a/app-backup/bup/Manifest b/app-backup/bup/Manifest
new file mode 100644
index 000000000000..b9291c1c742a
--- /dev/null
+++ b/app-backup/bup/Manifest
@@ -0,0 +1,9 @@
+DIST bup-0.28.1.tar.gz 377712 SHA256 fd962dbdade1b8ea257ac0e95d771ba11e6da4ef6f8ca6bee498a5b1bce8c817 SHA512 b27a94eeee86366f9f97081611d8e0443686ed8c4070d45729ad4efe1d48ee9f528d3257bfd5d37d6243927f5b63d6b613bf5ae2c39117012979ccd5ccecf9d2 WHIRLPOOL 5415df9bee662e0ffdcd81fa766c56a2d747df269d78dda0341bf59d607f4d2570bb1d9fdb055d4bc11992a707b8a36b1d9d7f11d0cfd6e504aa501e1cec7ba1
+DIST bup-0.29.1.tar.gz 388654 SHA256 d24b53c842d1edc907870aa69facbd45f68d778cc013b1c311b655d10d017250 SHA512 2ad142214cf5ee61e2113b49d02761cdf8fdd5928eb4f885230af71f149ba33ee748e1d96e240903f54d3264dc2ad1614e6ece66027b4c7ed1e97b6147a9685e WHIRLPOOL 7c1c3186490cfb2efdb79c3f9cf79b2e91e1917a91127b421e49a8dd2605210a24b83c407b55bb7df9168f9f7c7a1941c36b7254013ad82ebdd8078bb52b2d2a
+DIST bup-0.29.tar.gz 388173 SHA256 26abe107feaead4d4412ac66b37f5ecf37cdf56ce5b6d362c0c6c3862bcbb2e8 SHA512 3a70d747c6bae2640809d48141b726fa7897f33af9f19047c8d4cfba88abe04ac907980f0ce572847b900e2c8d02a3303e886c8ad7af9a97a7804540c7da1705 WHIRLPOOL 62881e320fa19935941e1d926e88d284ce6de1b4291e28eb27e2f7cc5a343b03c5fe4f2e61c7db21c85ea2c48aaeaafe33e61d0e6bb0a45e09038c83f7afe428
+EBUILD bup-0.28.1.ebuild 1196 SHA256 2f682445c0de0c9e1129bee2a31b3ff78c32327ac7ced1b77cd7289401f29cde SHA512 43b4b54ebf455d2c8604cb734af209586102e6f28041fe98b303087a2a128fc376ee88558536eb38db6ed5e7ce412aef0ebb0297fe5cf01345e969606c0f472e WHIRLPOOL 5a30d5f7c6d143d76e10e8784450b0dc0154287b8791d8b2670821dcbb74fa95e7ff8a73b84b262c6ca5690fa7741d2d6803cd9fd9d80c2a2a38ce6281105475
+EBUILD bup-0.29-r1.ebuild 1286 SHA256 079463e5390659d5ffd427249f9a02bb153ed25918757ec3a9d11d2fc7b01650 SHA512 ad13428549e878f5854639b8a06fab3b0f5dd2142ef68e14a5f018a01bd446f2efb0e643459e061f6fb1b5a096ed730490806ca8c93d475c2c7b418559eb0096 WHIRLPOOL ea0518fb9146b0679a4098c3afe550d7e4274c386eb8172f899ebb5c616a7bc3ea6a3d64d2e3e2b30b3b48e8da561edd132b27fee232362c6de62c75e00818e8
+EBUILD bup-0.29.1.ebuild 1286 SHA256 079463e5390659d5ffd427249f9a02bb153ed25918757ec3a9d11d2fc7b01650 SHA512 ad13428549e878f5854639b8a06fab3b0f5dd2142ef68e14a5f018a01bd446f2efb0e643459e061f6fb1b5a096ed730490806ca8c93d475c2c7b418559eb0096 WHIRLPOOL ea0518fb9146b0679a4098c3afe550d7e4274c386eb8172f899ebb5c616a7bc3ea6a3d64d2e3e2b30b3b48e8da561edd132b27fee232362c6de62c75e00818e8
+EBUILD bup-0.29.ebuild 1196 SHA256 2f682445c0de0c9e1129bee2a31b3ff78c32327ac7ced1b77cd7289401f29cde SHA512 43b4b54ebf455d2c8604cb734af209586102e6f28041fe98b303087a2a128fc376ee88558536eb38db6ed5e7ce412aef0ebb0297fe5cf01345e969606c0f472e WHIRLPOOL 5a30d5f7c6d143d76e10e8784450b0dc0154287b8791d8b2670821dcbb74fa95e7ff8a73b84b262c6ca5690fa7741d2d6803cd9fd9d80c2a2a38ce6281105475
+MISC ChangeLog 265 SHA256 45118eb28ce423e507bf5c6bdf214181aa62de47545d4d5ccf5f72817fd5cf68 SHA512 47b73631e2fbd130213be7247530c6aad85af5a21a93129556450261ea1a605805333f3088da2606b46c149bbea56ff8a96bd80853821784e921ce77f9249aaa WHIRLPOOL 29f97a1c69bda7ae7f44447516ec7f4a371fdf4f188724ebda42a39f4e694dddf500284f7931eb6fa63a36e5973e665f6359eb86af0f7f01a5d47a1edfeab57f
+MISC metadata.xml 404 SHA256 4f8483a216308b14076c545ce199941848f600a7a7a6ce14e484fbb2e5724c2d SHA512 62266b2c5b320859e4283c23aac6c325036f1a83b51a314078ccad2b0e9b9360690e34d87f387bea86e8b98ecf1b9851744a57744c478bd7040b42adea517b81 WHIRLPOOL cc32ca71cf400f0ec632d9aa4f0f1d2e9c93ac538626057680c822cda05ad190ea644685e1dea2a9009ee59785b4c57166f731b56d5dd2b677e9c7ff11c66cb2
diff --git a/app-backup/bup/bup-0.28.1.ebuild b/app-backup/bup/bup-0.28.1.ebuild
new file mode 100644
index 000000000000..f1071883fb22
--- /dev/null
+++ b/app-backup/bup/bup-0.28.1.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+
+inherit python-single-r1
+
+DESCRIPTION="A highly efficient backup system based on the git packfile format"
+HOMEPAGE="https://bup.github.io/ https://github.com/bup/bup"
+SRC_URI="https://github.com/bup/bup/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="LGPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test web"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}
+ app-arch/par2cmdline
+ dev-python/fuse-python[${PYTHON_USEDEP}]
+ dev-python/pylibacl[${PYTHON_USEDEP}]
+ dev-python/pyxattr[${PYTHON_USEDEP}]
+ web? ( www-servers/tornado[${PYTHON_USEDEP}] )
+ sys-libs/readline:0
+ dev-vcs/git"
+DEPEND="${RDEPEND}
+ test? (
+ dev-lang/perl
+ net-misc/rsync
+ )
+ app-text/pandoc
+"
+
+# unresolved sandbox issues
+RESTRICT="test"
+
+src_prepare() {
+ default
+
+ sed -e "/^CFLAGS :=/s/-O2 -Werror//" \
+ -i Makefile || die
+}
+
+src_configure() {
+ ./configure || die
+}
+
+src_test() {
+ emake test
+}
+
+src_install() {
+ emake DESTDIR="${D}" PREFIX=/usr LIBDIR="/usr/$(get_libdir)/bup" DOCDIR="/usr/share/${PF}" install
+ python_fix_shebang "${ED}"
+ python_optimize "${ED}"
+}
diff --git a/app-backup/bup/bup-0.29-r1.ebuild b/app-backup/bup/bup-0.29-r1.ebuild
new file mode 100644
index 000000000000..86ff4f87983b
--- /dev/null
+++ b/app-backup/bup/bup-0.29-r1.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+
+inherit python-single-r1
+
+DESCRIPTION="A highly efficient backup system based on the git packfile format"
+HOMEPAGE="https://bup.github.io/ https://github.com/bup/bup"
+SRC_URI="https://github.com/bup/bup/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="LGPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+doc test web"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}
+ app-arch/par2cmdline
+ dev-python/fuse-python[${PYTHON_USEDEP}]
+ dev-python/pylibacl[${PYTHON_USEDEP}]
+ dev-python/pyxattr[${PYTHON_USEDEP}]
+ web? ( www-servers/tornado[${PYTHON_USEDEP}] )
+ sys-libs/readline:0
+ dev-vcs/git"
+DEPEND="${RDEPEND}
+ test? (
+ dev-lang/perl
+ net-misc/rsync
+ )
+ doc? ( app-text/pandoc )
+"
+
+# unresolved sandbox issues
+RESTRICT="test"
+
+src_prepare() {
+ default
+
+ sed -e "/^CFLAGS :=/s/-O2 -Werror//" \
+ -i Makefile || die
+}
+
+src_configure() {
+ # only build/install docs if enabled
+ export PANDOC=$(usex doc pandoc "")
+
+ ./configure || die
+}
+
+src_test() {
+ emake test
+}
+
+src_install() {
+ emake DESTDIR="${D}" PREFIX=/usr LIBDIR="/usr/$(get_libdir)/bup" DOCDIR="/usr/share/${PF}" install
+ python_fix_shebang "${ED}"
+ python_optimize "${ED}"
+}
diff --git a/app-backup/bup/bup-0.29.1.ebuild b/app-backup/bup/bup-0.29.1.ebuild
new file mode 100644
index 000000000000..86ff4f87983b
--- /dev/null
+++ b/app-backup/bup/bup-0.29.1.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+
+inherit python-single-r1
+
+DESCRIPTION="A highly efficient backup system based on the git packfile format"
+HOMEPAGE="https://bup.github.io/ https://github.com/bup/bup"
+SRC_URI="https://github.com/bup/bup/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="LGPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+doc test web"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}
+ app-arch/par2cmdline
+ dev-python/fuse-python[${PYTHON_USEDEP}]
+ dev-python/pylibacl[${PYTHON_USEDEP}]
+ dev-python/pyxattr[${PYTHON_USEDEP}]
+ web? ( www-servers/tornado[${PYTHON_USEDEP}] )
+ sys-libs/readline:0
+ dev-vcs/git"
+DEPEND="${RDEPEND}
+ test? (
+ dev-lang/perl
+ net-misc/rsync
+ )
+ doc? ( app-text/pandoc )
+"
+
+# unresolved sandbox issues
+RESTRICT="test"
+
+src_prepare() {
+ default
+
+ sed -e "/^CFLAGS :=/s/-O2 -Werror//" \
+ -i Makefile || die
+}
+
+src_configure() {
+ # only build/install docs if enabled
+ export PANDOC=$(usex doc pandoc "")
+
+ ./configure || die
+}
+
+src_test() {
+ emake test
+}
+
+src_install() {
+ emake DESTDIR="${D}" PREFIX=/usr LIBDIR="/usr/$(get_libdir)/bup" DOCDIR="/usr/share/${PF}" install
+ python_fix_shebang "${ED}"
+ python_optimize "${ED}"
+}
diff --git a/app-backup/bup/bup-0.29.ebuild b/app-backup/bup/bup-0.29.ebuild
new file mode 100644
index 000000000000..f1071883fb22
--- /dev/null
+++ b/app-backup/bup/bup-0.29.ebuild
@@ -0,0 +1,57 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+
+inherit python-single-r1
+
+DESCRIPTION="A highly efficient backup system based on the git packfile format"
+HOMEPAGE="https://bup.github.io/ https://github.com/bup/bup"
+SRC_URI="https://github.com/bup/bup/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="LGPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test web"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="${PYTHON_DEPS}
+ app-arch/par2cmdline
+ dev-python/fuse-python[${PYTHON_USEDEP}]
+ dev-python/pylibacl[${PYTHON_USEDEP}]
+ dev-python/pyxattr[${PYTHON_USEDEP}]
+ web? ( www-servers/tornado[${PYTHON_USEDEP}] )
+ sys-libs/readline:0
+ dev-vcs/git"
+DEPEND="${RDEPEND}
+ test? (
+ dev-lang/perl
+ net-misc/rsync
+ )
+ app-text/pandoc
+"
+
+# unresolved sandbox issues
+RESTRICT="test"
+
+src_prepare() {
+ default
+
+ sed -e "/^CFLAGS :=/s/-O2 -Werror//" \
+ -i Makefile || die
+}
+
+src_configure() {
+ ./configure || die
+}
+
+src_test() {
+ emake test
+}
+
+src_install() {
+ emake DESTDIR="${D}" PREFIX=/usr LIBDIR="/usr/$(get_libdir)/bup" DOCDIR="/usr/share/${PF}" install
+ python_fix_shebang "${ED}"
+ python_optimize "${ED}"
+}
diff --git a/app-backup/bup/metadata.xml b/app-backup/bup/metadata.xml
new file mode 100644
index 000000000000..958844441602
--- /dev/null
+++ b/app-backup/bup/metadata.xml
@@ -0,0 +1,14 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>radhermit@gentoo.org</email>
+ <name>Tim Harder</name>
+ </maintainer>
+ <use>
+ <flag name="web">Support browsing backups via a web interface</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">bup/bup</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-backup/burp/Manifest b/app-backup/burp/Manifest
new file mode 100644
index 000000000000..7572c16ae3be
--- /dev/null
+++ b/app-backup/burp/Manifest
@@ -0,0 +1,28 @@
+AUX 1.4.40-bedup-conf-path.patch 1620 SHA256 d82432b127efa3f9b409ae8acdb81b90b213afe30a070fb5b58c0215ac6ba89e SHA512 89298b0d8ce135570070ac688e1798c0eb73c1b2d0cad233c417638afcdcd7409fa029ac78b5c13fd98d6cf6c297c1cb545f5b0b706b53f70b181db174a16255 WHIRLPOOL 36b25bae02b58279fbefaeff1c95d5e7d4c20cb3033ea4e0a07f5a388cbdfb09308020c2140b96e5f07035544449c1ff6f886c24c341786657a1c53adb3297bf
+AUX 1.4.40-non-zero-or-build-failure.patch 401 SHA256 4d2b3668d4d13b8564c595e932879b276b83b306ceb6fe67afba37e322ad6024 SHA512 ff407f0b10ea7ce25bd8740d9749c935fd8c46cfd7c0c60f6afe0f2d4b7dccc62615bdda60dfedaf8adeabe35972f42cc2ca5c712e19d5c68ff87f1ea1ae19e6 WHIRLPOOL 2a9f70ac8619217ad0fcd75ce3998ed999f24f8cc913609f0a7892683ce30706f97e005b72fd6e9916ac71bad320de816973fb827adf0b565e7a749a3843ffb1
+AUX 1.4.40-tinfo.patch 767 SHA256 5283a6e2ebbfc5192a9598bf2cbf3bc63d6a11613d1fa650708358da584ad519 SHA512 2f2a60951357f9d05213616ae1e623feb052bdd480e8c46e47eaabb86b53a5822e8ffcbd321d502de49b670f72075445e303ef78bcb02deb9ee16ae7f7590b65 WHIRLPOOL 3bb7a934be592b0f282aaf93e94c4ae7c939bd9cc945e122c40ba242284f48cac3855c240081fc654b6e684ddbd5769ead1ff0c2d3ccbd6e7bda824b34f7ba18
+AUX burp-2.0.54-ncurses_pkg-config.patch 1023 SHA256 29d516a68aebf6850d6a8cf2f80161c3f5b9c360ca3399d5061a7adbcc1df0b3 SHA512 51c27ecbef57b589e53d9791795f0aaaf07abd11b4eb127c1282f4ff6665694bcc33aea4a2cde7add5b0b0565256fdaa113ac57c9799c0d4f614599dd087bc06 WHIRLPOOL d6c80e73f709bdda7b7e6b5916dc11642c99eb11af5cfc5452ceb1a601b0cb226a0ecc0408abfce6f73dc4606b83505530c924509025f0d30f58f53293ce377f
+AUX burp-2.0.54-no_mkdir_run.patch 224 SHA256 3879bdf741079e040773832607c6ec1b42f576c2643c018fead77a716a955893 SHA512 052378bb276555d91c2b54e7c6ac792f5beb8dfb38f045f3d9a03828e6a3ab63ca49a17fd278ceb9b0ce38e17ba24cccf7d62b6803453af0369414f5e69964f6 WHIRLPOOL 2c760a76f3f8690553c0f6ff00e93f014eaa454923781ecf49d7528eb9785f9e423e228cfe9cd73717559f6fb284263eb3ba3f87e0603478dcf17c9fcd939426
+AUX burp-2.0.54-protocol1_by_default.patch 931 SHA256 0757d21217996a38927ac6aaec07fb2e6fa9e349951284150d2b3662324684ef SHA512 76b641c0403f2e3f5ec12e02440bc9c1d6fb1ebad2a05a7e785e5ea39fc763bf3113461e182d7791ab8d28d34a3f1e49eaf026843783e6736c30a03647d5081d WHIRLPOOL d3530a9b95bd511a77c6144870568a45b128056e157fd9f5c08f1407bd1185f7e81f745e6f3d8e24aec167e5908441b7055cd697d191537b69e82f5e6de47183
+AUX burp-2.0.54-server_user.patch 282 SHA256 5aae1e384d8ee326bc1a7230e7abbff7addce5c0513f2c62791b2b97af87a805 SHA512 a4cd302967deed776b663f037e509e354dcb5958d6a4c33770062e5455d2ff641d62604779d25c6bb542aa547548c39d8b529fa7787ab1b42dba262f1439fcea WHIRLPOOL 0729a5c5c341c877b3d9b57dd5c90d83ff6d86f581a05c49541162ee24952ff8bc3e11752a11eaebeb28b59b37043d97f96a451acf33a5714802b659e6c84dcc
+AUX burp-2.1.20-no_mkdir_run.patch 238 SHA256 3538b35d92e23b61dc4cea894dd22c08635e71c461cf0bb10a1b734558a8fb05 SHA512 b25ce17b66988cdcdb67d847160d7a80a8daf8470cbc5ece066a70dfae34b369e175a2ee2cf10b0e68f51b8fd99f52762dc4c429d6abbc4411fd09a8500c067c WHIRLPOOL 9f84cf4e12d56feed596ea8437f63450bc0c265655c52e7ec17f0230712e10287ec10164431a0d56130af0bff97f8998b1600a06016c92d21da1505a67a2369e
+AUX burp-2.1.20-protocol1_by_default.patch 943 SHA256 c574c39e7bd4a49b2052a5dc03b7060e67acbf51d71303d3580ae4dab67d0cae SHA512 249a426a76a81a2582f824d2d767695bfd848a04190ee9a2f1d4296bed03f93d4eaa86c13b4b755700b1b552bb584f9b0031ec60a705f2b27b20d62eb58aef8c WHIRLPOOL 3bf2e586450555a007ef0204bc51b3bdec3b91d0f87b5a54c83ad4917980a862d6d4759079d4aef712929ef302b8d039dba4c5cd05baf95ed851f00881d96311
+AUX burp.initd 1151 SHA256 cf672086d0df6f626b2525ecbd102d6d6f38f9a84aa17c8a23497b8af070ee53 SHA512 bfe9be4c33e26340ac8124d26a62dec5451b1258bf857ace60bf97ca8cfdd8c8f6a0845321d5b9000bd702e31fc46ec96f5d37cdc7673431ec0a607265b2572d WHIRLPOOL 5ea90f780093318a636b03a9b5484c027c5846be13bf5b55dc86d935c58690bd792b98d7e2aafe8ac10926e9889c277e398ad8d1335c2a77be91fe3aaee6eb21
+AUX burp.service 227 SHA256 ff6826a33f1553cc95b76f4a74a8aed102e6e5ab0e01536e7a798b7ea1aba4ef SHA512 8b538cf21e45f7d4b89a6ab51774a5ba874d4969d3ae0cce9e7276defbf2c388887d12b1438fff80cade0ea3ce85ab5c27281a38f4c5e8a30ca47e915b0dd69a WHIRLPOOL 30f9153ae07b9f9bd1ef46c88c08c3d9cb533081f48ef563e8b1962ee59a49f13c17b47470a01db6376ae6ff12b0d58c82ecdeaa0d4e8e81bd1d4b93723caaf9
+AUX burp.tmpfiles 29 SHA256 d681d6b59babb1470524b3dd10d404bdbaa6c897c3d9c26021f3e117a77d7e37 SHA512 b109b405d0add3d357269fbec65de06654068624672eff4ed44af69e5151586a727a13c9526e02b97fc18a4be77ba48d4d4d41cdf6b76b62fed242f9172cebff WHIRLPOOL c16a04637c50c11445afc5f61b1bbe39aef9e79b834a29f476fd3fd5289ed2a98bafd01b21799b75b0322ca5a08c6f48064c6612ec9b8cfb14f6d125b88e4433
+AUX burp2.initd 1091 SHA256 ad6b87328cf8fca548684fee1450bc49ac622887fc08df8a543187831e89464f SHA512 68b460484e049f816c36a862f748da0902c9c7320a5fd8f46813cec55f5c0e9c3a54ac726d76a62f90e2d740456283215028ba3d4c91613191cac70554d8f8f9 WHIRLPOOL 4c38dbea909f9154ef097aac54ef99d3b521b4a70e03954122548f1c7fd5bd82d0ba75080763e34bc15d012291bbf382f10b8ed0fd86a648e52e75e3618e2686
+DIST burp-1.4.40.tar.bz2 712937 SHA256 4108eb45e14740de990d918a2adbb661d88f90de48d6e2e3a6b54fd12b16fa5e SHA512 b44ba3a63d3b75f6fee55bbfef70ac07fa87e78ddb22a398e31a86670dfa3f2db1c9dbc58de3d0038cdc409bd5ae52c8e901cb26975fd7dbe0f773c4841af10c WHIRLPOOL 636120b3fa2d4a3217567177f3c8abbdeb562d298043fd6bd685842287964d835f2a369e36db0bc32ce908ce8f96e4e2677569e6ca4bac80f8d9958a2364a62d
+DIST burp-2.0.54.tar.gz 558845 SHA256 26130da9791c57b1e194973ef1ea292dec57468bf4291a4d0eae880d192c1fd1 SHA512 dccc4d3679dd759028cd6b71d09ae4e49a511e5d94b4df2f112ad974abb507bbc8fffaf63ef85c847b0f9363b20a9e817179ab556c5a788acacb7a25e7600fa4 WHIRLPOOL 60e9bec56c08bc7ebc4700824eab34cf8cefdc5871140471eec5e05dbff4f4b83c2f7c6d5554d33dbb918f46e2c60159ba99a5da599938acd40b9d5b7b582978
+DIST burp-2.1.10.tar.gz 574716 SHA256 857492493fe8ba21c54dc77e36bdedd5009edb7be66e19c533c6c0d437927d99 SHA512 ebb9901c4f5b281f05fe96499067a3e85edb7dab3132a7e00b14f10a5bb2ce51ccb32ce466176ca9b2ffcba70c7bc168b258df2494bbc6e984391f1c3fd8803a WHIRLPOOL ffc01c898033cc112bf2a01bfc2b2871152f13cbeac4a8f8b96f4432476e75ccb170f36e8af7ecee7bce05601e87959803a8b1c96cfb7e717c7648d5399ff5e4
+DIST burp-2.1.12.tar.gz 576544 SHA256 78ebd3f9a37daf935f474b1e297f716172e44db45f6641966eca2b0fa3aafce1 SHA512 85715593178bc77640b246ed5d10278a16ff4151274391c88981366d284c5a4315c542912a0d590162418e7556450ebe523b97ff2f5123413d1ce01c5b140a45 WHIRLPOOL bed5f0fb92b42cd8de1425395dc7f774747061d7ef873eb2d59b2e31815c978c91eb9e25fd8ac7c5bdaa167377760f101fea24d16cb0c3c5ba569481b5e111fe
+DIST burp-2.1.20.tar.gz 579488 SHA256 225f8ac0ad80ef4fa19c77c2d397d6829086a29dd8ab3d762820b9862d8b8f5c SHA512 5937187e0c93e21b4e3f4ab92f05589f8da56c774cf86644f095a0bff93c127911b2d513c04e380188956c2a97fb01ce471bb746d630baa5d30e6a70b53a0389 WHIRLPOOL b1253df69e20c9448249e14c898cdabc40ba5cbe5e5da5e20c8c4d7e161bf498b9f8a7ead80175d1bf00ad4b0bc893436abde27e37b61b1fad1792de04f16e99
+EBUILD burp-1.4.40-r5.ebuild 2852 SHA256 39d3384f224f3fd54753a859f430772f02b49b61d5fed4e794dbc33282f1f356 SHA512 63210b7bfb11033633f167ee49ff8d4eb6402c9517d12b8e5e000f62d39a7fcfd742b13e41bd3d19fef63fdb508257c0bf16878abd509863f678a9bfc5ec2c4a WHIRLPOOL df4af8ad3360adc823e9aaab782aeeba477034a8911c64af925128c15dd3b97760ea3ead921562ab2d9bfcb275fe313d9e07d159729da962dea89fa22b532532
+EBUILD burp-2.0.54-r1.ebuild 2925 SHA256 2e0b49712881710598e049472b530768ba4a7a3f4e841ecf60394fe5592d9f12 SHA512 cbf286ec00a6db919dc1aaa0673cc6ee51fdc6c4605c84727024d155a0c3af239e3c7af0cf51f0aea9b8f2a6955b20aa410fae9f14ff4ce61676fd961beacf7b WHIRLPOOL 397e6374273583cbff81750fead2fcd4eb85ac9db8b25609bd792c2df1bf1177dc444ee631906cb5b30d1a76ad6104839b23d025a7008b9ded0192accb23eeea
+EBUILD burp-2.0.54-r2.ebuild 2997 SHA256 ef7c8b26cabb932e4d8ec95087e8650f0cacc2ee108460c17461f679d5283896 SHA512 e46d39437a830437ef6fa32e7406cb32c738514e22fffaee722523df4973b9e90ca8d2d1247b9c70b12e0068fb420016d2cdbe1522ea1d75622471feed0e6f3e WHIRLPOOL 9a03fd5899464ddc92736774bfbe02fb0903701cc98caab3426654f714b3402c44ced3f3b54565bc06a56711b788a5efbb084be838ecf68a3cbbf71d17ed4bec
+EBUILD burp-2.0.54.ebuild 2888 SHA256 aafb707244feb151011a2e21b3d65c9228d5513d5f16d445e18fe1fe5992d6a7 SHA512 25cbf3277f4d8a1ff6f897c06cd3205d9e2acf312cb9117120c3803ef1db97d0b0705b533dfb57b702cfc6ed4d4cfaad76a63d4a594b5853ff54a2b49b4b4be3 WHIRLPOOL e00b54c83700f95a316f1585b752d004e31917ee0d6486178068a5e394a5b2a45b481fdca7ebd929b621a4faf789fbb50f77154823e9c38e033f762cd140d16f
+EBUILD burp-2.1.10.ebuild 2925 SHA256 2e0b49712881710598e049472b530768ba4a7a3f4e841ecf60394fe5592d9f12 SHA512 cbf286ec00a6db919dc1aaa0673cc6ee51fdc6c4605c84727024d155a0c3af239e3c7af0cf51f0aea9b8f2a6955b20aa410fae9f14ff4ce61676fd961beacf7b WHIRLPOOL 397e6374273583cbff81750fead2fcd4eb85ac9db8b25609bd792c2df1bf1177dc444ee631906cb5b30d1a76ad6104839b23d025a7008b9ded0192accb23eeea
+EBUILD burp-2.1.12.ebuild 2997 SHA256 ef7c8b26cabb932e4d8ec95087e8650f0cacc2ee108460c17461f679d5283896 SHA512 e46d39437a830437ef6fa32e7406cb32c738514e22fffaee722523df4973b9e90ca8d2d1247b9c70b12e0068fb420016d2cdbe1522ea1d75622471feed0e6f3e WHIRLPOOL 9a03fd5899464ddc92736774bfbe02fb0903701cc98caab3426654f714b3402c44ced3f3b54565bc06a56711b788a5efbb084be838ecf68a3cbbf71d17ed4bec
+EBUILD burp-2.1.20.ebuild 2944 SHA256 c554c7d74b26782757d60ebafef5b0ac5d128e731235ef835475bdb02ffbd022 SHA512 afb696b8d45e7cd98f8db4a2c647a6c74b20e0ed5fa72010e45c594b56bbe8b340d434352733f50d6d368ad0f3534ccd5f40400021120230474c951263acab71 WHIRLPOOL 84f638e6a765ccdd0a570ded82eafa066588cd016c42e42e2dbeed9655f6077735b308ca1889859f62c2f92ef1701fc2c3bea900fe5a65e2f5d6cb3708724f7d
+MISC ChangeLog 10104 SHA256 552c019805ee1e4755e4664f42be74855d814c07e2aee1d8fc6e83f5907040bb SHA512 c0b2ec70e96501bd5fee5ae166fe544c2bb0bcc4bf07648c591014c68840c08075f0e00ddd2ae3aecc4fdc821191f4da60bc2762bf4e593937ed427a7b6f9c48 WHIRLPOOL fce81ea70cb8c766ab06269059b4c7686635598af06bcbd673ecc2d99da9153b2d5bb20ac21b10a5bc08768f339bf54935e5b326f42541bdf59c90b010afa36f
+MISC ChangeLog-2015 2905 SHA256 c565b278d85dabb20721a04664fc3e04e1ea1b76c6877b2fd4e329491dc8a7c7 SHA512 a2fcf2df1fd47bab040ba6d29bb5d0bbe169e5846694765cecade311c0c1f4730638bab9adb09ceeaa2503a7b5320468282958028953b1ff2955baef76a44a77 WHIRLPOOL 46d9603bc20c6c11229d575e5ded0eb057fd0081f6007d4f3339ecf1820e021fbb1f0f12003ba8fb9016befe6f5bcc6dbeb0635b8a7bc41cfa4083301ff2e62a
+MISC metadata.xml 684 SHA256 b041b5ae55ee9ffb22bcc7f8c0221290720f0f395c7ba63f246e262693544e47 SHA512 3752a2b8e2fb49d44d8fe431768ab1b4bc9995099e9bbe4f957677b39ca038a75874bfb0781b1cd1bd4bd79186c0994f2ce5654921a58c9645ffd6dc553f3c9f WHIRLPOOL 5203e7910fbfe28c9e451f3d8d9e45a2b7ee1f0a21dbf96e40ef485791ecb9a064e41ca240835425251f7be4f686085523a6edf049a042abc505b24f709cce73
diff --git a/app-backup/burp/burp-1.4.40-r5.ebuild b/app-backup/burp/burp-1.4.40-r5.ebuild
new file mode 100644
index 000000000000..069a2df1365a
--- /dev/null
+++ b/app-backup/burp/burp-1.4.40-r5.ebuild
@@ -0,0 +1,115 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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
+ http://burp.grke.org/downloads/${P}/${P}.tar.bz2"
+
+LICENSE="AGPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="acl afs ipv6 libressl nls tcpd xattr"
+
+DEPEND="
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ dev-libs/uthash
+ sys-libs/libcap
+ ~net-libs/librsync-0.9.7
+ sys-libs/ncurses:0=
+ sys-libs/zlib
+ acl? ( sys-apps/acl )
+ afs? ( net-fs/openafs )
+ nls? ( sys-devel/gettext )
+ tcpd? ( sys-apps/tcp-wrappers )
+ xattr? ( sys-apps/attr )
+ "
+RDEPEND="${DEPEND}
+ virtual/logger
+ "
+
+DOCS=( CONTRIBUTORS DONATIONS UPGRADING )
+PATCHES=(
+ "${FILESDIR}/${PV}-non-zero-or-build-failure.patch"
+ "${FILESDIR}/${PV}-bedup-conf-path.patch"
+ "${FILESDIR}/${PV}-tinfo.patch"
+ )
+
+pkg_setup() {
+ enewgroup "${PN}"
+ enewuser "${PN}" -1 "" "" "${PN}"
+}
+
+src_prepare() {
+ epatch "${PATCHES[@]}"
+ eautoreconf
+ sed -e '/autoupgrade/d' -i "${S}"/Makefile.in || die
+ rm "${S}"/docs/autoupgrade.txt || die
+}
+
+src_configure() {
+ local myeconfargs=(
+ --sbindir=/usr/sbin
+ --sysconfdir=/etc/burp
+ --enable-largefile
+ $(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
+ fperms 0775 /etc/burp
+ fowners root:burp /etc/burp/burp-server.conf
+ fperms 0640 /etc/burp/burp-server.conf
+ fowners root:burp /etc/burp/clientconfdir
+ fperms 0750 /etc/burp/clientconfdir
+ fowners root:burp /var/spool/burp
+ fperms 0770 /var/spool/burp
+
+ newinitd "${FILESDIR}"/${PN}.initd ${PN}
+ dodoc docs/*
+
+ local scripts_dir=/usr/share/burp/scripts
+ dodir "${scripts_dir}"
+ local script
+ for script in notify_script ssl_extra_checks_script summary_script \
+ timer_script; do
+ mv "${D}etc/burp/${script}" "${D}${scripts_dir}/" || die
+ sed -r \
+ -e "s|(=\\s*)/etc/burp/${script}\\s*$|\1${scripts_dir}/${script}|" \
+ -i "${D}etc/burp/burp-server.conf" \
+ || die
+ done
+
+ sed -e '/autoupgrade/d' -i "${D}etc/burp/burp.conf" || die
+ sed -e '/autoupgrade/,+1d' -i "${D}etc/burp/burp-server.conf" || die
+
+ 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 [[ ! -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-2.0.54-r1.ebuild b/app-backup/burp/burp-2.0.54-r1.ebuild
new file mode 100644
index 000000000000..3b33781ac1ec
--- /dev/null
+++ b/app-backup/burp/burp-2.0.54-r1.ebuild
@@ -0,0 +1,112 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools systemd tmpfiles user versionator
+
+DESCRIPTION="Network backup and restore client and server for Unix and Windows"
+HOMEPAGE="http://burp.grke.org/"
+SRC_URI="https://github.com/grke/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="AGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE="acl ipv6 libressl test xattr"
+
+CDEPEND="dev-libs/uthash
+ net-libs/librsync
+ sys-libs/ncurses:0=
+ sys-libs/zlib
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ acl? ( sys-apps/acl )
+ xattr? ( sys-apps/attr )"
+DEPEND="${CDEPEND}
+ test? ( dev-libs/check )"
+RDEPEND="${CDEPEND}
+ virtual/logger"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-2.0.54-no_mkdir_run.patch
+ "${FILESDIR}"/${PN}-2.0.54-protocol1_by_default.patch
+ "${FILESDIR}"/${PN}-2.0.54-server_user.patch
+)
+
+pkg_setup() {
+ enewgroup "${PN}"
+ enewuser "${PN}" -1 "" "" "${PN}"
+}
+
+src_prepare() {
+ default
+
+ eautoreconf
+}
+
+src_configure() {
+ local myeconfargs=(
+ --localstatedir=/var
+ --sysconfdir=/etc/burp
+ --enable-largefile
+ $(use_enable acl)
+ $(use_enable ipv6)
+ $(use_enable xattr)
+ )
+ # --runstatedir option will only work from autoconf-2.70 onwards
+ runstatedir='/run/burp' \
+ econf "${myeconfargs[@]}"
+}
+
+src_install() {
+ default
+ fowners -R root:${PN} /var/spool/burp
+ fperms 0770 /var/spool/burp
+
+ emake DESTDIR="${D}" install-configs
+ fowners -R root:${PN} /etc/burp
+ fperms 0775 /etc/burp
+ fperms 0640 /etc/burp/burp-server.conf
+ fperms 0750 /etc/burp/clientconfdir
+
+ newinitd "${FILESDIR}"/${PN}2.initd ${PN}
+ systemd_dounit "${FILESDIR}"/${PN}.service
+
+ newtmpfiles "${FILESDIR}"/${PN}.tmpfiles ${PN}.conf
+}
+
+pkg_postinst() {
+ tmpfiles_process ${PN}.conf
+
+ elog "Burp ebuilds now support the autoupgrade mechanism in both"
+ elog "client and server mode. In both cases it is disabled by"
+ elog "default. You almost certainly do NOT want to enable it in"
+ elog "client mode because upgrades obtained this way will not be"
+ elog "managed by Portage."
+
+ if [[ ! -e /etc/burp/CA/index.txt ]]; then
+ elog ""
+ 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
+
+ # According to PMS this can be a space-separated list of version
+ # numbers, even though in practice it is typically just one.
+ local oldver
+ for oldver in ${REPLACING_VERSIONS}; do
+ if [[ $(get_major_version ${oldver}) -lt 2 ]]; then
+ ewarn "Starting with version 2.0.54 we no longer patch bedup to use"
+ ewarn "the server config file by default. If you use bedup, please"
+ ewarn "update your scripts to invoke it as"
+ ewarn ""
+ ewarn " bedup -c /etc/burp/burp-server.conf"
+ ewarn ""
+ ewarn "Otherwise deduplication will not work!"
+ break
+ fi
+ done
+}
diff --git a/app-backup/burp/burp-2.0.54-r2.ebuild b/app-backup/burp/burp-2.0.54-r2.ebuild
new file mode 100644
index 000000000000..e05b1d7a3ff6
--- /dev/null
+++ b/app-backup/burp/burp-2.0.54-r2.ebuild
@@ -0,0 +1,114 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools systemd tmpfiles user versionator
+
+DESCRIPTION="Network backup and restore client and server for Unix and Windows"
+HOMEPAGE="http://burp.grke.org/"
+SRC_URI="https://github.com/grke/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="AGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE="acl ipv6 libressl test xattr"
+
+CDEPEND="dev-libs/uthash
+ net-libs/librsync
+ sys-libs/ncurses:0=
+ sys-libs/zlib
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ acl? ( sys-apps/acl )
+ xattr? ( sys-apps/attr )"
+DEPEND="${CDEPEND}
+ virtual/pkgconfig
+ test? ( dev-libs/check )"
+RDEPEND="${CDEPEND}
+ virtual/logger"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-2.0.54-ncurses_pkg-config.patch
+ "${FILESDIR}"/${PN}-2.0.54-no_mkdir_run.patch
+ "${FILESDIR}"/${PN}-2.0.54-protocol1_by_default.patch
+ "${FILESDIR}"/${PN}-2.0.54-server_user.patch
+)
+
+pkg_setup() {
+ enewgroup "${PN}"
+ enewuser "${PN}" -1 "" "" "${PN}"
+}
+
+src_prepare() {
+ default
+
+ eautoreconf
+}
+
+src_configure() {
+ local myeconfargs=(
+ --localstatedir=/var
+ --sysconfdir=/etc/burp
+ --enable-largefile
+ $(use_enable acl)
+ $(use_enable ipv6)
+ $(use_enable xattr)
+ )
+ # --runstatedir option will only work from autoconf-2.70 onwards
+ runstatedir='/run/burp' \
+ econf "${myeconfargs[@]}"
+}
+
+src_install() {
+ default
+ fowners -R root:${PN} /var/spool/burp
+ fperms 0770 /var/spool/burp
+
+ emake DESTDIR="${D}" install-configs
+ fowners -R root:${PN} /etc/burp
+ fperms 0775 /etc/burp
+ fperms 0640 /etc/burp/burp-server.conf
+ fperms 0750 /etc/burp/clientconfdir
+
+ newinitd "${FILESDIR}"/${PN}2.initd ${PN}
+ systemd_dounit "${FILESDIR}"/${PN}.service
+
+ newtmpfiles "${FILESDIR}"/${PN}.tmpfiles ${PN}.conf
+}
+
+pkg_postinst() {
+ tmpfiles_process ${PN}.conf
+
+ elog "Burp ebuilds now support the autoupgrade mechanism in both"
+ elog "client and server mode. In both cases it is disabled by"
+ elog "default. You almost certainly do NOT want to enable it in"
+ elog "client mode because upgrades obtained this way will not be"
+ elog "managed by Portage."
+
+ if [[ ! -e /etc/burp/CA/index.txt ]]; then
+ elog ""
+ 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
+
+ # According to PMS this can be a space-separated list of version
+ # numbers, even though in practice it is typically just one.
+ local oldver
+ for oldver in ${REPLACING_VERSIONS}; do
+ if [[ $(get_major_version ${oldver}) -lt 2 ]]; then
+ ewarn "Starting with version 2.0.54 we no longer patch bedup to use"
+ ewarn "the server config file by default. If you use bedup, please"
+ ewarn "update your scripts to invoke it as"
+ ewarn ""
+ ewarn " bedup -c /etc/burp/burp-server.conf"
+ ewarn ""
+ ewarn "Otherwise deduplication will not work!"
+ break
+ fi
+ done
+}
diff --git a/app-backup/burp/burp-2.0.54.ebuild b/app-backup/burp/burp-2.0.54.ebuild
new file mode 100644
index 000000000000..7194c7c6964d
--- /dev/null
+++ b/app-backup/burp/burp-2.0.54.ebuild
@@ -0,0 +1,110 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools systemd tmpfiles user versionator
+
+DESCRIPTION="Network backup and restore client and server for Unix and Windows"
+HOMEPAGE="http://burp.grke.org/"
+SRC_URI="https://github.com/grke/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="AGPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="acl ipv6 libressl test xattr"
+
+CDEPEND="dev-libs/uthash
+ net-libs/librsync
+ sys-libs/ncurses:0=
+ sys-libs/zlib
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ acl? ( sys-apps/acl )
+ xattr? ( sys-apps/attr )"
+DEPEND="${CDEPEND}
+ test? ( dev-libs/check )"
+RDEPEND="${CDEPEND}
+ virtual/logger"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-2.0.54-no_mkdir_run.patch
+ "${FILESDIR}"/${PN}-2.0.54-protocol1_by_default.patch
+ "${FILESDIR}"/${PN}-2.0.54-server_user.patch
+)
+
+pkg_setup() {
+ enewgroup "${PN}"
+ enewuser "${PN}" -1 "" "" "${PN}"
+}
+
+src_prepare() {
+ default
+
+ eautoreconf
+}
+
+src_configure() {
+ local myeconfargs=(
+ --localstatedir=/var
+ --sysconfdir=/etc/burp
+ --enable-largefile
+ $(use_enable acl)
+ $(use_enable ipv6)
+ $(use_enable xattr)
+ )
+ # --runstatedir option will only work from autoconf-2.70 onwards
+ runstatedir='/run/burp' \
+ econf "${myeconfargs[@]}"
+}
+
+src_install() {
+ default
+ fowners -R root:${PN} /var/spool/burp
+ fperms 0770 /var/spool/burp
+
+ emake DESTDIR="${D}" install-configs
+ fowners -R root:${PN} /etc/burp
+ fperms 0775 /etc/burp
+ fperms 0640 /etc/burp/burp-server.conf
+ fperms 0750 /etc/burp/clientconfdir
+
+ newinitd "${FILESDIR}"/${PN}2.initd ${PN}
+ systemd_dounit "${FILESDIR}"/${PN}.service
+
+ newtmpfiles "${FILESDIR}"/${PN}.tmpfiles ${PN}.conf
+}
+
+pkg_postinst() {
+ elog "Burp ebuilds now support the autoupgrade mechanism in both"
+ elog "client and server mode. In both cases it is disabled by"
+ elog "default. You almost certainly do NOT want to enable it in"
+ elog "client mode because upgrades obtained this way will not be"
+ elog "managed by Portage."
+
+ if [[ ! -e /etc/burp/CA/index.txt ]]; then
+ elog ""
+ 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
+
+ # According to PMS this can be a space-separated list of version
+ # numbers, even though in practice it is typically just one.
+ local oldver
+ for oldver in ${REPLACING_VERSIONS}; do
+ if [[ $(get_major_version ${oldver}) -lt 2 ]]; then
+ ewarn "Starting with version 2.0.54 we no longer patch bedup to use"
+ ewarn "the server config file by default. If you use bedup, please"
+ ewarn "update your scripts to invoke it as"
+ ewarn ""
+ ewarn " bedup -c /etc/burp/burp-server.conf"
+ ewarn ""
+ ewarn "Otherwise deduplication will not work!"
+ break
+ fi
+ done
+}
diff --git a/app-backup/burp/burp-2.1.10.ebuild b/app-backup/burp/burp-2.1.10.ebuild
new file mode 100644
index 000000000000..3b33781ac1ec
--- /dev/null
+++ b/app-backup/burp/burp-2.1.10.ebuild
@@ -0,0 +1,112 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools systemd tmpfiles user versionator
+
+DESCRIPTION="Network backup and restore client and server for Unix and Windows"
+HOMEPAGE="http://burp.grke.org/"
+SRC_URI="https://github.com/grke/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="AGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE="acl ipv6 libressl test xattr"
+
+CDEPEND="dev-libs/uthash
+ net-libs/librsync
+ sys-libs/ncurses:0=
+ sys-libs/zlib
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ acl? ( sys-apps/acl )
+ xattr? ( sys-apps/attr )"
+DEPEND="${CDEPEND}
+ test? ( dev-libs/check )"
+RDEPEND="${CDEPEND}
+ virtual/logger"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-2.0.54-no_mkdir_run.patch
+ "${FILESDIR}"/${PN}-2.0.54-protocol1_by_default.patch
+ "${FILESDIR}"/${PN}-2.0.54-server_user.patch
+)
+
+pkg_setup() {
+ enewgroup "${PN}"
+ enewuser "${PN}" -1 "" "" "${PN}"
+}
+
+src_prepare() {
+ default
+
+ eautoreconf
+}
+
+src_configure() {
+ local myeconfargs=(
+ --localstatedir=/var
+ --sysconfdir=/etc/burp
+ --enable-largefile
+ $(use_enable acl)
+ $(use_enable ipv6)
+ $(use_enable xattr)
+ )
+ # --runstatedir option will only work from autoconf-2.70 onwards
+ runstatedir='/run/burp' \
+ econf "${myeconfargs[@]}"
+}
+
+src_install() {
+ default
+ fowners -R root:${PN} /var/spool/burp
+ fperms 0770 /var/spool/burp
+
+ emake DESTDIR="${D}" install-configs
+ fowners -R root:${PN} /etc/burp
+ fperms 0775 /etc/burp
+ fperms 0640 /etc/burp/burp-server.conf
+ fperms 0750 /etc/burp/clientconfdir
+
+ newinitd "${FILESDIR}"/${PN}2.initd ${PN}
+ systemd_dounit "${FILESDIR}"/${PN}.service
+
+ newtmpfiles "${FILESDIR}"/${PN}.tmpfiles ${PN}.conf
+}
+
+pkg_postinst() {
+ tmpfiles_process ${PN}.conf
+
+ elog "Burp ebuilds now support the autoupgrade mechanism in both"
+ elog "client and server mode. In both cases it is disabled by"
+ elog "default. You almost certainly do NOT want to enable it in"
+ elog "client mode because upgrades obtained this way will not be"
+ elog "managed by Portage."
+
+ if [[ ! -e /etc/burp/CA/index.txt ]]; then
+ elog ""
+ 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
+
+ # According to PMS this can be a space-separated list of version
+ # numbers, even though in practice it is typically just one.
+ local oldver
+ for oldver in ${REPLACING_VERSIONS}; do
+ if [[ $(get_major_version ${oldver}) -lt 2 ]]; then
+ ewarn "Starting with version 2.0.54 we no longer patch bedup to use"
+ ewarn "the server config file by default. If you use bedup, please"
+ ewarn "update your scripts to invoke it as"
+ ewarn ""
+ ewarn " bedup -c /etc/burp/burp-server.conf"
+ ewarn ""
+ ewarn "Otherwise deduplication will not work!"
+ break
+ fi
+ done
+}
diff --git a/app-backup/burp/burp-2.1.12.ebuild b/app-backup/burp/burp-2.1.12.ebuild
new file mode 100644
index 000000000000..e05b1d7a3ff6
--- /dev/null
+++ b/app-backup/burp/burp-2.1.12.ebuild
@@ -0,0 +1,114 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools systemd tmpfiles user versionator
+
+DESCRIPTION="Network backup and restore client and server for Unix and Windows"
+HOMEPAGE="http://burp.grke.org/"
+SRC_URI="https://github.com/grke/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="AGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE="acl ipv6 libressl test xattr"
+
+CDEPEND="dev-libs/uthash
+ net-libs/librsync
+ sys-libs/ncurses:0=
+ sys-libs/zlib
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ acl? ( sys-apps/acl )
+ xattr? ( sys-apps/attr )"
+DEPEND="${CDEPEND}
+ virtual/pkgconfig
+ test? ( dev-libs/check )"
+RDEPEND="${CDEPEND}
+ virtual/logger"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-2.0.54-ncurses_pkg-config.patch
+ "${FILESDIR}"/${PN}-2.0.54-no_mkdir_run.patch
+ "${FILESDIR}"/${PN}-2.0.54-protocol1_by_default.patch
+ "${FILESDIR}"/${PN}-2.0.54-server_user.patch
+)
+
+pkg_setup() {
+ enewgroup "${PN}"
+ enewuser "${PN}" -1 "" "" "${PN}"
+}
+
+src_prepare() {
+ default
+
+ eautoreconf
+}
+
+src_configure() {
+ local myeconfargs=(
+ --localstatedir=/var
+ --sysconfdir=/etc/burp
+ --enable-largefile
+ $(use_enable acl)
+ $(use_enable ipv6)
+ $(use_enable xattr)
+ )
+ # --runstatedir option will only work from autoconf-2.70 onwards
+ runstatedir='/run/burp' \
+ econf "${myeconfargs[@]}"
+}
+
+src_install() {
+ default
+ fowners -R root:${PN} /var/spool/burp
+ fperms 0770 /var/spool/burp
+
+ emake DESTDIR="${D}" install-configs
+ fowners -R root:${PN} /etc/burp
+ fperms 0775 /etc/burp
+ fperms 0640 /etc/burp/burp-server.conf
+ fperms 0750 /etc/burp/clientconfdir
+
+ newinitd "${FILESDIR}"/${PN}2.initd ${PN}
+ systemd_dounit "${FILESDIR}"/${PN}.service
+
+ newtmpfiles "${FILESDIR}"/${PN}.tmpfiles ${PN}.conf
+}
+
+pkg_postinst() {
+ tmpfiles_process ${PN}.conf
+
+ elog "Burp ebuilds now support the autoupgrade mechanism in both"
+ elog "client and server mode. In both cases it is disabled by"
+ elog "default. You almost certainly do NOT want to enable it in"
+ elog "client mode because upgrades obtained this way will not be"
+ elog "managed by Portage."
+
+ if [[ ! -e /etc/burp/CA/index.txt ]]; then
+ elog ""
+ 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
+
+ # According to PMS this can be a space-separated list of version
+ # numbers, even though in practice it is typically just one.
+ local oldver
+ for oldver in ${REPLACING_VERSIONS}; do
+ if [[ $(get_major_version ${oldver}) -lt 2 ]]; then
+ ewarn "Starting with version 2.0.54 we no longer patch bedup to use"
+ ewarn "the server config file by default. If you use bedup, please"
+ ewarn "update your scripts to invoke it as"
+ ewarn ""
+ ewarn " bedup -c /etc/burp/burp-server.conf"
+ ewarn ""
+ ewarn "Otherwise deduplication will not work!"
+ break
+ fi
+ done
+}
diff --git a/app-backup/burp/burp-2.1.20.ebuild b/app-backup/burp/burp-2.1.20.ebuild
new file mode 100644
index 000000000000..ca210f89c0ff
--- /dev/null
+++ b/app-backup/burp/burp-2.1.20.ebuild
@@ -0,0 +1,113 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools systemd tmpfiles user versionator
+
+DESCRIPTION="Network backup and restore client and server for Unix and Windows"
+HOMEPAGE="http://burp.grke.org/"
+SRC_URI="https://github.com/grke/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="AGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE="acl ipv6 libressl test xattr"
+
+CDEPEND="dev-libs/uthash
+ net-libs/librsync
+ sys-libs/ncurses:0=
+ sys-libs/zlib
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ acl? ( sys-apps/acl )
+ xattr? ( sys-apps/attr )"
+DEPEND="${CDEPEND}
+ virtual/pkgconfig
+ test? ( dev-libs/check )"
+RDEPEND="${CDEPEND}
+ virtual/logger"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-2.1.20-no_mkdir_run.patch
+ "${FILESDIR}"/${PN}-2.1.20-protocol1_by_default.patch
+ "${FILESDIR}"/${PN}-2.0.54-server_user.patch
+)
+
+pkg_setup() {
+ enewgroup "${PN}"
+ enewuser "${PN}" -1 "" "" "${PN}"
+}
+
+src_prepare() {
+ default
+
+ eautoreconf
+}
+
+src_configure() {
+ local myeconfargs=(
+ --localstatedir=/var
+ --sysconfdir=/etc/burp
+ --enable-largefile
+ $(use_enable acl)
+ $(use_enable ipv6)
+ $(use_enable xattr)
+ )
+ # --runstatedir option will only work from autoconf-2.70 onwards
+ runstatedir='/run/burp' \
+ econf "${myeconfargs[@]}"
+}
+
+src_install() {
+ default
+ fowners -R root:${PN} /var/spool/burp
+ fperms 0770 /var/spool/burp
+
+ emake DESTDIR="${D}" install-configs
+ fowners -R root:${PN} /etc/burp
+ fperms 0775 /etc/burp
+ fperms 0640 /etc/burp/burp-server.conf
+ fperms 0750 /etc/burp/clientconfdir
+
+ newinitd "${FILESDIR}"/${PN}2.initd ${PN}
+ systemd_dounit "${FILESDIR}"/${PN}.service
+
+ newtmpfiles "${FILESDIR}"/${PN}.tmpfiles ${PN}.conf
+}
+
+pkg_postinst() {
+ tmpfiles_process ${PN}.conf
+
+ elog "Burp ebuilds now support the autoupgrade mechanism in both"
+ elog "client and server mode. In both cases it is disabled by"
+ elog "default. You almost certainly do NOT want to enable it in"
+ elog "client mode because upgrades obtained this way will not be"
+ elog "managed by Portage."
+
+ if [[ ! -e /etc/burp/CA/index.txt ]]; then
+ elog ""
+ 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
+
+ # According to PMS this can be a space-separated list of version
+ # numbers, even though in practice it is typically just one.
+ local oldver
+ for oldver in ${REPLACING_VERSIONS}; do
+ if [[ $(get_major_version ${oldver}) -lt 2 ]]; then
+ ewarn "Starting with version 2.0.54 we no longer patch bedup to use"
+ ewarn "the server config file by default. If you use bedup, please"
+ ewarn "update your scripts to invoke it as"
+ ewarn ""
+ ewarn " bedup -c /etc/burp/burp-server.conf"
+ ewarn ""
+ ewarn "Otherwise deduplication will not work!"
+ break
+ fi
+ done
+}
diff --git a/app-backup/burp/files/1.4.40-bedup-conf-path.patch b/app-backup/burp/files/1.4.40-bedup-conf-path.patch
new file mode 100644
index 000000000000..30346d466148
--- /dev/null
+++ b/app-backup/burp/files/1.4.40-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.40-non-zero-or-build-failure.patch b/app-backup/burp/files/1.4.40-non-zero-or-build-failure.patch
new file mode 100644
index 000000000000..2c570486ce02
--- /dev/null
+++ b/app-backup/burp/files/1.4.40-non-zero-or-build-failure.patch
@@ -0,0 +1,13 @@
+diff --git a/Makefile.in b/Makefile.in
+index ac22a24..f99ce96 100755
+--- a/Makefile.in
++++ b/Makefile.in
+@@ -40,7 +40,7 @@ all: Makefile
+ @for I in ${all_subdirs}; \
+ do (cd $$I; echo "==>Entering directory `pwd`"; \
+ $(MAKE) $@ || (echo ""; echo ""; echo " ====== Error in `pwd` ======"; \
+- echo ""; echo "";)); \
++ echo ""; echo ""; exit 1;)) || exit 1; \
+ done
+
+ depend:
diff --git a/app-backup/burp/files/1.4.40-tinfo.patch b/app-backup/burp/files/1.4.40-tinfo.patch
new file mode 100644
index 000000000000..081492261685
--- /dev/null
+++ b/app-backup/burp/files/1.4.40-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-2.0.54-ncurses_pkg-config.patch b/app-backup/burp/files/burp-2.0.54-ncurses_pkg-config.patch
new file mode 100644
index 000000000000..07310d66b204
--- /dev/null
+++ b/app-backup/burp/files/burp-2.0.54-ncurses_pkg-config.patch
@@ -0,0 +1,37 @@
+--- a/configure.ac
++++ b/configure.ac
+@@ -1,3 +1,4 @@
++
+ dnl Process this file with autoconf to produce a configure script.
+
+ dnl require a recent autoconf
+@@ -276,21 +277,22 @@
+ dnl -----------------------------------------------------------
+
+ have_ncurses=no
+-AC_CHECK_HEADERS([ncurses.h ncurses/ncurses.h],
++m4_ifdef([PKG_CHECK_MODULES],
+ [
+- AC_CHECK_LIB([ncurses], [curs_set],
++ PKG_CHECK_MODULES([ncurses], [ncurses],
+ [
+- NCURSES_LIBS="-lncurses"
+- have_ncurses=yes
+- AC_DEFINE([HAVE_NCURSES], [1], [Set to 1 if we have ncurses])
+- ]
++ have_ncurses=yes
++ NCURSES_LIBS="$ncurses_LIBS"
++ CFLAGS="$CFLAGS $ncurses_CFLAGS -DHAVE_NCURSES_H=1"
++ AC_DEFINE([HAVE_NCURSES], [1], [Set to 1 if we have ncurses])
++ ],
++ []
+ )
+ ]
+ )
+
+ AC_SUBST([NCURSES_LIBS])
+
+-
+ dnl -----------------------------------------------------------
+ dnl Check whether libcheck ('Check') is available
+ dnl -----------------------------------------------------------
diff --git a/app-backup/burp/files/burp-2.0.54-no_mkdir_run.patch b/app-backup/burp/files/burp-2.0.54-no_mkdir_run.patch
new file mode 100644
index 000000000000..8d1cdc0a0628
--- /dev/null
+++ b/app-backup/burp/files/burp-2.0.54-no_mkdir_run.patch
@@ -0,0 +1,10 @@
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -405,7 +405,6 @@
+
+ install-data-local:
+ $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(localstatedir)/spool/burp
+- $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(runstatedir)
+
+ clean-local: clean-local-check
+
diff --git a/app-backup/burp/files/burp-2.0.54-protocol1_by_default.patch b/app-backup/burp/files/burp-2.0.54-protocol1_by_default.patch
new file mode 100644
index 000000000000..391c68a5f74b
--- /dev/null
+++ b/app-backup/burp/files/burp-2.0.54-protocol1_by_default.patch
@@ -0,0 +1,24 @@
+--- a/configs/client/burp.conf.in
++++ b/configs/client/burp.conf.in
+@@ -10,7 +10,8 @@
+ # 0 to decide automatically, 1 to force protocol1 mode (file level granularity
+ # with a pseudo mirrored storage on the server and optional rsync). 2 forces
+ # protocol2 mode (inline deduplication with variable length blocks).
+-# protocol = 0
++# WARNING: as of April 2017 protocol2 is still considered experimental.
++protocol = 1
+ pidfile = @runstatedir@/burp.client.pid
+ syslog = 0
+ stdout = 1
+--- a/configs/server/burp.conf.in
++++ b/configs/server/burp.conf.in
+@@ -21,7 +21,8 @@
+ # protocol2 mode (inline deduplication with variable length blocks).
+ # Like many other settings, this can be set per client in the clientconfdir
+ # files.
+-# protocol = 0
++# WARNING: as of April 2017 protocol2 is still considered experimental.
++protocol = 1
+ pidfile = @runstatedir@/burp.server.pid
+ hardlinked_archive = 0
+ working_dir_recovery_method = delete
diff --git a/app-backup/burp/files/burp-2.0.54-server_user.patch b/app-backup/burp/files/burp-2.0.54-server_user.patch
new file mode 100644
index 000000000000..979bb4bd4c91
--- /dev/null
+++ b/app-backup/burp/files/burp-2.0.54-server_user.patch
@@ -0,0 +1,13 @@
+--- a/configs/server/burp.conf.in
++++ b/configs/server/burp.conf.in
+@@ -68,8 +68,8 @@
+ # keep = 6
+
+ # Run as different user/group.
+-# user=graham
+-# group=nogroup
++user=burp
++group=burp
+
+ # CA options.
+ # If you want your server to be a certificate authority and generate its own
diff --git a/app-backup/burp/files/burp-2.1.20-no_mkdir_run.patch b/app-backup/burp/files/burp-2.1.20-no_mkdir_run.patch
new file mode 100644
index 000000000000..5dbdcf9e7c4c
--- /dev/null
+++ b/app-backup/burp/files/burp-2.1.20-no_mkdir_run.patch
@@ -0,0 +1,10 @@
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -417,7 +417,6 @@
+
+ install-data-local:
+ $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(localstatedir)/spool/$(PACKAGE_TARNAME)
+- $(AM_V_at)$(MKDIR_P) $(DESTDIR)$(runstatedir)
+
+ clean-local: clean-local-check
+
diff --git a/app-backup/burp/files/burp-2.1.20-protocol1_by_default.patch b/app-backup/burp/files/burp-2.1.20-protocol1_by_default.patch
new file mode 100644
index 000000000000..db9e9b6a9de5
--- /dev/null
+++ b/app-backup/burp/files/burp-2.1.20-protocol1_by_default.patch
@@ -0,0 +1,24 @@
+--- a/configs/client/burp.conf.in
++++ b/configs/client/burp.conf.in
+@@ -10,7 +10,8 @@
+ # 0 to decide automatically, 1 to force protocol1 mode (file level granularity
+ # with a pseudo mirrored storage on the server and optional rsync). 2 forces
+ # protocol2 mode (inline deduplication with variable length blocks).
+-# protocol = 0
++# WARNING: as of September 2017 protocol2 is still considered experimental.
++protocol = 1
+ pidfile = @runstatedir@/@name@.client.pid
+ syslog = 0
+ stdout = 1
+--- a/configs/server/burp.conf.in
++++ b/configs/server/burp.conf.in
+@@ -21,7 +21,8 @@
+ # protocol2 mode (inline deduplication with variable length blocks).
+ # Like many other settings, this can be set per client in the clientconfdir
+ # files.
+-# protocol = 0
++# WARNING: as of September 2017 protocol2 is still considered experimental.
++protocol = 1
+ pidfile = @runstatedir@/@name@.server.pid
+ hardlinked_archive = 0
+ working_dir_recovery_method = delete
diff --git a/app-backup/burp/files/burp.initd b/app-backup/burp/files/burp.initd
new file mode 100644
index 000000000000..201af0a97123
--- /dev/null
+++ b/app-backup/burp/files/burp.initd
@@ -0,0 +1,46 @@
+#!/sbin/openrc-run
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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"
+
+get_backup_dir() {
+ grep '^directory = ' "${BURP_CONFIG}" \
+ | sed -e 's/^directory = //'
+}
+
+depend() {
+ need localmount
+ after bootmisc
+ use net
+}
+
+start_pre() {
+ checkpath -o root:burp -m 0775 -d /etc/burp
+ checkpath -o root:burp -m 0640 -f /etc/burp/burp-server.conf
+ checkpath -o root:burp -m 0750 -d /etc/burp/clientconfdir
+ checkpath -o burp:burp -m 0775 -d /run/lock/burp
+ checkpath -o root:burp -m 0770 -d "$(get_backup_dir)"
+}
+
+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/files/burp.service b/app-backup/burp/files/burp.service
new file mode 100644
index 000000000000..5a40b5e36781
--- /dev/null
+++ b/app-backup/burp/files/burp.service
@@ -0,0 +1,11 @@
+[Unit]
+Description=BackUp and Restore Program server
+After=network.target
+
+[Service]
+Type=simple
+PIDFile=/run/burp/burp.server.pid
+ExecStart=/usr/sbin/burp -F -c /etc/burp/burp-server.conf
+
+[Install]
+WantedBy=multi-user.target
diff --git a/app-backup/burp/files/burp.tmpfiles b/app-backup/burp/files/burp.tmpfiles
new file mode 100644
index 000000000000..2f04960f230e
--- /dev/null
+++ b/app-backup/burp/files/burp.tmpfiles
@@ -0,0 +1 @@
+d /run/burp 0755 burp burp -
diff --git a/app-backup/burp/files/burp2.initd b/app-backup/burp/files/burp2.initd
new file mode 100644
index 000000000000..02a7ea856c42
--- /dev/null
+++ b/app-backup/burp/files/burp2.initd
@@ -0,0 +1,45 @@
+#!/sbin/openrc-run
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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/burp.server.pid"
+start_stop_daemon_arg="--wait 500"
+
+extra_started_commands="reload summary"
+description_reload="Reloads configuration"
+description_summary="Displays main status monitor summary"
+
+get_backup_dir() {
+ grep '^directory = ' "${BURP_CONFIG}" \
+ | sed -e 's/^directory = //'
+}
+
+depend() {
+ need localmount
+ after bootmisc
+ use net
+}
+
+start_pre() {
+ checkpath -o root:burp -m 0775 -d /etc/burp
+ checkpath -o root:burp -m 0640 -f /etc/burp/burp-server.conf
+ checkpath -o root:burp -m 0750 -d /etc/burp/clientconfdir
+ checkpath -o root:burp -m 0770 -d "$(get_backup_dir)"
+}
+
+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..2887b871ddd0
--- /dev/null
+++ b/app-backup/burp/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>marecki@gentoo.org</email>
+ <name>Marek Szuba</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="github">grke/burp</remote-id>
+ <remote-id type="sourceforge">burp</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-backup/buttersink/Manifest b/app-backup/buttersink/Manifest
new file mode 100644
index 000000000000..7143d4fde1d4
--- /dev/null
+++ b/app-backup/buttersink/Manifest
@@ -0,0 +1,4 @@
+DIST buttersink-0.6.8.tar.gz 51784 SHA256 12dc5683256bc6aab5ce6db5ae40c8f565b9ad7c3da944bdba46182ae89f21d3 SHA512 52898140d983bcc6776497504191f0c1c727b24fa9543f5a5997a54ced26301ca492518094ca8770fce8064bc99dc6d3f6760e986eb66f08a758985a7a85ffff WHIRLPOOL 48e487b498cc8d827a3a5b54c5fdf019ffa5719dd925830a5f3c331344fd72e75a665a48c3cea0dc755add973f162c77916af65036ae8eef67af613eeab319ff
+EBUILD buttersink-0.6.8.ebuild 1238 SHA256 9e56ed7c8966867e8c23f51329c775d3ede7328d5da2c6f39a2b7d9739ec2127 SHA512 54096f54a676daf712bcf29c1aaa3310bbd73f142f8ba0af3a222317ce4c18249cdc0c89eb5aa733053188d56f0b48c32a6555fac635ed07b88e1209deadd2ce WHIRLPOOL 87c81fdf287092f669716b120c6647b55e614ea7bb6ba0a82ea59ea99e00836904d71e7115f0f04f588946f027b7127b6ee8ea0eb7140142753a6c113ddad600
+EBUILD buttersink-9999.ebuild 1238 SHA256 9e56ed7c8966867e8c23f51329c775d3ede7328d5da2c6f39a2b7d9739ec2127 SHA512 54096f54a676daf712bcf29c1aaa3310bbd73f142f8ba0af3a222317ce4c18249cdc0c89eb5aa733053188d56f0b48c32a6555fac635ed07b88e1209deadd2ce WHIRLPOOL 87c81fdf287092f669716b120c6647b55e614ea7bb6ba0a82ea59ea99e00836904d71e7115f0f04f588946f027b7127b6ee8ea0eb7140142753a6c113ddad600
+MISC metadata.xml 385 SHA256 3e79dd8b4c8a1f37623dad3960502a0f1a2f86d61e9a3d6e0c794063a95b8eb6 SHA512 0a067465c740e3cc79c58e9204024edfadefa0c88ddae3e5cd05776c953388d9493bbe6292cbd0cff739f102993154c970af91b06387424254c8eccdeeee2022 WHIRLPOOL fd6faa1246246b6601d1043374842456c106d4daa31d28b71ef03256da4a249e615bfc250228d2b783ccc1c71f37925d34ff9489258ee75b43279d29aa9f1948
diff --git a/app-backup/buttersink/buttersink-0.6.8.ebuild b/app-backup/buttersink/buttersink-0.6.8.ebuild
new file mode 100644
index 000000000000..998f4d7a31d8
--- /dev/null
+++ b/app-backup/buttersink/buttersink-0.6.8.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1
+
+DESCRIPTION="rsync-like utility for btrfs snapshots"
+HOMEPAGE="https://github.com/AmesCornish/buttersink"
+
+LICENSE="GPL-3"
+SLOT=0
+IUSE="test"
+
+# local tests would require root and cause sandbox issues with btrfs subvolume
+# operations, and network tests would require an SSH server with root login to
+# test the SSH backend, or remote S3 for that backend
+RESTRICT="test"
+
+if [[ ${PV} == 9999 ]] ; then
+ inherit git-r3
+ KEYWORDS=""
+ EGIT_REPO_URI="https://github.com/AmesCornish/buttersink"
+ SRC_URI=""
+else
+ KEYWORDS="~amd64 ~x86"
+ SRC_URI="https://github.com/AmesCornish/buttersink/archive/${PV}.tar.gz -> ${P}.tar.gz"
+fi
+
+RDEPEND="${PYTHON_DEPS}
+ dev-python/boto[${PYTHON_USEDEP}]
+ dev-python/crcmod[${PYTHON_USEDEP}]
+ dev-python/psutil[${PYTHON_USEDEP}]
+ sys-fs/btrfs-progs"
+DEPEND="${RDEPEND}
+ test? ( dev-python/flake8[${PYTHON_USEDEP}] )"
+
+python_prepare_all() {
+ if [[ ${PV} == 9999 ]] ; then
+ emake makestamps buttersink/version.py
+ else
+ mkdir makestamps || die
+ echo "version = \"${PV}\"" > buttersink/version.py || die
+ fi
+ distutils-r1_python_prepare_all
+}
diff --git a/app-backup/buttersink/buttersink-9999.ebuild b/app-backup/buttersink/buttersink-9999.ebuild
new file mode 100644
index 000000000000..998f4d7a31d8
--- /dev/null
+++ b/app-backup/buttersink/buttersink-9999.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1
+
+DESCRIPTION="rsync-like utility for btrfs snapshots"
+HOMEPAGE="https://github.com/AmesCornish/buttersink"
+
+LICENSE="GPL-3"
+SLOT=0
+IUSE="test"
+
+# local tests would require root and cause sandbox issues with btrfs subvolume
+# operations, and network tests would require an SSH server with root login to
+# test the SSH backend, or remote S3 for that backend
+RESTRICT="test"
+
+if [[ ${PV} == 9999 ]] ; then
+ inherit git-r3
+ KEYWORDS=""
+ EGIT_REPO_URI="https://github.com/AmesCornish/buttersink"
+ SRC_URI=""
+else
+ KEYWORDS="~amd64 ~x86"
+ SRC_URI="https://github.com/AmesCornish/buttersink/archive/${PV}.tar.gz -> ${P}.tar.gz"
+fi
+
+RDEPEND="${PYTHON_DEPS}
+ dev-python/boto[${PYTHON_USEDEP}]
+ dev-python/crcmod[${PYTHON_USEDEP}]
+ dev-python/psutil[${PYTHON_USEDEP}]
+ sys-fs/btrfs-progs"
+DEPEND="${RDEPEND}
+ test? ( dev-python/flake8[${PYTHON_USEDEP}] )"
+
+python_prepare_all() {
+ if [[ ${PV} == 9999 ]] ; then
+ emake makestamps buttersink/version.py
+ else
+ mkdir makestamps || die
+ echo "version = \"${PV}\"" > buttersink/version.py || die
+ fi
+ distutils-r1_python_prepare_all
+}
diff --git a/app-backup/buttersink/metadata.xml b/app-backup/buttersink/metadata.xml
new file mode 100644
index 000000000000..d80abca98b5f
--- /dev/null
+++ b/app-backup/buttersink/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 type="person">
+ <email>adebeus@gmail.com</email>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ </maintainer>
+ <longdescription>rsync-like utility for btrfs snapshots</longdescription>
+</pkgmetadata>
diff --git a/app-backup/ccollect/Manifest b/app-backup/ccollect/Manifest
new file mode 100644
index 000000000000..00b69557ea4d
--- /dev/null
+++ b/app-backup/ccollect/Manifest
@@ -0,0 +1,5 @@
+DIST ccollect-0.8.tar.bz2 60376 SHA256 d0b82b9b4fcd1601d8ea5fd2dae1fb22b1aaf23f12b5cfbf8b27b767e847929a SHA512 dc4b2a8687c636938154f8a4a4048c3f0ef13f6d6e3f6e66d8dcc8f544f3a390a98a8dbfb3ba2ba9019decbec5d628f07461dd3f803e14b2203972936ebf96f3 WHIRLPOOL fe2aaa405ab9f9038a5371170df86cbef2066d87ab948c59ddd2d55311af6a5a14d5bc0b6021c07d3123fb5f7ca5a59eff6f59c552db64f7f80999b31f6f9f9b
+EBUILD ccollect-0.8.ebuild 2197 SHA256 452c9654a67734be6cf056f52dbaaa274625146dd34ee4b3d6d3cc9642f86197 SHA512 1a06b65dd77c84f118c7f9409fb51f56dd6dd3bc2add24ea130bf918fce2636194a2e3f686e5f4838071191b0f589652ab396ea08df839776973cdb99d13b0a8 WHIRLPOOL d6f873078e63051048fc3ad4d9a3c48a84303e843b88229fc03b916922510236236a2209c0ba2998c3900376dce7903d5cc1ffe1fef5957b40c65ceebc88c5ac
+MISC ChangeLog 2432 SHA256 393301167546c416c1f12af547df6ba83dc3887f7045b98945c832c6d04d2c4b SHA512 e58d477231601abd96cfca57949e4f5b198fbb3e0d1dba3d1c463a358b15a930de8dee4b379ecd48f2462ae391fd2becd8f2ca8d989c55b0db1179c944a0e209 WHIRLPOOL e1d4e3ec67f3f4fb62a1ac059d7682bd23100c76a5c3dc105ad7f0ecc21dc64f015ea44a64f1520a91f2340c400abed85583ebd269cb41805a450a5ec0bd683b
+MISC ChangeLog-2015 4971 SHA256 9930d13b9b995a98402cb282f03705f07ee498b3a51f8bd00db6249bb948a690 SHA512 dc2b9b56b331b6220b013efc60d1ff25189f58b31dbb8d01a115d67daec277fe0ebd771f3e8e9aeb6a25b3560a4aeca91a0f0a4ea67357b533c51ac3afb9e35c WHIRLPOOL f397ba0c5d74cb7448c99128cecf6095ad5752a8f99f9ebe505e135cef6fa3d56d4ea5776751e581fd4a3331b7f51279413f4abb5e1e21c1d38daf93b2d8daac
+MISC metadata.xml 219 SHA256 c4517b288450a7e314959536b595457f48edaa32e452f5d89f4b4ee9bf5411ea SHA512 deccbe684f92cee0cda5253fd564994d5718143e047d6ce61fea68c3f061dc566e88288e13d98df5e68769ea347724bc39b7a466d3f1028498b4b66bc545ca9e WHIRLPOOL 411603bdd405ed77804724bd8bba81524c5168cafbd4c82aba9c2075cffe74d72ac1542c753886113829f78d38904a308d8635cd4800d30f50960bacbd60f94c
diff --git a/app-backup/ccollect/ccollect-0.8.ebuild b/app-backup/ccollect/ccollect-0.8.ebuild
new file mode 100644
index 000000000000..8cd9780edb4b
--- /dev/null
+++ b/app-backup/ccollect/ccollect-0.8.ebuild
@@ -0,0 +1,75 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..8626ee05464b
--- /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 type="person">
+ <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..452566361b30
--- /dev/null
+++ b/app-backup/cdbackup/Manifest
@@ -0,0 +1,5 @@
+DIST cdbackup-0.7.1.tar.gz 22710 SHA256 b9d94acd0065c243b2a9d5a47af768ddae003f81a181a61155065a11bb59449c SHA512 9246295090a7d52ff452d5d24a429f2a21179e4d8deb4e9d6f2ab607dd04230830e3524f25d0180e36f62c7f7f87dec11cb3c1c01cde51708d467d6e0a4afc8f WHIRLPOOL 4267f0b48c6835efc8ac4ee2851febdc149985fc466321c25a840a6539348941baf6c43c4e4425a4eb004c5cdf312e10a560a0e3a8ddceb4fa8442c485ec606e
+EBUILD cdbackup-0.7.1-r1.ebuild 744 SHA256 e13f443770896218d3620706679c032182d8eca9aedf48bc54ca550deb18dd17 SHA512 325c8e0dd7f0495e28883598b61d44469d0451863fe64034182ef3f63af0b6bd5d80992c2e0d968b24aabe22fe8721c3ea7324e79856feb8970e11ccbf1a72ee WHIRLPOOL 2fdbd79140785ddf3bb7cb9e4617ea12eb45673dfd4c9149f7ff4150573c8ee3e82c343eeeec858e75cfd8249fee4989fce2bcabad0a62b54dd0d2aa0f2267ae
+MISC ChangeLog 2636 SHA256 9bbfe92bf65549d49a113ef9e6f712c8cf05edb8fc0746726b783c03de19b0f9 SHA512 f30e9c366018d7216749695840e52f6f3171db873ee085c2a46b8fb235e5659bdca6f9767dc2d4cef44e7e4da49d9a8059b4c3a068ab3839617ea07d2681b077 WHIRLPOOL 9f597cc796cad14fb6af1a55a1a892df8df54daa8edc9c87824a0f0ee5d89f40b74b604845ef6619bd624837bb67757d05e0889dffb4e35768b9768a75a12bcb
+MISC ChangeLog-2015 1145 SHA256 16dd64831aa855d256a5cb532a6ed3bc6dd345f03cb5b29d58fa6e1a2b1a1cbf SHA512 df5935621163f575675669bae0d804e2568abef3b3eef83f10d52d0006034b0f7bd706ad7508742aeaf2add8d13d0b36dd3917ac2bc6afdce89606b0ad0d92d0 WHIRLPOOL b58e7e60591fc4cdf5905b62dcffdea96525c1e355b40291093e9777026a5cd7af9bdc7a55eace130423e3e13e7aae14cb3328deb0180e5478382ab76dc1e4e3
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/app-backup/cdbackup/cdbackup-0.7.1-r1.ebuild b/app-backup/cdbackup/cdbackup-0.7.1-r1.ebuild
new file mode 100644
index 000000000000..7529285d9a60
--- /dev/null
+++ b/app-backup/cdbackup/cdbackup-0.7.1-r1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+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_prepare() {
+ sed -i -e '/cd\(backup\|restore\)/,+1 s:CFLAGS:LDFLAGS:' \
+ "${S}"/Makefile || die "sed Makefile failed"
+ default
+}
+
+src_compile() {
+ emake CFLAGS="${CFLAGS}" CC="$(tc-getCC)"
+}
+
+src_install() {
+ dobin cdbackup cdrestore
+ doman cdbackup.1 cdrestore.1
+ dodoc CHANGES CREDITS README
+}
diff --git a/app-backup/cdbackup/metadata.xml b/app-backup/cdbackup/metadata.xml
new file mode 100644
index 000000000000..6f49eba8f496
--- /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>
+<!-- maintainer-needed -->
+</pkgmetadata>
diff --git a/app-backup/cdbkup/Manifest b/app-backup/cdbkup/Manifest
new file mode 100644
index 000000000000..12a5e0301303
--- /dev/null
+++ b/app-backup/cdbkup/Manifest
@@ -0,0 +1,5 @@
+DIST cdbkup-1.0.tar.gz 38252 SHA256 15443e6b72208ccf696d36dd46ce8181696c75bac8eb8c6201842da0d9db5084 SHA512 f95a7540704c16a01e65397fb63b5b97011685c62d3c9a9b2e303470fed5a31f909cb700035466e89ccd181401fd3c19d427fa32c40ece1ba77c1dba9322969d WHIRLPOOL b11fad17c0f850ef05fe4302227348a07475831266b889e58571051ddeca5f438d273ad1219b0477a9158348bf49bcd3315767cd0553dc5fca97fbb56717f1db
+EBUILD cdbkup-1.0-r2.ebuild 711 SHA256 bcdf135734ded4dd8252778906835d363c0f464e1a251d0ecfd39a609f76c75d SHA512 d7ba064e80eba0e7955b2de762350d1d87bfa00591f1a3da0c5105e205ea41bd9944cdf99b3d7918d14649afdaab960efcb4a5c533f07b1fa296a94aeda8d9f9 WHIRLPOOL 4ce59b1c204e48c0b091eb6c101a0a27cebda070f4c4c32347a3c7420bcecbd64077193bc0102b61083cd3b838d29b1e8aa153e4b2f9bfcacee0055992aae025
+MISC ChangeLog 3036 SHA256 6b49e4e069fa3ad627ad1463f933a0fd98dbeeb2559fa3f32cdf8971292d7742 SHA512 893a55825f1e7d6999c05c2e694fb8fb65be7f009333a50b38efb0903828cb5e8ac19cb530467c8b4fa8ab80b46dff655882aad45c62933aaa87447ed5379aef WHIRLPOOL aa9c0606e4dde65e9057d79c4aac3835ecb0adaacdeb1f76361b2d820f7a29bebc1660f4134f7e472912671abdacc9ae1e4643b4aaf1e6a6f479c57bebf9caab
+MISC ChangeLog-2015 2215 SHA256 3d9fdec49f010c121c3119260b2d0439a3fc21c2d2bb06b9ab2e27822628e6dc SHA512 fc28226da73ef7569593f818d6c25668dc49afbf5bb42ea7d8c9e0aefe021fb780116eb2246c1cf1b2a4149a0540c6a30e2432fc2b884c8322f9318ddd909e57 WHIRLPOOL 717a9e77866fb0d3dc0e823126dcb8f9c3006aeab26ce2ee466929526c11cada0e4d0dea5dab37956e02d62c1472c074e73cf37ab0e3652332f96438e2cf3746
+MISC metadata.xml 392 SHA256 1f2246964d0327632ae198f81e25ab0d8477f7020d387f5ff4bf03a8ef07c94d SHA512 12309a51f3fd6a5fe322a90d71cb554c07b1dcbe42aa5052f3b84f9e361dce74e90bf4915852b7d7d563488451f4e6148a9fc24bb7ef539178f4abc8f0805ff8 WHIRLPOOL 16c9a5e1ae68e4b780770cd703f2c40e8c234992a80c8024ee9a2ed51863f59778db4f0aaa873b23371994ac2cd0e6c8c0d8cdd68f6b3057c0373f60e5b1b019
diff --git a/app-backup/cdbkup/cdbkup-1.0-r2.ebuild b/app-backup/cdbkup/cdbkup-1.0-r2.ebuild
new file mode 100644
index 000000000000..3c748f2a7b6a
--- /dev/null
+++ b/app-backup/cdbkup/cdbkup-1.0-r2.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+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="amd64 ppc x86"
+IUSE=""
+
+DEPEND="net-misc/openssh
+ virtual/cdrtools
+ virtual/eject
+"
+RDEPEND="${DEPEND}
+ !app-misc/cdcat
+"
+
+src_prepare() {
+ default
+ sed -i -e "s:doc/cdbkup:doc/${P}:" Makefile.in || die
+ sed -i -e 's/make /$(MAKE) /' Makefile.in || die
+}
+
+src_configure() {
+ econf --with-snardir=/etc/cdbkup --with-dumpgrp=users
+}
+
+src_install() {
+ default
+ dodoc COMPLIANCE
+}
diff --git a/app-backup/cdbkup/metadata.xml b/app-backup/cdbkup/metadata.xml
new file mode 100644
index 000000000000..bce6888fa2f8
--- /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>
+ <!-- maintainer-needed -->
+ <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..97a63b274878
--- /dev/null
+++ b/app-backup/cpdup/Manifest
@@ -0,0 +1,7 @@
+AUX Makefile.linux 304 SHA256 ade70d86c12096929b6a260b8795fc6f3b2d2aac95e69f6dcb832f2fab763646 SHA512 595d56d4b25168e2426176c36cece12edc5388c58251d3c235611c40349a16f098ab7a17e0ad55435a499ded1cdad9b328f6ad3193bf09eadf5bd6778710b0d8 WHIRLPOOL 741805d7d683b0f61dd583f511dbe233f87e4b715c2bdbf193bdc6e508545734d0f4fadd70c0b5523e236d275a1cdab9424e189827289cedf7b98d4abb31fb8e
+AUX cpdup-1.11-unused.patch 325 SHA256 3188ed91bc4e322c0a5fb439dc60fbc94ef7e382dfe4b284ee88b1c4fe2367ac SHA512 55f410d3d849a08e90bb7a9b2a695adf1f351a413e0a0a977a98aa8dbd7f3b5afea9ff886310e632bb2f5e264e44ddafdf97a934121717cea08a85e41c1d53d1 WHIRLPOOL 62a58d784e79320615310709b304a1cbcbc2a96a6e75e39e597ee796748464c2876f3c47a1fb11cf95f4979a6c54cf4711a7e12bc1277b40ccfd07b8e98b3555
+DIST cpdup-1.18.tgz 42841 SHA256 3893de9a8ebe5543b9b11c4b575075e59509ddb0f26e6229b2554ee625d25687 SHA512 5c57be20951005d731866629a601b6dae91e112067f103d6cfc3f668fbd88b3b7b65990d9fad55f18c0e8238c2642a7b85aea543a0787f21084bda35e0da0e26 WHIRLPOOL 66b8b3ae3bbb5c6dbae52e4de7e107728733ab429bbd61d658599de74355bbd0889c283f58548873b12b97b662ee9d565182291f19d3b998d3b014b27448a5c4
+EBUILD cpdup-1.18.ebuild 958 SHA256 6bb88735a2538c953eedc433b0b2e12fbfc5e61555549781f44e4220a31c9401 SHA512 194fb0c3f844e315bf5d83254814da33a0774c9d4c0898c3d47249bb0135a4cbc7612e709288ffe49f35af25f88f16b119326cc8ed8eb07bc7ec2fde9b7977a2 WHIRLPOOL e47166b380db8e62019f225d9621c22012834c49025b611368aea3d789014f5d3851de26827ad47057f7930c657b503a01c0ba84863c35442303cf8262917dcb
+MISC ChangeLog 2476 SHA256 d6c84e1646a922da250ee1d55f5e8dea6bee1f893ee20ebf8878cc415ee7e8cc SHA512 2b0c696bdb81a58891ca1de60ffef94ddcd05cc88a9aa0ac75359579e0424ca0b3ce91dc55fd65b6f408d0fa4e6ab5d545f5b86916a07526bc2955be3037b4c9 WHIRLPOOL 3c3bace62f8e2f0babcc8a30573ec49205c329c01642a309854b8b214c1e02d8199676fd0608eed8cd7496abd8d4d35bb16b09aec9f902abe6f8c118d68bc6c2
+MISC ChangeLog-2015 1399 SHA256 01134e32ed3e86ecb75d46f840a724dcc2211e07021dc46c24b719ace4bbc0d4 SHA512 c0275faded1517bc05e081eb39226849c66635c793be26a89d2b41827668dfc170d5d6468907ed15534da371ec31c452d1112e8b63883e6c4335712bb33e4536 WHIRLPOOL 6c5e238332e9a7d8b5e6d4961760b33191c6fa819e53d23ee94495ad8fc73a22d69fe8d196983403c972ff2db25aaa7e750fe6dd56d422553058abbc24601f06
+MISC metadata.xml 238 SHA256 501d93b0c41ed422505100f002758cd173cd9783ae7fbb53e2ec5f238c868340 SHA512 173efaa53a514acf1e2f0c6681c82a48ec16d505844f551d2cc823ee8685b27837c7461f7956c12182059ee7e83023e2f0bcd5d1afab74beeaf998487193656d WHIRLPOOL 4ca51d994f011a5e7e4939f02a54b5c2f9f3e526665893c9ac2876c9871b7dc80361393d41c5247b3a5520e82d31d0dd10da520e7715c94b806a94ce0fed2a5a
diff --git a/app-backup/cpdup/cpdup-1.18.ebuild b/app-backup/cpdup/cpdup-1.18.ebuild
new file mode 100644
index 000000000000..b3cd0a45df5e
--- /dev/null
+++ b/app-backup/cpdup/cpdup-1.18.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..a00f3aeb1f81
--- /dev/null
+++ b/app-backup/cpdup/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 type="project">
+ <email>bsd@gentoo.org</email>
+ <name>BSD Project</name>
+</maintainer>
+</pkgmetadata>
diff --git a/app-backup/dar/Manifest b/app-backup/dar/Manifest
new file mode 100644
index 000000000000..334dfebc5005
--- /dev/null
+++ b/app-backup/dar/Manifest
@@ -0,0 +1,7 @@
+DIST dar-2.5.11.tar.gz 1891928 SHA256 ad9d4b32b7a1240d9ae74155ff0aab3848065bee65ce01a022a234c02be73989 SHA512 36b90218a34ac7f41ce9ca0a2167cfb2fd243b23b8e84350153e8804f0faabf87291b4e4b061533bcb0ca079f087c074eeaa12a54ee8084dd386a072ac503847 WHIRLPOOL 4e52c72a98d56b402cb546b96c5d09233910558322dca9344242ab5829f1c39e68fca31221db4f90dc6d20c216199ebce1329fd9dc214d548a78457178ab4cf5
+DIST dar-2.5.12.tar.gz 1893694 SHA256 19bd60000a681a20386ee079b9a6ea05028020053eaeddbff175a8d22563fba2 SHA512 58eafe69c730d8f3974a1b1e8f7ca67feee82babde9ba9577ef29c422861db2b29afa835c9b55160e5d226efb634b539a580845e429d08fd84beeb6f0d39be7e WHIRLPOOL d16a861c4f5e88ac93854085e9b62cc357643ba1cab0d3f822a699fa192574cbf45c8254308cddfc928839169e096fa55f229a33ab9735d7f582f5ca346c280f
+EBUILD dar-2.5.11.ebuild 2402 SHA256 dbc9474b1d6df0b2415c09cbccea7ed482367ddf7821b12bfd6a5d3388ef5afc SHA512 2519d1c4ee298e6439cf09946efd68d9ee8f627087f276e629ed0bb9af9b9b50889dc9cff8888e98b40f2bbe8cde59e26bdebaaffef177829bf7d40994ed9ded WHIRLPOOL 6f0cf82edec5fd50c0307e0d6104ec26a11a995a036fee7c03eb60d26a9bc6864d65d3e086c92444daa6996e41efb6ad725fd1cd1825539f2cba0df6b2ec0b5e
+EBUILD dar-2.5.12.ebuild 2406 SHA256 2762fe05d0f124ee230b6c57c89f2141f181eb810f550385f30ec674fc1c230d SHA512 6d7185d1dbcf892ea038aa7c158a97ff9a77580d38a191914c704edbc78863d1c6ca74b30f5b3f39a76e137eca78e4cb42e5ce8d760fd624d3da47bb4933adb8 WHIRLPOOL f19b6813bc102e9ad0ce4fefef34aac349cc75eb9bfce2376ee6ae2d5a7cb3c06babd4859521292e8e88320c6c118b9d651a381ec996a71389dd8dfadad70925
+MISC ChangeLog 6703 SHA256 2adcf0f75256f30165dde5e1e26059e907e3acba1a6f7bc8891acc8bdc529593 SHA512 07cb0c953ca030644affed4e6e484f7091cd8719eabceffe11558b71a2d05a938b5e269196b30153a5f183c4a64dbc9789b32f9b9a9bbdb313431c0a089ffc66 WHIRLPOOL 2c034772786a464d935153733e17ce6b4de344d7845827a37d9d4f2b33894aa4817d0900f459bce70c6d29811f9a40f3eaf428b72ef7a77a2fd6cf6dc6c7c064
+MISC ChangeLog-2015 11300 SHA256 04de65bccff9d90e7437d3c91c59d5b61dff8d12900dffe5366a213158309308 SHA512 12bcbdcaf6a493844b22b13b780efa31295faf5e0c490831e4a7d9fc197b2c02f87d432186e1a6b0ec28b995b61404542d5de8f040e646875431db216d189ae0 WHIRLPOOL 8e86218d9c7437ddca204fcc3b9d6de2ff89f1424d39fcf5fd4575a085ea4093ec3d0eca20320ff933fd13aec69bbed438827f82b137b576895bd12ef493a04d
+MISC metadata.xml 887 SHA256 0990bec3fd34b4f227d47cf5b147f4eefb9babde95fe606cee03264e15f8f1fd SHA512 9210de7c2f273c52c39555e2db525b1bdaa58c44d22deab887d1bf96e42ac9e8f32545461c7129d4673ced220a6445ddda68c6c2733e5660fcad05e98db56817 WHIRLPOOL 768beac4b83b1eacb8ca695edc9b19bd0dfe10daa5253630cf21e604364a53ea57f334b7e109cc9b22157c7576718858d19bc7fa2b73db07a6005f8aac569781
diff --git a/app-backup/dar/dar-2.5.11.ebuild b/app-backup/dar/dar-2.5.11.ebuild
new file mode 100644
index 000000000000..d1de0e73d30a
--- /dev/null
+++ b/app-backup/dar/dar-2.5.11.ebuild
@@ -0,0 +1,96 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit flag-o-matic
+
+DESCRIPTION="A full featured backup tool, aimed for disks"
+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="dar32 dar64 doc gcrypt gpg lzo nls static static-libs xattr"
+
+RESTRICT="test" # need to be run as root
+
+RDEPEND=">=sys-libs/zlib-1.2.3:=
+ !static? (
+ app-arch/bzip2:=
+ app-arch/xz-utils:=
+ sys-libs/libcap
+ gcrypt? ( dev-libs/libgcrypt:0= )
+ gpg? ( app-crypt/gpgme )
+ lzo? ( dev-libs/lzo:= )
+ xattr? ( sys-apps/attr:= )
+ )"
+
+DEPEND="${RDEPEND}
+ static? (
+ app-arch/bzip2[static-libs]
+ app-arch/xz-utils[static-libs]
+ sys-libs/libcap[static-libs]
+ sys-libs/zlib[static-libs]
+ gcrypt? ( dev-libs/libgcrypt:0=[static-libs] )
+ gpg? (
+ app-crypt/gpgme[static-libs]
+ dev-libs/libassuan[static-libs]
+ dev-libs/libgpg-error[static-libs]
+ )
+ lzo? ( dev-libs/lzo[static-libs] )
+ xattr? ( sys-apps/attr[static-libs] )
+ )
+ nls? (
+ sys-devel/gettext
+ virtual/libintl
+ )
+ doc? ( app-doc/doxygen )"
+
+REQUIRED_USE="?? ( dar32 dar64 )
+ gpg? ( gcrypt )"
+
+#PATCHES=(
+#)
+
+src_configure() {
+ local myconf=( --disable-upx )
+
+ # Bug 103741
+ filter-flags -fomit-frame-pointer
+
+ # configure.ac is totally funked up regarding the AC_ARG_ENABLE
+ # logic.
+ # For example "--enable-dar-static" causes configure to DISABLE
+ # static builds of dar.
+ # Do _not_ use $(use_enable) until you have verified that the
+ # logic has been fixed by upstream.
+ use xattr || myconf+=( --disable-ea-support )
+ use dar32 && myconf+=( --enable-mode=32 )
+ use dar64 && myconf+=( --enable-mode=64 )
+ use doc || myconf+=( --disable-build-html )
+ # use examples && myconf+=( --enable-examples )
+ use gcrypt || myconf+=( --disable-libgcrypt-linking )
+ use gpg || myconf+=( --disable-gpgme-linking )
+ use lzo || myconf+=( --disable-liblzo2-linking )
+ use nls || myconf+=( --disable-nls )
+ if ! use static ; then
+ myconf+=( --disable-dar-static )
+ if ! use static-libs ; then
+ myconf+=( --disable-static )
+ fi
+ fi
+
+ econf ${myconf[@]}
+}
+
+src_install() {
+ emake DESTDIR="${D}" pkgdatadir="${EPREFIX}"/usr/share/doc/${PF}/html install
+
+ local DOCS=( AUTHORS ChangeLog NEWS README THANKS TODO )
+ einstalldocs
+
+ if ! use static-libs ; then
+ prune_libtool_files --all
+ fi
+}
diff --git a/app-backup/dar/dar-2.5.12.ebuild b/app-backup/dar/dar-2.5.12.ebuild
new file mode 100644
index 000000000000..bb527233dac9
--- /dev/null
+++ b/app-backup/dar/dar-2.5.12.ebuild
@@ -0,0 +1,96 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit flag-o-matic
+
+DESCRIPTION="A full featured backup tool, aimed for disks"
+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="dar32 dar64 doc gcrypt gpg lzo nls static static-libs xattr"
+
+RESTRICT="test" # need to be run as root
+
+RDEPEND=">=sys-libs/zlib-1.2.3:=
+ !static? (
+ app-arch/bzip2:=
+ app-arch/xz-utils:=
+ sys-libs/libcap
+ gcrypt? ( dev-libs/libgcrypt:0= )
+ gpg? ( app-crypt/gpgme )
+ lzo? ( dev-libs/lzo:= )
+ xattr? ( sys-apps/attr:= )
+ )"
+
+DEPEND="${RDEPEND}
+ static? (
+ app-arch/bzip2[static-libs]
+ app-arch/xz-utils[static-libs]
+ sys-libs/libcap[static-libs]
+ sys-libs/zlib[static-libs]
+ gcrypt? ( dev-libs/libgcrypt:0=[static-libs] )
+ gpg? (
+ app-crypt/gpgme[static-libs]
+ dev-libs/libassuan[static-libs]
+ dev-libs/libgpg-error[static-libs]
+ )
+ lzo? ( dev-libs/lzo[static-libs] )
+ xattr? ( sys-apps/attr[static-libs] )
+ )
+ nls? (
+ sys-devel/gettext
+ virtual/libintl
+ )
+ doc? ( app-doc/doxygen )"
+
+REQUIRED_USE="?? ( dar32 dar64 )
+ gpg? ( gcrypt )"
+
+#PATCHES=(
+#)
+
+src_configure() {
+ local myconf=( --disable-upx )
+
+ # Bug 103741
+ filter-flags -fomit-frame-pointer
+
+ # configure.ac is totally funked up regarding the AC_ARG_ENABLE
+ # logic.
+ # For example "--enable-dar-static" causes configure to DISABLE
+ # static builds of dar.
+ # Do _not_ use $(use_enable) until you have verified that the
+ # logic has been fixed by upstream.
+ use xattr || myconf+=( --disable-ea-support )
+ use dar32 && myconf+=( --enable-mode=32 )
+ use dar64 && myconf+=( --enable-mode=64 )
+ use doc || myconf+=( --disable-build-html )
+ # use examples && myconf+=( --enable-examples )
+ use gcrypt || myconf+=( --disable-libgcrypt-linking )
+ use gpg || myconf+=( --disable-gpgme-linking )
+ use lzo || myconf+=( --disable-liblzo2-linking )
+ use nls || myconf+=( --disable-nls )
+ if ! use static ; then
+ myconf+=( --disable-dar-static )
+ if ! use static-libs ; then
+ myconf+=( --disable-static )
+ fi
+ fi
+
+ econf ${myconf[@]}
+}
+
+src_install() {
+ emake DESTDIR="${D}" pkgdatadir="${EPREFIX}"/usr/share/doc/${PF}/html install
+
+ local DOCS=( AUTHORS ChangeLog NEWS README THANKS TODO )
+ einstalldocs
+
+ if ! use static-libs ; then
+ prune_libtool_files --all
+ fi
+}
diff --git a/app-backup/dar/metadata.xml b/app-backup/dar/metadata.xml
new file mode 100644
index 000000000000..e22d4effd2e8
--- /dev/null
+++ b/app-backup/dar/metadata.xml
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <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>
+ <flag name="gpg">Enables usage of asymetric crypto algorithms</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..9b9837ca5e30
--- /dev/null
+++ b/app-backup/deja-dup/Manifest
@@ -0,0 +1,5 @@
+DIST deja-dup-34.3.tar.xz 702708 SHA256 c90a098c2b60fa73d6bcc51d7f8a33fc7c279f2556b677145d50ad0b83c90cf7 SHA512 0e703c18041fa5ca6d2f272f5b0e65ad31ff1094147432107834d1cd25e2ec14b87bdfac6faf727c97339d20d1681f3251c5f74b6edbee4368014839b1f04f06 WHIRLPOOL 619ca85ee559624370243cd057b6997334c784f25602ce63feb9d89bebfd8a826dd3e3c6adb3124e02a2b9bda04fe29d091e1f3382a0443152c84d602c447dcf
+EBUILD deja-dup-34.3.ebuild 1481 SHA256 443afa1ba9fe1dd99e0eaf4055cedf5f17f96b5088892a7bbab8101f2d10db94 SHA512 4c9190ce6437d8d22a22913d3b42b356c5b819d37d6c631b71f37ba875fff848c2592869e67cfe2a61eee0ae44ff4e3be008891f286b97175f028d8281579b8f WHIRLPOOL 736cb7c4c7d8cb8b5a2aff94b663cfc9d3fe26f2443eea06b1d5a180909cb2bd18d282a0885d17799e363a2493c635ad15e5f4fb0c30df6215edc1af20b90d1d
+MISC ChangeLog 4947 SHA256 dfd1c4523c9152cbe99c89db076d4e22e6b94c83bb2f4b787064296db0145a67 SHA512 9bf35d6c672ae84b37715fc2133f1a2f9c1bdba9ed03fb007d69f89889a0783c9c6101634f14e74d0a724d241226c96b9332914f74987986c5e6b19d8ed110b0 WHIRLPOOL 23617f54e33bff16b3243c76d0f440b5db03d668eef79a37c4b0c67560480693522072733c939c736307cdafb9bf2f3fd8e143035f3b5697210c9ff353aeed42
+MISC ChangeLog-2015 8909 SHA256 4673b9b80208d633d1407e7f9e344a505e6ac9b11b566054fcac05faab09b473 SHA512 ea797bbc145dc0d405f3d67aaec115d12a3c7b1a7c5d169c77079cd44cda4120946c8097bcfafd8f9e1a13dd013abfceffb4e325a6f7c644494036d48e837b06 WHIRLPOOL ab020e86c2bd1fd0fcee8064459add0ce55e939b3935430b107cd24d778c732572c682d35ce9a285431965b9bf59ce9e8c2251a0ea31710bf5b0ff6ea635b789
+MISC metadata.xml 425 SHA256 c173c77233538df478869cea20dc380ac7437cc04b7d4abe8bd2e6ab0bd34bbf SHA512 ba6a6a6530d8a6f582be2c3029dfc221c8cdad945486017820b1e8ba6dc144de27469f7093db5b565ed8b9e28652f9a553362687ada5105ff55f0c6be103ba47 WHIRLPOOL bc363967eba44d47bb45e744f1c75af651b124df05fe616e9bd9809406f8b6446f848af0cb426e24c8d44603cdb70670d91d89442c8bbd586e04d5d58738d357
diff --git a/app-backup/deja-dup/deja-dup-34.3.ebuild b/app-backup/deja-dup/deja-dup-34.3.ebuild
new file mode 100644
index 000000000000..122c5fd5b611
--- /dev/null
+++ b/app-backup/deja-dup/deja-dup-34.3.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+GCONF_DEBUG="no"
+
+inherit cmake-utils eutils gnome2 vala
+
+DESCRIPTION="Simple backup tool using duplicity back-end"
+HOMEPAGE="https://launchpad.net/deja-dup/"
+SRC_URI="https://launchpad.net/${PN}/34/${PV}/+download/${P}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE="nautilus test"
+RESTRICT="test" # bug#????
+
+COMMON_DEPEND="
+ app-admin/packagekit-base
+ app-crypt/libsecret[vala]
+ >=dev-libs/glib-2.34:2[dbus]
+ >=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}
+ $(vala_depend)
+ app-text/yelp-tools
+ 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_PK=OFF
+ -DENABLE_UNITY=OFF
+ -DENABLE_UNITY_CCPANEL=OFF
+ -DCMAKE_INSTALL_SYSCONFDIR="${EPREFIX}"/etc
+ -DENABLE_NAUTILUS="$(usex nautilus)"
+ -DENABLE_TESTING="$(usex test)"
+ )
+ cmake-utils_src_configure
+}
+
+src_compile() {
+ cmake-utils_src_compile
+}
+
+src_install() {
+ cmake-utils_src_install
+}
diff --git a/app-backup/deja-dup/metadata.xml b/app-backup/deja-dup/metadata.xml
new file mode 100644
index 000000000000..e0a16e6f1240
--- /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>
+ <maintainer type="project">
+ <email>gnome@gentoo.org</email>
+ <name>Gentoo GNOME Desktop</name>
+ </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..8fd9a0c448b1
--- /dev/null
+++ b/app-backup/dirvish/Manifest
@@ -0,0 +1,6 @@
+AUX master.conf.example 639 SHA256 152e482a3d02a3d33d062a926f3112cd5cd2115f7553096ea9d494c2538f9fd1 SHA512 37107271ce39de9aa744e31c1abff9871eb3e58ac48e9c6470abea2742783aeedcc4dd5a698b74f83cfa23a987a3d97dee260502d883367e707edef6b99f636a WHIRLPOOL 2d78a859d42cf116f0e9dffdd42d7443361e20db9764399e2a8c4bf732abae046dc3764ddac2ee0c4dfa62f931ab401759c804eb3e055b56f3c982fb783ec282
+DIST dirvish-1.2.1.tgz 49132 SHA256 d6068b0644f9302fb1ec676928f60145877ac316b5aa29d5a5a0204c59935527 SHA512 3618d4e73a19ed9bffa1d68561292f8d61948ab914cf0503771fe6f058af52d02707caaf73ef8b06ddbbeef72817712ab0312c3ab086f8da036c02c1fa22d0a4 WHIRLPOOL 0b82535d5aaf7893308e25af1be07c55c8b2edabe8828d4c2396ef9ca0e7e9b6a568cee6eec31dcc18703a2db7eac22cdf8bbd177605b0e410adf51d1a9bf315
+EBUILD dirvish-1.2.1.ebuild 925 SHA256 9cc17b7020504f9d4b34d7786e5305725629fe7f015eba6f00121ba7faa41bc5 SHA512 9b5c68b14258552adb70f9952733bd5226c58cf89a7007d6cd415f553318a88b3dd79b0d27033dc3910c9934c77f1f6f5eacdb3c141ba38ccff5b5ff3ada05c3 WHIRLPOOL 915564906a3917cf4eba9651c114e1a11193c7157f4239c024bf950d5f7fad5b3f74dfe6b991dd92dc97383af208c80345a547e7a281019e361e518904b5fb27
+MISC ChangeLog 2954 SHA256 5746d8412565c30e38ee161340a40b1ea5b5c6e80b932e095b11d24c0e9788d9 SHA512 6b59bd7f2602d5f98a822686c98107053628ae0a490cb899b7ec47490e7c578853280f7572e3d5bdec4d9644294e09453e7a7f872105b8ae7cd311cc54f1a7f4 WHIRLPOOL 817de3048e89a837a26dab2299d920666946c5714d5f336d04ce4b079a4db2c1c7b80811ecdedbc00099377df6bebbe15643f738f60f5c75084271a81e2dc42e
+MISC ChangeLog-2015 1698 SHA256 0d37aa53b9a5716826dce73b7c91b5b6a9578431cc1ec37aff65533c0d21ea13 SHA512 0ce97bb2deaa313b3b23d2f14b371c57e7987864029927313d89eb02a2a4d833bdafda82bc486460a31740d26f96a6a0e4f8224388cd6edcf6732fbf749bfcf2 WHIRLPOOL d48c970c22f9e72593d9476c0e6ad810dc82284c37ed203906c2ac84f8c21ddd98a6e66aa0ddacea437ffe54fb29c2582abe535a1180ddaf13bf5e6f47cd9b81
+MISC metadata.xml 463 SHA256 21035ed1068b5428c3b618762e3183a39a9ba5612a5f0cc3584fb74e3c7d3d16 SHA512 924bc0fcb516c7a91c81e36bb32423d82e08c255aa4a3f16a8df649720b9f14641877ad3cbd3dc1862b1c5f0df19d30b85c4aab4ff41d34dc4586137cd235475 WHIRLPOOL d019fc4486a244047d48af111c9a0e2704c260e5009a643671b5b114d8fd3fd498cadf4abcf8c3b98206d28bb1a8e764bdd1d29a6012f3d73db5cc7192313cc0
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..57629ae47577
--- /dev/null
+++ b/app-backup/dirvish/dirvish-1.2.1.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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-ParseDate
+ dev-perl/Time-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..003cb2d2d730
--- /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>
+ <!-- maintainer-needed -->
+ <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..b9546f041c3f
--- /dev/null
+++ b/app-backup/duplicity/Manifest
@@ -0,0 +1,14 @@
+AUX duplicity-0.6.24-skip-test.patch 477 SHA256 2ed2169f915817630d11a2d089c03e79058461a30b693520a45f622def2c8aa5 SHA512 37f7f3cc774ad15301449c580f23347fbc1cd4fe6903e641abe2497242c0a9d31152a59d886c87a84fbcf0e9b390eb0a5652d63d0367f73529465c927ee30933 WHIRLPOOL 56dc20bc46018eae7af5aa222f7eb4ede9c3db1c08c910a904f547d18af930bfdf49c8d56e8480924960ca87d124786def4127b2a2b3ef20be1b26bb95c1129e
+DIST duplicity-0.7.10.tar.gz 1543523 SHA256 485fef15526d163c061e00ec08de216cf7d652e67d41de5dc3bed9fb42214842 SHA512 d04273384749c88d0a4f46bc1dcdcbb945ec1a78fb21064f12f0ca6c92cc73ad36fc3149461dbe0a660cd752a1147b2fa5d2b4056a5414c7790747eb5983e0bd WHIRLPOOL 1532b1e5ffc764951155ce248662d3ebf23fff71c538270ee1b2d37c7ad0a90705361b34418a323dfb4947ede42cd356e0daba18e4124e7342e5baadc5d0af22
+DIST duplicity-0.7.11.tar.gz 1550197 SHA256 b047a1590a1f5bb3974643ad2cc9dfdd32f61adbf2c1989191fb12cb59c2ec07 SHA512 81ccb868625b261356b9cb2439659eb7574343c0a15ea7db099746216689a881d9a37b05711c232103ae0e7660b5cdc7dff6475eda81ecbdcfc28bced0eabe75 WHIRLPOOL 1c106933fe4e9ba535a7923e93474457f2ede8979c2f9ed400fb7a819872c05ec2adfd08920d7b81b3e97feb90844f141721fc5ff184e97ec0b3df9da1d311df
+DIST duplicity-0.7.12.tar.gz 1552442 SHA256 11cbad44a90891af1bf9e294260ba7c21a1660ccd3ab2c6e736ba74ac5cf0fe6 SHA512 8a532e7bb548c170184666a0ba2b41a15f3002c14edd64b1b1eb4df862647fc6dfde797d6ecf38e326d7c160c31ff521baf351e520835495e1d0e2ddbdb19f0f WHIRLPOOL 872d0b52a0f73507849d585fd5888d4754d5711ab5cc48d72b571cfb14fd1278093022f52238facf608c8b26aa0149f2e614a4819c85aeb9ee94305e81824147
+DIST duplicity-0.7.13.1.tar.gz 1553736 SHA256 adb8668fb10e0b0f91cb77f758d02c02bf5c02e6c4835904a82cbdab6db4bef2 SHA512 08672910e61a089086992a1106ffc1e161ae3173514d35ae854eac719a095e48efaf7e298c1329ba3b439c0e97236644e88c615a013bd0e8ea9d956b38346ca6 WHIRLPOOL 2a9fddd1c41cadaa713c83805bce5d3e2de01540de29a47c7d545236e9e713b2004abfbae9977a115727db5fc661904f679cae7d0c9fb01ece04bdce212fb08c
+DIST duplicity-0.7.14.tar.gz 1556110 SHA256 7a3eb74a2a36b004b10add2970b37cfbac0bd693d79513e6311c8e4b8c3dd73e SHA512 d814a4da2b23fb586bf2a7a29532ba082756470786f883d9b8cfcd856eabf0db0cdd8e9af5557fe861e439ab058e7586652f91c82c9b99c123cd14c7598b8fc2 WHIRLPOOL 94cf54460e5187a3b2d009eb8cff95c98400e112cc3703bab966ceea33e7414b28ed90d22e3fc46bc7e5fa78a37689c31e49907efb93ad9ca8bbd0bf00645668
+EBUILD duplicity-0.7.10.ebuild 1244 SHA256 380a3b7ea640c1eb5d0e58ca9423465c936b6d9a6e2edc5b76ac643780ae95d8 SHA512 a05b660f02332850751d731c6d3b5fb757e29c2a940860858e1f4dff41e15e5876da90a9b8d0cdc39f22affcb7b2e01ad0334d28186b6ea76f27ad00f9134561 WHIRLPOOL 2f784027770674169112d2087e591d4fb9cc36a7e447376aac2fbb824edc1cfef724b4fa4370a087f50b8b38fb7e1a544ff7bd3f8f8ac4e16a1516fa09e79c88
+EBUILD duplicity-0.7.11.ebuild 1247 SHA256 5353006da777dbb2bf5aef9ca952d25333913ef7f8973068cca7a5415b6e9b5c SHA512 eccbc2686f551c90850144e204f3605fce59f218e95b5606beee727982eb6a59bb6c8209b5efd7b9cc5684c0415cd0d7ff03040e3d28386f37e5ee09432058f7 WHIRLPOOL 33278fffd2bc594d75491bc511cef67440bb1c661c4cde640d58a97003ea1092d263684e0b767e7e47cc7efe1f47a052a5c2b48ff0cc48b6b8b5e2091b94c8be
+EBUILD duplicity-0.7.12.ebuild 1247 SHA256 5353006da777dbb2bf5aef9ca952d25333913ef7f8973068cca7a5415b6e9b5c SHA512 eccbc2686f551c90850144e204f3605fce59f218e95b5606beee727982eb6a59bb6c8209b5efd7b9cc5684c0415cd0d7ff03040e3d28386f37e5ee09432058f7 WHIRLPOOL 33278fffd2bc594d75491bc511cef67440bb1c661c4cde640d58a97003ea1092d263684e0b767e7e47cc7efe1f47a052a5c2b48ff0cc48b6b8b5e2091b94c8be
+EBUILD duplicity-0.7.13.1.ebuild 1254 SHA256 bbf50b851c681c5eb81f5f9a3fb4d78f7f462a9d19cf2f41173191d8f110215e SHA512 b098c5be1b6ffb11f4135181d3af2232fd498ee0a62c3c77edf9c6e9569d202175603920da489e32b176e2a84544ccce955de540a942239674287ba670e66eb8 WHIRLPOOL fe38ac77f52ab0afb16f7e3becc5cabd0696aae6ca7363842d87606285c69426393ab3785de29439fc096cd04810d3bef6aa29fd01930ccb54e7e844d2826639
+EBUILD duplicity-0.7.14.ebuild 1254 SHA256 bbf50b851c681c5eb81f5f9a3fb4d78f7f462a9d19cf2f41173191d8f110215e SHA512 b098c5be1b6ffb11f4135181d3af2232fd498ee0a62c3c77edf9c6e9569d202175603920da489e32b176e2a84544ccce955de540a942239674287ba670e66eb8 WHIRLPOOL fe38ac77f52ab0afb16f7e3becc5cabd0696aae6ca7363842d87606285c69426393ab3785de29439fc096cd04810d3bef6aa29fd01930ccb54e7e844d2826639
+MISC ChangeLog 4263 SHA256 591850f488d0ffbb448170824948b7b1c1b5d36ac5489fe2021f7d43a4015cf3 SHA512 67f9569cd2fa359f215b2fbbf563628a0536d661c8b81ece0cdb1fa62a8d9866a85300fb7d2b474dd2d79f3de5dd35ba2834a7c89a5631cb972fdf17777ebaf1 WHIRLPOOL b34bc432d3a4fb3cbcd7f688942880e0b3532cd5505b2c5a14c9eceb6253bb31b31e4b8d9a79b2f1dd63cfad88bc4d25dab2f2712aae93858fb39bdaf5b53192
+MISC ChangeLog-2015 16219 SHA256 b21f513ad0ad91c9794189c63f801f11252b4a4060f5aafa52808f33f00fe25e SHA512 c46d3267ba72688adbf022aefcb2c37185cbcc28f0e14f1b7887e3ce8b178e8a04559a414f495903ec7e665f2748f6b9c2651c42997eed5ce3783790eeb59685 WHIRLPOOL bd3032f136b5f28caaf661eb6ad52894f49a2f6e9a0710ad3c9f2ac989ab6c908d281624c31676d5f342a41981adf0b84a84998172993b95d23f0085816ae449
+MISC metadata.xml 438 SHA256 8b43ef79ef703ad2ca0850bf877a44669bed24ce8e37a56781665cee33f7c507 SHA512 d21a61eaada281cf520260d2868ef1dd3ddffa5d1dc6bc2feaf5c2daa8f8fda977d3527de0b5a7b862b18df7f0bbf6371bcb736fe751e5979ec95a66640e4756 WHIRLPOOL 3d15b16f964f55667dd1a4241b4383a853a79c3e4c7b051be81d9cb19c4e91c71219cf5da4b3fc22ad1b15ae2c28d2be1806430814dffd7161d9e39092c69194
diff --git a/app-backup/duplicity/duplicity-0.7.10.ebuild b/app-backup/duplicity/duplicity-0.7.10.ebuild
new file mode 100644
index 000000000000..6fd6bda1d011
--- /dev/null
+++ b/app-backup/duplicity/duplicity-0.7.10.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1 versionator
+
+DESCRIPTION="Secure backup system using gnupg to encrypt data"
+HOMEPAGE="http://www.nongnu.org/duplicity/"
+SRC_URI="https://code.launchpad.net/${PN}/$(get_version_component_range 1-2)-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}]
+ dev-python/pexpect[${PYTHON_USEDEP}]
+ )
+"
+RDEPEND="${CDEPEND}
+ dev-python/paramiko[${PYTHON_USEDEP}]
+ s3? ( dev-python/boto[${PYTHON_USEDEP}] )
+"
+
+python_prepare_all() {
+ # workaround until failing test is fixed
+ local PATCHES=( "${FILESDIR}"/${PN}-0.6.24-skip-test.patch )
+
+ distutils-r1_python_prepare_all
+
+ sed -i "s/'COPYING',//" setup.py || die
+}
+
+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.7.11.ebuild b/app-backup/duplicity/duplicity-0.7.11.ebuild
new file mode 100644
index 000000000000..f58453ccdf6d
--- /dev/null
+++ b/app-backup/duplicity/duplicity-0.7.11.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1 versionator
+
+DESCRIPTION="Secure backup system using gnupg to encrypt data"
+HOMEPAGE="http://www.nongnu.org/duplicity/"
+SRC_URI="https://code.launchpad.net/${PN}/$(get_version_component_range 1-2)-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}]
+ dev-python/pexpect[${PYTHON_USEDEP}]
+ )
+"
+RDEPEND="${CDEPEND}
+ dev-python/paramiko[${PYTHON_USEDEP}]
+ s3? ( dev-python/boto[${PYTHON_USEDEP}] )
+"
+
+python_prepare_all() {
+ # workaround until failing test is fixed
+ local PATCHES=( "${FILESDIR}"/${PN}-0.6.24-skip-test.patch )
+
+ distutils-r1_python_prepare_all
+
+ sed -i "s/'COPYING',//" setup.py || die
+}
+
+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.7.12.ebuild b/app-backup/duplicity/duplicity-0.7.12.ebuild
new file mode 100644
index 000000000000..f58453ccdf6d
--- /dev/null
+++ b/app-backup/duplicity/duplicity-0.7.12.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1 versionator
+
+DESCRIPTION="Secure backup system using gnupg to encrypt data"
+HOMEPAGE="http://www.nongnu.org/duplicity/"
+SRC_URI="https://code.launchpad.net/${PN}/$(get_version_component_range 1-2)-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}]
+ dev-python/pexpect[${PYTHON_USEDEP}]
+ )
+"
+RDEPEND="${CDEPEND}
+ dev-python/paramiko[${PYTHON_USEDEP}]
+ s3? ( dev-python/boto[${PYTHON_USEDEP}] )
+"
+
+python_prepare_all() {
+ # workaround until failing test is fixed
+ local PATCHES=( "${FILESDIR}"/${PN}-0.6.24-skip-test.patch )
+
+ distutils-r1_python_prepare_all
+
+ sed -i "s/'COPYING',//" setup.py || die
+}
+
+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.7.13.1.ebuild b/app-backup/duplicity/duplicity-0.7.13.1.ebuild
new file mode 100644
index 000000000000..46196df24caa
--- /dev/null
+++ b/app-backup/duplicity/duplicity-0.7.13.1.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1 versionator
+
+DESCRIPTION="Secure backup system using gnupg to encrypt data"
+HOMEPAGE="http://www.nongnu.org/duplicity/"
+SRC_URI="https://code.launchpad.net/${PN}/$(get_version_component_range 1-2)-series/${PV}/+download/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos"
+IUSE="s3 test"
+
+CDEPEND="
+ net-libs/librsync
+ app-crypt/gnupg
+ dev-python/fasteners[${PYTHON_USEDEP}]
+"
+DEPEND="${CDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ test? (
+ dev-python/mock[${PYTHON_USEDEP}]
+ dev-python/pexpect[${PYTHON_USEDEP}]
+ )
+"
+RDEPEND="${CDEPEND}
+ dev-python/paramiko[${PYTHON_USEDEP}]
+ s3? ( dev-python/boto[${PYTHON_USEDEP}] )
+"
+
+python_prepare_all() {
+ # workaround until failing test is fixed
+ local PATCHES=( "${FILESDIR}"/${PN}-0.6.24-skip-test.patch )
+
+ distutils-r1_python_prepare_all
+
+ sed -i "s/'COPYING',//" setup.py || die
+}
+
+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.7.14.ebuild b/app-backup/duplicity/duplicity-0.7.14.ebuild
new file mode 100644
index 000000000000..46196df24caa
--- /dev/null
+++ b/app-backup/duplicity/duplicity-0.7.14.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1 versionator
+
+DESCRIPTION="Secure backup system using gnupg to encrypt data"
+HOMEPAGE="http://www.nongnu.org/duplicity/"
+SRC_URI="https://code.launchpad.net/${PN}/$(get_version_component_range 1-2)-series/${PV}/+download/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos"
+IUSE="s3 test"
+
+CDEPEND="
+ net-libs/librsync
+ app-crypt/gnupg
+ dev-python/fasteners[${PYTHON_USEDEP}]
+"
+DEPEND="${CDEPEND}
+ dev-python/setuptools[${PYTHON_USEDEP}]
+ test? (
+ dev-python/mock[${PYTHON_USEDEP}]
+ dev-python/pexpect[${PYTHON_USEDEP}]
+ )
+"
+RDEPEND="${CDEPEND}
+ dev-python/paramiko[${PYTHON_USEDEP}]
+ s3? ( dev-python/boto[${PYTHON_USEDEP}] )
+"
+
+python_prepare_all() {
+ # workaround until failing test is fixed
+ local PATCHES=( "${FILESDIR}"/${PN}-0.6.24-skip-test.patch )
+
+ distutils-r1_python_prepare_all
+
+ sed -i "s/'COPYING',//" setup.py || die
+}
+
+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..b9ff658008bc
--- /dev/null
+++ b/app-backup/duplicity/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 type="person">
+ <email>radhermit@gentoo.org</email>
+ <name>Tim Harder</name>
+ </maintainer>
+ <maintainer type="person">
+ <email>rich0@gentoo.org</email>
+ <name>Rich Freeman</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..1dcfd0dda965
--- /dev/null
+++ b/app-backup/duply/Manifest
@@ -0,0 +1,16 @@
+AUX README.gentoo 122 SHA256 b45c6b91336eb63b8ce57ca6a6450aa62df73bb4422a7a0193df76ae7b741ec0 SHA512 6d649c051529f6cc5a748f3f63c3d2f54ecf07d0a01fe6f091b7541b53c261120db521a112ac5bc8155fc330218a72b9a82f1801918b294dea22914ec6ac4a94 WHIRLPOOL 583c50347b03af4c9ed0e9ab59ecec04ca5571af03044f0816366d36d547b66c2224c50fb08f936ceee7cf0c23fc896185996b1317123ca12adbaa933da049ce
+DIST duply_1.11.2.tgz 44094 SHA256 06843960ae5753395cb5be72a9c9f2fe78e6ea81a17c6d8d28f2ae49ab50d5aa SHA512 20833c774705f83ec7efc88a7605c925ea5e56536a2338c6bd3a65ae789ffa7fabb03206b396fd92fb8ccf13cf0d72dbecdf705780e345a2cb1804783623e420 WHIRLPOOL c9776c29436573b695588119563703ce594df07039268931a49deaf1a98f8f5e2a62fdc8c5a6e32f822c948aabb28c57a2a526c24de11dcc59e746579baf9772
+DIST duply_1.11.3.tgz 44198 SHA256 585757a02abc91bcc0e37004eef735794d6581d1a30ec68303c6c04833b20940 SHA512 5817d4571c27288b227add04e84fa0066e278cdbc819a9332cb6fa2aaf6609e923abe9824ac704fed250b961300c57ca1de945af03370287f7cbf68876513457 WHIRLPOOL de27f44067b087d7d3324eb211573d14315c3f4143441e13853801ba36792dd7ec0aa926d2819f9f01d68b081ee9e0fbcad961496fd2a7b29ad6ced082af9dd1
+DIST duply_1.9.2.tgz 36222 SHA256 2bfc0964ebc0bae5752e0b4a12eb8fb6f78a27739f32c9acb4ac81947506c5ab SHA512 9ef5e22f43a6854e413ed1c2b88b10d0ae75cff7b2bcd927d20a588234555e9b7eff25d094f688f9d4f8510eba6bc20f7635c0de9ab9b402966075595922333e WHIRLPOOL 6a3e79c87e0b28386f0ed6fd8eb7973659477ad278e80e292a3e6cea944fd512baffc9a455e148faeadb687a46a8e274ce86668c29f30244b5b63f1f850a9c00
+DIST duply_2.0.1.tgz 44914 SHA256 9d2baf55ada5ab36a6da3fa909c8bdc4ce9a0116eac259ebba0efe9b93180bb0 SHA512 28f1670f2579956cb4d0d5727403e8b9f4afcdd8ea79e117536dfb89b3f3cf6a7bc7eb802bc4dcd39fc6a443a9f8fa3fe722f2b8336186517184940ce6fa73ec WHIRLPOOL 7c41a8d14cf6f372dea831de0d16179c369a75fc4eff77469ae85b3877526babc2fe112829b4cf295be8808bdda803a01ed83f6db73fa4ed952ae936ac990766
+DIST duply_2.0.2.tgz 45406 SHA256 33869adad763d5dd0a79a3d1d5b860a77f8e40be5150c3876d6ce5476004415f SHA512 2f53d380445272a2354f6914c39373e93d27fdcc5c712d7041fc798547280cebff53882f93d0467d86fc044b8a3a73a6b2fe04a9eaadae55b58bc9c617bab48a WHIRLPOOL 2c8b50b71b27e669c831639093b45a08906f2c6d8af735350e532a34bdf96c21f3ed0b1e191cf97bf6c7215def5cd2c65e6a4fd7dd62e54ee25e8aa0726ee724
+DIST duply_2.0.3.tgz 45542 SHA256 34b4c544a92faf190c29cbc9eda5f1420ae1550fc7e0a33126a1775d3187b9e1 SHA512 c24dd57f75ab80795d67baf8a7ab79a5ae9608c7faea0ae8b711045371ef0cba49c855cfa0610f030c1c37734775b50052fd1e4162420cb3db624f984e4e8bc1 WHIRLPOOL c03230b6ad23b7ccd70b0f98ebd469e1e73b33a1497492a3f6bc42fcea51e329eecbbd1faed4ec63926d242692549c37a8549e88d9219b4c659817e8acd61b9e
+EBUILD duply-1.11.2.ebuild 586 SHA256 2e9026241b98c292f2b0e4a4cb1941008f76e3a683b17602bb793335cd40f95f SHA512 9c260dfe8d5b8604cd17181c7cf91f8f180c5c7623bb615a7ceb68970e2162ef0905f8e19aa4525561865ea1803156cbc77dfe287db6b99db229fb07d998e961 WHIRLPOOL 900cd92cd10b0c5128f806b9f29dd93a16e3df657c9ef8c00531488022cf05c65a5f114ea09c9185b8359920f77718b15df8bdea80f0b3b8705af8e187ebd6e2
+EBUILD duply-1.11.3.ebuild 589 SHA256 0e362c4cf571ff4def05dbd4ebc509b3ac2eef731fa9c4b61f3add3fa94f6dcf SHA512 c56bdb7d9e4d183494c0498c004fa21114a86b651336648cc5b2e0036a2d2b51acced93acdadc26b828f50a37f404446330f5671d420c4ed26c05642e5262a9f WHIRLPOOL 12feb9430a4407a2084f3758b991d95ec7d5facb369bc88b52ced41ee9925cefffc0bacf255d6bf3d36a197ba0f9f2adb27c52f25fccb5547470765a1fe71251
+EBUILD duply-1.9.2.ebuild 515 SHA256 dd9497f6b76851a67219a9ba45505a5838e4d4f8076cdfda34d212dcdf0728b5 SHA512 4a1c380148270581af3a0096f3f0e5263ad0c7507066c8c308c262eaef28e3f59fb02f85d150d73e61ae93273c4a0efd45fc78ace3a160b878b8f708b855fb1b WHIRLPOOL f176c2261a375ca31fd095c48220df2734d285da5d642755d5e42294df4a5f01c620ef9d6fef6b0e91f426e2d98f4d07c431302997c5fcb66ce857dc63a2baf5
+EBUILD duply-2.0.1.ebuild 588 SHA256 5b4423f6cd6558cef70986419f1a1523542bae716c420ed582584b769963717d SHA512 aff7359b9c6b4c48b6902cb3c16a18581c01e68a83b7eab89ecb091d31021c8353425ae5be197ed9034914381f884927a75b7d8386cf32e3744efbc3528ca50d WHIRLPOOL 29208d571a323e9407548795e081ce0774708b4364431eb386a7fab5a82b45d540f895e6884ed1d620bb099abc99efc6780cdec7fbb1558cf755fe429a33a565
+EBUILD duply-2.0.2.ebuild 588 SHA256 0bc312c34944dfe01c9f49a53f6e96444e454d1c9832d8068447a6f1475f7518 SHA512 a07e0159b0a4ccbf343964f211667f073da12772e1fff2d760453f6560746b9f6d1bc746064b73e6dc0d6e3f5b17fb9b2a1b3bd5372336e8ca7353ca796bba49 WHIRLPOOL 9436f1c661f1cd95df520ed789396d5b2e97888751d33840b8c0a50e8fc7b7cc1d770c48d2b4848ef07703010b4acd5f4c3d42120c7e8e91c6e50d01fed049a7
+EBUILD duply-2.0.3.ebuild 588 SHA256 0bc312c34944dfe01c9f49a53f6e96444e454d1c9832d8068447a6f1475f7518 SHA512 a07e0159b0a4ccbf343964f211667f073da12772e1fff2d760453f6560746b9f6d1bc746064b73e6dc0d6e3f5b17fb9b2a1b3bd5372336e8ca7353ca796bba49 WHIRLPOOL 9436f1c661f1cd95df520ed789396d5b2e97888751d33840b8c0a50e8fc7b7cc1d770c48d2b4848ef07703010b4acd5f4c3d42120c7e8e91c6e50d01fed049a7
+MISC ChangeLog 4163 SHA256 36e552147b2d6f7ef00dff4edeac5cb13854e0f0f1ad2c5f8f544fdbd9626977 SHA512 e5a9c57480ddcf06c7da3e87f30d651f2795f5684b88c00e494e220f7345288eec65c03bd55763eb51279feb9423ceeea8d1e225b4dea397c7115053eb8f47ab WHIRLPOOL 9ef358da06617c82b0890315cd0e53e919b234d4d3d124554d80317a713770b5b5c789c986c5071ad7f06686545ec0d9944f9769b28d71d4f6226cc6cc5c56b3
+MISC ChangeLog-2015 2073 SHA256 61b2ea22ef6d76172af497ede081ebc08257f0a54fa92dc059d1a9b47d98d41f SHA512 5dc931af889a7db3e2c362e21bdffa8960d29ca0cc548f93233b09d7ef0ffee9f1ce000263f9d65523d0ad75d818118053f2503141ccca46219baf35e962389a WHIRLPOOL dad7f1885a3a76ae3f26f5ce965becb288f2689405408b093545351505cfa34ca90c82ac4065519c49d78a9d7eb482c2bd229e94aff92d2aae4e2e309eb850b0
+MISC metadata.xml 531 SHA256 a76a7b0ac4c1d2c53d96acb140a33af9c4726d15269488a5c33217924b82b46b SHA512 ce33764ef7d52f1eedbee513cf78b7ff8d58b824ad70fd2d414f203d989f06bd179716f485e317a3c43b004256fdfbf47d77ce1ff1de4d75b8702ca56e345602 WHIRLPOOL fccaf0367921dfc11f1995baad16de76b5ac817f5376878c356da5dc7a5823c5c0361bfabaef54fac9d9db3fb90cbaf606b16e553dd1202eda93b3cb614e366b
diff --git a/app-backup/duply/duply-1.11.2.ebuild b/app-backup/duply/duply-1.11.2.ebuild
new file mode 100644
index 000000000000..4ac44196694c
--- /dev/null
+++ b/app-backup/duply/duply-1.11.2.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit readme.gentoo
+
+DESCRIPTION="A shell frontend for duplicity"
+HOMEPAGE="http://duply.net"
+SRC_URI="mirror://sourceforge/project/ftplicity/duply%20%28simple%20duplicity%29/1.11.x/${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
+ dodoc CHANGELOG.txt
+ readme.gentoo_create_doc
+}
diff --git a/app-backup/duply/duply-1.11.3.ebuild b/app-backup/duply/duply-1.11.3.ebuild
new file mode 100644
index 000000000000..a68497432cd5
--- /dev/null
+++ b/app-backup/duply/duply-1.11.3.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit readme.gentoo-r1
+
+DESCRIPTION="A shell frontend for duplicity"
+HOMEPAGE="http://duply.net"
+SRC_URI="mirror://sourceforge/project/ftplicity/duply%20%28simple%20duplicity%29/1.11.x/${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
+ dodoc CHANGELOG.txt
+ 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..19baa7a47c0a
--- /dev/null
+++ b/app-backup/duply/duply-1.9.2.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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-2.0.1.ebuild b/app-backup/duply/duply-2.0.1.ebuild
new file mode 100644
index 000000000000..9b784d8c149f
--- /dev/null
+++ b/app-backup/duply/duply-2.0.1.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit readme.gentoo-r1
+
+DESCRIPTION="A shell frontend for duplicity"
+HOMEPAGE="http://duply.net"
+SRC_URI="mirror://sourceforge/project/ftplicity/duply%20%28simple%20duplicity%29/2.0.x/${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
+ dodoc CHANGELOG.txt
+ readme.gentoo_create_doc
+}
diff --git a/app-backup/duply/duply-2.0.2.ebuild b/app-backup/duply/duply-2.0.2.ebuild
new file mode 100644
index 000000000000..8eddec6aefe9
--- /dev/null
+++ b/app-backup/duply/duply-2.0.2.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit readme.gentoo-r1
+
+DESCRIPTION="A shell frontend for duplicity"
+HOMEPAGE="http://duply.net"
+SRC_URI="mirror://sourceforge/project/ftplicity/duply%20%28simple%20duplicity%29/2.0.x/${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
+ dodoc CHANGELOG.txt
+ readme.gentoo_create_doc
+}
diff --git a/app-backup/duply/duply-2.0.3.ebuild b/app-backup/duply/duply-2.0.3.ebuild
new file mode 100644
index 000000000000..8eddec6aefe9
--- /dev/null
+++ b/app-backup/duply/duply-2.0.3.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit readme.gentoo-r1
+
+DESCRIPTION="A shell frontend for duplicity"
+HOMEPAGE="http://duply.net"
+SRC_URI="mirror://sourceforge/project/ftplicity/duply%20%28simple%20duplicity%29/2.0.x/${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
+ dodoc CHANGELOG.txt
+ 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..c2f6f3c247e4
--- /dev/null
+++ b/app-backup/duply/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>gentoo@pennewiss.de</email>
+ <name>Marcel Pennewiß</name>
+ <description>Proxy-maintainer. Assign bugs to him</description>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <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..28e42125b8ad
--- /dev/null
+++ b/app-backup/flexbackup/Manifest
@@ -0,0 +1,18 @@
+AUX flexbackup-1.2.1-afio-large-files.patch 401 SHA256 d9f87c376c305a440ed0b0444c1b196648b89ce6ade9231a8f4cc0914f3a2762 SHA512 ad94ebbabe413b51d4f984f9a2d80b69f2998037512c0ac6077d92d0bb7f594a444503f196e668d0e91d35ad543f2cba73129ad31007a43de228fb50c0b4e870 WHIRLPOOL 45e5f87cf02e637b719c654b5d0a81b8fb490141bd2511a8e11866b3e5805fbd5a90839d05a9a23cecbff43c2b7b1b80781a6662ced52b8c86535020ac3e057a
+AUX flexbackup-1.2.1-bash.patch 445 SHA256 a072869e37b50f5da8652686a56aed8a45a225bb4eb00818377e006614e4a88e SHA512 ec74be2043c5791288abf9e5303cc24caa55ac0d14f51a7cfdd6b495f97bef1dece39e8dd0492a14df18a9b495f74463247586e2edefe0f897429631c9809745 WHIRLPOOL 27d3c05e362d1ee429c718de69783201203ccab46408dc0a9dbad094cd123fdbc92da1190717e33288cef1a7337555efb0f5fce9fca9386bc0c243cd054eb506
+AUX flexbackup-1.2.1-lzma.patch 4336 SHA256 5a716af1d3a90c64808b8f40ea9ff1b8d2c37e726f4a90c88e87d75da0049baa SHA512 de23710262aaaa79e7dda63221965267a4751cb5c1681b8d4db6ab7a065aa8dab3e6c3097d339a793650a28627eeffefeef408612c08a9bbe3f14d383179338e WHIRLPOOL 8782d600774e0d28fb28259def1e66afc5e57583447db7050e67717fffe2e208d1e66f0ff3e620f30b6c5d8966b76d83877402ed9b9da36200fd1b6a9102fc2f
+AUX flexbackup-1.2.1-mbuffer-switch.patch 5550 SHA256 a11379db1eca89398e3917ee9a6fa57e416ffdb0cabb773444ad53629b6e2917 SHA512 1ad0e5ac04f0c44c970954aefd62f465d1c9c9604c6ab90cd56d61d44aa8b4c23e8befe992380e10d74fdf043975969431185e1ae66297bb630a105fd5329b4c WHIRLPOOL 762b3949b35af8e9411f2058872ee92e33693f2b3c6e0a056e2fb098aa968c176bb7b0b9ca4aabc53ed2fcc5ed259dac49b9e81fb1dc94de513c4f192d1abebd
+AUX flexbackup-1.2.1-perl-5.12-deprecation-warning.patch 814 SHA256 7d66e5265de7e26dfd37cc832024be8ecc951f17d4ede838e9a903ab588edde7 SHA512 ea77998e18fb7ae6612983ab2b6ebc1ab6de6056f5a60aada283ba593a60973953062dcaac9f9d2aa7068384ac4a8a0d72c439cf7cdd3c8a2b304d7ae779f302 WHIRLPOOL b59aef62836e299d2b5a834a80c12aa9b03427206c1211ef3cbd61ca461061ee2063459e567e4cd1cf77b8e7dd65347fe9f685ab1f3c29970756758010c4a427
+AUX flexbackup-1.2.1-perl-5.16-deprecation-warning.patch 374 SHA256 3873bd00a81a6a490080705cc6adfde19b3ed88180b230c45873d817ea21902b SHA512 cf994cc48c735b2fe15f858b2f7f8e3d83012ad780e42b1ec05c2af2dacf04da844810e5c87d608f9bab40d2366507f2af017a7c95128f17141ce5afd5b228a4 WHIRLPOOL 1c9d5156ba144c8edea2d090ae41e8e26e31c6cfd278b274f70c294324cccf2add49563f283cf42dfa388eb6c41bfc729aba0c46d04e392c5daeb64afe81708a
+AUX flexbackup-1.2.1-prune.patch 5544 SHA256 146e636ca08c21a3ec7f9e18c59f89e48a74db581ad3d5ca3a606093e6407fc7 SHA512 a2c1d7a82b3328b52a36dd04fa3f3e2a8b5918de9f3f089ef7342192bae023b3fe844ae847bf09d21348a794c06ee49185d6e49e116da2794121f005ea74b6c0 WHIRLPOOL 0790022df75d8baeb53d26d0fe5363a0061760d84d125a17d1c23e80d30e8ace56ecd9df3d9d01d1e889041d8b2385ea3d872352f288538c78f7dbdb80fe67f1
+AUX flexbackup-1.2.1-quieten.patch 418 SHA256 dc658315bfe5f204137dd03005e1d5a44c8efcc1c09cf2c6bb840516dfe7984b SHA512 bf263fb3c3301eb49942b1c7be3348b8b3b8584776baadc35bc34c709887a7dc48e534bc65dd543f835e6ebfe4747e9f074ded01199f4458ae974eb9565feaa2 WHIRLPOOL 78785a877b4216a7e1fd534ceef0737eac579b83b784a980dcc85d92ac7a9bda6b8f8b077c44ea303db379aafd9900c8d8de597a0d31e892ee18cd967d0100a0
+AUX flexbackup-1.2.1-remote-bufftest.patch 1940 SHA256 aa209656fea52a4f541ff9eca4099e2b7dfc42f7efc52ec46016a95af378d7cc SHA512 76a3d6cb556596204791d98534ed13fc3738bed8642b4defef839d221510f6fad2d365abc524f368f43f88c710b6b6547cffd4be0e9a4ce53105bdc9dc1ed10e WHIRLPOOL 7b0ca60b284beab669425c28788fa6ed69a8fe80d74cfb9a5ac772a7d59913721547b7d635e48da4410e5c8c9058cbfd0689af27ccec0413f9f40d6264f15e0c
+AUX flexbackup-1.2.1-secure-tempfile.patch 2563 SHA256 b8842e0f65bef6150f968d7d1113b83e8c5c54ab5d18ab86b582fa1ccea4bdf1 SHA512 14bc8bccdb9c094bea92f97a7760079233364a87530750d0f904e3831c6bf4dca69cfdfdc578af316b65d8d7ff3d1c00c53bb8aa17acd2ecd009b919d87cd1f6 WHIRLPOOL afbf11b1c52ef65a45e2701c72126c6ccac0f74ee6ba3f2108f7f523cdbcb59aa45784ea038c50e52b753628b9ce963e98a8fa5ab9732d3830473f012a16b22e
+AUX flexbackup-1.2.1-spaces-in-filenames.patch 11037 SHA256 4dde33d92ff0e97a614807f50a7a28a08c485a0cee5f19ab512550e0d431c5e2 SHA512 58fdb4fbc59eaeefaf5a552abab0adf8a4d4e258cc737a1b310c00bef6ebf61c9fa55f3b3b7c68553ed224e12c082d03a9c16fdacfa2a44a70349bd882cfe987 WHIRLPOOL 95dedead01ce89c367479991ca1cb3e96307ff08e717674e69d0ff44e0bf262286347ba9b0739e81f2b304790359f8f546b55b5eb3342dfee38064483b01b07e
+AUX flexbackup-1.2.1-tar-1.29.patch 514 SHA256 f52a1593e97c8355a3e876a217846c42c17c89df2b5baf39de49732032d1ebb4 SHA512 b8a28c93db2b8f04bcf7c56406fd0457b837e9afea30a5a1cf37bdd64554bbb4ee665b5c15af24701eeab10a1b1c2d31371b7c0ce32cbfb29223ac34956cc962 WHIRLPOOL 1c5e109905617eadb564bcc0ec213b78f0d512b9a0b9083c3ea2139a021011d2d09ad387aedb61fde0b8b23b4d7b93766ee9dc77a0b25dbd9c4fc2b83990012b
+DIST flexbackup-1.2.1.tar.gz 80158 SHA256 58282b21985be75f1219c5ff4906d217055ed8627ea3e2ffdfe7a2393bc9d2c3 SHA512 17630bc46657becdf5d5bde4852fd6cebe189fe54d381bda6471aa2e1db1ff082ba24461e2c22ba5805c2d93ac7f9805ffbdc4904da017f1b163cc21b5a3974b WHIRLPOOL 0beb123986579b5f5c9add2e1ccc02b11e687dfce7a093d550239aec50cf5a35cf15da066a6b0f23819a001dce222d5167874527411bb31bca405b55c8f2d171
+EBUILD flexbackup-1.2.1-r12.ebuild 2606 SHA256 f3e543097e8fc465635b57a83a41077760532bd7bf5f8f85c4853b10c0ef2a40 SHA512 2ca29183f1305b765bf78d2c626f5d645769fdb8a8bf532d85bb24a78c5e8873bbb539b7ebd2deeb7dfc8bc18e57389c628b7f7c5abfab06a7a49951d8eb68e9 WHIRLPOOL 90c4fddbb5ba2d139f79f3925974b36480e806a443f8ff29fe759b9687378b5938f061eda02099850eff701c16715049b0c52ad1774540827f5ec47dcaf2301b
+EBUILD flexbackup-1.2.1-r13.ebuild 2795 SHA256 db5c55ad89d286dfc846e527e61f5cd016939b30f2946151ba49627e3e3d1df5 SHA512 f60b9a5bd354633c94158b593fbf3e40ee32b579764d053ee13f138bf9f3ea61bf47481e4945a1e2d770b5930cdbd8a91a789a209a94043b64c85a759349fed2 WHIRLPOOL 4ef3cb4dfc5e6c932494fd2dc4d675c7c46c3a05d861a6680e767974f24fec3af1cadf0a43ba48211ccc607bbe6f362853dfd97b035413245537021130a89822
+MISC ChangeLog 3284 SHA256 fdbf252c8f5ed7fd57c076f11b4894818fa9609596de7a5400226bf39993a416 SHA512 50d45872acfd1fc90dd8c932011c9df8d83ec0026a2f096348cbf8a74123ca798a8f5ba83159d410ab1db6e52c8d1cc1c5b2f64f64b425228154acc664231601 WHIRLPOOL 9c9ab3a38b7f177e9359502047e02dd2f0dbe0299b3ae6c7c5d75e6754f05b26c77b1d0941b077c946adae25143c651a0b55aacabb7138f49ff6c4d7860f476e
+MISC ChangeLog-2015 10208 SHA256 1305eacdc53c71c785e4a4fd3dc0b345b75a829b32c6b1bdc9ed6c6d24bbd44e SHA512 f8ae697645bdf546be4dbbc9e846b268e397aaa09ffe13a2b6eca0fbf46c9e9bf1e7d6cadc6f1ce41b099f7ba2c1d0f646367fb6fa1d71dfc1b0321aedfa54a4 WHIRLPOOL 5a0f2caf5d765acd764dbddd4b387a1c6cf4526436728128f29a312c0575f765bf39537de630c8fde59ceddfdb93990084b7147146c79056b148270168ffd04f
+MISC metadata.xml 297 SHA256 3ce3e95d0bea1cc0143e47f0e392ace0d523b426f7ba1b79a992a6ad13a3f82e SHA512 a2fd29aba380cb3b9322131f97beed0d432569ab612118bf1a9a428a93602c859014face05fc8582c8dfdf6858296a36ae6754fdc45a78715058d779df3f7e0a WHIRLPOOL 9cdd49618cd91688347db268b6da4a62f784efd9a89ba5d7dc8604e1ece6d12c22769f805632cbfde830f8935f4face3c677aeec9d4762c18e38049c15c1d1fa
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..285cf26313f9
--- /dev/null
+++ b/app-backup/flexbackup/files/flexbackup-1.2.1-perl-5.16-deprecation-warning.patch
@@ -0,0 +1,11 @@
+--- 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/files/flexbackup-1.2.1-tar-1.29.patch b/app-backup/flexbackup/files/flexbackup-1.2.1-tar-1.29.patch
new file mode 100644
index 000000000000..211cf2067623
--- /dev/null
+++ b/app-backup/flexbackup/files/flexbackup-1.2.1-tar-1.29.patch
@@ -0,0 +1,15 @@
+diff -ubBr old/flexbackup new/flexbackup
+--- old/flexbackup 2016-12-01 10:52:59.088767278 -0500
++++ new/flexbackup 2016-12-01 10:54:18.006882216 -0500
+@@ -1408,10 +1408,10 @@
+
+ $cmd .= "$::path{tar} --create ";
+ $cmd .= "--null ";
++ $cmd .= "--no-recursion ";
+ $cmd .= "--files-from=- ";
+ $cmd .= "--ignore-failed-read ";
+ $cmd .= "--same-permissions ";
+- $cmd .= "--no-recursion ";
+ $cmd .= "--totals ";
+ if ($cfg::label ne 'false') {
+ if (length($title) > $::tar_max_label) {
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..4a3b7e0147d3
--- /dev/null
+++ b/app-backup/flexbackup/flexbackup-1.2.1-r12.ebuild
@@ -0,0 +1,84 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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/flexbackup-1.2.1-r13.ebuild b/app-backup/flexbackup/flexbackup-1.2.1-r13.ebuild
new file mode 100644
index 000000000000..8aff19cd8b55
--- /dev/null
+++ b/app-backup/flexbackup/flexbackup-1.2.1-r13.ebuild
@@ -0,0 +1,90 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit 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}"
+
+DOCS="CHANGES CREDITS README TODO"
+HTML_DOCS="faq.html"
+
+src_prepare() {
+ # Patch from upstream adds optional lzma compression mode.
+ eapply -p0 "${FILESDIR}"/${P}-lzma.patch
+
+ # Fix bug #116510: cannot back up remote machines after patch CAN-2005-2965
+ eapply "${FILESDIR}"/${P}-secure-tempfile.patch
+
+ # Fix bug #96334: incorrectly determines bash 3.x to be bash 1.x
+ eapply -p0 "${FILESDIR}"/${P}-bash.patch
+
+ # Fix bug #171205: specifies wrong command line option for mbuffer / other small enhancements
+ eapply "${FILESDIR}"/${P}-mbuffer-switch.patch
+
+ # Fix bug #173672: remote host buffer test is broken
+ eapply "${FILESDIR}"/${P}-remote-bufftest.patch
+
+ # Fix bug #178126: subtle subtree pruning issue / other small issues
+ eapply "${FILESDIR}"/${P}-prune.patch
+
+ # Fix bug #184560: fails to back up targets with spaces in their names in some modes
+ eapply -p0 "${FILESDIR}"/${P}-spaces-in-filenames.patch
+
+ # Fix bug #190357: fails on very large files with afio back end
+ eapply -p0 "${FILESDIR}"/${P}-afio-large-files.patch
+
+ # Fix bug #235416: prevent normal status message during conf file read from going to stderr
+ eapply -p0 "${FILESDIR}"/${P}-quieten.patch
+
+ # Fix bug #331673: perl 5.12 deprecation warnings.
+ eapply -p0 "${FILESDIR}"/${P}-perl-5.12-deprecation-warning.patch
+
+ # Fix bug #495232: perl 5.16 deprecation warnings.
+ eapply -p0 "${FILESDIR}"/${P}-perl-5.16-deprecation-warning.patch
+
+ # Fix bug #601368: app-backup/flexbackup breaks with >=app-arch/tar-1.29 when making tar-based backups
+ eapply "${FILESDIR}"/${P}-tar-1.29.patch
+
+ eapply_user
+
+ 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"
+
+ einstalldocs
+}
+
+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..ee448e7097ec
--- /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 type="person">
+ <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..a32d1e6a2d71
--- /dev/null
+++ b/app-backup/fsarchiver/Manifest
@@ -0,0 +1,7 @@
+DIST fsarchiver-0.8.1.tar.gz 265048 SHA256 f21dc8f66a67e949c836f3316862db0619f14cf8971ba37342c0ae6e11e625f8 SHA512 17133392b0678b88552ae356bc199a8a5a8a88d3c8878b593b36acdc0f9dc3869f87475cc1a36d0df752e3bc3df8c9c0641954f675aaf60da4f1b0862dec1bc6 WHIRLPOOL 190450d064ed509f731c0104623e237ccca1f04d4cde3cae23d14a34bfc0ae567062bd081cb1523655d82ae62a1add99afa75260db815db96a0a145962bd8154
+DIST fsarchiver-0.8.2.tar.gz 296486 SHA256 e08ef19c6c64f0c756f7506427994a407ed243bd671c5c9cbcdf17349df00ee6 SHA512 e7b5b5dcd44be57d2d8a2639a54d8ef9c8bf9fde39ed3ca317c7cc124e1735a88db4a2be937b890c582eb4881926c8d50cdf940d13c0f97f9b8276f2b0a9319c WHIRLPOOL 8575388e86c13ae90d60eeb109b019c334d76e98b1e2f4ab3d8cd679b688bf18103d3af639da8f6da1b157311e506a74a53c1782a0f49554a6ef3f562195109f
+EBUILD fsarchiver-0.8.1.ebuild 895 SHA256 1285113e8e89769077565d6b82e8f267b7eacc07048e9ee9f00bfaa224a91e13 SHA512 0848bbe0f95cd3ba2f56b42fd17f51982b8476b9b4800967cf2aabf29cb909e5eefd9b69c47aa0c41c02456d327b40a53181d74fa3545171a843bf5a2daa7b1e WHIRLPOOL 22ed9f59b34e88ee77117ec44cd1c95995e41276f7891dfcfa2bb438985a7ea4c8e5aa309c17124e63efa3177cc9f4d3ac2d469f4d6b8404528984fe861148b2
+EBUILD fsarchiver-0.8.2.ebuild 903 SHA256 16670bd92391e2ab78ed50090bdf46dd158c3ed81f17fa4f50deb74ae8f30b2d SHA512 1cae4d5f5ee113820dab9309d1f4c351229eb50439d02ef55dd2d9486e3c2786866234ea619600cb219dc515e5d13c3fe04902aaf2ed35fab7f35b021e8974b6 WHIRLPOOL 472db3bf4993511a8cc63b279a93a21e539df2ba41895a2adddb46c5faecd0b7a52efc2a011bc5bb4b49514b5424f8b651a9fd96b8ac0e4284d146663fff733f
+MISC ChangeLog 2369 SHA256 e5fc5e3b721a4bc8d5300a6b0a9dce16ecad7d091b8ad86d09f702469e83bd60 SHA512 cbae02881c78c9a074154d8000104267b8ddee2c413e9fc23a73ecc4ea09d7bc713c7ec7e15815908aaa5d85896c96a0f53a0b956a593506220cc5b00f7b010f WHIRLPOOL 74eb0f37318f238ffe2f11ca5cac0e05ae7fee7cff9420ed0e625b372701d713a5ab73ff0a95fa38d529f0cfdf2e8adc80b0d5caffd1a001af744283528fdec9
+MISC ChangeLog-2015 1801 SHA256 963c439d1f0cddac4328392ec9aa41d118dbdb7f95456b267ceb2029f1f15486 SHA512 3196f470b21000e1c20c1a5491cec44d1bd4f898dd7cbe3c47963b9dcdefe5792cc46c5356fefebe0495c2806bda6808acd1a9a77f29f8a36d1e495f96406414 WHIRLPOOL 68d9d5e26462bdfb08ac42350bfa35b85506d0eefc5c665c0d80bc94a638869402f91d75dcb8dc854bbfe1ecc2b6d1b83cd3e07749d8910ca6a6eb50b7d4491a
+MISC metadata.xml 388 SHA256 d8280b51d10d7f465ce181078419e4affdfdde185e3f03d058c06cec30869d30 SHA512 52636dc086955b4a5d293f098b51874ee011ec0ea31873f96bd733e985e98b438abce3bfd5cf21bbd6e13551a9b3df21571a6b21887a422c51d8c2af13493868 WHIRLPOOL 129e5eebca120ca3143902842e5d519c4aad07dd0f99f346c9fd69ff03f145329872e80dfbd51b458bd4719be210477f66b6df4ab0413034fc8efa9fdadaf889
diff --git a/app-backup/fsarchiver/fsarchiver-0.8.1.ebuild b/app-backup/fsarchiver/fsarchiver-0.8.1.ebuild
new file mode 100644
index 000000000000..ad64ed434945
--- /dev/null
+++ b/app-backup/fsarchiver/fsarchiver-0.8.1.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools
+
+DESCRIPTION="Flexible filesystem archiver for backup and deployment tool"
+HOMEPAGE="http://www.fsarchiver.org"
+SRC_URI="https://github.com/fdupoux/${PN}/releases/download/${PV}/${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() {
+ default
+ sed -i -e 's/^\([a-z]*_CFLAGS.*\)-ggdb/\1/' src/Makefile.am \
+ || die "seding failed"
+ eautoreconf
+}
+
+src_configure() {
+ myeconfargs=(
+ $(use_enable lzma)
+ $(use_enable lzo)
+ $(use_enable static)
+ $(use_enable debug devel)
+ )
+ econf "${myeconfargs[@]}"
+}
diff --git a/app-backup/fsarchiver/fsarchiver-0.8.2.ebuild b/app-backup/fsarchiver/fsarchiver-0.8.2.ebuild
new file mode 100644
index 000000000000..325a278172cd
--- /dev/null
+++ b/app-backup/fsarchiver/fsarchiver-0.8.2.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit autotools
+
+DESCRIPTION="Flexible filesystem archiver for backup and deployment tool"
+HOMEPAGE="http://www.fsarchiver.org"
+SRC_URI="https://github.com/fdupoux/${PN}/releases/download/${PV}/${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() {
+ default
+ sed -i -e 's/^\([a-z]*_CFLAGS.*\)-ggdb/\1/' src/Makefile.am \
+ || die "seding failed"
+ eautoreconf
+}
+
+src_configure() {
+ local myeconfargs=(
+ $(use_enable lzma)
+ $(use_enable lzo)
+ $(use_enable static)
+ $(use_enable debug devel)
+ )
+ econf "${myeconfargs[@]}"
+}
diff --git a/app-backup/fsarchiver/metadata.xml b/app-backup/fsarchiver/metadata.xml
new file mode 100644
index 000000000000..f825fbf7a697
--- /dev/null
+++ b/app-backup/fsarchiver/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 type="person">
+ <email>hwoarang@gentoo.org</email>
+ <name>Markos Chandras</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="sourceforge">fsarchiver</remote-id>
+ <remote-id type="github">fdupoux/fsarchiver</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-backup/furball/Manifest b/app-backup/furball/Manifest
new file mode 100644
index 000000000000..4020e2fb039f
--- /dev/null
+++ b/app-backup/furball/Manifest
@@ -0,0 +1,5 @@
+DIST furball-0.5.tgz 10112 SHA256 1fbd608b0cb60cc9b42be27dae79294a3c1360b5b8f5c983c136297c5e6ba618 SHA512 e5bf9857de8b391dbedfe14e6f84021447c5c0e7d7e9bed021a4cdf28e93de72c8a8fb82afad64b2863c80b0a983a986a2a00bb2b5319e9b4595781dac18e3b6 WHIRLPOOL d06b5e3d92a665144287a2820f5050337a615a398e2437b01002fd8d211d358fbe6f3bbdd468d15872cd9a85c5c500a6d4aef9c451d9b96c472c10349fb983ed
+EBUILD furball-0.5.ebuild 476 SHA256 de7a69a720e70835b8e0b85cc5189c18b37be14208613e1d2e9f3c19084450d4 SHA512 df0d4be7fb1d7ca1f4522b4b674505c3aa32c399aa8edaf96fe4beeb86c36e92c887459aa85046d8264e13f102d9e02d2a69f77e9e21a0bb25ce532160cf9e63 WHIRLPOOL 98d5ef24fafede4afee3c2e784b39902aedcf709ba1f1cbc7b122d888770fbce0fe2f2b9eb9103c0b78810af050687f8103c2e06042d015bbe9fdef56d6fed3c
+MISC ChangeLog 2520 SHA256 fb6429ab6d59ea143bb9e2a257e4f816a1ab200f0d7ddad0faaff16016630022 SHA512 427c8b5483423c2f1e41562a663b842bb806890814672b3cf53bcd54a030a14b146e53a39c9ebd54594c7d14a17ee546daad58333165563d73005854ec454385 WHIRLPOOL 160b03ed242c7303ae7ab03bca249ed374bfe2e716dea9850afc00393c439f250b12dceb19967390d18111f21ac3c5543d86990ad2bd8d22d72eb432f80d4e3f
+MISC ChangeLog-2015 1287 SHA256 71db6fc015fd3e5cb6fdacd5d7f679bd5d3eb8773aafa2336418119c8fdf9d19 SHA512 a2ddc084523c9769451876302a7474089cd2913e48c064147ff941d2c035c9abc4b9f737fd1fd933a4a2caaa7f76e480a66b052e8c030d869fd3898c223fce83 WHIRLPOOL 266f3d2ced0648b41415e4f359fdd504c6d1bb259505f21b35568c2b3197c277752eeb037f2518658504607e26e99d842c0f819096a9222d17e87a6d1a001463
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
diff --git a/app-backup/furball/furball-0.5.ebuild b/app-backup/furball/furball-0.5.ebuild
new file mode 100644
index 000000000000..4af5019c5bc6
--- /dev/null
+++ b/app-backup/furball/furball-0.5.ebuild
@@ -0,0 +1,21 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..6f49eba8f496
--- /dev/null
+++ b/app-backup/furball/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<!-- maintainer-needed -->
+</pkgmetadata>
diff --git a/app-backup/genbackupdata/Manifest b/app-backup/genbackupdata/Manifest
new file mode 100644
index 000000000000..a55975991fad
--- /dev/null
+++ b/app-backup/genbackupdata/Manifest
@@ -0,0 +1,3 @@
+DIST genbackupdata_1.9.orig.tar.xz 14112 SHA256 5a652c19b783b3a7ba93d34d2d180d71ec1c892cac445b5be49bbdc714482f2b SHA512 341c9cfa60f79c5fec7d6b607b2e8080d0768fb9b73622baf48569c91294f537a015ed7a23a57eb0d027dabb6f6d736a8660067e9ef80373a9372d1898043673 WHIRLPOOL f2ed9da089f8a60a2c6fca25f759c72f73b521ed3a814ef99c6a9f0631b9148b095c43e600007ef467271c3f6444e277dab1097c8cc4e89f97fe2ffb409cf872
+EBUILD genbackupdata-1.9.ebuild 728 SHA256 7b81a515267db0504f87c7e17a60cedadebf7fd739c0c29e1635f1c2cc15fb32 SHA512 0e032f1ab7b6bec77b7c66a8555b98f73140d93fcfff26bc36fbf84ea8818158271747bed0366a1b7b7244ec6436b194df3defabb73a8a8a94f5326dc0165d97 WHIRLPOOL b35b127ab0a2565aa4a58e74ea88a48164fbedd110bf383800c17e65233e54ce7b37b6659e0e5d3e5bd807fa04625b1d452919b768550ac9d512d4a6d111a8f5
+MISC metadata.xml 250 SHA256 bcd9559baadae8534ff9477c11ff5ea7a59d3ccdf2bca3f9b9e9707afb50661f SHA512 c599b09b9aaf744dfe13d0707adde7d3dfd1a8a411e937fcba25e65c6045792cdcf6ceb9004e3dd38b014c486c9f1334bfc898419f59806ec6abebfc71bca382 WHIRLPOOL 0ef6ee8ef06c304dac6bfc2458c14c637a44a12cb7864968039b2c294f7febdd40ab082542280b5cb920f5fa8cbea5f6a5133a4fbf525bb44b53c79a8f7c0e78
diff --git a/app-backup/genbackupdata/genbackupdata-1.9.ebuild b/app-backup/genbackupdata/genbackupdata-1.9.ebuild
new file mode 100644
index 000000000000..e6cae7caa61a
--- /dev/null
+++ b/app-backup/genbackupdata/genbackupdata-1.9.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="threads"
+
+inherit distutils-r1
+
+DESCRIPTION="Generate test data for backup software testing."
+HOMEPAGE="http://liw.fi/genbackupdata/"
+#SRC_URI="http://git.liw.fi/cgi-bin/cgit/cgit.cgi/$PN/snapshot/${P}.tar.gz"
+SRC_URI="mirror://debian/pool/main/${PN:0:1}/${PN}/${PN}_${PV}.orig.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="${PYTHON_DEPS}
+ dev-python/cliapp[${PYTHON_USEDEP}]
+ >=dev-python/ttystatus-0.31[${PYTHON_USEDEP}]
+ "
+RDEPEND="${DEPEND}"
+
+src_compile() {
+ addwrite /proc/self/comm
+ distutils-r1_src_compile
+ emake genbackupdata.1
+}
diff --git a/app-backup/genbackupdata/metadata.xml b/app-backup/genbackupdata/metadata.xml
new file mode 100644
index 000000000000..4073267daf2a
--- /dev/null
+++ b/app-backup/genbackupdata/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 type="person">
+ <email>robbat2@gentoo.org</email>
+ <name>Robin H. Johnson</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-backup/hdup/Manifest b/app-backup/hdup/Manifest
new file mode 100644
index 000000000000..07374ffb42da
--- /dev/null
+++ b/app-backup/hdup/Manifest
@@ -0,0 +1,5 @@
+DIST hdup-2.0.14.tar.bz2 87803 SHA256 6781ec53a739c0ae15129bbbb4674cad012501b30b6652ab54d0b300de677609 SHA512 076876345d58bc6a1b987adc3ea10b1e82652504f52579d62c3f9f97c120fd56f3177deb4fe810b1579ab473061d2ab38b0ab97b83427ec84d5141f7043897f8 WHIRLPOOL 0f882463fcf0df0de019d18d915f87944d4dddb49e3e560c5d6c42479b947bc5ffe87808c95bdba6815f57a2ebee28c3f0e46c7666a63589811410934481dc34
+EBUILD hdup-2.0.14.ebuild 1288 SHA256 b39926b420d619249c5420eb2d62b1c2a0bf26651584c0c8e16bbba458568f03 SHA512 b3f3cedac1b47ddb1722f67069f5b802ac104928e9b38741e68b4edebaeb013fe516effdccb0e96042865bb0da5ad399ab38eff83863bdcd225150d928cf3689 WHIRLPOOL 10b583f91e7d050369a0617593aac27fe76e3acfc487231a97fa5924a09463a79706fd79d25f863af01c3a9e7649c0714f3453f6ea0229aa71ba7f1fe280856f
+MISC ChangeLog 2517 SHA256 a29edbd4dbdc84acb5e1e9835f0e6d4215f0de0b47b02cc5a35118211cb81f98 SHA512 23b2196ff8f9364dac9131686d946c0b4d4c3d57ec259506e41108b0cb118f0364db9c1b98d9fb6262ae1b886cb696b3949d7f15e51058017d7c6eb7d25d6e6d WHIRLPOOL b5f80ef9167005c80e60cee3946e7e741157a31cc2abcbee0d14ffd9cf641f1eba8fa33ded2e79c163a292bfdb627040f6064c9a9828d4cf94bb4a5b7442d2f4
+MISC ChangeLog-2015 3826 SHA256 bf08c90ec4350632c5f0b1e8e081a5915b9feb49092465127b9bda938b488e54 SHA512 3b1e44d97c5b706bcd1000e8286b9681061c4632f2d4ef0928de11a1951dcd96005bfcad5bbbfe8f1458506dc46e6ec592b75b7e5e40adba7c23b59f41f94f75 WHIRLPOOL 3ab8a9d13eccbc2c6335b590bd73ed253ee7a097440b3f4edbbace721b37884b2de9fb713465d91835fa9702107bbfb0233c454afa7379b8b3d108283548c831
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
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..296408761b4c
--- /dev/null
+++ b/app-backup/hdup/hdup-2.0.14.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..6f49eba8f496
--- /dev/null
+++ b/app-backup/hdup/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<!-- maintainer-needed -->
+</pkgmetadata>
diff --git a/app-backup/holland-backup-example/Manifest b/app-backup/holland-backup-example/Manifest
new file mode 100644
index 000000000000..43d439f7999b
--- /dev/null
+++ b/app-backup/holland-backup-example/Manifest
@@ -0,0 +1,5 @@
+DIST holland-1.0.10.tar.gz 449334 SHA256 c893be3dc77126125334dfa9eec404d7608a78a2bf88ec1d7ddc12ad7f7ed8d1 SHA512 5183ec73012edcaba50ef5cc9b892480d5f60301d01d17bd96c5490bd8e6ae42bd21abb6084e6665317b8025489981a02293cd583964f01e86459609b93e918f WHIRLPOOL fa8934c635f4347ffc6a327f6135d61ca26805d727fe4caca32ba9c23224062492553182e24d15fc59177787241903dd3409396c176fab2d55c34e9dcc5668e3
+EBUILD holland-backup-example-1.0.10.ebuild 889 SHA256 b6495eba4f0bc9daad953f6ee487dace4c3b85c1e128fb51edc331e1aea11121 SHA512 8b40e08af7c36e67674a34237c4d4c07b92bcce2d0633d9097bc6adffac967c6c69f4e21bd74136a948d2bdb1e2d91471d1c3e83be728c83667783b83efce76c WHIRLPOOL d970a188bafcb9fe9f5676f299b6b0d15057b421f371370cca5dd083f02b919cb5e42fcc6ef36bf1a72db3e94cef121452ced0fda5c9042b55297121ebdfd263
+MISC ChangeLog 2354 SHA256 f4463b274313fa1b8e36428b68770384adc6631573b418a2499a484a27401e2c SHA512 c8a7123a0051a8e51affd39462140999bdb28753fa4bc8088c44897fe2dbbb69cd61627a52b5467c51838a187238f1a40f1e181c7e606d3f2cb4a1200ae5ea66 WHIRLPOOL 9cddfad6160f978c461765d559241ff91480724cd2a8bfc88673083bd9a1ce06055c38e15354aece4ec425f4a82c7e3c57a914d255919117ac9192c6134d048c
+MISC ChangeLog-2015 447 SHA256 29597b5b1ab3182e53bed6edfe7aa3600591dc250a13b59f19d9c0d29e2a0c9c SHA512 b384f241656f10cd8d6ee3ff7d83588bfbc4eca792142a8d999e99a261ed6b6da4447ce1d9d4499c1b3168e5c712b4a5dd2ec6427286bf7bd5939be3e20bb375 WHIRLPOOL 5992b85c95c51968ecd9ef4d4d2372236177304ecebdcb5666ab502b7f5ebae1fb5eb3fff81c4695a96670447b1fa8e6d81e6b42f322a00bd6a4fabb07d00474
+MISC metadata.xml 167 SHA256 5fe493e76bba84455c54b3a46adfae5a1bfe01c764ef0d9e5f6d3e8a1d142188 SHA512 7c8decb24ee3a850e38186cf3c7f8933a28017426806870ad6ef9ceb2533be147a2681fc789b535a81cb528af8c29d90d3006e4f250aee23bd7dea4561294e33 WHIRLPOOL dc6c3dfc7fd7f0d76c97f0786cb76a55b8564f8437f96d4ccebf985817b9f6dcc4c61830aa5df80d725e4a54b281ea2e03d6b0859214af081112cba15025e64b
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..381e70da2771
--- /dev/null
+++ b/app-backup/holland-backup-example/holland-backup-example-1.0.10.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..7a38bb900964
--- /dev/null
+++ b/app-backup/holland-backup-example/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+</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..8a4b1fcd2c61
--- /dev/null
+++ b/app-backup/holland-backup-mysql-lvm/Manifest
@@ -0,0 +1,5 @@
+DIST holland-1.0.10.tar.gz 449334 SHA256 c893be3dc77126125334dfa9eec404d7608a78a2bf88ec1d7ddc12ad7f7ed8d1 SHA512 5183ec73012edcaba50ef5cc9b892480d5f60301d01d17bd96c5490bd8e6ae42bd21abb6084e6665317b8025489981a02293cd583964f01e86459609b93e918f WHIRLPOOL fa8934c635f4347ffc6a327f6135d61ca26805d727fe4caca32ba9c23224062492553182e24d15fc59177787241903dd3409396c176fab2d55c34e9dcc5668e3
+EBUILD holland-backup-mysql-lvm-1.0.10.ebuild 1386 SHA256 e4ec934677842d3ce7eae00080ffec0ae1c1db5049820e6082a87324a8503438 SHA512 923068c56992eb42d61b791e5a12ebfd8245aa76f30d831ed2a3e5b128d20547c53ed8a8a21c711196a4a32b6d598cc5619ef34dcaf412fb3ad7d8665cb62b44 WHIRLPOOL a50f5e1f7ab3b84495ed5ef4b89447fc7e1377dff733f0b793200d62d968a8ce76ab3eecc2ca9d50c49540e236449cf7b4b0e1435a1ec9ae767774bbee86cc68
+MISC ChangeLog 2360 SHA256 b44f29e2bf23cee3356af791704ce30e4f1755d0a1d0d66337d6d5aa102365e9 SHA512 572b00c3601873ef864958b1789ae164934ac2eb9a68380698ab8c96241cfe8cd778b18be1cee798da01cfca8dbf3c921edb1e6334a840776f4d2d765b47efd9 WHIRLPOOL 03f456196a4aaeeffbfe77841cc287da7daf8fb61a85567596a9a68d2d6798ef657de7a141945f3f2c63a4ead42b375ae60e08346a32f1407ada8b404b47abaf
+MISC ChangeLog-2015 457 SHA256 f608df2dafb2a33000d1530c53094571080f5d7baaf5920b96eda526889fcf95 SHA512 da9ed4cfc02ab07f06e20729c1acb89568e3f728551c61a92ff63e07e0eb5889fbe72df4d9ffe33f7d9c2dd82a9cbeddcda2d6d30f5641e77c0463f079fc5c2e WHIRLPOOL 7fd5292bb143f78def32e272a6ecd9b0a13a4a95bb357f9ba0fc8e9a122cb80e02af554a317ecd699a12748e149f406f91abbfa4a387a820f8f9c40e2a374d2a
+MISC metadata.xml 167 SHA256 5fe493e76bba84455c54b3a46adfae5a1bfe01c764ef0d9e5f6d3e8a1d142188 SHA512 7c8decb24ee3a850e38186cf3c7f8933a28017426806870ad6ef9ceb2533be147a2681fc789b535a81cb528af8c29d90d3006e4f250aee23bd7dea4561294e33 WHIRLPOOL dc6c3dfc7fd7f0d76c97f0786cb76a55b8564f8437f96d4ccebf985817b9f6dcc4c61830aa5df80d725e4a54b281ea2e03d6b0859214af081112cba15025e64b
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..dacd535ec069
--- /dev/null
+++ b/app-backup/holland-backup-mysql-lvm/holland-backup-mysql-lvm-1.0.10.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..7a38bb900964
--- /dev/null
+++ b/app-backup/holland-backup-mysql-lvm/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+</pkgmetadata>
diff --git a/app-backup/holland-backup-mysql-meta/Manifest b/app-backup/holland-backup-mysql-meta/Manifest
new file mode 100644
index 000000000000..985595c47141
--- /dev/null
+++ b/app-backup/holland-backup-mysql-meta/Manifest
@@ -0,0 +1,4 @@
+EBUILD holland-backup-mysql-meta-1.0.10.ebuild 726 SHA256 12808e34dc942bb328148365fec3f71576337d61809a1e0863cc79fe304c88a7 SHA512 361b03e943605aeace75229ca786bb92bf9ba35b8eee6c95a548d898992bba07872bac4265cd70ce7b2249e328af578176627ef93a4d2fef6217ba57e95749d6 WHIRLPOOL 7506ee4a52f586e94e6d917a95c6f9b4f94d73bad2e4cc0530d87d746e0bf1d721b5b6867be1dc53a3ad30364ab198d87fac5b53a0ab7a48ff7c0d9fe36f1da0
+MISC ChangeLog 2363 SHA256 84fc73b5f9c58bc377a18c42f0dd93681dbe8d032042e48f9ab99a75be94f92b SHA512 f76f9710a8b1776af7bd14e54ae5b253833a9b19bd013439cbf7e10dd17d581ec9b1cc4a321ae0a27ee3b36bfdb1d52b8f3697ec7f45d5f6109e0b9819d59d54 WHIRLPOOL 62c056f6564d6530552821a15704938e86fdb2e7d097679ccfe1bf2f0c543aa8e8667c16d8e5f1545703a53c0ea42746577fd57c6ab74a2cf7441c50fdcf3e23
+MISC ChangeLog-2015 462 SHA256 271fb885650e2637c59ef0eff90461466bc909df4ea739ec92166c4ea2c016de SHA512 b78e6129637215e7b50f322b9a7acae48393051eaccde9948f8567cdca0a94f8e0244b427a31142cbbfcb211d5515c9510a99062f9c1db70a5bee940fd0d8b8f WHIRLPOOL 9965c35560a8ce18ef095c7a293b16e18241c9fb47b160f05eff224c1e86830b0dc1c9754606e436ff3dfbef6e9717fe6c19bb0e712b24fc6fe982c3f1ad6759
+MISC metadata.xml 371 SHA256 ca93731c165d17defb10b3b3e262a3023d10c6f905f79026c5882bb63ba50564 SHA512 aa487c488830cd92e1b975c0639e383a91a9490d3c7db77ec48227b67c8eb92798af6187ecfeb236e247427238440106a418dd3d1e54224c6109b5e519ca8e9e WHIRLPOOL 73352ce0df7e73eaeefc284f91f117de2c33a89bf9f8a1377268f0270565674b327a4e114a930001fcc14d8135031c980699beac98ca28708e0ee0426b163100
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..cdb997d76f46
--- /dev/null
+++ b/app-backup/holland-backup-mysql-meta/holland-backup-mysql-meta-1.0.10.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+DEPEND="dev-python/setuptools[${PYTHON_USEDEP}]"
+RDEPEND="
+ ${PYTHON_DEPS}
+ 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..ec0cac4dc87a
--- /dev/null
+++ b/app-backup/holland-backup-mysql-meta/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-needed -->
+ <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..d26a7647df3a
--- /dev/null
+++ b/app-backup/holland-backup-mysqldump/Manifest
@@ -0,0 +1,5 @@
+DIST holland-1.0.10.tar.gz 449334 SHA256 c893be3dc77126125334dfa9eec404d7608a78a2bf88ec1d7ddc12ad7f7ed8d1 SHA512 5183ec73012edcaba50ef5cc9b892480d5f60301d01d17bd96c5490bd8e6ae42bd21abb6084e6665317b8025489981a02293cd583964f01e86459609b93e918f WHIRLPOOL fa8934c635f4347ffc6a327f6135d61ca26805d727fe4caca32ba9c23224062492553182e24d15fc59177787241903dd3409396c176fab2d55c34e9dcc5668e3
+EBUILD holland-backup-mysqldump-1.0.10.ebuild 1246 SHA256 3ad93fdc9dbe4bde0db0ce70158876bd6e23f10410fbc055c879e11b0361353b SHA512 5c0646dda41836582f5e89ed5e2911db2650b3da6f89a53c42d16e1da07b99f769f6caa0b677d746667c97916eab06d6b6bbed92892524574f55ddf2fc6437af WHIRLPOOL c334799721773619e278d92c63f454d3082b48f9a55d8f2f310168cbea10dcd3e65f192f9dd453cae4401409c2ba0ab40f0eb93cd468b668ac49021ab1e07bbd
+MISC ChangeLog 2360 SHA256 c2885ab744bf4f6f20f49b7fe283e28d3292c97c91c198b932253bb26954daa0 SHA512 7654c43c8bee5905329245164f58a4e3b87f1fbe9ac6559b879493cd100578c7d93621b27f97817ddc3eba71691b0381c8ef066b0220ed844fb391ed637ddcfc WHIRLPOOL 0481f23b57982f24ec3c58b6371e09b6942d487cf9f543068427ba69207734ed2b5ff21e195ed959b72d0c55564405cb2f7cc7401460679b1a6697eff2e305bc
+MISC ChangeLog-2015 457 SHA256 d4fddb4589b1e336871d2844c690392f8a0e24323dba35dd6ecfb85b8eb3df43 SHA512 1c3a9c9094efcfb026792d6f15cdcbc3f52ca02cbe8207399448d081aed024d4267ae56e8a8ee7d6bf6d5614890dd369acbc1ab1c1b1ac36b1568c6a4573d927 WHIRLPOOL f09907c129bb11e371182168e4ab1342c7edbe2cff0d1202cce6aba4bee3a62534628e13af9bed16aabf852b17b6555006398451f4f11af302ecb48e297c81ca
+MISC metadata.xml 167 SHA256 5fe493e76bba84455c54b3a46adfae5a1bfe01c764ef0d9e5f6d3e8a1d142188 SHA512 7c8decb24ee3a850e38186cf3c7f8933a28017426806870ad6ef9ceb2533be147a2681fc789b535a81cb528af8c29d90d3006e4f250aee23bd7dea4561294e33 WHIRLPOOL dc6c3dfc7fd7f0d76c97f0786cb76a55b8564f8437f96d4ccebf985817b9f6dcc4c61830aa5df80d725e4a54b281ea2e03d6b0859214af081112cba15025e64b
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..049a2f772ee9
--- /dev/null
+++ b/app-backup/holland-backup-mysqldump/holland-backup-mysqldump-1.0.10.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..7a38bb900964
--- /dev/null
+++ b/app-backup/holland-backup-mysqldump/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+</pkgmetadata>
diff --git a/app-backup/holland-backup-mysqlhotcopy/Manifest b/app-backup/holland-backup-mysqlhotcopy/Manifest
new file mode 100644
index 000000000000..d5394b7707f6
--- /dev/null
+++ b/app-backup/holland-backup-mysqlhotcopy/Manifest
@@ -0,0 +1,5 @@
+DIST holland-1.0.10.tar.gz 449334 SHA256 c893be3dc77126125334dfa9eec404d7608a78a2bf88ec1d7ddc12ad7f7ed8d1 SHA512 5183ec73012edcaba50ef5cc9b892480d5f60301d01d17bd96c5490bd8e6ae42bd21abb6084e6665317b8025489981a02293cd583964f01e86459609b93e918f WHIRLPOOL fa8934c635f4347ffc6a327f6135d61ca26805d727fe4caca32ba9c23224062492553182e24d15fc59177787241903dd3409396c176fab2d55c34e9dcc5668e3
+EBUILD holland-backup-mysqlhotcopy-1.0.10.ebuild 1128 SHA256 9d8901297f504b14b865d98bd72cb2e9af7e11a8b0a746674e08c2ff2f97d54e SHA512 9a84f7a79e521fb74df6ce391476acb594a1f22e0637b7df77e4cb0a134b426837bc841065ea910f7de84a4f236d540f0ab471a2be303a8ec438274fa9c88b1f WHIRLPOOL d1ecfe2728251cac2ff6db4c803a9b646dc031c1c84997e876851f4f15197b3fbac02a6ae379f10bbb02d3ebc078d0434a8c0009967575489dda4e851d1c71c9
+MISC ChangeLog 2369 SHA256 7598dc821038a92b539fe452388b10f316e53489ed89da7150898c0c3991e62f SHA512 0b7bb506c8491caf7906dd050b00117ed55c2b5f28cd2284797f7e543e14abee64204151cf38cf202006a27486a98bfb327acd2eaa8b9f21be651dd0a380dbf3 WHIRLPOOL 84bc353048fd09f1a9b354fc2d2ce0bce033e12bc2059d808d10746efa0943a937a929a9d3ef0820b3e4228a469c59ba6b28528f4665ed15c14ea45d6089d543
+MISC ChangeLog-2015 472 SHA256 83b65ce4167cf0828365b3463b824a2fb0268647b4c8ff675beecfbf42ed9e3e SHA512 e4039417c2a97a2e6af60a9aec19b02f6249169b2a462bffb53af577d1c75597c3a6c44dc1dfd9d85b80e9eda6098683ee4d82868f6674d115d0c25f8e037f4e WHIRLPOOL 3f54b68c6ae83034b6bd3df334f20d8393e8a44f72e95ee92ddb230176b7f30e09e8e78fcaeb064e368219a5854f024dbe4d568c253333bd587ea4a09d5cbd83
+MISC metadata.xml 167 SHA256 5fe493e76bba84455c54b3a46adfae5a1bfe01c764ef0d9e5f6d3e8a1d142188 SHA512 7c8decb24ee3a850e38186cf3c7f8933a28017426806870ad6ef9ceb2533be147a2681fc789b535a81cb528af8c29d90d3006e4f250aee23bd7dea4561294e33 WHIRLPOOL dc6c3dfc7fd7f0d76c97f0786cb76a55b8564f8437f96d4ccebf985817b9f6dcc4c61830aa5df80d725e4a54b281ea2e03d6b0859214af081112cba15025e64b
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..65e8a2f357eb
--- /dev/null
+++ b/app-backup/holland-backup-mysqlhotcopy/holland-backup-mysqlhotcopy-1.0.10.ebuild
@@ -0,0 +1,46 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..7a38bb900964
--- /dev/null
+++ b/app-backup/holland-backup-mysqlhotcopy/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+</pkgmetadata>
diff --git a/app-backup/holland-backup-pgdump/Manifest b/app-backup/holland-backup-pgdump/Manifest
new file mode 100644
index 000000000000..21e11baee56b
--- /dev/null
+++ b/app-backup/holland-backup-pgdump/Manifest
@@ -0,0 +1,5 @@
+DIST holland-1.0.10.tar.gz 449334 SHA256 c893be3dc77126125334dfa9eec404d7608a78a2bf88ec1d7ddc12ad7f7ed8d1 SHA512 5183ec73012edcaba50ef5cc9b892480d5f60301d01d17bd96c5490bd8e6ae42bd21abb6084e6665317b8025489981a02293cd583964f01e86459609b93e918f WHIRLPOOL fa8934c635f4347ffc6a327f6135d61ca26805d727fe4caca32ba9c23224062492553182e24d15fc59177787241903dd3409396c176fab2d55c34e9dcc5668e3
+EBUILD holland-backup-pgdump-1.0.10.ebuild 854 SHA256 f6d3070436be679081072ccd79c072d303109802059d4b223816286ee516ba2c SHA512 6403157e9f8ccd422f1e035f48048989030108469379045dfce187974846db92d8181df4f3bc8b904a787c1b692f101d950edf305284285cc7e9e906bf38e4ba WHIRLPOOL d3f514aa779f8e9ca5ce5d466cca51916311ee3d9a5df1d23bed5fbabeed1d827f6cb8f954f28a6c8d8666f0c7fe76667d5d5e00785f57c0fc5e54f0302f73d5
+MISC ChangeLog 2351 SHA256 a1582beece0c28b766ae38cdd9586c9fa1012fd9c55d8868214f6d74cff77ad4 SHA512 b4179b351dac24055ee07a84263a42a3fd8b61fd1e75638d60e1e7a34526d023d39d9b6038f48254212982f85c52fe77d0de18011705cf96680d0d26c7300020 WHIRLPOOL fd89c1c3c8bd65b4056b7229343b72d1022de5cfea7371831fe88dafcd0f031f624419a52047520c94008f5e41d70a7a94555a672d521ce2bf6cf4be2cdf0213
+MISC ChangeLog-2015 442 SHA256 f38633317181d2adb909c05d9806f343ecbf1d4aee1be52fcaf98c606783428d SHA512 bbc209016a4d42dc0d8a4eddc5b63760519e01ab245a4f42b70403c440a9b08b025c3c434cb01e26aee116563d6f94b486d71801d33f56a5639d876fd21d49c9 WHIRLPOOL 4f468da6d523346468f54bfc6696530e490c1b0a9b940240f2e660e4f0380368049d650a0d2cb42dc6a6a588448aff27566335058ac6d333175034960b2df017
+MISC metadata.xml 167 SHA256 5fe493e76bba84455c54b3a46adfae5a1bfe01c764ef0d9e5f6d3e8a1d142188 SHA512 7c8decb24ee3a850e38186cf3c7f8933a28017426806870ad6ef9ceb2533be147a2681fc789b535a81cb528af8c29d90d3006e4f250aee23bd7dea4561294e33 WHIRLPOOL dc6c3dfc7fd7f0d76c97f0786cb76a55b8564f8437f96d4ccebf985817b9f6dcc4c61830aa5df80d725e4a54b281ea2e03d6b0859214af081112cba15025e64b
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..63609d1a9966
--- /dev/null
+++ b/app-backup/holland-backup-pgdump/holland-backup-pgdump-1.0.10.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..7a38bb900964
--- /dev/null
+++ b/app-backup/holland-backup-pgdump/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+</pkgmetadata>
diff --git a/app-backup/holland-backup-random/Manifest b/app-backup/holland-backup-random/Manifest
new file mode 100644
index 000000000000..3bb357ef1159
--- /dev/null
+++ b/app-backup/holland-backup-random/Manifest
@@ -0,0 +1,5 @@
+DIST holland-1.0.10.tar.gz 449334 SHA256 c893be3dc77126125334dfa9eec404d7608a78a2bf88ec1d7ddc12ad7f7ed8d1 SHA512 5183ec73012edcaba50ef5cc9b892480d5f60301d01d17bd96c5490bd8e6ae42bd21abb6084e6665317b8025489981a02293cd583964f01e86459609b93e918f WHIRLPOOL fa8934c635f4347ffc6a327f6135d61ca26805d727fe4caca32ba9c23224062492553182e24d15fc59177787241903dd3409396c176fab2d55c34e9dcc5668e3
+EBUILD holland-backup-random-1.0.10.ebuild 888 SHA256 a699c67c5e8e22552e913cfd58d2c1703d82a55bca52ae6f21c1e46b68eaef3a SHA512 84df887af065566efcedd8fe4358d2b4033445cbbb30cd941497a2dadc051c0edfc57d935f212df51b0a01c309cbb5eb362ac5588c77fd604dad0cdcb13a2540 WHIRLPOOL 6d1d01280c68dcbd8e480c2451e6cc8541b898714166852293a7da6bd604d42fa1ee0845f186042f7b8e3c8c300a2a87ab28f4d5e5170a1bfc52be37b25e3163
+MISC ChangeLog 2351 SHA256 eb760d1551a7b27619831963fbf0b35b913ff7c92462fee4c4f47cd02dffb98b SHA512 a9373a08dc72035927a19a84de47b0a0e5e921068a7034eeded65025246f6c85c9604b48037a1166071a5d35421b0db8e2544679c44e205d189daa16a5ec06ab WHIRLPOOL 28d59bda5a4ceb26a1f432319461b88b7af25980f2dddf4f45c0031cdda175ca4933484fe01065661aaa2dd48d55a8323b473f056a3c44e1b7a7892b24334fa0
+MISC ChangeLog-2015 442 SHA256 6a80af3b462e7af795e45105317aca24163965985f40d4af68f75357c47dbeba SHA512 a8b99460a8fc43c6b47bd8cf2973d5246c56b08b3985195344941e4e973ccf80121e4569154fbd7711cb8baed258be99acbcc234cc574dac382c24a4295d0109 WHIRLPOOL 17a832b7d3b7200aaee31f309c874851cec7c5cf6423fd4688532945ac891adf308cd14d04ac20b1842946a0d4f29ff1e95bb7d39b5ed5e67fae3ce3469d8364
+MISC metadata.xml 167 SHA256 5fe493e76bba84455c54b3a46adfae5a1bfe01c764ef0d9e5f6d3e8a1d142188 SHA512 7c8decb24ee3a850e38186cf3c7f8933a28017426806870ad6ef9ceb2533be147a2681fc789b535a81cb528af8c29d90d3006e4f250aee23bd7dea4561294e33 WHIRLPOOL dc6c3dfc7fd7f0d76c97f0786cb76a55b8564f8437f96d4ccebf985817b9f6dcc4c61830aa5df80d725e4a54b281ea2e03d6b0859214af081112cba15025e64b
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..c0c5500161e2
--- /dev/null
+++ b/app-backup/holland-backup-random/holland-backup-random-1.0.10.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..7a38bb900964
--- /dev/null
+++ b/app-backup/holland-backup-random/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+</pkgmetadata>
diff --git a/app-backup/holland-backup-sqlite/Manifest b/app-backup/holland-backup-sqlite/Manifest
new file mode 100644
index 000000000000..e6c5273d8323
--- /dev/null
+++ b/app-backup/holland-backup-sqlite/Manifest
@@ -0,0 +1,5 @@
+DIST holland-1.0.10.tar.gz 449334 SHA256 c893be3dc77126125334dfa9eec404d7608a78a2bf88ec1d7ddc12ad7f7ed8d1 SHA512 5183ec73012edcaba50ef5cc9b892480d5f60301d01d17bd96c5490bd8e6ae42bd21abb6084e6665317b8025489981a02293cd583964f01e86459609b93e918f WHIRLPOOL fa8934c635f4347ffc6a327f6135d61ca26805d727fe4caca32ba9c23224062492553182e24d15fc59177787241903dd3409396c176fab2d55c34e9dcc5668e3
+EBUILD holland-backup-sqlite-1.0.10.ebuild 942 SHA256 076e87aa402fe671f85f5ded08989f15a357be8c8fc48e1ab4b362c766d7a6ac SHA512 e53b99ff92a6f3426ec972a3fcfefd9740d34b4b9cd9abf07ed5a93a3bb8dd89a5a28dfb36058a186039d9bf798f36c071f86ff30fb49c099e04702bd63c787e WHIRLPOOL 08bf38e2a1e0e9f9b0a2ca8f42bdf94d93e1da444f7f0e63c6216ef9e227474687a8233e00b0559632e58dc1b29a5b3052fa9835e31cc3302f4a786efbc1f33a
+MISC ChangeLog 2351 SHA256 5ac062e112ff01fcf9ee4a4ec7da1ec78c096c93aac5a52df0de431e321a7d2c SHA512 58bc32d62ff096d92077b77344174795200c1edbbce77b9257106de881e9285ef9c3869bc7dda0701f1f54edf6f4534c70616203f67a51b39b3487022a811738 WHIRLPOOL 6ef73ef2ac4bb94d71fa11a63062b824649bebc76bb2c15e72fb602e52de79a685fe2c6573c0ed4dd68640c8324a85884dbf598c402c19ea932025b813ea0b92
+MISC ChangeLog-2015 442 SHA256 10b2d5801eebf8bf9c8a6d52598c00d72cd461f9c3e25c3f99867726dc58883e SHA512 e5d4175125aa46c787296cd05a431dd6417f73c8d1c9e8d8f447e69ab4961115981deec9ea553add36f7b8fd34b7564cbb32b44ecab64c5a7ed696ff36d8a81e WHIRLPOOL 9394359bc86e3ad2eac8d9a51e174564899c9b4c63bc63883ab08c537a8ec1d0e36ef55ad556cdd617c745be60f40a724cc7d965f64075d3c8f62dd2cd7b5a44
+MISC metadata.xml 167 SHA256 5fe493e76bba84455c54b3a46adfae5a1bfe01c764ef0d9e5f6d3e8a1d142188 SHA512 7c8decb24ee3a850e38186cf3c7f8933a28017426806870ad6ef9ceb2533be147a2681fc789b535a81cb528af8c29d90d3006e4f250aee23bd7dea4561294e33 WHIRLPOOL dc6c3dfc7fd7f0d76c97f0786cb76a55b8564f8437f96d4ccebf985817b9f6dcc4c61830aa5df80d725e4a54b281ea2e03d6b0859214af081112cba15025e64b
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..cdb9d844719b
--- /dev/null
+++ b/app-backup/holland-backup-sqlite/holland-backup-sqlite-1.0.10.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..7a38bb900964
--- /dev/null
+++ b/app-backup/holland-backup-sqlite/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+</pkgmetadata>
diff --git a/app-backup/holland-lib-common/Manifest b/app-backup/holland-lib-common/Manifest
new file mode 100644
index 000000000000..b8bba4634b87
--- /dev/null
+++ b/app-backup/holland-lib-common/Manifest
@@ -0,0 +1,5 @@
+DIST holland-1.0.10.tar.gz 449334 SHA256 c893be3dc77126125334dfa9eec404d7608a78a2bf88ec1d7ddc12ad7f7ed8d1 SHA512 5183ec73012edcaba50ef5cc9b892480d5f60301d01d17bd96c5490bd8e6ae42bd21abb6084e6665317b8025489981a02293cd583964f01e86459609b93e918f WHIRLPOOL fa8934c635f4347ffc6a327f6135d61ca26805d727fe4caca32ba9c23224062492553182e24d15fc59177787241903dd3409396c176fab2d55c34e9dcc5668e3
+EBUILD holland-lib-common-1.0.10.ebuild 559 SHA256 038fdfcfdd2c3447b3a6fa2583e5df68fc67aee9b55bac91a3545546bc1f6892 SHA512 942ac17570a3f255a44c7bb072b5a674f3f1f4461d382861a044c70b6937105eaed4c8267d374a48201e7a4464b6e3e23592402969ad19cef4d09aa00a79db9f WHIRLPOOL 8e9c50dec8a4884448ac3e3fdfc3b1198c08cab197185c0c1e68c3f6fabf7617bd097461e32ad75cf1b207a0abb7410e39dea0f270a552b7fac5010c2fe7bfd0
+MISC ChangeLog 2342 SHA256 3fcf76126a09d729837fd26f8340abac0cf14c13b19394909902161f940f5c38 SHA512 175e47b2fa7e096ad876e80ce6041d80e3018606e0f8fa86ccd6d729fef6fe0ccab6faea052d74ae142507b0c9d8cb09398e727bf87e5af46060eae7062c61db WHIRLPOOL ead81409b2955ceb4b7d5f0ee057119e43398a8c1c0c239ee7ca2aad2c7234ac65001306ddea8fb0404fcefcd0b7ed027da223f88db4f3b30ef4c3f8f8bacf88
+MISC ChangeLog-2015 427 SHA256 a78d4473a80278660ba4695ee53b7c7b27bb772df80d0a3fa2a248f5996ab1ca SHA512 394138d7f82aedf7b43ccdf35c526a107ea91b5abf29e78bee1cb97e06f7ee13a7d717ee2ca392f42a887d2ad921fae6010d34e6ba88b73ea569eefe7912deff WHIRLPOOL 14478165c43b09d656b19dd8ca9e1d6f7dd8ac7aad3c71a717b0ba76f64a32b51eb9ee6eff0e5ceb518bb37d911a824720e14bd1797fc19cb23f2883dcd75f24
+MISC metadata.xml 167 SHA256 5fe493e76bba84455c54b3a46adfae5a1bfe01c764ef0d9e5f6d3e8a1d142188 SHA512 7c8decb24ee3a850e38186cf3c7f8933a28017426806870ad6ef9ceb2533be147a2681fc789b535a81cb528af8c29d90d3006e4f250aee23bd7dea4561294e33 WHIRLPOOL dc6c3dfc7fd7f0d76c97f0786cb76a55b8564f8437f96d4ccebf985817b9f6dcc4c61830aa5df80d725e4a54b281ea2e03d6b0859214af081112cba15025e64b
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..0bcc8c88bfb8
--- /dev/null
+++ b/app-backup/holland-lib-common/holland-lib-common-1.0.10.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..7a38bb900964
--- /dev/null
+++ b/app-backup/holland-lib-common/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+</pkgmetadata>
diff --git a/app-backup/holland-lib-lvm/Manifest b/app-backup/holland-lib-lvm/Manifest
new file mode 100644
index 000000000000..96368a5f0beb
--- /dev/null
+++ b/app-backup/holland-lib-lvm/Manifest
@@ -0,0 +1,5 @@
+DIST holland-1.0.10.tar.gz 449334 SHA256 c893be3dc77126125334dfa9eec404d7608a78a2bf88ec1d7ddc12ad7f7ed8d1 SHA512 5183ec73012edcaba50ef5cc9b892480d5f60301d01d17bd96c5490bd8e6ae42bd21abb6084e6665317b8025489981a02293cd583964f01e86459609b93e918f WHIRLPOOL fa8934c635f4347ffc6a327f6135d61ca26805d727fe4caca32ba9c23224062492553182e24d15fc59177787241903dd3409396c176fab2d55c34e9dcc5668e3
+EBUILD holland-lib-lvm-1.0.10.ebuild 557 SHA256 a360e5c6fe6e1b306e6200d1da5a479edb5170f9b50496b34bb2fd7f61653638 SHA512 8747a20afab4defb9196a8f4a2f6f376d726b8f2015a8b87255be552e6b9f2110ccf11d23f9f9ef30b79e3b8f2465aceaef71cb7748c1061892312b788a9980c WHIRLPOOL d420c5758a1ca2df5f19b65050e897c3d81f03c412f54429c1c46c6137c202270c79d74121d7927ba1d33f5708fcb866c39568fe5fcc9b5c4afc1b8cd3b512f7
+MISC ChangeLog 2333 SHA256 8134ac46312e7ebdc51fbe4a62500df2e0cf2f4a8fa4fc389f518eb66e8ca3fe SHA512 05d776a4dec1078f7008a48bfe77214b6d297dffecbb8aa48c0d6b19f27cc95d7bd256a0fd37918ab1194478097418f8b7f39dbeea37d81a5c711be56776dee1 WHIRLPOOL bdf260bb7e80648eb53422d361f46f16f38475aaece7bc1ffb6cc312d043632086c85a6809ceb6b9168c8b4001ddf1ff8e7f9a7679451a239f1b3c6bdd941985
+MISC ChangeLog-2015 412 SHA256 b40524b17e9e78b54be3d69eaa6a5f68d80c43ecdd51b9c141707c8dcffe00bd SHA512 d26bede86e2ddf89aae699c83a4db99508fc9c36d674cc37cece4b4c4e906dbd6b5fda5a2ac3d94b87f8a80d5000fc9af5470ee7419801765e37241afb86d53e WHIRLPOOL e8fabb7d98ebc009e63e51df23369384b822d41ceb5eb2e18ea385a806c6ef674b669df4abb7751d9d4a4e56955a53c3b3b6832bdbac25e5f0e3b9683dc9649b
+MISC metadata.xml 167 SHA256 5fe493e76bba84455c54b3a46adfae5a1bfe01c764ef0d9e5f6d3e8a1d142188 SHA512 7c8decb24ee3a850e38186cf3c7f8933a28017426806870ad6ef9ceb2533be147a2681fc789b535a81cb528af8c29d90d3006e4f250aee23bd7dea4561294e33 WHIRLPOOL dc6c3dfc7fd7f0d76c97f0786cb76a55b8564f8437f96d4ccebf985817b9f6dcc4c61830aa5df80d725e4a54b281ea2e03d6b0859214af081112cba15025e64b
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..311e601e857b
--- /dev/null
+++ b/app-backup/holland-lib-lvm/holland-lib-lvm-1.0.10.ebuild
@@ -0,0 +1,25 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..7a38bb900964
--- /dev/null
+++ b/app-backup/holland-lib-lvm/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+</pkgmetadata>
diff --git a/app-backup/holland-lib-mysql/Manifest b/app-backup/holland-lib-mysql/Manifest
new file mode 100644
index 000000000000..ed198f59115c
--- /dev/null
+++ b/app-backup/holland-lib-mysql/Manifest
@@ -0,0 +1,5 @@
+DIST holland-1.0.10.tar.gz 449334 SHA256 c893be3dc77126125334dfa9eec404d7608a78a2bf88ec1d7ddc12ad7f7ed8d1 SHA512 5183ec73012edcaba50ef5cc9b892480d5f60301d01d17bd96c5490bd8e6ae42bd21abb6084e6665317b8025489981a02293cd583964f01e86459609b93e918f WHIRLPOOL fa8934c635f4347ffc6a327f6135d61ca26805d727fe4caca32ba9c23224062492553182e24d15fc59177787241903dd3409396c176fab2d55c34e9dcc5668e3
+EBUILD holland-lib-mysql-1.0.10.ebuild 837 SHA256 82e79fe68b0db357096d7a99946cc08eff703b146f93bbc5b37e5b94cb32d7bb SHA512 7ffca44e1edc20bb628c7b1f0ca9f4d9bcbad1e5ed2609b637fe2e449eccb78a8bf35d80ac1fcbbbcb48ac928f50ba9492cd885939c2731852466cdc9f1af665 WHIRLPOOL d6decaaa79528c1d45da114f790e78afbce2699f0ad358061889c633a2e56edc13240abee68980eba05fad5668eada306aa9f73c092bbb6096e395578346f5ce
+MISC ChangeLog 2339 SHA256 a4d0bd4338742084140e4cdc30e98f18906654cac2a0b8873dc163fa464a05bf SHA512 aa5bdd0ce6be0ed8786854a3d76b70d1031907758a1a1b329c5ae545081ee9aa8a68b71447a19edf5d27b175878c9b21ec7f3f3c3cdf4574adf5cfcb0ff9b08a WHIRLPOOL 8ed01b9ffd98e1850d52d46412c9a71dd26db44544ca7df3d8c7e051694d017ccba71b0a6f5d8b322a03d6aebc4b711a48becb6cbe8cb3e60a15c26b6191b4c5
+MISC ChangeLog-2015 575 SHA256 6d23d5f611eb7e6e17e770a6cfcf5048db5f6f3b3db363d1abdf35b958e53722 SHA512 074f185c8c4394329f6e0e3499ead66adcf4da61a291d406fe05708bf5c563fcf8e366af2ba3763cab868aff99d8de9715083d4df6b2860809568ee12ba78f25 WHIRLPOOL bcd0d8deced7b12f5f716d1f81e94ff77902b3113edeba1b2aa7c886d885f190de9fb81e6df09d9fb605a96e50293d560136a3137d367ce48ad6fa3cf8d7ea01
+MISC metadata.xml 167 SHA256 5fe493e76bba84455c54b3a46adfae5a1bfe01c764ef0d9e5f6d3e8a1d142188 SHA512 7c8decb24ee3a850e38186cf3c7f8933a28017426806870ad6ef9ceb2533be147a2681fc789b535a81cb528af8c29d90d3006e4f250aee23bd7dea4561294e33 WHIRLPOOL dc6c3dfc7fd7f0d76c97f0786cb76a55b8564f8437f96d4ccebf985817b9f6dcc4c61830aa5df80d725e4a54b281ea2e03d6b0859214af081112cba15025e64b
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..8a49c490911b
--- /dev/null
+++ b/app-backup/holland-lib-mysql/holland-lib-mysql-1.0.10.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..7a38bb900964
--- /dev/null
+++ b/app-backup/holland-lib-mysql/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+</pkgmetadata>
diff --git a/app-backup/holland/Manifest b/app-backup/holland/Manifest
new file mode 100644
index 000000000000..0576d6ca7f0b
--- /dev/null
+++ b/app-backup/holland/Manifest
@@ -0,0 +1,5 @@
+DIST holland-1.0.10.tar.gz 449334 SHA256 c893be3dc77126125334dfa9eec404d7608a78a2bf88ec1d7ddc12ad7f7ed8d1 SHA512 5183ec73012edcaba50ef5cc9b892480d5f60301d01d17bd96c5490bd8e6ae42bd21abb6084e6665317b8025489981a02293cd583964f01e86459609b93e918f WHIRLPOOL fa8934c635f4347ffc6a327f6135d61ca26805d727fe4caca32ba9c23224062492553182e24d15fc59177787241903dd3409396c176fab2d55c34e9dcc5668e3
+EBUILD holland-1.0.10.ebuild 1410 SHA256 138a2053fa7c0d40eac370a5b055401f48537d294948493f3e423515777c8b6f SHA512 d1ed02610f3eb782014988467af619094a7c10856f20329d797ca19a06404f0ca3318439d3e6ba472991266c65fd329f5e458e88ccb18903e202a6615033f1b0 WHIRLPOOL 746e344df05dd4ce606977af81874e43106be83e538077b4259374b3f3bb19ee8c6a8eeb0ee3d81e1a049fe90cbbe59edc2b90a0777b1b4e7e03709141dc6be8
+MISC ChangeLog 2309 SHA256 801cf852f160fb01b3a9b5ef6c1cea9015881952caf836b3187caa08b2b35512 SHA512 115249941f4c4c51473337d0212a4f6572e696c61b6886c1e47f5ef4496da3f9b160f4c7a8c06a38d9e1077ca711ca72a7e0accd83a8d61ddc181fee04625d9f WHIRLPOOL 05d95c7479c7f31da017095de9712e3c3c71262866fbaf07eef854e79a70987bc6a8bd3f38e28e8a9e537898644a1e446c1b4863ca137b5f6d4a7cc2734dbe7d
+MISC ChangeLog-2015 372 SHA256 b65273dadce15f7b86dd99ca2cea1e4aa2de7060d474601afe119ca74ba6d85d SHA512 38141aa37ea6046f445e5fbb712e32dfadf7a9d4d3cc28a3520fd408891e1f64f4165db81e65a5b99ab615a61a4f4ff62e96e3c588d9935046e76f1aad63b80a WHIRLPOOL a7eb4f587dc66e5fb8627bb3d3a82a0ce9e7f0958335beecf2a60c0e1d10821f1021c1f23b2aef0c07642a5ac901661df76dd893257e0c95291f4c590f894d0f
+MISC metadata.xml 167 SHA256 5fe493e76bba84455c54b3a46adfae5a1bfe01c764ef0d9e5f6d3e8a1d142188 SHA512 7c8decb24ee3a850e38186cf3c7f8933a28017426806870ad6ef9ceb2533be147a2681fc789b535a81cb528af8c29d90d3006e4f250aee23bd7dea4561294e33 WHIRLPOOL dc6c3dfc7fd7f0d76c97f0786cb76a55b8564f8437f96d4ccebf985817b9f6dcc4c61830aa5df80d725e4a54b281ea2e03d6b0859214af081112cba15025e64b
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..93923b276ab7
--- /dev/null
+++ b/app-backup/holland/holland-1.0.10.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..7a38bb900964
--- /dev/null
+++ b/app-backup/holland/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <!-- maintainer-needed -->
+</pkgmetadata>
diff --git a/app-backup/kbackup/Manifest b/app-backup/kbackup/Manifest
new file mode 100644
index 000000000000..899c499a0cfa
--- /dev/null
+++ b/app-backup/kbackup/Manifest
@@ -0,0 +1,5 @@
+DIST kbackup-1.0.tar.bz2 500638 SHA256 cfa27bbc26a66aef07512f6bae9e73125f39f79bb0a337c1033e01852b895134 SHA512 9c85b018d926dfdc9d33e89e4f605d529639471a685e6e20cc4fe3515c9c125f47a2c34f2f0dec299753892d68f24a9bc38346aef333385cf41f6e8eaf86b43a WHIRLPOOL 2307a0bcabbcc126a13680b024ba02895e55a30f923848d2e7259e9fbd26cec7b1f8a0fcbe7fad19c422a8d75419c24b5302cb628fb31863303e97ef0294d0cc
+EBUILD kbackup-1.0.ebuild 997 SHA256 cc8c2c1e1a09083c3defdb0064bd7b73a2b22b3c1bbdb42413e17612377f0af0 SHA512 86787728f72930d7cfc5e27e56c30f8a198b9717ec6d223750233801edfff1b38345ae3565162d3a94c0da8277f25fa258ccaeaf876db379a3ddddc5189b796b WHIRLPOOL ab1cce89807b11f1c1dc244861f30b28bb9a7e8071cba90e93e256cadc74b249d4b744397a96a7342a539e99e87efce249eea485879912bc3a0c7ab4e36e1148
+MISC ChangeLog 2575 SHA256 a2b4f78663387777b2cf4c9c1d99b36dd92620032053c9f12f4990bb5f1a69c3 SHA512 c81e589b87774e1eaae8cb7634429e93919be76a6abe6247e976eeadd53c8886ca78b5e2af7212dbf11976fb00b42872057f449c1c6bd5521dc4effc86b952aa WHIRLPOOL 7919194c46ce68201be25927409a96592d2262ad7249fafd3d0110d2757b20e4e6a901bccd4f7f43b812445b656c05d8086740b13220fd3ad07839da7c7a6be7
+MISC ChangeLog-2015 3841 SHA256 beb2db6447a0014a9c0abfafcd8dcde85f5a0c81eb57bd5c5969bd10e9f5f473 SHA512 d5416d3a28e832adb8497672c77e2fa0224b822271ab0e3ecd1401679383735198e211fa7b6776e9f9e9db24d038f0abb0eae77ad54882ebe8e69c82a71d8754 WHIRLPOOL cce6f6ca2b1e22ca7d47a49d716fe8e74c2fab3bd4a2e7ac5e3f2091750ce2b381cf819c1f7b531d5b6f38d296deb0f46c5f17776e33a2bc6aa2bcb2cd70f3db
+MISC metadata.xml 249 SHA256 584f1dcf51866dc24a9abf7a89bfba0fad11dde81ae1c1b715da41770d233c99 SHA512 76a5a340b13f0053ca3c5e94ed24380ea8d29b45ac8655419e22eaadb1e4a827c04d2e7e36b65145c4964e6526f656618fc6ac144e277ef53cb7373e6239e3c3 WHIRLPOOL 200c07a8bf7c55b11b7936d5cd30e991a511684913334e72f59def66c0ced5fed0b4a8754e2d98bffbab631cb90d4e17fcccc59d5dcc5a8e988f69e47c85518c
diff --git a/app-backup/kbackup/kbackup-1.0.ebuild b/app-backup/kbackup/kbackup-1.0.ebuild
new file mode 100644
index 000000000000..02bc12893b04
--- /dev/null
+++ b/app-backup/kbackup/kbackup-1.0.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+KDE_HANDBOOK="forceoptional"
+inherit kde5
+
+DESCRIPTION="Program that lets you back up any directories or files"
+HOMEPAGE="https://www.linux-apps.com/content/show.php/KBackup?content=44998"
+SRC_URI="http://members.aon.at/m.koller/${P}.tar.bz2"
+
+LICENSE="GPL-2"
+KEYWORDS="amd64 x86"
+IUSE=""
+
+CDEPEND="
+ $(add_frameworks_dep karchive)
+ $(add_frameworks_dep kcompletion)
+ $(add_frameworks_dep kconfig)
+ $(add_frameworks_dep kconfigwidgets)
+ $(add_frameworks_dep kcoreaddons)
+ $(add_frameworks_dep kdelibs4support)
+ $(add_frameworks_dep ki18n)
+ $(add_frameworks_dep kiconthemes)
+ $(add_frameworks_dep kio)
+ $(add_frameworks_dep knotifications)
+ $(add_frameworks_dep kservice)
+ $(add_frameworks_dep kwidgetsaddons)
+ $(add_frameworks_dep kxmlgui)
+ $(add_qt_dep qtgui)
+ $(add_qt_dep qtwidgets)
+"
+DEPEND="${CDEPEND}
+ x11-misc/shared-mime-info
+"
+RDEPEND="${CDEPEND}
+ !app-backup/kbackup:4
+"
diff --git a/app-backup/kbackup/metadata.xml b/app-backup/kbackup/metadata.xml
new file mode 100644
index 000000000000..2fdbf33d963d
--- /dev/null
+++ b/app-backup/kbackup/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 type="project">
+ <email>kde@gentoo.org</email>
+ <name>Gentoo KDE Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-backup/kfoldersync/Manifest b/app-backup/kfoldersync/Manifest
new file mode 100644
index 000000000000..c872a6729819
--- /dev/null
+++ b/app-backup/kfoldersync/Manifest
@@ -0,0 +1,4 @@
+DIST kfoldersync-3.4.1.tar.xz 49308 SHA256 e934bc9778f593ec098549914b8ff571003e5a432e6cf0a7d81bacfccad7ae11 SHA512 b51c005942f0627f8ab3428e860c5f336df0282fd3dc184cac6897755a740ca873241e63828b1af7704b373e0a92de1a4bd9dbe8db3b7a35fbbafc2a509603d0 WHIRLPOOL 30ca31693c6c11aff0228e124e543edc5247c42b042cf547759e3aeb72b92e1557bf835e54d20ea1d6aaeca835f0304b529f9442d408589bf40b876f4a798ff6
+EBUILD kfoldersync-3.4.1.ebuild 865 SHA256 2d4531d23084ea8a79253b87f3f8749e81d88f2a5835ca7bc50ef7433ee81131 SHA512 b390a643bdd2ebc2cc362803a445d53b9d12612ec60c82d932222f8ab75c9a03b5ecb777782780e5d0f1f76cc88e8b4baa4ff156b99d85b57e7c79df2a2b617d WHIRLPOOL 994073901145b9efc12a27d064c4f5f0c9375920fc69368ec256b5aaf60b85508f2f4660dca4197225ddbf47c13d90870909c030b0d37c6acfdf5b7879b5c232
+MISC ChangeLog 2512 SHA256 ecf14685541d8dbf29b37894b12a6e757546b816ec4ed46c1193d807a53cb1a9 SHA512 5bca9e54b125a7ba095fe3d8f1f02a841bf14f99e4739d2cd9c8b7612f7d9c9b1a6676320a48d4f01b7a042ce50e2422ff403c92b1ccd6b34cb7c43fe67053d7 WHIRLPOOL 8b882de106c6e078b6b8841030981fd64f78776e5d7f470343d3ef4e66ba0ddef5b46519caa214c63e1bf9bacfbb901cf8407b6f62b21df0dcb91bf032703711
+MISC metadata.xml 521 SHA256 afe69ba53a8b81246f9f7de3e2595ec7a42d995fe1cca684e536746385314e80 SHA512 23ce04633c404da4e581a1931230ccff3069093280a0e049b2612f881005296c358f4c01d8ab9fcc344a176d143b9dbd87b5218204a7eace67fc2ea55f8b7d61 WHIRLPOOL 9b17f77dc484977213635d4ba1c1ed14a55e07d0f73e4a8bea621e2a790590e1a072503ed0fa9d2ea4649d515199b769d2a7ac0773f987d2fe5fae5834a55836
diff --git a/app-backup/kfoldersync/kfoldersync-3.4.1.ebuild b/app-backup/kfoldersync/kfoldersync-3.4.1.ebuild
new file mode 100644
index 000000000000..9732856b2334
--- /dev/null
+++ b/app-backup/kfoldersync/kfoldersync-3.4.1.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+KDE_GCC_MINIMAL="5.1"
+inherit kde5
+
+DESCRIPTION="Folder synchronization and backup tool based on KDE Frameworks"
+HOMEPAGE="https://www.linux-apps.com/p/1127677/"
+SRC_URI="https://dl.opendesktop.org/api/files/download/id/1485353737/${P}.tar.xz"
+
+LICENSE="GPL-3"
+KEYWORDS="amd64 ~arm x86"
+
+RDEPEND="
+ $(add_frameworks_dep kconfig)
+ $(add_frameworks_dep kconfigwidgets)
+ $(add_frameworks_dep kcoreaddons)
+ $(add_frameworks_dep kdbusaddons)
+ $(add_frameworks_dep ki18n)
+ $(add_frameworks_dep kio)
+ $(add_frameworks_dep kitemviews)
+ $(add_frameworks_dep kwidgetsaddons)
+ $(add_frameworks_dep kwindowsystem)
+ $(add_frameworks_dep kxmlgui)
+ $(add_qt_dep qtconcurrent)
+ $(add_qt_dep qtgui)
+ $(add_qt_dep qtwidgets)
+"
+DEPEND="${RDEPEND}
+ sys-devel/gettext
+"
diff --git a/app-backup/kfoldersync/metadata.xml b/app-backup/kfoldersync/metadata.xml
new file mode 100644
index 000000000000..14c1d660333e
--- /dev/null
+++ b/app-backup/kfoldersync/metadata.xml
@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <upstream>
+ <maintainer status="active">
+ <email>vindex17@outlook.it</email>
+ <name>Lorenzo Porta</name>
+ </maintainer>
+ <changelog>https://build.opensuse.org/package/view_file/home:Vindex17:myapps/kfoldersync/kfoldersync.changes?expand=1</changelog>
+ </upstream>
+ <maintainer type="project">
+ <email>kde@gentoo.org</email>
+ <name>Gentoo KDE Project</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-backup/luckybackup/Manifest b/app-backup/luckybackup/Manifest
new file mode 100644
index 000000000000..2aa7a0b807fa
--- /dev/null
+++ b/app-backup/luckybackup/Manifest
@@ -0,0 +1,5 @@
+DIST luckybackup-0.4.8.tar.gz 5710203 SHA256 68a8a318a6a32a2395fbaada114973f5a4887846c5c6188b38c175215b3116f6 SHA512 48e73f8b5897a09f64f3755dc094ef50031c607ecfca25c238b45ca5bef7f2645081b7c665a9b7c3c3da2f214f91b229a559d723df8ddb6446aa23e68b266076 WHIRLPOOL ccced074661d4a3764bf6e069aff5877c721ef3ef452490dfb17d292c0ee6cb1f12b995eea40134995c1a8ca935472ffcf28585b28d1d4818f06042e512aacec
+EBUILD luckybackup-0.4.8.ebuild 1589 SHA256 7144c03003e9c60327115e835bc006702a83a673eecf3b50c0cbbc9a148215e5 SHA512 0c253be84b2f951c16ce0b98bbb35691798277ef91239261e7c2f89f77113ba54d598ba25d9b1228fc35d9e93547ab1088c7530c83fc5d8ac50d8e2a81900ea3 WHIRLPOOL f978d77ded3c763a54de1611aa36a66c27d4e340aac95f0f91e166f5ae0ca85a44aa36b14589d65994c81b2b59d338e9a40ae2e4e8ae4d5b6ea71bb558f91b3a
+MISC ChangeLog 3114 SHA256 893356a8f9babeb022e44d6acb0be15f5114249fab343091b5af9f34c24f58f2 SHA512 aa3cddc6aa548acc9401dbc111266e1d052bf75e69b68055142b206d6c36b9819643c023db93d757e6a6ccf51fa13618e9cca1cc176483fb6ba735c1308f4401 WHIRLPOOL 6ca781b202ab5a3bf4f726cee3143af8790edc72df98b23e0cb89c0983c0bca3434c000f6a79a5e47885c9e5c87bacb0129e48818d98d2aed1076ca00d700994
+MISC ChangeLog-2015 4108 SHA256 ff881658f7c26327d4efed2ee5e21d06b48c50e4db1fdda689b30b9846cd3829 SHA512 5a9ed1462a2a944f2f25a0dd904f59cdb3fb299a1948dd215ccc8a76763bd4547c294311fd689d61a77af33e01a26aed61c9f28d184bf201c273cc4125ca02b4 WHIRLPOOL bd03ee13ed5fa59e27017b17a6d6f0cfa73dc05fb813829158771b4b266a9c05164e33e4567934973bf57ae51da48b8ea3b46c5da15a23b5a061d8509cd0ce6e
+MISC metadata.xml 328 SHA256 9b5e06a535ed61018ec27b5d7be8033c44e41c4aa9ed6259fe3020d365fd8f6c SHA512 64415b71b483e93f41d75f858bbdbce2c612b5e7c37753237d7c2374b1bb2bd2d30a86d18b32f5ac015e15c57e94553019756d2cc6021c803d25da527929ddeb WHIRLPOOL 5af3b9499350d33e5aba0a8ba2b9f9ee1d046c4cc668f52b18a0a5f1a2335bdd663f4d70e122f166111543b6916834687c4972cd3875e29c86e9cebbcdf77fb1
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..e8d3c5b6247d
--- /dev/null
+++ b/app-backup/luckybackup/luckybackup-0.4.8.ebuild
@@ -0,0 +1,52 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..06fb30b44cd1
--- /dev/null
+++ b/app-backup/luckybackup/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 type="project">
+ <email>qt@gentoo.org</email>
+ <name>Gentoo Qt Project</name>
+ </maintainer>
+ <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..082fbb2e48af
--- /dev/null
+++ b/app-backup/mirdir/Manifest
@@ -0,0 +1,5 @@
+DIST mirdir-2.1-Unix.tar.gz 74002 SHA256 8f0d1e6dc67698eee1fc6e0ef813913be8f8321aa60545d86d87f4c86abd9284 SHA512 d99cbc04a5d99a739c16fea9198d92cd0209fb5fd4fc931eb2af2bb6c0c0ddcec3c34a27269bf108d7ffebcf760c9817088ea2091abbe9d3c4e932724e85c680 WHIRLPOOL 8af107861254b6adf98664df32f57fc00f36f83b62b48ba3e3b2bcb282965a26cee67dd8bc96092372d3ef161129e06d0b19603b215c381d893c63f4fdfe6741
+EBUILD mirdir-2.1-r2.ebuild 532 SHA256 eba1960d82ed6f450cb4d5976e689368b871ebd85c96af478813ea5ab2fb47b4 SHA512 42169eacbd465854f7ae69f0187b5bc1e6dd736d678fce77d2ae56bca1be6312e73fcc0c21e0763f75aa490d18f1139086dcd8c75e68afe8447cabf88d592736 WHIRLPOOL 1cd9f6f76f1404ab9523b3615bc4f0c239c1bb0242e8a7b39338e55692781d20b0fb00052323cde879c590d53206561b6ed6616f262f9966e702eaf0fdb0e6f4
+MISC ChangeLog 2177 SHA256 edb57732882ef497e211632effbe464badce6dc7d4702cadd311734631be6427 SHA512 196134027a02b9d3de4df840fc6d6f35ff5d3eb6db1deb6d5b18ad43785e69ba66633304a3dcf29e69412d0953163eba708a4a431bd9e9ea629092e6fc87ab7b WHIRLPOOL 9c5b455b881691e0d7880e7b2c1df909db1d5c6866d8969062e7dcd9dc12cb83aceca101729004be39ca3eff5c7b3afa5476f63f1ca3e7a04575553b22752ff4
+MISC ChangeLog-2015 1599 SHA256 9be7e42c0e126e1c59a1e79f6bbefe50f4130bbef0d0a2b030b79e3a6a98fe2f SHA512 bb977d77f5c40454cb1b4787579875bfc39fed924a97c2403382acd60eb88ea53e27ec31374cf6bb16e5a7ecaa385a7af18137b1ad54d44080775e57da441e7d WHIRLPOOL 334177ca752a4a58d432463216063df765501ee1405064cde5bcd95da77c7aeff5b5967fd73ea3bc0f1b082451ef714d54433c5ae476ebce9f4bfa6b33fe6577
+MISC metadata.xml 336 SHA256 51ca9a8b7a13fa093d53b5582300ec82dcccf5e4073263fb40837251c82f384c SHA512 61218d2351264fd28d3f17040748268825b5a3b21f48c38bd0865b5e4c743783d74ea21617c5d3c92d205ff044b3b5e0aa09b7a30d48fd37cb675450a6c46831 WHIRLPOOL cf5829435e53033c108f8182ffa698f957d3e923171add1a3bc990fa523cdd7404906162b6fff296a998f61232ed45fd7194246860ddb93ad0e1b750429cd6e4
diff --git a/app-backup/mirdir/metadata.xml b/app-backup/mirdir/metadata.xml
new file mode 100644
index 000000000000..5f01d58eb176
--- /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 type="person">
+ <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-r2.ebuild b/app-backup/mirdir/mirdir-2.1-r2.ebuild
new file mode 100644
index 000000000000..97c44d1b6321
--- /dev/null
+++ b/app-backup/mirdir/mirdir-2.1-r2.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="Synchronize two directory trees in a fast way"
+HOMEPAGE="https://sourceforge.net/projects/mirdir/"
+SRC_URI="mirror://sourceforge/${PN}/${P}-Unix.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+S="${WORKDIR}/${P}-UNIX"
+
+src_prepare() {
+ default
+ # Disable stripping, bug 239939
+ sed -i -e 's:strip .*::' Makefile.in || die
+}
+
+src_install() {
+ dobin "bin/${PN}"
+ doman "${PN}.1"
+ einstalldocs
+}
diff --git a/app-backup/mylvmbackup/Manifest b/app-backup/mylvmbackup/Manifest
new file mode 100644
index 000000000000..2195178928a7
--- /dev/null
+++ b/app-backup/mylvmbackup/Manifest
@@ -0,0 +1,5 @@
+DIST mylvmbackup-0.14.tar.gz 57338 SHA256 a979082f525f5b0b44bd09169938f2b5d8394fc403fc8b6a6e8b809d7c1a5724 SHA512 e61f0c4e24b5482b2f7f4213e810a32776d1b39f589e27c309a4940943f3a9519041e53cf85a089a94100e2cc81715a033682bbe071220d755c14211b4177bfa WHIRLPOOL 004f32793e69b2c34f940b5ef91302468cafce76618f5d6f460bcaa37d0203200ee707bece883b130adb7cc8aecfc5b2c3a389051020e7465d6ebf1be37b67e1
+EBUILD mylvmbackup-0.14.ebuild 820 SHA256 85978a4d4152434e0f718e66a27894ad6c6e1cdbb1d3dc3daff0bbf339521af3 SHA512 3a90bd402c6c762516354c2465b8d2d399b5c40e43dec703970f93ec8fa2425c58b93d228556df027f97bf8e1a6d07b0deac60860e183250c04e6dc99d8e7c4b WHIRLPOOL b752879454536f06144b7ae7b59fd57edc29c485f6dd60556d4f7f0d60b0ee84cbe9d51ec91b41be8f4c159f9b542125f7e6797c0a03542b0710f7d71f909d61
+MISC ChangeLog 2708 SHA256 fe3b545c038ff4e2858c21b84c79cc7886675fcccfd32ee7aab78dfcbf72fb8f SHA512 201a9b0ecd895b4a116ee02829d0e60210adf0501083e59c94a770c5297f5a2e3072653c5e70a5ba3ca39e865a541950d3b1f6ebc461870db136c88067016ddf WHIRLPOOL 8251181dbf555333a89db0ef43bac120769ef1d356178456f165801b99853e8cc4c2d9c048963d559af45c6bbe6d7cfdb2eb6b03c02e38e39749fe02d6896ca9
+MISC ChangeLog-2015 2548 SHA256 69b6c96b925da2a6893cae630716e11725c550e3c3f097722d9de803a579950a SHA512 102bca1db95fae5dae49a9c1a1410a904aa0eefbcf0ef5463c8220bc57dcbdc905e90eb99ed6a38f6667afb9397f813f7832cbb00e1efbaf838a2da6caf4979f WHIRLPOOL 3589cbb09e590d1d6c869ab2537deeba3bd22d4d8c43679a97d047b93addf70d81d17a15be62d74286c195d7f69f7d61e98267fd3a5edbeaa05ba55ffd6319e9
+MISC metadata.xml 298 SHA256 325923f06433635859419860f532fc6b1b00cf86b04e5d9e8c32d7ec3d2ec353 SHA512 4d3effe7eeee87ea1ceecebf4f29dcd62e520e3c081ab58926441be0841a70f4065fa3031744c337d00faf20b1367e4d951d4443a4c4de76a7ef1f74c4f43923 WHIRLPOOL 397eeb23a205c008568497a599298e4cf9e9677e4ae56b49e653937eacaa3de4d9e1b06b07ee93682d0ce837d79e5853d3b35e42a8692bccc17b724688e5a491
diff --git a/app-backup/mylvmbackup/metadata.xml b/app-backup/mylvmbackup/metadata.xml
new file mode 100644
index 000000000000..be45702653ac
--- /dev/null
+++ b/app-backup/mylvmbackup/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>robbat2@gentoo.org</email>
+ <description>Primary maintainer</description>
+ <name>Robin H. Johnson</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-backup/mylvmbackup/mylvmbackup-0.14.ebuild b/app-backup/mylvmbackup/mylvmbackup-0.14.ebuild
new file mode 100644
index 000000000000..0c9c3e32e542
--- /dev/null
+++ b/app-backup/mylvmbackup/mylvmbackup-0.14.ebuild
@@ -0,0 +1,31 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+DESCRIPTION="Tool for 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..d700de23956b
--- /dev/null
+++ b/app-backup/obnam/Manifest
@@ -0,0 +1,10 @@
+AUX obnam.conf 2366 SHA256 2a609d1243d5ea3e063a413e78421ede02eda5cbbfd984c211f78ff0239cb5bb SHA512 7fdeb7c51e3ee80c60cf857117ad9571f38a4657fb8e3f95767e6fa0d0eae9b31cd54d5e2e8aa93e1e5255bd2c116c462594b5cd01f0efc0059d2d9ee07efc1c WHIRLPOOL 9766794181bed1e6aef1b15b5be69412dada2d075292c177a4edfa550d29612b8291e2f1b6170ee1d61c735d217ef8d94d3a2fb5b78271f1212e186af1b622de
+DIST obnam-1.19.1.tar.gz 372739 SHA256 e4210d12e0126f14bc788ccb0c443362eb5f9419ab7ae84a22ff108d269e1819 SHA512 9ed9632eaa23fec5cc1fb39ea51825480cc9b39109fb3c7e6135ef90156d15e3555aaea910714ede94d93fc897ca04bfefae0487629fbf9fe149c5a0ddc74a5e WHIRLPOOL 04b1d072a31de70712438a2314e86c5cdd6c3bc49f655209876834e21f746770a63094a7d48b4be0e17ba928fb3b172787c31bb8dc17bea88d293ec631e6e0ab
+DIST obnam-1.21.tar.gz 397609 SHA256 d255130cc12deb0195b50667b4aec0c398e178423a884e0a3f4272c1024e2e42 SHA512 65b7f66a1e5105a2a8853a51e703c74ac2747e8dad12a8fcd1007ed2d02a7e15695c71b773b6966fb59ab4c013d1957dce9464fd25ffce61f38aacf009b5ab1a WHIRLPOOL 01f3e84799738eb68360b7140a53bdcb030184e8734a53e3566f477b3f5a473a00fd05d3748a2379e5c241f9a79912092e9015042c09a384a8e52e4bf31c526c
+DIST obnam-1.22.tar.xz 299312 SHA256 d9d8281c8e95905fdd630dbb5f8c65d81f07d87d1d4106683a92c67ca681e958 SHA512 ff0b457c82678336e5ac7d8b9abbbdf33ee6283e584f3b2c2ab81e3dfda1feb2869d4ddbba9eeab1b8ef62b91770cd2358a5b54d1813d676177c4ebe3794fbca WHIRLPOOL 117000a6dc9402ab1d8d349a0cc89867eda199d5df641ccee5c4b7176d167a4e245850cb66570db948af204d3f39b3e7cd257cab4399e61db108baae9f9b265e
+EBUILD obnam-1.19.1.ebuild 976 SHA256 f842c0707291e3e1ff94d0817f24c651e8623ce8e3fced9929c8502c1fdf2d0c SHA512 e31af43a164a96b81f23e2a375d66077ac1ac39e158f8a82d46f32cc0941704dbd40317f623439db2dbad9f5c4bb8a142a8078649b142cc797a1196609e63822 WHIRLPOOL 72d84a637a2daf7da03c47a7b087328ca83364f4b84bbf5ae1237c5b8a103787d84c127670ff99463e09953c4a195656e1715de1dc16d5aa70aa4c63ac910898
+EBUILD obnam-1.21.ebuild 976 SHA256 f842c0707291e3e1ff94d0817f24c651e8623ce8e3fced9929c8502c1fdf2d0c SHA512 e31af43a164a96b81f23e2a375d66077ac1ac39e158f8a82d46f32cc0941704dbd40317f623439db2dbad9f5c4bb8a142a8078649b142cc797a1196609e63822 WHIRLPOOL 72d84a637a2daf7da03c47a7b087328ca83364f4b84bbf5ae1237c5b8a103787d84c127670ff99463e09953c4a195656e1715de1dc16d5aa70aa4c63ac910898
+EBUILD obnam-1.22.ebuild 976 SHA256 4be7691aaf225f942851d09c02d84846fb20b54a97c0b0a1a77b1ca017075117 SHA512 7f9d3eff643747e22ec172661e5fb624d6ad0c99ce65a1c80b11d1e58feac270629c338884f3a9a566307bfa30c03d1b86699fb70d9f99434875eb9ce66210fb WHIRLPOOL 423600eda42a907461ca93c12e3e716629bbcd22c3d289f0d8f4425defe9d5fec4199dbe1afcf659f639d9c7524d34e3ecdafdc8836dd00623bc4bb1fcfe82d2
+MISC ChangeLog 5044 SHA256 bcdcbcf5bc9c4ce13c437ca9ac069188c08d2fa634d2d8b6b41ee82df4690413 SHA512 0395bc2f83a8494fce0db84168c109847867afea1e929148f8d5104ecfc18a00baf6d250fcb9d1e1b45dcacc1f42bd2a9210b9baa47a902f5ecd3d5ec5eedd0f WHIRLPOOL d284f3f6fc907aa762dbced8901f542176ee267fd7f9a51ad3b2ba74e943fc7d4d518a08f91da89c7513bfc4e0f9618ce480dc2cbd9acd45a7e48f8745718f2d
+MISC ChangeLog-2015 4826 SHA256 bb45fc01948c13b57963aaf62611476c54d9448e0b5664a0802063f35721ff75 SHA512 d3c74142bd1e915769dd585f3c987897b48d8dc6ebdfd4d1c8759b446704fe0c277a5d82b3919262ef86a83a62f3a32f65880d33e5a4e3a4cdacf4f9b52ea4c3 WHIRLPOOL efdde003fc50bd2996d6d33feaa8d56ed858ce0e6087c9277f1f742c4624a84249f219ba9294595ed44cc06ed2911f24086619999df237deab2dd89dab766a74
+MISC metadata.xml 250 SHA256 dc7996b965794cc38ecefc226a6b05400ff49c69553249c3d0ac69fd277b7906 SHA512 924271cfb32ceafc4134e19b53fbeed96f2e9056addc3c2cbdec28890254abf5f0714979a3ab698ca046e41ef5c2cca2932350830bd8bd3a8e214d99123c12de WHIRLPOOL e00ced8aee67f075273a4c498a4c69671eef224f7b41ef8c194ae72404c242bb93bf31a48fcf94065ab6fe8afbfb667238deba4ea4eb9bec406ace4bfcdcdc8c
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..ea6b59e79026
--- /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 type="person">
+ <email>mschiff@gentoo.org</email>
+ <name>Marc Schiffbauer</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-backup/obnam/obnam-1.19.1.ebuild b/app-backup/obnam/obnam-1.19.1.ebuild
new file mode 100644
index 000000000000..a429bf8f74ba
--- /dev/null
+++ b/app-backup/obnam/obnam-1.19.1.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="threads"
+
+inherit distutils-r1
+
+DESCRIPTION="A backup program that supports encryption and deduplication"
+HOMEPAGE="http://obnam.org/"
+SRC_URI="http://git.liw.fi/cgi-bin/cgit/cgit.cgi/obnam/snapshot/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="${PYTHON_DEPS}
+ dev-python/cliapp[${PYTHON_USEDEP}]
+ dev-python/fuse-python[${PYTHON_USEDEP}]
+ dev-python/larch[${PYTHON_USEDEP}]
+ dev-python/paramiko[${PYTHON_USEDEP}]
+ dev-python/pyyaml[${PYTHON_USEDEP}]
+ dev-python/tracing[${PYTHON_USEDEP}]
+ dev-python/ttystatus[${PYTHON_USEDEP}]
+ "
+RDEPEND="${DEPEND}"
+
+src_compile() {
+ addwrite /proc/self/comm
+ distutils-r1_src_compile
+}
+
+src_install() {
+ distutils-r1_src_install
+ find "${D}" -name "obnam-viewprof*" -delete
+ insinto /etc
+ doins "${FILESDIR}"/obnam.conf
+ keepdir /var/log/obnam
+}
diff --git a/app-backup/obnam/obnam-1.21.ebuild b/app-backup/obnam/obnam-1.21.ebuild
new file mode 100644
index 000000000000..a429bf8f74ba
--- /dev/null
+++ b/app-backup/obnam/obnam-1.21.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="threads"
+
+inherit distutils-r1
+
+DESCRIPTION="A backup program that supports encryption and deduplication"
+HOMEPAGE="http://obnam.org/"
+SRC_URI="http://git.liw.fi/cgi-bin/cgit/cgit.cgi/obnam/snapshot/${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="${PYTHON_DEPS}
+ dev-python/cliapp[${PYTHON_USEDEP}]
+ dev-python/fuse-python[${PYTHON_USEDEP}]
+ dev-python/larch[${PYTHON_USEDEP}]
+ dev-python/paramiko[${PYTHON_USEDEP}]
+ dev-python/pyyaml[${PYTHON_USEDEP}]
+ dev-python/tracing[${PYTHON_USEDEP}]
+ dev-python/ttystatus[${PYTHON_USEDEP}]
+ "
+RDEPEND="${DEPEND}"
+
+src_compile() {
+ addwrite /proc/self/comm
+ distutils-r1_src_compile
+}
+
+src_install() {
+ distutils-r1_src_install
+ find "${D}" -name "obnam-viewprof*" -delete
+ insinto /etc
+ doins "${FILESDIR}"/obnam.conf
+ keepdir /var/log/obnam
+}
diff --git a/app-backup/obnam/obnam-1.22.ebuild b/app-backup/obnam/obnam-1.22.ebuild
new file mode 100644
index 000000000000..64d672377742
--- /dev/null
+++ b/app-backup/obnam/obnam-1.22.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python2_7 )
+PYTHON_REQ_USE="threads"
+
+inherit distutils-r1
+
+DESCRIPTION="A backup program that supports encryption and deduplication"
+HOMEPAGE="http://obnam.org/"
+SRC_URI="http://git.liw.fi/cgi-bin/cgit/cgit.cgi/obnam/snapshot/${P}.tar.xz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND="${PYTHON_DEPS}
+ dev-python/cliapp[${PYTHON_USEDEP}]
+ dev-python/fuse-python[${PYTHON_USEDEP}]
+ dev-python/larch[${PYTHON_USEDEP}]
+ dev-python/paramiko[${PYTHON_USEDEP}]
+ dev-python/pyyaml[${PYTHON_USEDEP}]
+ dev-python/tracing[${PYTHON_USEDEP}]
+ dev-python/ttystatus[${PYTHON_USEDEP}]
+ "
+RDEPEND="${DEPEND}"
+
+src_compile() {
+ addwrite /proc/self/comm
+ distutils-r1_src_compile
+}
+
+src_install() {
+ distutils-r1_src_install
+ find "${D}" -name "obnam-viewprof*" -delete
+ insinto /etc
+ doins "${FILESDIR}"/obnam.conf
+ keepdir /var/log/obnam
+}
diff --git a/app-backup/pdumpfs/Manifest b/app-backup/pdumpfs/Manifest
new file mode 100644
index 000000000000..1b92a16146a2
--- /dev/null
+++ b/app-backup/pdumpfs/Manifest
@@ -0,0 +1,7 @@
+AUX pdumpfs-in.patch 977 SHA256 159ed9d693852cc8007d93b96c86c53cbda23f0f3426c0adbfc8477d3a851f1a SHA512 3d45d5ecbf2e3af71ae80de28c8cedc46b5ea2f7d0e9f6ea58c4154e477db8375f21587ebc4cade04b353e5a0552620790a0f8ea13d9f8151b4236e8e2489ee9 WHIRLPOOL 91cfcc2f98b7a6f7607692d03e831701d1a67aa3c458ce9063f082d249d56f3be8ca1825add9f059f2eb79f8e345a3b5f90fb3a2c4b2cdfdc69f0740d82bac4e
+AUX pdumpfs-test.patch 392 SHA256 dd3ec955498f09a7e11ea1f115d8e0011d4034dac9fea6faf6b4329d55dc3c0b SHA512 b7647f51acb30cfc86e80cf5eb5e6d7fa84c6b3ba3c1e6246468baca7835bd08a6d3f3e70dbb55a2c6ef0ffe67b4d10dd78b5a4673ff636c8da74e64f7b827fa WHIRLPOOL 748e477bee525d6e49f2822ed69bc70cf8f5bd643235c555f93b92fb3ecb89aa55ac8a39486443b4923c03e9480d05a869f67af6b19003536bff412f872235c2
+DIST pdumpfs-1.3.tar.gz 68210 SHA256 5f50158517f263370d59f6c794a1d45e947bb8c17be23e18a8f293ee13557377 SHA512 1299676982f1981aa55f0601f361ec24ac119067f5ecbbeebcf9f41ccd69df2f18a07ae5a6e77f30ca7606ee49ecfa516d6066a07c1edbb4d4796f34f02508c3 WHIRLPOOL 255ac184759f29b416315f47d4d9ffd5b6c84e6ee28192ce47601937dc05fd48db5f59e30e6d4f4c4c789e4bef0c4ee81dff76cf60bbe338560af42ae1278bf4
+EBUILD pdumpfs-1.3-r2.ebuild 886 SHA256 104c32ca12a44976ace99cab098722672e77977ebb187a0beddaf0e0bd986610 SHA512 dccd98ec4b5524c5a960ec5d38d4669f0e15346e0bb65bb3e14fde696b43f45cbbe1882fbda5922edd241a8f7b0c49161f362c2e6435ecec9fc6fffe127ee52d WHIRLPOOL 7c05bc969a87e10e4f54d1e6819f8b7372e9f4d95ca5d302a93c742dc84f19287880340ebedaabc5f48618dffd019948506e45e3c2fbd79edd7fa86f200efcef
+MISC ChangeLog 2932 SHA256 d1ea09d921ce71b0d95042298fd2a818ff37bc5a814b75bd27932c4633e5b634 SHA512 2ce153e405d297506ecb1053ba2a3674cadda31fda8ce827c88a11764c1e56224dd526178cc6862e074555725038a9e248680dff5393d9f352ccc7054ff00cc3 WHIRLPOOL b921671827838224f06edc5a22aeadd4e7d498e03ea9e1159f503b697c2f7dbab6b78f978b52ff55c39c4f44e0960985fa3b74176ab027d70ae887841f6ef4a2
+MISC ChangeLog-2015 3668 SHA256 0b52aadedf850df229c530fcc6d472362efa52b8dacae1d53db0eb184e9021cd SHA512 cc519298915c6cab6380d231e62cfd61731751d901376ef679c273165a95654c4c624da883197b205945f1f2a42b4296e2998443c6ed1e3e99e7c3a254ca8fa4 WHIRLPOOL eab0c1757905346ff32d6bec529abab60bf4cd076483fb47780ef77ee4dfc9a52f9ac4bc046c5694502141fd6b596b665e46067280e7cba05dde10612180b4f0
+MISC metadata.xml 735 SHA256 2b181e8eb97b2bf9d08e27070070dabe4044fea5eadc0f421f7323797f59d1a9 SHA512 7f472db06b11954125d74f2e94509928478e49277b8d7e658068b85717d9eb5eaf498ea4516b55e266371ddcdbdac8d7b5f5a5ad202f7eea5bc3cb412f694603 WHIRLPOOL e5a5ebc8a618a013726b1ac845116c6e77c85eb6510baf078130f7fea95a641ebea08be376bfa6bc5957208313fe08a6c2ebb93c21420910837b24529d7b4fa6
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..e81c497b6c1c
--- /dev/null
+++ b/app-backup/pdumpfs/metadata.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>lmiphay@gmail.com</email>
+ <name>Paul Healy</name>
+ <description>Proxied maintainer; set to assignee in all bugs</description>
+ </maintainer>
+<maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</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..527828394d33
--- /dev/null
+++ b/app-backup/pdumpfs/pdumpfs-1.3-r2.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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="l10n_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 l10n_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..94c306700e83
--- /dev/null
+++ b/app-backup/qt4-fsarchiver/Manifest
@@ -0,0 +1,7 @@
+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
+EBUILD qt4-fsarchiver-0.6.19.6.ebuild 1353 SHA256 63f9a1b137e2003b0a24ec73b8545dd5b1e6056d76647e85b5c6e182dd399ba7 SHA512 171b00f6524743d1419b01fbefa9ddda28b384eb0138b17d1e14981acf0d9cac328d1b2def766ec3b877ffffed9bebbe330d7faa178a1258191132f05fdbf268 WHIRLPOOL d4a53c66a1a0b6a5c0ea5ffedd0f8f09c573f03fa04164ee09d615ea6b8629ced4e77c07e85c4471087b1baa5dbf8998534e22c06613cc88f6e99f2baf5e780d
+EBUILD qt4-fsarchiver-0.6.19.7.ebuild 1355 SHA256 6fe58e9b471adbc2593a357a4d5b174d2af1a7f01a69a0d4daeaa8529e920fb0 SHA512 a74bf8682e9eb6bfd7706abeaea8f627cd3e3222550bc5ce4243da3fee1107836f1dcd4b02271ddef6f665a708e0dfeacdfa847356a292f06eedb6cc53814909 WHIRLPOOL 08c2d5837fe8eecacf433480f089dbb9c3982bf3d678c120afc464cab61a9fa8458e2386445d90d964002a1c35a96b9e6fa9098204b8c525ae99878af69db7a2
+MISC ChangeLog 2955 SHA256 38ba810e831def655bff7efe8ec6a440d3b4bc2ed9f35829a9febe8f1305dddf SHA512 b5f8b03bb3697978831bc09a2deb37b49bc22dab41ae23d02aeaa360198bd7fd3e896c6d479aa2788accd32b1cd43473a186d4f15435ad5b561f3af081086ab6 WHIRLPOOL 6d67240de908bc586e681c0f2ce16b3b9b8d4dfa05202df4a0940db2fb56a8e5ac14edecdcd006a98d5990762e746fd22fab7de84969e511d74ee967bbf85fbb
+MISC ChangeLog-2015 1419 SHA256 d046114d0b15e62085baceb7951d094959ce84cd87f5e113a3d3b4735aea01fc SHA512 ebe426372a564da13a0de6d2377ee1bd157e92e60bc10fae43689ea0dbda30571b7b7dfa42583d206f4630c321e03a2a46f22bcfa4bc4e40621d19d0851bff76 WHIRLPOOL ade3d9f3d9aafa7a4bae36fac1dfadad2a6ecae6153821df6ed49356557a12ad3c012d5be6fa16226dd367a2cc49e7337a3d27f76f992113e43930a66befbb88
+MISC metadata.xml 251 SHA256 b2fb1f51cd9d48a0ec448003fecbf5d287a0962f71b423223c1181fab52a979f SHA512 25931431accd5a4d77880d3813d59919cd3e14ec8eae8ff1a835e40ad5893106be09b22c4107a7164f0b4fe691a39ab001793609e3c598f14d38d5714c3bc601 WHIRLPOOL 0af6f8584a24d14315afbabd7acecb40f5293633ad02c2ad12efef49d03c11071fb003fc20b404a531d7cc46fecd2e51ba7d521829bcce126dcb806fbdb792a1
diff --git a/app-backup/qt4-fsarchiver/metadata.xml b/app-backup/qt4-fsarchiver/metadata.xml
new file mode 100644
index 000000000000..01d299d313ad
--- /dev/null
+++ b/app-backup/qt4-fsarchiver/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-needed -->
+ <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..3a97f35e85a4
--- /dev/null
+++ b/app-backup/qt4-fsarchiver/qt4-fsarchiver-0.6.19.6.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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 " net-fs/sshfs"
+ 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..400d49c9fbe3
--- /dev/null
+++ b/app-backup/qt4-fsarchiver/qt4-fsarchiver-0.6.19.7.ebuild
@@ -0,0 +1,65 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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 " net-fs/sshfs"
+ elog " sys-fs/xfsprogs"
+}
diff --git a/app-backup/rdedup/Manifest b/app-backup/rdedup/Manifest
new file mode 100644
index 000000000000..4e80b624a831
--- /dev/null
+++ b/app-backup/rdedup/Manifest
@@ -0,0 +1,34 @@
+DIST aho-corasick-0.5.3.crate 252052 SHA256 ca972c2ea5f742bfce5687b9aef75506a764f61d37f8f649047846a9686ddb66 SHA512 cc297b4882b869919edf9023ee2bd7100eb48709f6e7076fd26d1701dab3d8aa2cfb03752a764877cd92177ab7a4ce3dcdae76d16965eca2ff53667832afda31 WHIRLPOOL 93651414398a02de849aa0b1dd8319678e20df385643422da751e38388afe60ae305f197a68cf2b9d1d6e39ef56c54979b6290a2c82555eb811839acffb72531
+DIST argparse-0.2.1.crate 18969 SHA256 37bb99f5e39ee8b23b6e227f5b8f024207e8616f44aa4b8c76ecd828011667ef SHA512 f12aea4ddc0d619d40194f8d3db3c4d952521d1dfad6bc21b5b7cf8db91c30f70c5259bd6a0cf40d521e4d0cbaf3e4d59ae0bd40554772c79a4b200ebcfa73fe WHIRLPOOL 84ea81a44af8490c5aa135d51f026475e276df2d0d90d7d15aa6a5f924bea2b0a70788c8db3533a92c284eeb76d2c84b5d5172380444aaab485b2cdf90434585
+DIST env_logger-0.3.5.crate 5950 SHA256 15abd780e45b3ea4f76b4e9a26ff4843258dd8a3eed2775a0e7368c2e7936c2f SHA512 9650ba32bfaa8c013c04cf2eb68378874fed53a178332151bec8d7ac832ab2884f91fdc39c372d3c1677954b073212654fb570da1f3c708e4d5a25910d6c1181 WHIRLPOOL 21b4c81d96e5a8ccbda8491df42db9144acf41f4a25b1f510d8af7d46c931a28e089615692d46d9eb73c511a9cacfb59a15a5647ed1eea6d17ef9a973d99f5a5
+DIST flate2-0.2.17.crate 47795 SHA256 d4e4d0c15ef829cbc1b7cda651746be19cceeb238be7b1049227b14891df9e25 SHA512 609f2e3c71e8889ccc3682fa62ecf52a068c1e61040b2e0eebb7b8de7784dd595592bdef34c7a03e0587cb3e4c2e2d8de88eec113122a222676cd4fb7d8cc775 WHIRLPOOL d8321ce561abfae57bf0a05afc6e2ba9b5b6d3943a0225aebd31c928d4bf346ecdd125a241f3444b2b35bc36f73df28e3d20956122a89c54e0d1ffc9e143aef0
+DIST fs2-0.2.5.crate 12661 SHA256 bcd414e5a1a979b931bb92f41b7a54106d3f6d2e6c253e9ce943b7cd468251ef SHA512 733598cf49f8725a98b91f65d1243dd0d078f129df62f68e8fb9ecd4cc58179627038586ab505d31a82932e7ee196e99f4967f5f82d08b90e3c7927a19006447 WHIRLPOOL 6f79f61162a4a22e566ba159b9d1adbb6928949b1e96968d533986eac1a0a656297027bbabde89ff0913e248e68dbf4f2dcb0ea14b29acc615005daee6c9f464
+DIST gcc-0.3.43.crate 26087 SHA256 c07c758b972368e703a562686adb39125707cc1ef3399da8c019fc6c2498a75d SHA512 27dd847b9466140d8cdd9bd4ac466d2ba26a93f858fcdcc1d58a59b08207f34f283004512faa53c4d8cf9632e0e9199c0f42db6df1db9a8d6b96e72e074af5e3 WHIRLPOOL 2cc832037fae5f5b93b772e926a4a68b8e48fb45cf278c6499e669f37813374208f0ac08e8da2315af80d2d82fdd1784da409a2bd6d0dbef16fe0c215b8b8b70
+DIST kernel32-sys-0.2.2.crate 24537 SHA256 7507624b29483431c0ba2d82aece8ca6cdba9382bff4ddd0f7490560c056098d SHA512 682bc7c629aefd035966a2873518fd60719121cca7d63d89d6c97ff5306f24d8b5055a3c91b4eedaec22b1d5dd3fb8b48ff7341a05bbd72d86e06c422dab473b WHIRLPOOL 036baa6611f13d76692a5c032e7e8e8b5a82e12bdf13d5a2cdcf4d33020b003c941331f0c8aa774e7f7cc7b36ad7403bb2cbdecb739d7645cff66aeecd59b09f
+DIST libc-0.2.20.crate 121083 SHA256 684f330624d8c3784fb9558ca46c4ce488073a8d22450415c5eb4f4cfb0d11b5 SHA512 fb86e11f8317881c3e804e186ad9e2b7aee0ad4d0965ea67729ba74682e246e70bc2d283b170b6ab451c9907ee63fa6632a7211b2342f03e2ecb800fcaafd696 WHIRLPOOL 66306b206e7aaa510f86a2852c3a964a086d68c139b94ce154962392d034081a5d8efad5927cad532f8407550f76d74327d51333ec6b0d3d6d30d31d684fd2b6
+DIST libsodium-sys-0.0.12.crate 13527 SHA256 44e9986c330611ccd26ea74e502c70e5ebab2874c4c23f2f5f3c5a6ed3fbfbc6 SHA512 9370a2b69fe6b0b1c69d07ebbbbff0f5677e8575bb4be43356c0d7bd6c64e7553396f3626e06e8a48a2ff03823bb164f18d768bd49732a5f7ab00168126dfdf1 WHIRLPOOL 7c480ce78204d32ff37279c6385b80b334259c266d1790fa66b4d77bf1246091972d295cea3ec34a3b105ef29bbf2319995b78bdda3c92b8f1d30d3bdd0896e7
+DIST log-0.3.6.crate 16110 SHA256 ab83497bf8bf4ed2a74259c1c802351fcd67a65baa86394b6ba73c36f4838054 SHA512 f2e5526a2613f70301a607cbc79213a946a6039f85473f9de28ceb2f3b464be61a584f34ca6381e077d8bf6ac751c93011087d1723649c0d7722281f1a2b7174 WHIRLPOOL 18ef70829fae28a19e545479f4fd6f181d5dbd67ea17dadfa5b8ecdb8437c04f07036de5c2d5421bec4f783ba9b6390e833d624506bdbe99d1b0c47624082bab
+DIST memchr-0.1.11.crate 6977 SHA256 d8b629fb514376c675b98c1421e80b151d3817ac42d7c667717d282761418d20 SHA512 96bbdb69913966326acba4bb82b8dfe0516edba225ac38b3355d60a2337ca620807750682fff3de7a2a38a7f70f0db7d8c1638701aacca7ab4c14098ba0fbcab WHIRLPOOL af0984d7e8084cc1aef94e486506a0fad9ec81d7be505233343e9fdad2ef0627a4d33bf99c2923959f9604326713ea24a01e2581aaa91249574b6c6d1a6d01a3
+DIST miniz-sys-0.1.9.crate 53242 SHA256 28eaee17666671fa872e567547e8428e83308ebe5808cdf6a0e28397dbe2c726 SHA512 130d872d25ca30937cbe34d93c6c3be359b4613c192b2dd8c542c0f3c2893c15176afc84da8e9077368647bdc0cc584aa995b3cbc8927b5e7de059b6135be709 WHIRLPOOL f2ec3f08804da08fa60ced1810fbcf6108c9ab54442ca39791d5723cf3c97224ff7927d9258b0347b535086b06972137df2322283960849d99a358b01781000f
+DIST pkg-config-0.3.9.crate 11055 SHA256 3a8b4c6b8165cd1a1cd4b9b120978131389f64bdaf456435caa41e630edba903 SHA512 084e18e8c91ba6a1b305624d16c06f8f7df994c93cf86ccf443bc8f2669368a15bfa9875bc4f2933e94aa268e15fef783235c98558ba596cfc79dbd31f0b69d1 WHIRLPOOL 6073177f5b36748407371a8199d6b441c2baef4638157541da2aa370ab249a06ce72e7aba01946f9d44c81f1391e34958b3bf42a64f150b3b7d5148d93026a12
+DIST rand-0.3.15.crate 55312 SHA256 022e0636ec2519ddae48154b028864bdce4eaf7d35226ab8e65c611be97b189d SHA512 4c812b1f742adf94fe45c806fd66a360a2490e474db6cc1d13acf4101fd63072429f1b50aa84b51cc742c1624a871a588769f4c12faa775f6f275a028fe96633 WHIRLPOOL 069746a66bf09e20e8fa435c6f462f7c19468480adc42bb4802450eed93db38d4e530e647a4a0b6444ca3b15fc3cc2f470f9649b15c026cbcdfd2a44d491343c
+DIST rdedup-1.0.2.crate 7161 SHA256 8e697bd830b245a57c6227a2aeae2f46f573d2ed15fd0b73d21348ed7e1d1794 SHA512 f3999b6c981b52d237288c77c6bbb7b86a6531c0753d660d26cc6cfe540037c57e06f626315d1294b2fd312f0782494f273242b295a4ab9bc79a6a4de0cb8562 WHIRLPOOL deb4df2f56f424d07454ef57b27e07f819f0d9921f81d5fd35b49c648e0e583ea741ece604bb696b87d48b55e198c27e0491f622ed264c7c0bfbb1b913687841
+DIST rdedup-lib-1.0.2.crate 12851 SHA256 f31b3092dfcf0d7e44e5d8e2cae5cc8c25d559f21e592248cddd78be39f1a67c SHA512 563376d7423facd4831a87a444f57c597d909e3cee7c53cc5420ddf4dcc512d789d6c31da0d3c9edc8ce736bab71519424333ec6a4ab5c86ce4046a80b5d9703 WHIRLPOOL 7bb97f9174ef0e1a06cfcbb60a7fc96cfc6fc5e0cdc9a49405a564087c2ce66f98a2eb26153af0cee6f3df5622eca5fbcb91f127d97c74056a4cf86fdf3b1028
+DIST redox_syscall-0.1.16.crate 11598 SHA256 8dd35cc9a8bdec562c757e3d43c1526b5c6d2653e23e2315065bc25556550753 SHA512 16b2a06549dbfd778e1bcbde2b1aa33951bc925d34cc910898563e400ca107221f32e022a131089831370aa7c056da1717ebb6f0947e2d8722bb443388462f2f WHIRLPOOL b211a90245f0237a778a4693532cbc4b69818ebd34dcfafe2488a4df962aa8cedcbffca210883632b48c2450d78a15e810f23a9f3b0831befdeff7ecbd117402
+DIST regex-0.1.80.crate 185806 SHA256 4fd4ace6a8cf7860714a2c2280d6c1f7e6a413486c13298bbc86fd3da019402f SHA512 a160d80f4ac9f1e17d1debe163584f2c6c2ba7a8c49c34a7e11ed945614fe1923714880515a31a1501566e254edad23be40307b452f9216915fa03d3dfaebda0 WHIRLPOOL d49c2d648518ced6e1c2a115c5066351be0c68913187259d0e233cab3061aa2673ea8099d2595f2cf038b8103549ba781cbc28b0c798ed25338469e45fbe8c2b
+DIST regex-syntax-0.3.9.crate 117427 SHA256 f9ec002c35e86791825ed294b50008eea9ddfc8def4420124fbc6b08db834957 SHA512 85513709816b148a163b73495b1e0100203da6c37d50a7d64368efb82fdac45fdd083d31bce4b193e1aa5926943e5278eaec5b23b174c425b5954d7b716fa506 WHIRLPOOL 7ee6a7b16911662acf6da0735216cf3d9236e20deffc01f52c2374af4077e22099bb48b0a8fe809fc2f690c858b47d631a605f617139030c5b5c2426ed4387eb
+DIST rollsum-0.2.1.crate 4171 SHA256 a1833bf64c62f9365cd6b94a4954acaa6761793b2252f701064c2e03691d357c SHA512 d179f8dd169a98a921affeb896cbef1368eeb393556c11a89386b6532239776fe4f1be9e80e41bd3c8f744bc36c5b0cc6fa2649e4235c6f69e948dad7917a58d WHIRLPOOL ca79966f30a325e600a73747cfc2d8006c5434c2ad751230658174abc7531d91af21acf0270af556ce9929def57bba92185704d9747c1cadc3ca2eb0c741aab2
+DIST rpassword-0.2.3.crate 3610 SHA256 320da1dfcf5c570a6c07ff60bb7cd4cdc986d2ea89caea139f2247371ab6a1df SHA512 16b8d627e56a581ee663c43c6ed63c8f45160b46c7bb4544614aa98911850edcf379c23e35c0d6682037b05f6990a96c86490f65d23a26d58928af096c556229 WHIRLPOOL 80a0a91903bbcc64c6433a37fc25a2056cbb6d30a49bd88413f90de44147b5231d16b13e24dfb71dfa012add62799b58519866ed885e5e01f552f7be540f4be6
+DIST rust-crypto-0.2.36.crate 857879 SHA256 f76d05d3993fd5f4af9434e8e436db163a12a9d40e1a58a726f27a01dfd12a2a SHA512 0fac026d8799ecde523f20e7b34b9486343e48b95e79cd76bb6c8bfaeaebed550e45d59d85d8a3a58595f10c02a4a5e55691da15c203a4336a9bdb5480cd2e90 WHIRLPOOL da7b8b21329e5ad8ab56d65c6374f8193e821714c7e1a9f70969fee7e82b0ce94abb99577ee5e312aa07b770e07466830ddb468520532b0d8abf5afff497cfff
+DIST rustc-serialize-0.3.22.crate 45545 SHA256 237546c689f20bb44980270c73c3b9edd0891c1be49cc1274406134a66d3957b SHA512 833649dc82e0a568eee051a37856983aadb3a33ca5d20c02e6ef057c7fad802c19d3131cc7108b33b098a964a2492e43d796f36b600fe3df4c93c76c9abb219c WHIRLPOOL 19dd0ac1dc26294d472410cf7a8f70f550937143c5d2ef89f89d22871345db0e44b0c5149197097ef63733ea8d166bfd922cade4d31bde49c3b5bd1a205377df
+DIST serde-0.7.15.crate 22719 SHA256 1b0e0732aa8ec4267f61815a396a942ba3525062e3bd5520aa8419927cfc0a92 SHA512 c7fe504876c3d654797c88b47af81d422129b427bb3bc8d9876106865913ac9863e7b323cb6a5098d654e7af0b18b39310bbb204d03d3b465dde38ad92912a7c WHIRLPOOL 7766e36edc2f7ae187bf02b6a97baebd6d7e0b114ca858bbd591291185a153d65b6464516e74e86108f85b0833a1b0d00e258f8573c46a28da108eaa127f4c3f
+DIST sodiumoxide-0.0.12.crate 2068250 SHA256 8d9da099120def269669aa349e0c3e97de4ab2c5cb9a54a765041651dd0055eb SHA512 b47e9a1463185360886f23a8dc0b5f26784f639b204dec9ff6e830d845f42b201addc7cba87a4f75d19939fb1b21ee0fb7e3dc55dccbbe7e8d0f6c3ae7bac2a8 WHIRLPOOL 04e701c70877ab610c5cc31dbf2df3e7083dd0b5e291ab488139bb8c8a70f0c10816302e474dc409610bc9513b773874c686fc57ea34ec92d156b332a268d3bc
+DIST termios-0.2.2.crate 8966 SHA256 d5d9cf598a6d7ce700a4e6a9199da127e6819a61e64b68609683cc9a01b5683a SHA512 ded990bf8c1fa2bc31087ce077903eb8955687cd8ada25b82c4ab030ce3a73cede0ed4c599963c2d0c05c51e2a0c26f0d29d328b364342d21a73eaf4fc153f2c WHIRLPOOL 4f8e18e2f626344819a5724fc5034dd7fbe5a9abe4dabc82069a52d16320e4bdd64aec5b55c56d3f4aecf1ea0645acdbee9c161897682030fb22c0ef3ac48ded
+DIST thread-id-2.0.0.crate 6108 SHA256 a9539db560102d1cef46b8b78ce737ff0bb64e7e18d35b2a5688f7d097d0ff03 SHA512 9fc73cb13dd70f6f323161667f7a253b48c4e11d074457fa033b3617dcaf7ba9aa95f12801c4c045e7e9c07dd4b63a83f79701b489a9d97aefde07970064d9b0 WHIRLPOOL 88a26709bb3a6b27ab102e4414d25f20361ad92be89662c59c14ceed8a84eb17249ece8f250fb082e85acb75835ea81d1f5b62358e57e1bb1bfb96dac5d6e1f4
+DIST thread_local-0.2.7.crate 10954 SHA256 8576dbbfcaef9641452d5cf0df9b0e7eeab7694956dd33bb61515fb8f18cfdd5 SHA512 adc9be75120fd9e27429d0116cc6774a519ed9a2348db122ea90864947e4c1e1c98aeef740e7f8d28861b1db0f4a9340e58e13c1b3ece1fb3320058ea7a47b35 WHIRLPOOL 5988b0a217254ee39387b34dcadd9f44243a2403fabb33b3ce56415910b27e0ff887ec209af1f25e40ed4f3646e840a903f156c5546b20b640aa44463adca44b
+DIST time-0.1.36.crate 28333 SHA256 211b63c112206356ef1ff9b19355f43740fc3f85960c598a93d3a3d3ba7beade SHA512 1aa57438bb471344c1559610a0bb644dc488b0a69e354ad362c3cc95cd44c1c9269d9bd266c556c53796161d6ed381b35cba6fdcb62dfbef161ab4502300550a WHIRLPOOL dac2fd1e414dd94245da5f7532ac05fef4b9647e6db48cbe9bd90a368fcb936fef09c6af5d45c450bdf200daed039c629e341e0594d496aa4743d2d8cdf6bb35
+DIST utf8-ranges-0.1.3.crate 8422 SHA256 a1ca13c08c41c9c3e04224ed9ff80461d97e121589ff27c753a16cb10830ae0f SHA512 84bd9b67c423923b856452e113f0d786ac438bc7f9b4d4d9f31f6f91f141a8ac4c93f45f722ac5a8a4bac8eac0e355fe7db1eebc62391709326e9817eda8c374 WHIRLPOOL 05b6f88e1ba81a2139d38d0feb60781976859adfc46731ef322a552b17db71e0bf61c6626432812fb2e0ca45ce10a5438d9dcf218a962ef7415187adaa0280fa
+DIST winapi-0.2.8.crate 455145 SHA256 167dc9d6949a9b857f3451275e911c3f44255842c1f7a76f33c55103a909087a SHA512 115e6f027cdd4a56f77ca24f4ab249d2a6cac1e1f955c826a9b6ee05db4861790a533f5e674aebbb540370fff52ed41618c2cd7c906e73200e92df213109cebe WHIRLPOOL 3dce71a6927320e3882ba60a24630a9ba8d123b73d8da6b9330e422580af9d9b0a96748d7368767e3712185877ddec6978b924d40428341c4de19b76ed375af4
+DIST winapi-build-0.1.1.crate 669 SHA256 2d315eee3b34aca4797b2da6b13ed88266e6d612562a0c46390af8299fc699bc SHA512 8b0a239e205a5368892f41c870a8a7ea16e3468c364b03382bef7fa3a2e7159b09c07661e95b1227578f6d72c14879daa4444b28c51ae20ef15d985d59ca5a77 WHIRLPOOL 036080513776fe806cc9dd68bbf5b797776b98ca9fdceaa4bd77c87c66d2e5bd0eec8b0e7f0100dab8f2ced754da058f67e651002c786b4992c2be416a5d52ff
+EBUILD rdedup-1.0.2.ebuild 1145 SHA256 6255d528bf760984292d9a8c9d3c22e415e27f59d4fdb1bfb6c32494de043834 SHA512 16dbfcb2e03f9ccef7ed5648287c5af511e4f8928d2f9ce403f58bc3991440487908ab6d87f9cef1c75d14520636c96805d28a9a85074bc6c5db6e68bee09db1 WHIRLPOOL c06088ba64d3e36d0b778f9cf8633f360fc2b063cd6e30fbec1468c8fd6c2bb7d95a20f82605d19e47555e8f4843bd3564830fc51d0edfb792fe0e90d1241b28
+MISC metadata.xml 325 SHA256 ebacae1de14ad60e6be8ea81b061fe3f7f9dda42a6e6ee4c1a92d29c779e2509 SHA512 d929b91d79451edd8facd161376146c37c0036782f8525eddeffb29e16f4a63d55ce84a2b35a52df8f4a5a89f6a95b8a7b1c0eafd2a279d4e680196fec196653 WHIRLPOOL dec39ca515f9eaafff515d88e12e2b734ebdd27e70aef415e7eb0a698e07ffcc7373c4b90fd202830de007feeae9605de04f88f80c379db7ac960f45cee9412b
diff --git a/app-backup/rdedup/metadata.xml b/app-backup/rdedup/metadata.xml
new file mode 100644
index 000000000000..bec4631dc800
--- /dev/null
+++ b/app-backup/rdedup/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 type="person">
+ <email>robbat2@gentoo.org</email>
+ <name>Robin H. Johnson</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">dpc/rdedup</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-backup/rdedup/rdedup-1.0.2.ebuild b/app-backup/rdedup/rdedup-1.0.2.ebuild
new file mode 100644
index 000000000000..378d63f771d7
--- /dev/null
+++ b/app-backup/rdedup/rdedup-1.0.2.ebuild
@@ -0,0 +1,64 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+CRATES="
+aho-corasick-0.5.3
+argparse-0.2.1
+env_logger-0.3.5
+flate2-0.2.17
+fs2-0.2.5
+gcc-0.3.43
+kernel32-sys-0.2.2
+libc-0.2.20
+libsodium-sys-0.0.12
+log-0.3.6
+memchr-0.1.11
+miniz-sys-0.1.9
+pkg-config-0.3.9
+rand-0.3.15
+rdedup-lib-1.0.2
+regex-0.1.80
+regex-syntax-0.3.9
+rollsum-0.2.1
+rpassword-0.2.3
+rust-crypto-0.2.36
+rustc-serialize-0.3.22
+serde-0.7.15
+sodiumoxide-0.0.12
+termios-0.2.2
+thread-id-2.0.0
+thread_local-0.2.7
+time-0.1.36
+utf8-ranges-0.1.3
+winapi-0.2.8
+winapi-build-0.1.1
+rdedup-1.0.2
+rdedup-lib-1.0.2
+redox_syscall-0.1.16
+"
+
+inherit cargo
+
+DESCRIPTION="data deduplication with compression and public key encryption"
+HOMEPAGE="https://github.com/dpc/rdedup"
+SRC_URI="$(cargo_crate_uris ${CRATES})"
+RESTRICT=""
+LICENSE="MPL-2.0"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE=""
+DEPEND="${DEPEND} >=dev-libs/libsodium-1.0.11"
+RDEPEND="${DEPEND}"
+DOCS=( README.md CHANGELOG.md )
+
+src_prepare() {
+ default_src_prepare
+ ln -sf "${WORKDIR}/cargo_home/gentoo/rdedup-lib-${PV}" "${S}/lib"
+}
+
+src_install() {
+ cargo_src_install
+ einstalldocs
+}
diff --git a/app-backup/rdiff-backup/Manifest b/app-backup/rdiff-backup/Manifest
new file mode 100644
index 000000000000..541f1a47b7b4
--- /dev/null
+++ b/app-backup/rdiff-backup/Manifest
@@ -0,0 +1,7 @@
+AUX rdiff-backup-1.3.3-librsync-1.0.0.patch 498 SHA256 1211ad1019df0b30d4f4a3e364a67f5977d17424c605f00383c686dd1b22cd0a SHA512 2749fc3f5e187d8bc7874ddb7e185ebb17a0ad77e44e12d3f02a10de7ca5acea568321ce7262e45433732a0b532702e674564cc83d8987b0e339e28f7468395f WHIRLPOOL 0a2bf4003f0cfb5fc83b78d0d3c05cff6e28b8b4850a525550e0db39fa97edc71bc7ed9fb79e108912917a8e212ed3126e6ca60f8eb7f9299bad5db56d28fdc8
+DIST rdiff-backup-1.3.3.tar.gz 198412 SHA256 ee030ce638df0eb1047cf72578e0de15d9a3ee9ab24da2dc0023e2978be30c06 SHA512 e2731464a6ff146cdecac49d2d99275dc5e6b4a3ff5b8209fe6dc71fd80cdbf573d029531325a879e9a169c12b31568f75fdcb812f53df33896784c5bc550280 WHIRLPOOL 04f3257c8a1dd6b8c81ec1f7d3fb7d1e4bba9bb97020b0932d2a72d9279924147ec98c74e5f9952b5c14c50675ac03f7d7956875ce58c1e677571c9cfab57f89
+EBUILD rdiff-backup-1.3.3-r1.ebuild 798 SHA256 592c1bcba5a6307ee7ad3492a1414e35a1d2c80a5a2bdf394ea50b8460174d55 SHA512 b2e214fc6d2df981dd5f8b2d37c1fa13433062bc6ea5c94c861e1a78f64f1af025ccae4c3c19b36236606e2dd102e41697b278fcdb485e83bafa041e4b47b27a WHIRLPOOL e60586c9accb1904563eb5690c82362fdc93875967a02e47251b1353bd06b12b142dfb1d33accde24c213ce3fea04c49c04aaf0d57845b2043aab8bebf9f1ce2
+EBUILD rdiff-backup-1.3.3-r2.ebuild 858 SHA256 7d118796ed91ec810406c5ff65f6c3b652e23e656e00140f888889ef62fa1fec SHA512 cbbed1c08742fb50d4c1bb8a3655e1820b2ae4b3d31b58f9b8d784eb2761f3ea40fbb36c11e7eee1aee8e8621c9d6b60a1ebc5e96369125145462daa1b262525 WHIRLPOOL c25e44bffe4abfade5af3debedaa3fd0151b3a59ba807b2ad5a3fafbb4b47809a9a1b37df4815affaaae18d9ad82a67b03dea70d2130a6e1851393ec3a42e0b7
+MISC ChangeLog 3564 SHA256 bdb0dc42faaaddb697958891517f6a60c3046e76aafc87cebc7555e531d5fc11 SHA512 4970cfe592494c2e075007dcef7043210a08ac8efd79fdc11c050e9ca335a88f02ea614285f850654671f97236d2e5c0c61ec9902c5eff6df735a2895841ace2 WHIRLPOOL f38cf56576694dd073066d633b69c8c64c568c3a00ed7018380e0db43b5f14eb2f96de586c3fe25741f338ceacf798c9c4cd36024b181f7381f4e45680f971ac
+MISC ChangeLog-2015 14577 SHA256 d4de71d323d7c94108af7e12c24c50b05d70a04b4ce3b52e0076c73bb82d144a SHA512 4758280334c0acbce2a2863905a7051ce3010e8d0bb99c39045e580aa22cc78f9fdb4f09569d266dfa078f3a2a82aa50f2b664c2142080ecc33d9d818432f749 WHIRLPOOL 4a3ad8b7fda7dacddb702e6aee4c2c85f42adb03359447bb635d9b6bd2618912bff35454a3f45aa496666d266b0c1a954720c5b2c00fa6bbdbcae6875f8a9e65
+MISC metadata.xml 528 SHA256 df5f0b98cce36fcc75c0a4bc9f20f5267a7d09ea707c279974b46512fa339dbe SHA512 6ed247ca5297a4ebe7586a6e6e0437368d781c20c18774bdf55b96adb78e6ed5916b18810ba04025805def8dc07ca7dff0d1ea66b5c8f3ed099ae5084f025f35 WHIRLPOOL 57b7130a085f954cd6060fe0a8d22e38a34794a8af80679d3bcc2b997c96213ff1c1aae7cc91c0d9cfb8da718e7cfa7bb1dafa0327f27850acdadfed7863d9c1
diff --git a/app-backup/rdiff-backup/files/rdiff-backup-1.3.3-librsync-1.0.0.patch b/app-backup/rdiff-backup/files/rdiff-backup-1.3.3-librsync-1.0.0.patch
new file mode 100644
index 000000000000..16b97ab1c011
--- /dev/null
+++ b/app-backup/rdiff-backup/files/rdiff-backup-1.3.3-librsync-1.0.0.patch
@@ -0,0 +1,16 @@
+--- rdiff-backup-1.2.8/_librsyncmodule.c 2009-03-16 15:36:21.000000000 +0100
++++ rdiff-backup-1.2.8/_librsyncmodule.c.librsync-1.0.0 2015-03-02 00:54:24.000000000 +0100
+@@ -59,8 +59,13 @@
+ if (sm == NULL) return NULL;
+ sm->x_attr = NULL;
+
++#ifdef RS_DEFAULT_STRONG_LEN
+ sm->sig_job = rs_sig_begin((size_t)blocklen,
+ (size_t)RS_DEFAULT_STRONG_LEN);
++#else
++ sm->sig_job = rs_sig_begin((size_t)blocklen,
++ (size_t)8, RS_MD4_SIG_MAGIC);
++#endif
+ return (PyObject*)sm;
+ }
+
diff --git a/app-backup/rdiff-backup/metadata.xml b/app-backup/rdiff-backup/metadata.xml
new file mode 100644
index 000000000000..7297ecd34258
--- /dev/null
+++ b/app-backup/rdiff-backup/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>axelgenus@gmail.com</email>
+ <name>Alessandro Calorì</name>
+ <description>Proxied maintainer; set to assignee in all bugs</description>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">sol1/rdiff-backup</remote-id>
+ </upstream>
+</pkgmetadata>
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..5df10721abc4
--- /dev/null
+++ b/app-backup/rdiff-backup/rdiff-backup-1.3.3-r1.ebuild
@@ -0,0 +1,32 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1 versionator
+
+UPSTREAM_PV=$(replace_all_version_separators '-')
+
+DESCRIPTION="Local/remote mirroring+incremental backup"
+HOMEPAGE="https://github.com/sol1/rdiff-backup"
+SRC_URI="https://github.com/sol1/${PN}/archive/r${UPSTREAM_PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="alpha amd64 arm ~mips ppc ppc64 ~sh sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
+IUSE="examples"
+
+DEPEND="
+ net-libs/librsync:0/1
+"
+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-r2.ebuild b/app-backup/rdiff-backup/rdiff-backup-1.3.3-r2.ebuild
new file mode 100644
index 000000000000..3f992096f971
--- /dev/null
+++ b/app-backup/rdiff-backup/rdiff-backup-1.3.3-r2.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+PYTHON_COMPAT=( python2_7 )
+
+inherit distutils-r1 versionator
+
+UPSTREAM_PV=$(replace_all_version_separators '-')
+
+DESCRIPTION="Local/remote mirroring+incremental backup"
+HOMEPAGE="https://github.com/sol1/rdiff-backup"
+SRC_URI="https://github.com/sol1/${PN}/archive/r${UPSTREAM_PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~mips ~ppc ~ppc64 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos"
+IUSE="examples"
+
+DEPEND="
+ net-libs/librsync:0/2
+"
+RDEPEND="
+ dev-python/pyxattr[${PYTHON_USEDEP}]
+ dev-python/pylibacl[${PYTHON_USEDEP}]
+"
+
+PATCHES=( "${FILESDIR}/${P}-librsync-1.0.0.patch" )
+
+python_install_all() {
+ use examples && local EXAMPLES=( examples.html )
+
+ distutils-r1_python_install_all
+}
diff --git a/app-backup/rdumpfs/Manifest b/app-backup/rdumpfs/Manifest
new file mode 100644
index 000000000000..dba2903c3ee2
--- /dev/null
+++ b/app-backup/rdumpfs/Manifest
@@ -0,0 +1,5 @@
+DIST rdumpfs-0.1.tar.gz 3054 SHA256 c8c590eae705aedbc386d78e9cd040fb611c39b6948fb218c8559d1fb3147c26 SHA512 54add203d09bff1190c3bd292bd5fde3b81f4b6810f4dc8d1be18f9abfb5334bcbca1aebc00795f4bdce861f356a7b9e5d809cd80475a3c50a21752380570853 WHIRLPOOL e9fb8749d7b2a0c39923828c9dec1eaca67a1e2ee834b392283795cd685c9f72fefc1664bc57680efe12e745204779d85e634c883a02592e26ddbf7fd5dcdcfd
+EBUILD rdumpfs-0.1.ebuild 600 SHA256 0735ac1c28bf0de0eb863494584ddf7a6573256388faf81054688642fe1c635b SHA512 08bf572651ee56734f09d1c77b3ac69d4f87217bfefc80b425d1a6909073c5387fb8480892ec867ba6693f0052ae0e0a79b91fde03f02ba05629186314326e2f WHIRLPOOL 1b78a1510034982550f6517c653d76999f796a9a43152d4b4dd6e18a0aee48b76be4459b5c54876230a326c92fe9d46c5b4b631f5f21de4ab4c40094c1ea9a06
+MISC ChangeLog 2491 SHA256 4fd64e0ab22f212dd307f0b579bf53fe14ea337c5dbeb6a61fc53c7e5f5a0ac7 SHA512 c26710ecea6d9c21c16510d16490b611ff41f67af06ee9f3f925365f42d180178313853326a563b24e5fd11944dd74ca5e3906d492a766bcb238a905939756c2 WHIRLPOOL 828f43beafa68449ebde753574029f69065b844d15f824e6c09c96ab1d371f3ad38409ca0030d2de7ed216eac947167cc4cffe56c7b010ccff3ca64ea67cf74f
+MISC ChangeLog-2015 458 SHA256 23acdc53bbeadeca0c7785145a7b3edda588515f3ef53df049230ba9f1c73725 SHA512 6b178c155277f0d2e130806831b731bfbfe461f0f3dcfe721104a953876b99baaabc155fe5bfef957c6587445c66ae4cd510f73fa399cba78c3697280316760b WHIRLPOOL 07985fcf8e73fd632b58febef36f6acf16384597332755794d961ed652970ca7637bc19bb3d2271674b56cf069bc4e7d0d1d332325d31251d067678319e1ce0f
+MISC metadata.xml 348 SHA256 c11157e109fb5978e15fea7ecc62033eb5b6ea3cefcdc5ade6f4ccd20e0c1010 SHA512 106211864b1adb098cd8728facf25fc9103ebc6fcc2478b038864c82e8af8b9c41599e0dee4b4f479e4d9c3caceeaaf34f2f3c241e2334a5357a9e0ed2c0e479 WHIRLPOOL 24cdec9385127fdfd7ff1c7ac8abb6e17a183b7d8567ba1f8e724fad1cf7fbc80cc5626e805e8a008b515f09faab7f6dac03d04c1160d2d4847888d9adcf7012
diff --git a/app-backup/rdumpfs/metadata.xml b/app-backup/rdumpfs/metadata.xml
new file mode 100644
index 000000000000..127cd97aeefe
--- /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 type="person">
+ <email>junghans@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-0.1.ebuild b/app-backup/rdumpfs/rdumpfs-0.1.ebuild
new file mode 100644
index 000000000000..ee61a90de855
--- /dev/null
+++ b/app-backup/rdumpfs/rdumpfs-0.1.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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/v${PV}.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 '/RDUMPFS_DEFAULT_ARGS:=/s/aHAX/aHA/' "${PN}" || die
+}
+
+src_install() {
+ dobin "${PN}"
+ dodoc README
+}
diff --git a/app-backup/rdup/Manifest b/app-backup/rdup/Manifest
new file mode 100644
index 000000000000..3c9f92077558
--- /dev/null
+++ b/app-backup/rdup/Manifest
@@ -0,0 +1,3 @@
+DIST rdup-1.1.15.tar.gz 333646 SHA256 787b8c37e88be810a710210a9d9f6966b544b1389a738aadba3903c71e0c29cb SHA512 e377ec29e0dacae306ee58c935c9738f32d177e1c2575e4fa3618d2753d248f2898633dde46da81410271205458ccf0d3d885e3eebc5f1948afc5cd9e99ce7c3 WHIRLPOOL a82eac7a80ab02436343687f62bbab643027854771e2031d577abc71495aa7e63c0185580466527704906035e023372809088b8a08686ce438211ddffb7b5521
+EBUILD rdup-1.1.15.ebuild 856 SHA256 be7e9e2e8278251fe9f0bbf5976572bfc6500a9c9ba43b1d6fe392ec5747ed4d SHA512 b17d5ceab2aa7ead80cd792473b90390922976b708f48ee747dd5b3d84578cb065e6e93851e277f4ab3cd1b39037a2d441a9949cdd73a71a86044e0a45e1acbd WHIRLPOOL 127b46094c1dace0748bf470087103428f15e18957827e36d3431adb3f37c4f318f60f6b6b2327f67a381fe0cc8be153ce1e105453368749ff18019039c9a186
+MISC metadata.xml 325 SHA256 163b97ce6093203a0ce9532ad8addf6f4fedbf3212ff27126b5142963931c9cd SHA512 73d0a20ad97d9e9c26f10252fb7d50c93b2c5d07df8eceb8f97796758341c884bdd75ea7707f5f0645d430348af6669595612c662dd019d355fa9f366f6d44fd WHIRLPOOL beef00d94ca2ff0401bc6d715b26c50a098df69a12b978b9891fb342520a48347c49e4b9bdb5aba0f47017d2d43051477ac7479f5a24f59d74c3d17ef2f9750f
diff --git a/app-backup/rdup/metadata.xml b/app-backup/rdup/metadata.xml
new file mode 100644
index 000000000000..9f9793a7335b
--- /dev/null
+++ b/app-backup/rdup/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 type="person">
+ <email>robbat2@gentoo.org</email>
+ <name>Robin H. Johnson</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">miekg/rdup</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-backup/rdup/rdup-1.1.15.ebuild b/app-backup/rdup/rdup-1.1.15.ebuild
new file mode 100644
index 000000000000..a0188659a094
--- /dev/null
+++ b/app-backup/rdup/rdup-1.1.15.ebuild
@@ -0,0 +1,41 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit eutils autotools
+
+DESCRIPTION="Generate a file list suitable for full or incremental backups"
+HOMEPAGE="https://github.com/miekg/rdup/releases"
+SRC_URI="https://github.com/miekg/rdup/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="debug test"
+
+RDEPEND="
+ app-arch/libarchive
+ dev-libs/glib:2
+ dev-libs/libpcre
+ dev-libs/nettle"
+DEPEND="${RDEPEND}
+ test? ( dev-util/dejagnu )"
+
+src_prepare() {
+ default_src_prepare
+ sed -i -e 's/ -Werror//' GNUmakefile.in || die "Failed to fix Makefile"
+ eautoreconf
+}
+
+src_configure() {
+ econf $(use_enable debug)
+}
+
+src_test() {
+ if use debug; then
+ ewarn "Test phase skipped, as it is known to fail with USE=\"debug\"."
+ else
+ default_src_test
+ fi
+}
diff --git a/app-backup/rear/Manifest b/app-backup/rear/Manifest
new file mode 100644
index 000000000000..a49c5f3f32b3
--- /dev/null
+++ b/app-backup/rear/Manifest
@@ -0,0 +1,10 @@
+AUX rear-1.15-add-support-for-gentoo-kernels.patch 817 SHA256 526eeb218408d008fc05a05319c7a4b283dca05f686390bacda3a1bc5f4b8e56 SHA512 b60b77276c6be79324c8df30365950cc864751c96e6373c8231a60a6293046571cb2dad75423f3e1beaea28597c52a431e7d16b01d8c8cb6f279cd1428670659 WHIRLPOOL fd69a30db414a0db1b1f92584c62363eb4be620c293c74931e0dc5a3ef8cb6b5c154dd7deacab33e6f91bfb2df0639bbf481f5c4c242b3ab70fb47c28b43c562
+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
+EBUILD rear-1.15-r1.ebuild 1275 SHA256 d52a1d9728172d1b4e41cd066c26badaeec46b52744ffc5f010ff6fb9dacd263 SHA512 ed2893187e3388d1f2a3dc6dcb7220f6e4a77cfb720b86c67b464526c6a54469023f05a6481e44f939420b80651bb4e4e85dcaa06c022abd101b674dfbdd6653 WHIRLPOOL 0df0228689983987dcc4837285e4880cd5bcaf7378e1de6e01f9417a60553a4565fc72dd74c6bbad1091fd98c3372f42ff5f2f19b752a434ce6787850b3c8cdf
+EBUILD rear-1.17.0.ebuild 1255 SHA256 f793ec71954db41e40cfa6ff697de4f106f167dccec5e99cc9cb9bf1ee67e4b3 SHA512 fe04b73d4105763c99eb267d5fe7bbba9334b629de6423c47b1e6d8ef1461821ce809ff31cb5f2afc966f48f6d759e4c8e9abc6d40f0004ea6c38fcb9e854f36 WHIRLPOOL ee1d29c1ca6e327a296f99a42932a9ca9f65bccdaaf1eae2d7d2358cee2803c9c1e96a9894193991a27e436beb9f64a55fa934583ab74f145fa0ce2a8bf5b1f2
+EBUILD rear-1.17.1.ebuild 1255 SHA256 f793ec71954db41e40cfa6ff697de4f106f167dccec5e99cc9cb9bf1ee67e4b3 SHA512 fe04b73d4105763c99eb267d5fe7bbba9334b629de6423c47b1e6d8ef1461821ce809ff31cb5f2afc966f48f6d759e4c8e9abc6d40f0004ea6c38fcb9e854f36 WHIRLPOOL ee1d29c1ca6e327a296f99a42932a9ca9f65bccdaaf1eae2d7d2358cee2803c9c1e96a9894193991a27e436beb9f64a55fa934583ab74f145fa0ce2a8bf5b1f2
+MISC ChangeLog 2940 SHA256 86e155955428e66449a2ef9fbbbb0076968e84934ef45d7ba1c590c718cfcb25 SHA512 32b3f203288376e16e963681a4c9713a09f198fc5463f9a4cb03de7637d604b2b37516a27b9d0f27d35f12ad0216f0f544e2bc85e7b8484952bcfc4cd1aa95b0 WHIRLPOOL b1cb26d0f3b0440007b8f4ac0d037a6586f0b703c734308a3f8e225b06a9e70f7e196ec4295a90d4d5e8f8e3e6ab1590aa3f9d7f03b21f723533ab31d2c929e0
+MISC ChangeLog-2015 1413 SHA256 dd2930e11342378d5f5967e9cdab1895fcd26ca952a68cfa7c7a93355187e0e0 SHA512 1d4a50d73d743e1a5447f75b4eb9483c72ca0133c144f6787439ed02352bceb29caa6f55c026276a31be160cbf9adf7e25fe7f54014320c13230ce3efda2b198 WHIRLPOOL 293b768a312aedf9aa372d27bef4e9ba8a436010a371f78cbaa48af6eab472c9dec611f962a7a28fbfc62d0d007b9f5a840c10a921ee29df0c5f1bbbd5ab8d95
+MISC metadata.xml 1036 SHA256 a3513ba5f16971f0bdff5f6a3fcbf435d3522b8ed56d37ba33f89ff7234d0a14 SHA512 6fb80339aedf037f2d76b9c686e8f997b3e4289e199bb130e48f12e6fa19dfc4404fa4468e75a8fa19e2ccec21e9a2623079ec5ee78e9acd18ee52112b0c1cf0 WHIRLPOOL 41210b70644479490ef6d96f945ee642d13a6c22a68c174251db81fa2b68677991c5092f7150d2c17c2e0ba062ac1841d81d77ead112dfeb6df80ebaa619bcd3
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..2f710d6a4ccd
--- /dev/null
+++ b/app-backup/rear/metadata.xml
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>morlix@morlix.de</email>
+ <name>Timo Eissler</name>
+ <description>Proxied maintainer; set to assignee in all bugs</description>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</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..b7e163f56dd2
--- /dev/null
+++ b/app-backup/rear/rear-1.15-r1.ebuild
@@ -0,0 +1,58 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit eutils
+
+DESCRIPTION="A setup-and-forget Linux bare metal disaster recovery solution"
+HOMEPAGE="http://relax-and-recover.org/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64"
+
+IUSE="libressl udev"
+
+RDEPEND="
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ 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..2aa812a47a1a
--- /dev/null
+++ b/app-backup/rear/rear-1.17.0.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit eutils
+
+DESCRIPTION="A setup-and-forget Linux bare metal disaster recovery solution"
+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="libressl udev"
+
+RDEPEND="
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ 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..2aa812a47a1a
--- /dev/null
+++ b/app-backup/rear/rear-1.17.1.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="5"
+
+inherit eutils
+
+DESCRIPTION="A setup-and-forget Linux bare metal disaster recovery solution"
+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="libressl udev"
+
+RDEPEND="
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )
+ 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..655ad72c1dd2
--- /dev/null
+++ b/app-backup/reoback/Manifest
@@ -0,0 +1,5 @@
+DIST reoback-1.0_r3.tar.gz 27396 SHA256 8588e3a330a045ee5f9c6e6147b1cdf68fe9f317d57cf520eea50ea928e1b12f SHA512 fcec19f284d96c4be96ac4d5bae4a689f777261ae08032da58b7d9c38a3bb1f6ade3825895b93e2b7ad285e0d1371d12f3cf25a7ffe46639ef9e80611941cd2a WHIRLPOOL e891a446b1f6191d0f0048a59834cbbd29b424663ef9d0fa07f24807fe3d1ed81f2227c36ef5e589393766f079c380fc03b82848e08fea544c1646df259d8a1a
+EBUILD reoback-1.0_p3-r1.ebuild 977 SHA256 ccbcba6a59535686f1831b997c757535f42077fc9723a374611c2480c8c6f9aa SHA512 a0c6bf5570b0376a8b75a3fff66bd62fbbf755ee5aab5032de3d1c8a8b78ad6ce3166d1e7c6f95ed6e2905241ff3557b4d819065a7fa9e91ea7e06d51a35306d WHIRLPOOL b32e56cd3d456b4a1d9508e1beaf3e57202104fb540db48cc173ac9e4ef56ed990a1e62310b5db1631716146c56e889a90267259fd8ef15d115dff258e4b0a58
+MISC ChangeLog 2532 SHA256 cc1940388d931779ff45c7331a68df0771fe475378134557c705a16450cb5d13 SHA512 f9f29c36e3926cef45b237303f65279cda7fb13c652b2feb46e1c6f687591ca253c62419c98ade19218688d54402317b2c3af404d798f3a89f1d5d0c59d30ad4 WHIRLPOOL 3f9b5226d9f775e41162034f4292775b8fb1b4b233c94c077d9fbb2adfb1dfc47374099455fbeec9c26a44a4b4eed4e51ae9aee2ba326e66264cf6ec2bb2d6a1
+MISC ChangeLog-2015 2764 SHA256 a634c1ee7f5f80bf932bdcd4f906cbd67c55b96391cc23e90e37962d0d3d4cd8 SHA512 6dfd4d07d4b625f107e8f8ba8f763f082b72c03d84f21376384e0dc82f31b289bc2de41cd5b50277321ddc2aa3a9fd30dd9c6fbe845381f544af8814ef2d22e0 WHIRLPOOL a5af074240b9bd9b5a39a0ef2d4908d13501c613d44a98c7b0fb69d0c11efbef7fb61b8566532ac368c6b9186014d396b59017d3fdf83d69d4951d462d0b3dd9
+MISC metadata.xml 249 SHA256 7730da5c3bce31a7c56fb6d9234a140abb6b85d0d09429559972fc2cf28b44f7 SHA512 90f66a23a5c76b064963aa17fcf2c68f48c894e7b95e9214315696d7bbe4f70f0517f2188d15eab391caa8ea0844866e2660edf1087f74959d25c09219e8e993 WHIRLPOOL 64a4758c13a5627e74f96df7ed217b1c2b2295dac48e6e8f172e9c0bcee9317b2f8a928883db467e5e80e4b90f3f3098bc55bb734d84c349e6befe7968fbb223
diff --git a/app-backup/reoback/metadata.xml b/app-backup/reoback/metadata.xml
new file mode 100644
index 000000000000..eb73d556efe4
--- /dev/null
+++ b/app-backup/reoback/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-needed -->
+ <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..5333073fa6b1
--- /dev/null
+++ b/app-backup/reoback/reoback-1.0_p3-r1.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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/restic/Manifest b/app-backup/restic/Manifest
new file mode 100644
index 000000000000..1fd6cd40072f
--- /dev/null
+++ b/app-backup/restic/Manifest
@@ -0,0 +1,7 @@
+DIST restic-0.6.1.tar.gz 25231223 SHA256 7cd709c592a5978723673397d7d13c37c0977e20c43db253d0c274b53a55654a SHA512 8c899ca8b6e3dfa399fe5c4306f72a1bcfa869dd667d27f3f88efa26aaa1000959bf91b515911b2ef7b2d4c5bb3e2ed4f202c87add7766d2147b7d40f0757a9a WHIRLPOOL 39225876fd6ce9e4ddac765688238ab5ea430272aacc6e96d54c359de939d2e69cdc45a5571cb63777c258a74b5a9bfbd6114d2463004b242b009856d87b6e2e
+DIST restic-0.7.1.tar.gz 25438170 SHA256 81efde662c34225b5705f3d72daa1f6278455c2b8f786224d7a1ecca0b14efca SHA512 3b887149c801fe81f9bf65e0ae4a17ba97f66c0133f45b3f5526d79d580f072e0e5fd89cd78a5018992dc42e6dafb9385139f4336fe6f06d57d8abe7a9e323b1 WHIRLPOOL bbdeafadd7b329147b7ea30b13d806d20de76e8efcc1ace4eea74420aa39f6d7a8f5eb186169d2a053988d07d44063ca71c54287aa07c4cd4cdc906a07b80dc7
+DIST restic-0.7.3.tar.gz 37062625 SHA256 6d795a5f052b3a8cb8e7571629da14f00e92035b7174eb20e32fd1440f68aaff SHA512 2d44b4fc363c7f6389c1f06469cf30ebeff4d6ade0bd4fcae1d7d9def3922936b45043b04f4072284b773df2c6487c58db6aea41c7de5c8184ca33ca3c44d44a WHIRLPOOL dde430e4d718928b01da0f1558fd8a7bf65a0d9e3a4a620cc7557e6afd4760a8dc6c1a9d7c744649cb817b99fb22ee2e2f893d5fd49fa961d5ab6b8bb02941b0
+EBUILD restic-0.6.1.ebuild 1078 SHA256 fbf4569989a192faa3f3f050f0a610dd358b6b77f5540f157cf1b42fbc9a6928 SHA512 4eaec8118534b3f5b9c97860ac0bae066712e6ce196594ccd90bcc92979e39166bb41d40cde54513ca30409935b31ee20eb71040f95da230632329bc73ee8fe2 WHIRLPOOL b5014804b4eec0c7b6f62d27545cca7c5c50bd565e66ae939f3d36ad37775a354d1ea8c8b1539949414c1e55957d66d1e04ba0362a4c76e59bbc6b601730321c
+EBUILD restic-0.7.1.ebuild 1073 SHA256 0b082e0f0e5c1de3d1fcba6848833e361347f1dee2497e6c670ba204ce9a5722 SHA512 08f73d1e267f90a9eda7e16ad883d38dd05ed21e1f2fdcb02c5cb7fb66cc5f9d7f7a6caef756d41e6b562df882572a96ceb077e8050e7407d42862bec3bbf989 WHIRLPOOL c4094ae266505536b744733db7de420256b6782b4f08a9ee492ed7fd543526c0e980d2f63fb5b8225ecd0e19aa153f71ddc16e3b3d9a5d09c1c46767a591f228
+EBUILD restic-0.7.3.ebuild 1276 SHA256 64f0bf271cfca8e1cab982059c2bcf7e157c1d6920d6fd0c50830bf6eb4d9fd0 SHA512 d7bfd4df6620cba9400e6b6c484864a0a5fae4953744cef7e1979f234a3c7d40a53e8750a572d414c98090f99734bc8243aac6353493c845b710190915f52cfe WHIRLPOOL b1e6925506f14ee4d498fe9627922101434568373db9aae0320d1910618e47403af11dcab450e34b5e605d553ac54e1c080e0bf477641f9a0224f18a4ff94a5d
+MISC metadata.xml 444 SHA256 664313cb01b0dc4e6bbe464c977a6b9ad167b75fd4623b680fe83b4c0d9276c4 SHA512 8dbd7df10769ff8d0271588be8c97402d5917a4c0dbafa5daad2090245ee4b022193a6c271f71c342540d7599b029998c91c10364eae7d55de0275276342c0f4 WHIRLPOOL 2719b3876d2a4fad1a609ee45efe354f9e9343edbb20b4de494a14a63a97b73162b28e47b4b2347144bb8183b3a00adb86145a5403245a090bf65d1c229abb91
diff --git a/app-backup/restic/metadata.xml b/app-backup/restic/metadata.xml
new file mode 100644
index 000000000000..d013f0a0c06a
--- /dev/null
+++ b/app-backup/restic/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 type="person">
+ <email>davidroman96@gmail.com</email>
+ <name>David Roman</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">restic/restic</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-backup/restic/restic-0.6.1.ebuild b/app-backup/restic/restic-0.6.1.ebuild
new file mode 100644
index 000000000000..ed91b94db276
--- /dev/null
+++ b/app-backup/restic/restic-0.6.1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="restic is a backup program that is fast, efficient and secure"
+HOMEPAGE="https://restic.github.io/"
+SRC_URI="https://github.com/restic/restic/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="test"
+
+DOCS=( README.rst CONTRIBUTING.md doc/design.rst doc/faq.rst doc/index.rst doc/manual.rst
+ doc/rest_backend.rst doc/development.rst doc/talks.rst doc/tutorial_aws_s3.rst doc/installation.rst )
+
+DEPEND="dev-lang/go
+ test? ( sys-fs/fuse:0 )"
+
+RDEPEND="sys-fs/fuse:0"
+
+src_compile() {
+ local mygoargs=(
+ -v
+ -work
+ -x
+ -tags release
+ -ldflags "-w -X main.version=${PV}"
+ -asmflags "-trimpath=${S}/vendor -trimpath=${S}"
+ -gcflags "-trimpath=${S}/vendor -trimpath=${S}"
+ -o "${S}"/restic cmds/restic
+ )
+
+ GOPATH="${S}:${S}/vendor" go build "${mygoargs[@]}" || die
+}
+
+src_test() {
+ GOPATH="${S}:${S}/vendor" go test -v -work -x restic/... cmds/... || die
+}
+
+src_install() {
+ dobin restic
+ einstalldocs
+}
diff --git a/app-backup/restic/restic-0.7.1.ebuild b/app-backup/restic/restic-0.7.1.ebuild
new file mode 100644
index 000000000000..e3a29977d90f
--- /dev/null
+++ b/app-backup/restic/restic-0.7.1.ebuild
@@ -0,0 +1,45 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+DESCRIPTION="A backup program that is fast, efficient and secure"
+HOMEPAGE="https://restic.github.io/"
+SRC_URI="https://github.com/restic/restic/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE="test"
+
+DOCS=( README.rst CONTRIBUTING.md doc/design.rst doc/faq.rst doc/index.rst doc/manual.rst
+ doc/rest_backend.rst doc/development.rst doc/talks.rst doc/tutorial_aws_s3.rst doc/installation.rst )
+
+DEPEND="dev-lang/go
+ test? ( sys-fs/fuse:0 )"
+
+RDEPEND="sys-fs/fuse:0"
+
+src_compile() {
+ local mygoargs=(
+ -v
+ -work
+ -x
+ -tags release
+ -ldflags "-w -X main.version=${PV}"
+ -asmflags "-trimpath=${S}/vendor -trimpath=${S}"
+ -gcflags "-trimpath=${S}/vendor -trimpath=${S}"
+ -o "${S}"/restic cmds/restic
+ )
+
+ GOPATH="${S}:${S}/vendor" go build "${mygoargs[@]}" || die
+}
+
+src_test() {
+ GOPATH="${S}:${S}/vendor" go test -v -work -x restic/... cmds/... || die
+}
+
+src_install() {
+ dobin restic
+ einstalldocs
+}
diff --git a/app-backup/restic/restic-0.7.3.ebuild b/app-backup/restic/restic-0.7.3.ebuild
new file mode 100644
index 000000000000..8d2fe07c31c1
--- /dev/null
+++ b/app-backup/restic/restic-0.7.3.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit golang-vcs-snapshot
+
+DESCRIPTION="A backup program that is fast, efficient and secure"
+HOMEPAGE="https://restic.github.io/"
+SRC_URI="https://github.com/restic/restic/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+EGO_PN="github.com/restic/restic"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE="test"
+
+DOCS=(
+ README.rst CONTRIBUTING.md doc/design.rst
+ doc/faq.rst doc/index.rst doc/manual.rst
+ doc/rest_backend.rst doc/development.rst
+ doc/talks.rst doc/tutorial_aws_s3.rst doc/installation.rst
+)
+
+DEPEND="
+ dev-lang/go
+ test? ( sys-fs/fuse:0 )"
+
+RDEPEND="sys-fs/fuse:0"
+
+S="${WORKDIR}/${P}/src/${EGO_PN}"
+
+src_compile() {
+ local mygoargs=(
+ -v
+ -work
+ -x
+ -tags release
+ -ldflags "-s -w -X main.version=${PV}"
+ -asmflags "-trimpath=${S}"
+ -gcflags "-trimpath=${S}"
+ -o restic ${EGO_PN}/cmd/restic
+ )
+
+ GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" \
+ go build "${mygoargs[@]}" || die
+}
+
+src_test() {
+ GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" \
+ go test -timeout 30m -v -work -x ${EGO_PN}/cmd/... ${EGO_PN}/internal/... || die
+}
+
+src_install() {
+ dobin restic
+ einstalldocs
+
+ local i
+ for i in doc/man/*; do
+ doman "$i"
+ done
+}
diff --git a/app-backup/rsnapshot/Manifest b/app-backup/rsnapshot/Manifest
new file mode 100644
index 000000000000..afb710786da0
--- /dev/null
+++ b/app-backup/rsnapshot/Manifest
@@ -0,0 +1,11 @@
+AUX rsnapshot-1.3.1-cp_al.patch 535 SHA256 a20a3b23d19c657e8cda47fd7f755bd5c9386c9df73f20660429a3588047e168 SHA512 511b447d914f01c757b85f098846a91d8585a40297a2ae8b7d07101cbbfd3e99a46168a583a64eaf66e236c4716a69fefcce40fd2e0666fd6f3d9aafdb0c783d WHIRLPOOL 3cc772edd4c020076daecfed9ef740c0b471edbe8b0c7104d11f4c6b9fb232d25b2f4739c15a53e70afda0f34eaa7d6411f6793687ba489b74ec266b5ce4e219
+AUX rsnapshot-1.3.1-perl518.patch 349 SHA256 3a024e5daff20b1e0b78462a9d5194f4f3fd71fb3217fd261dbf070745c9880f SHA512 5e4d43b814b0ade9743a08da0c580b6bb98673aa39127d2dd6fa0993d4b7a6ac163deff5f1ebd9fbf4c95434ef10f4c48d8f55967e1f78866563bcbaaa9d45a0 WHIRLPOOL bdba4241e644b25c2b1be406ae7b41409b80f720999c8a755a6e748d8ddedeb6db17d130bfcc5afc0d2a81262a32ae96e2d8f37f29de14ca372053a93063fce9
+DIST rsnapshot-1.3.1.tar.gz 215806 SHA256 94b6c77e40628935f42a191bdc28ad93b1f132fde456ee76ee87763f1eddc75e SHA512 a74ad0a21d213dd2e05cb577a47c491af90d8994df8f5a154195515345da438ac9c0d72b563aa02314883a0b3bb86e3c23f8b530a7078c2b55a9547a2d666c10 WHIRLPOOL 1d62658e11cbd2612b223336b5e3dbb44d1ec0b40a434bf8f65c09ff7b45c831f585046f8ef4e2ff79f034de8731435ccd2554e0d5ff4e2d1693a01b66113b00
+DIST rsnapshot-1.4.1.tar.gz 489481 SHA256 fb4a1129a7d3805c41749fd0494debfe2ca2341eba0f8b50e4f54985efe448e8 SHA512 a99e639bd706aafac82d2a4a40fc6c7fa026321c527ad5826a4fc7917cadea5962c4c7988c98efbe06833ef70db081605aa47a6d77c04dcf6077cc232c078cbf WHIRLPOOL 999979b7d438c336203298a4bce2d49fb7e6166428356d0d3ee93369244856970faa496528a673df44ab21c5ce6fa694d83df9fe45075d62436c24fb97f7a435
+DIST rsnapshot-1.4.2.tar.gz 487959 SHA256 042a81c45b325296b21c363f417985d857f083f87c5c27f5a64677a052f24e16 SHA512 621be52715a6c1f70ddb251d7f6103ba3487cd0c6c607411d744866547d3ced571862a8f6b5e40a1d050696703f3a15821bd6e829a3fca057848f04566d0e4a0 WHIRLPOOL 6b7256562cc15f6ce62d05515de4a933d986cef651e9f6a912e760a7feac9ac906c95ea8adef68561db02d494d9774a47f9192d5fdac83366a40b84739a21a03
+EBUILD rsnapshot-1.3.1-r2.ebuild 1258 SHA256 da292bc98bd2c1a3549a3f81cdea496ae496f300b0d9ee6239f75799b5d8f33f SHA512 28955d9db87a895dad872c96cbc9afea92593622343bff395b4334af6e281144affee64a84e75fd06bc8eaf5d9bd3abb73197cf434804a8cf8cb4fc59e52340c WHIRLPOOL 0ba017bccb0123d98db286d56b4acc14c31c6ecca7bfafddc10bbf850b7762a562d605b31c0f472677ba0bb95a3320576272ee047b8fd5405bd98f91a3744604
+EBUILD rsnapshot-1.4.1.ebuild 1111 SHA256 d9a349d1fa8435aaa163b00619cc4ccf770315c29c230e2ebb586732ec32066e SHA512 38915db4b7bccab6134449c1db5da7b81e01d30739e371b4525ec2b4977141f987765f48daa81265429152458e7aa72f7ca68bff5d50a56f6585d757de4a159c WHIRLPOOL 284d543a4c31629ed8cbb1548fa9592c9a1a375651ee8ac59acac5190a49f4f998f60a7d25dd16d1fc15464b983505b54f331729a37ae7aaf8b3b90a27d4f3c5
+EBUILD rsnapshot-1.4.2.ebuild 1338 SHA256 6d7e253cdea7295ef7ba08e6ac52bfe0ed00e5288a6122ee10121ec4c955ede4 SHA512 fb33bc4e043910281ea74f0663d97503878a9965b3c3bf0f32b253034d10a3c09c43cc50ce7140cad7493233906a9a3fc5d20500f6f1b50000bee1ac6d4a8f30 WHIRLPOOL 90a8591d59d4641d7a377cdc8827f84a83c6907bb559411e20de454891ff30e2d76254848db6ac8d2da3735ab85991c9c180ad706149f0910730e037dcbce7ca
+MISC ChangeLog 5227 SHA256 cd4953230a443cfc752ed3fadacd043869cb925fb1065ade245676655561d2d5 SHA512 298f57c812034ebf490d585dbda5dc78012acfb8089e0a856ea801377c09592ee5cba91007f0900ca5f402203b94246b6b170464e92ff4fa5098aafc87f478f8 WHIRLPOOL 550f7495daabf3891dbc74883b2e2f80407e670df5a34588df340c66db0c97aff2d884ef5dabf3fb9f4ea38cf018804bc4d571292ff4f7ee9554c1c9121a419c
+MISC ChangeLog-2015 9829 SHA256 1432d7119f0d982612aaac1e1802fbe004ecaec73035ee657d9f1d5b71b81699 SHA512 b1a24217010a414a80246a1251689a8b6752c34a0e579fbc2cd7f628e0e91b1f56a10b1800253606bdc7d74b0802772cbe07376104ecceb6151f3500cdcc3c44 WHIRLPOOL 6d55c48aa5d407722b03d84693c46034f7f0c5473743c10dc725350b4503fd474c7d3b92442105aff7f0152a22243e4cc2fe655bafe6117f7861eeba436c74be
+MISC metadata.xml 464 SHA256 e0e2c31f4a7384da1adc650a0b22f5e0d5d33228f6625bb3dd71e872a09838bc SHA512 519adaa6b36a44f19519546e07b9763b2e4b9c0caac3cc0c73f79be4354ea7ae7228a6523e5712d0bb84f57fc225c2592105b55aa5411d8dc340feccba56b066 WHIRLPOOL ef75d7c2b712bc2c81948758f303b4717a7d2b2f141a146df202000d5abdeadce7674b1cee5f25d8c437f7dccb9ca8a45e05cdf68f5b1d911924aa8c9042c3fc
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..550578fc55f0
--- /dev/null
+++ b/app-backup/rsnapshot/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 type="person">
+ <email>Sergiy.Borodych@gmail.com</email>
+ <name>Sergiy Borodych</name>
+ <description>Proxied maintainer; set to assignee in all bugs</description>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+</pkgmetadata>
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..bde8688ca3f2
--- /dev/null
+++ b/app-backup/rsnapshot/rsnapshot-1.3.1-r2.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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.4.1.ebuild b/app-backup/rsnapshot/rsnapshot-1.4.1.ebuild
new file mode 100644
index 000000000000..c7bf113fb38b
--- /dev/null
+++ b/app-backup/rsnapshot/rsnapshot-1.4.1.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2015 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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"
+
+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_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.md AUTHORS ChangeLog \
+ docs/Upgrading_from_1.1
+
+ 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.4.2.ebuild b/app-backup/rsnapshot/rsnapshot-1.4.2.ebuild
new file mode 100644
index 000000000000..ddb24de4790a
--- /dev/null
+++ b/app-backup/rsnapshot/rsnapshot-1.4.2.ebuild
@@ -0,0 +1,50 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+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"
+
+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() {
+ default
+ # remove '/etc/' since we don't place it here, bug #461554
+ sed -i -e 's:/etc/rsnapshot.conf.default:rsnapshot.conf.default:' rsnapshot-program.pl || die
+}
+
+src_install() {
+ docompress -x "/usr/share/doc/${PF}/rsnapshot.conf.default"
+
+ # 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.md AUTHORS ChangeLog \
+ docs/Upgrading_from_1.1
+
+ 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/sarab/Manifest b/app-backup/sarab/Manifest
new file mode 100644
index 000000000000..45051a8b5bbc
--- /dev/null
+++ b/app-backup/sarab/Manifest
@@ -0,0 +1,7 @@
+AUX 1.0.0-better-defaults-gentoo.patch 809 SHA256 731965d63bc53a8031a4ff73b056dc49cf87b9db27016891b8fc759bcdde0693 SHA512 733484580782296c344d9c2ec69d4948359fef9c7513d9d481756c9f80fb4a369919dbbae01489dfba4b560d6c8077c755a31fcc74ba01f99148f3f63824fcee WHIRLPOOL bc90af4b8fea4b7f013f3f65d3e00c847d263a5e1bd6b54e6dd3703a9671f612b242744080fe7f9dbaafc922b6aa2f127505b4f0bc7095421913e10fc9d65e31
+AUX README.Gentoo 443 SHA256 15329d6cc2d9d89c7e9f2939a20567fe31b24de998e231b81dbad471592aee0e SHA512 8eba4144634e324bf59adbcbf0dac44c7ed4ae5a89dde7f201da47dca55969d59040f0cf3ba9d632f22a92f7e3aa1d44c0d0be2061bd3facb9d3057267ebf7ae WHIRLPOOL 6375ea2184988551846c88d35a4827596a404f184dfe5c163f11d10fe1f448f386794166ed168c4d10d277b32af4cdc8bb68f0d429259de1a2269a1a336a0384
+DIST sarab-1.0.0.tar.gz 24738 SHA256 4296617123e0e53c829ad7cb0c9a04f3fabcb1cd65bfddaaa4db8953451824ea SHA512 246abd1893127a8aaf73537b9eb0d43921da37ddee97a02513916db2d6abdde6dd45715fbe56c53809c5442531e8172467de1b05af264a50054ecbecaa8d319f WHIRLPOOL 54f43c7d1be4f9f5cd4f8c60ff9a995ee9972e17f1a01b03d5290f0169a2f2c78f1bd9d76d3be1fb1814e12f1bc41ac2702a89d7544a42d3a18bb108958924a9
+EBUILD sarab-1.0.0.ebuild 975 SHA256 af64f1f445cb50048e7b9138e2d2fb8ef314f7f1cc7b67a3f2bae716dc350bd3 SHA512 26a62a60d3aa3be19fe79f5d84c115c5d4110536e3e57c61fa389f820743c75583d97e335a98f4c4f88dc0a2bfdd412d5489f40f5d12e195568ac4add5721bae WHIRLPOOL edd2b4287a37da310a87a1a875a123c94e334e8e23209b15747149fb634b0d9e5afd8ed187eaac0871318bafd0cde9159889d52de01693b8735e360a6353abfa
+MISC ChangeLog 2239 SHA256 0109e8b92d49a26e7005cfeb103ed67e8053f64a18cb0f1feb119fd1f1a7c1a4 SHA512 5f2246e846c24f6139baf194a764b9ff680b5131be447dff4f98b97fff42b7f3dda362d0cec840ac27e44a24818530eaf0d780371bf9d0b30ea569c62984f228 WHIRLPOOL df48396a9356b630e01e36a166b874dcff2ef9fac0ac9b193d59937c33d98bcb9566125e2259de0d12236a73a42589fe65996fe9e94487b58eb78ad9e3c488a3
+MISC ChangeLog-2015 3464 SHA256 9539afa3ad8b71b4779f8de1efe556ad60cca718434e6799c0a44e908bf48470 SHA512 41b4d2490ea79f8b36400b38810b4015dafe285b81e868ab5621a348414b628b260327da8ae82d8abc7ba44d1dea1e03129dcbd9519f19569e39e99cf7155f9a WHIRLPOOL 2eb4381d49b52ee14dc6582fc064254c5b5e10019db0b5f94edcadde381405853d3c67e865b2a4bc125873d17cb77af2c0ed38a4861a6e8c5054c3e90c7a5818
+MISC metadata.xml 545 SHA256 cd52569314039e4950b1de5ad1fc33a802146e300f5ed6371a23acff03d8a141 SHA512 fc6b600c6047c1f2216964ae23abbe5de1516fa7b72d531eb9ddddd1d3feac2dcb30c3c769032046f225e8770483a76e01464ead26082369fba0d53f330da30f WHIRLPOOL 8924c17a4bb5c87e4823932b932cba26370ca3d8f011b178580fa7b4da3fb3cb2c05ae6ce7d0f9ec98df1bb93884b232acb0736d8f7b58fe5f5aad6994540794
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..46359913c729
--- /dev/null
+++ b/app-backup/sarab/files/README.Gentoo
@@ -0,0 +1,13 @@
+-*- outline -*-
+
+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..71ee597ed5ae
--- /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 type="person">
+ <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..6c426c2c9cbd
--- /dev/null
+++ b/app-backup/sarab/sarab-1.0.0.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..5de2b611028d
--- /dev/null
+++ b/app-backup/simplebackup/Manifest
@@ -0,0 +1,5 @@
+DIST simplebackup-1.8.1.tar.gz 9630257 SHA256 3c3767b2d2fe5a48187952b6b079da56aa2bdfdb3b3e55832f8f163847287512 SHA512 0c6c6fad99817b794c557f1d55420211b3e58de004b239b2be4c21cd88ab04ffc9a793fb55eae3bddb6b84eb7e53f0b19d3932d17579d0f3f68f024214eeb71d WHIRLPOOL 5b6bfa8c563b6cd398bbc74d4c9c8ad2d89639966990618f1896aeed3bd9dcde1a5d90ba364de668b1957a84350a643b63114477e69da5b9cf851d6ee5b92710
+EBUILD simplebackup-1.8.1-r1.ebuild 530 SHA256 de3546a65eadb75ab5fb96f897afdbae96c9dd857666f2b4b2560c2103bd3e5c SHA512 24eabe3700b1215116e3214593d98bc63f1d32eaa57af13bca326fb2ba58c0d92f4b8c0addf636dbf5289adbf25ebf640aa31bf821ac70a792db721465a0fa6e WHIRLPOOL 6257a65ef72c5d7636bfd9bc80cb33a3fdbabf565a4f71b10dc4e68fee52f23fc8e577d1e960e5a6facc89e6b14c7879d8e6d4bbe3cbc3326e26fb759790b4e5
+MISC ChangeLog 2473 SHA256 4a4eff8c2db2356869501d9623596740c4d40576dfc6dc0a51458fef9e477b7a SHA512 fd80fc3a1d6002c4b329bee8b8a86d3344dd08ef19e8bbff8d55cdeace06b7695be65e8ff31a39d4402aebcfc2bb68fa1396ab47d6b9e8cc6c995bd5ebedd23a WHIRLPOOL 6449b9a5acffa9610633b5d78c5ad93b2c4b3420f3f899b36e96eb45deb77732a61e813b3307a09d871ce61c4f1c6029ddcd802947ca070daf530890f8de9123
+MISC ChangeLog-2015 1002 SHA256 51f0aba56b0eb4ad7e80728782c0c86985534e257c24c74e59e06cbeed9ad0ec SHA512 8704ddc2d6cd9704a0c5c35d6eaa69dee0c30d95553ca6740f1b7647b9d551c37d9b74585524fece1653c56081ee00b32e518d5e828b02dfe388dcdb3e1309e6 WHIRLPOOL 5835d72de58610d86564b13f72efc47c28c531de75b567d71266648e396a340c9286f3cee5c7d34e4823d6304e2dce09ee05c2e781daa7113beb19d2346f0a2a
+MISC metadata.xml 250 SHA256 ebe2c41bc050789dd2029fb38186511f9a53e65489e7ac73254d99e09003559a SHA512 59c453803c29ef3837b19d5da16e6ed122f8a15e4099bcd12deedb209e4d873037a7c92f281a326e4265044eaf08279ce2e0c6a0e11d65b4b3969624e3c9341c WHIRLPOOL aae305c22bcf0768098d5a15b580191539abf1795f4c614264176e0c7ff74e4de5ac085d7bae44bfc35c9a0804b82af13b7a86e06a64cdb8ad896e4701a39c23
diff --git a/app-backup/simplebackup/metadata.xml b/app-backup/simplebackup/metadata.xml
new file mode 100644
index 000000000000..59179617779e
--- /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>
+ <!-- maintainer-needed -->
+ <upstream>
+ <remote-id type="sourceforge">migas-sbackup</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-backup/simplebackup/simplebackup-1.8.1-r1.ebuild b/app-backup/simplebackup/simplebackup-1.8.1-r1.ebuild
new file mode 100644
index 000000000000..3c933c229773
--- /dev/null
+++ b/app-backup/simplebackup/simplebackup-1.8.1-r1.ebuild
@@ -0,0 +1,28 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+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/snapper/Manifest b/app-backup/snapper/Manifest
new file mode 100644
index 000000000000..731c3a060239
--- /dev/null
+++ b/app-backup/snapper/Manifest
@@ -0,0 +1,14 @@
+AUX cron-confd.patch 916 SHA256 720b6842f0d6e61269156ee3405bf7db35788cd5c14fe8d00132ee5f6680ef6e SHA512 7f0872b14f1fa6b3c7990a9b219a0b2c0b941b1376fb89eda6e4fdf4b3b37818d0114febdb21d2432f5b1c08f1ba4354936d556c1c26953a0fe0f3196d699aa7 WHIRLPOOL cf3af5c39fcfbc9aa69cc223000487b765fc09d46b50e6f4e3c08d5351869772c462392fa4b730e8aa8513aa0c5f4c72b9a14e671986a5591b462a401e5698b6
+AUX snapper-0.5.0-gcc6.patch 482 SHA256 20ed5678ff102b8d9ef3c11e38d0f83cc2214b3fca088613bba3154ee4c13bcd SHA512 b512cff8a9cd7038f8ad39eaadaed7092278f9b2dadb31a6ba449d05dfab38513507779576fedf52333ebe6b0d8158722ff15afa2b43cd13cfdc25c7917bfa0c WHIRLPOOL bc83d576fd8dd0aa8c093cdd0b91ceeccdfda2cc120536a86df7ce13262a62aed5f9b01d40fb1d0bacf89da703f4677a6099bc0613e516ae97096aec42d9b023
+DIST snapper-0.2.8.tar.bz2 475053 SHA256 a44608648ed21a1346f8ae9345044901c39ad01abb501806a22c9d4a771eadc5 SHA512 ce1529062943c34b9de2eafb62c6e28b39bda6f4afc23ec5df5ddd42f213cbaf0d77d94d11d982285114ceecd27bd48206436119af84b2769ed4792aab01c75d WHIRLPOOL 3463cf8beb7adb1f3869645b20928dc21fc9cb72f8ed5275688e0b53c97b8103d0536e3246f12fcdc90c1889d221d13ce131b1920c7298232212c003ea9abb6d
+DIST snapper-0.3.3.tar.bz2 545800 SHA256 e64f42417fffed65524ce125eb31b5dbdd802a519ef04dd88c9251ef2784fe10 SHA512 f24f6d121f9a613549899b7bf3751f6d9c101db716d7bc3858a2add9f90e08861fc46927ce0130efc232240a91e24934820d0c2b1b65f206ac80d04cdaaec39d WHIRLPOOL 8a55ec12330d13bb1c4a630584418eb0e4f64580324ec8ff9fe444a1d52a4eafddac6c6c6cefc8aec760d84336f24c389e3f6d79ff07d9a40bb69cedbf35c8b7
+DIST snapper-0.4.1.tar.bz2 570673 SHA256 db9cce7f61ed1197d2663dfca444d313b05d7fb2d50af5ab468c7bdba6dd660f SHA512 23d12a4685039ce629333854bc3e8a90a524bf1207590102ccfbc358473e7bef9ca6a723d2bc8a2f0f7466c4b34dce724b806d24762ae54b26292e730a10a70c WHIRLPOOL 7f6100bc2989c931a4d95dbca3bbb6d3b6b09e3f98a9d4f1121182ef8541b1b20484c6e6591568fba1cf4bdc9045879b50dbc38438ea3336fc387ed937f1bab8
+DIST snapper-0.5.0.tar.bz2 571716 SHA256 8876b6fa946dc46df5dcbaf747bb11ac4c5a3418dd59c5ba09c47910cbad1835 SHA512 37487a1230825dc5d533e5c864965d9d05c2a3f4e12e5ae910f2721ef2497be2dafedcd13148d7246896551eae11cbcb925e04b58f799ea3d644eea329d3da29 WHIRLPOOL 864df5b8c3746aefdd1349a80cc045eb707b0dd483cab198842ebca2707d96f7ed216d6f6df424c52ca9f11d8ff9fd0c7f025a60000226501bc787ea248ce046
+EBUILD snapper-0.2.8-r1.ebuild 1543 SHA256 7ddc83ea38b3f33ce826eb2062146ee225a68cd23e513890a57dd859fe0228d3 SHA512 5dc08d9e9a85984e3bd8ba2c6797f7d37d385fd767498ccf6b44c18e75ef18d7c928b9501caa53e3b3e520426f59dfd345f0984e7e0c0b9ab0d081529ece3576 WHIRLPOOL 3c0a63df3ef6c5002d7cda855aba9561b91f2b6049a9add0c6d26da411ffed6fd240ea4c09dafc121ee4e2664845fbce7566e2e491fcc0431bee6f049c5ca374
+EBUILD snapper-0.3.3.ebuild 1536 SHA256 7c04f25f51f188555e47fcdcdb2d42964c41e0320d06d5d237a0f66f4891fdf8 SHA512 11e40f5df3d6af95b4186493bd1b216b2354d2b1d0eb7b65d1002737c15ca651acd0ac7dd27a3a93a840d010b9dff223a7130270aab30f7e668df6669f237f42 WHIRLPOOL d741652c07e24edda1d2f86650f6ccf34709813ffe7d55b08ca5f6dfcc532ac8d684e3ab35d1cffa0372bdd083f2a57552db9f45b4df36ba4035972e8b576b63
+EBUILD snapper-0.4.1.ebuild 1536 SHA256 7c04f25f51f188555e47fcdcdb2d42964c41e0320d06d5d237a0f66f4891fdf8 SHA512 11e40f5df3d6af95b4186493bd1b216b2354d2b1d0eb7b65d1002737c15ca651acd0ac7dd27a3a93a840d010b9dff223a7130270aab30f7e668df6669f237f42 WHIRLPOOL d741652c07e24edda1d2f86650f6ccf34709813ffe7d55b08ca5f6dfcc532ac8d684e3ab35d1cffa0372bdd083f2a57552db9f45b4df36ba4035972e8b576b63
+EBUILD snapper-0.5.0.ebuild 1583 SHA256 f4bfeef7f1423388d23add4bd4d9b5b21c6bc98fdc0262a7cb03504a89296781 SHA512 052e15517c42a84ab74dec462ad2f3afc8a9498d8b94692cbb0e0672c19a47c06a2d0383b3e790dff33e08a807eb97405c346d92f2b3a5bbc09503be6157aced WHIRLPOOL 1e4636bae30bf4b2b3d2aa8c6fd0d324febce6aebaf17a4fe9f5d0d998569da6be6ec8ec2ed457adc0d25e36ff3ad8cb6fd29586e046cc43c337289deffee17e
+EBUILD snapper-9999.ebuild 1615 SHA256 ecae095959e151ac799f02a1d50c512194dbe25e1248695ae09dff26dd1fd073 SHA512 e6d8980d625a32f9787e4f0bc25ad0390fd7f0b1b2a43845074abe5e585caf141eaceac5bde8bd0050c891828630c9e74827586167b3ec00f7c618694efe9c79 WHIRLPOOL 57c8c2455850ec59b45cdeaa8f54f9afb4632bb454f0d1b42e950890288581efbb64ecaf7f33376064dad6fd4244f26320516cc308e486c180df6b6930e190d8
+MISC ChangeLog 4516 SHA256 0f3d83ebb2da1333097344907b99fb96607f6c38cc802d5a5c2c6618b4156df5 SHA512 15b43539a14c36bd6e7781ff4cd763f3630e88783cf047a7428bdd37e6583ac21690035a6f7fdac849c021a74c03e8bbc6935d43687ccd08a7617e39e6dc5fe4 WHIRLPOOL 2fa23c33d72cf569bad43fe3a2371fc028a5546634b01fc54337a36856d2c945f33fadb6264ad820d5a230491a0197286d6d0c60e127b789ef82f81e7139a7c3
+MISC ChangeLog-2015 1635 SHA256 7768d4ee3ab43a214af7db2bca22072b3afff8e96aa6134d91f0679e10c4360c SHA512 f34a8cf54d6c6810c63886fbfe2cdaa383dc757c5ef2cf57fd0991360d16bd3dff3bcde6d3bc69dcb64ceec8871ff6e9e9e914d936836cd4da6660361d347969 WHIRLPOOL 3e082d13e26ad8fd03910138747f608d586c52529f67d1eb056a1830f7d054008d6603db841b3ac390d3122a3fbd031395306671761643701fbed69e79aaaeb9
+MISC metadata.xml 1585 SHA256 d8f30666478aef97b884d70b0edc257822b41ba08700d8e87d6a461714c1282f SHA512 bcb1c1c0f2818fd27b20845d990fc4bb36ef1d2502dd0a4a1bc4560483ca38a95de079a215cecca032f43aa1efaa22fe7e59d0111f6b9b776124b7f89d5d6300 WHIRLPOOL 58d4531a210a6c1847ace87eda0f1274e77105f69536b43a695fd949198a215496b9da0b608e2d87f798f9343b0e29455a92b92ed91154319bc58ff8b40749ab
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/files/snapper-0.5.0-gcc6.patch b/app-backup/snapper/files/snapper-0.5.0-gcc6.patch
new file mode 100644
index 000000000000..2720ae57f71f
--- /dev/null
+++ b/app-backup/snapper/files/snapper-0.5.0-gcc6.patch
@@ -0,0 +1,21 @@
+From 2e3812d2c1d1f54861fb79f5c2b0197de96a00a3 Mon Sep 17 00:00:00 2001
+From: Arvin Schnell <aschnell@suse.de>
+Date: Wed, 6 Sep 2017 09:49:38 +0200
+Subject: [PATCH] - added include statement
+
+---
+ client/cleanup.cc | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/client/cleanup.cc b/client/cleanup.cc
+index 0dbfc03..d7f2f68 100644
+--- a/client/cleanup.cc
++++ b/client/cleanup.cc
+@@ -21,6 +21,7 @@
+ */
+
+
++#include <iostream>
+ #include <vector>
+
+ #include "dbus/DBusMessage.h"
diff --git a/app-backup/snapper/metadata.xml b/app-backup/snapper/metadata.xml
new file mode 100644
index 000000000000..bbcc8979dd2c
--- /dev/null
+++ b/app-backup/snapper/metadata.xml
@@ -0,0 +1,41 @@
+<?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>
+ <maintainer type="person">
+ <email>pastas4@gmail.com</email>
+ <name>Dainius Masiliūnas (GreatEmerald)</name>
+ <description>Proxied maintainer; set to assignee in all bugs</description>
+ </maintainer>
+ <maintainer type="person">
+ <email>dlan@gentoo.org</email>
+ <name>Yixun Lan</name>
+ <description>co-maintainer, CC bugs</description>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </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.8-r1.ebuild b/app-backup/snapper/snapper-0.2.8-r1.ebuild
new file mode 100644
index 000000000000..9b4de6eddcc3
--- /dev/null
+++ b/app-backup/snapper/snapper-0.2.8-r1.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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"
+
+REQUIRED_USE="|| ( btrfs ext4 lvm )"
+
+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
+ --enable-rollback
+ $(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.3.3.ebuild b/app-backup/snapper/snapper-0.3.3.ebuild
new file mode 100644
index 000000000000..891e694a6f05
--- /dev/null
+++ b/app-backup/snapper/snapper-0.3.3.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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"
+
+REQUIRED_USE="|| ( btrfs ext4 lvm )"
+
+DOCS=( AUTHORS )
+
+src_prepare() {
+ epatch "${FILESDIR}"/cron-confd.patch
+}
+
+src_configure() {
+ local myeconfargs=(
+ --with-conf="/etc/conf.d"
+ --docdir="/usr/share/doc/${PF}"
+ --disable-zypp
+ --enable-rollback
+ $(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.4.1.ebuild b/app-backup/snapper/snapper-0.4.1.ebuild
new file mode 100644
index 000000000000..891e694a6f05
--- /dev/null
+++ b/app-backup/snapper/snapper-0.4.1.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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"
+
+REQUIRED_USE="|| ( btrfs ext4 lvm )"
+
+DOCS=( AUTHORS )
+
+src_prepare() {
+ epatch "${FILESDIR}"/cron-confd.patch
+}
+
+src_configure() {
+ local myeconfargs=(
+ --with-conf="/etc/conf.d"
+ --docdir="/usr/share/doc/${PF}"
+ --disable-zypp
+ --enable-rollback
+ $(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.5.0.ebuild b/app-backup/snapper/snapper-0.5.0.ebuild
new file mode 100644
index 000000000000..1b4ef13115e6
--- /dev/null
+++ b/app-backup/snapper/snapper-0.5.0.ebuild
@@ -0,0 +1,74 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+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"
+
+REQUIRED_USE="|| ( btrfs ext4 lvm )"
+
+DOCS=( AUTHORS )
+
+src_prepare() {
+ default
+ epatch "${FILESDIR}"/cron-confd.patch
+ epatch "${FILESDIR}/${P}"-gcc6.patch
+}
+
+src_configure() {
+ local myeconfargs=(
+ --with-conf="/etc/conf.d"
+ --docdir="/usr/share/doc/${PF}"
+ --disable-zypp
+ --enable-rollback
+ $(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..510d4e252f28
--- /dev/null
+++ b/app-backup/snapper/snapper-9999.ebuild
@@ -0,0 +1,71 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+EGIT_REPO_URI="https://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"
+
+REQUIRED_USE="|| ( btrfs ext4 lvm )"
+
+DOCS=( AUTHORS package/snapper.changes )
+
+PATCHES=( "${FILESDIR}"/cron-confd.patch )
+
+src_configure() {
+ local myeconfargs=(
+ --with-conf="/etc/conf.d"
+ --docdir="/usr/share/doc/${PF}"
+ --disable-zypp
+ --enable-rollback
+ $(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..86795d37905c
--- /dev/null
+++ b/app-backup/spideroak-bin/Manifest
@@ -0,0 +1,6 @@
+DIST spideroak-bin-6.3.0_amd64.deb 26863968 SHA256 553aa6fb4d1b5ed105a67adfdd56b817f5236b0a8fe3f278a45f80e74d3ff806 SHA512 d1eadf017a63bf328ae25d3d4bd6d6d7a69b6d04917ae8f1bd913c4276c477effb397d254c94526c81ae8e0f08d6d13ab98d607389d1f3df8fb02b7acb5e0661 WHIRLPOOL bf6101dd6b496dfa3f9c3a2a3addb870a01187545251ef8e2610b22b2f7966177f1170e6d06163c4670aaa6b664af7d64464d2f6a63411c0c2a90c9aad578afe
+DIST spideroak-bin-6.3.0_x86.deb 26385528 SHA256 91e83928bf3259f43c8aeea67ec70288b4b56221b1434a7ce9b723f99e5f2b28 SHA512 356b00f730fdbbf6a88a720bd0f546c8dec231c7601c1a8c2a78f085e972ea087b96eb6670ede7e593cf508ed56bda571af65a23560baf0869148d66057bc9bd WHIRLPOOL 81747c30f75f55d5586bd53be068c79b14c2c173fdbf5a5969ad682872e2fbda43a3919662221fb945b1a46fead04dd5eb8dee27c2919aa6dc030b2e2b7b2b98
+EBUILD spideroak-bin-6.3.0-r1.ebuild 2662 SHA256 03559019b4b0948d496b23c070585f70d3d40ac4eabdf7cf3a1e2b50059ce3eb SHA512 590d08a04c018ad16293891bb5194f67fa329dab209b3df90d9d41826e711b5a30ad9c4e31923396d3c7fcd77c80193e88d59134d1a07afc50d941cb4871656a WHIRLPOOL a13c520afd4c0a09aded47f68535492108795c05a0a78fb2d2b815ff8280ae97496079cfca0340c9f73c2464ffd6742b38f368496e719f50331a4f840ce8435a
+MISC ChangeLog 3589 SHA256 9d50438819b6fa9cca8de711112128d98cd7c816c3a517f0d6376f2a4a5d9e92 SHA512 5f186c47306fffb78189cc1a728fe2bf22017f94e82d92eed580bf9c54503d889d48352519205d3aea5c542c7335ce6f87b4a6a8f0261e80de96034fb9187f7c WHIRLPOOL 812e14bc3b4ff20478b43a970ebe40ff62f1c0679716d665b8ec0f198d8d1db4df3886de3d625d495745ede1d38c7c6135712e4680a5b0c8eb81c3906231a5d5
+MISC ChangeLog-2015 9976 SHA256 d87f260588c0a3256fbe97db8968c9d6cac8265129e21a6d4192f523e1fe7af1 SHA512 990b38cee66eb2af2705d4fdb34463a6ab8692620ee404a0fb2c7336fbff94d08db6b4d1275603d4d2a038a531fee917d8c8fad3bf044e3753edf5d940ffc808 WHIRLPOOL 3518bf66138df84344eff40abe128e109720e2942b862dd5869051ee01a5e2b3ae4d0590b91df88cd587fdd5eb776f5d9cbc3c4be0446ce3089a8cae64271116
+MISC metadata.xml 248 SHA256 4b929f10c2798c343335d4dc1d8f92c69e54c8b15a6240b748c4b8bc2cc70e9d SHA512 5a0cba98b94cc06306b0e352d40ff113de69408752b14e1ba9efdce3f564c9bd11f8f65e89fc24d2e2056056edef5b77ab1ca8aa33e7faad5d0eaef40b895c85 WHIRLPOOL 370154a5df414715176a741210d80d93fb60ea31d135c902a85f46af3b6683b0c5c6be956f28df349db79e1237bd496b34c5e05a0aa35d0c3e4b6728cc758627
diff --git a/app-backup/spideroak-bin/metadata.xml b/app-backup/spideroak-bin/metadata.xml
new file mode 100644
index 000000000000..d728f56aa6ae
--- /dev/null
+++ b/app-backup/spideroak-bin/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 type="person">
+ <email>blueness@gentoo.org</email>
+ <name>Anthony G. Basile</name>
+</maintainer>
+</pkgmetadata>
diff --git a/app-backup/spideroak-bin/spideroak-bin-6.3.0-r1.ebuild b/app-backup/spideroak-bin/spideroak-bin-6.3.0-r1.ebuild
new file mode 100644
index 000000000000..a71e99a92d63
--- /dev/null
+++ b/app-backup/spideroak-bin/spideroak-bin-6.3.0-r1.ebuild
@@ -0,0 +1,104 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="6"
+
+inherit eutils unpacker
+
+DESCRIPTION="Secure free online backup, storage, and sharing system"
+HOMEPAGE="https://spideroak.com"
+
+SRC_URI_BASE="https://spideroak.com/release/spideroak"
+SRC_URI="x86? ( ${SRC_URI_BASE}/deb_x86 -> ${P}_x86.deb )
+ amd64? ( ${SRC_URI_BASE}/deb_x64 -> ${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]
+ media-libs/libpng:1.2
+ 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/SpiderOakONE/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
+
+ #Remove the libraries that break compatibility in modern systems
+ #SpiderOak will use the system libs instead
+ rm -f "${S}/opt/SpiderOakONE/lib/libstdc++.so.6"
+ rm -f "${S}/opt/SpiderOakONE/lib/libgcc_s.so.1"
+ rm -f "${S}/opt/SpiderOakONE/lib/libpng12.so.0"
+ rm -f "${S}/opt/SpiderOakONE/lib/libz.so.1"
+
+ eapply_user
+}
+
+src_install() {
+ #install the wrapper script
+ exeinto /usr/bin
+ doexe usr/bin/SpiderOakONE
+
+ # inotify_dir_watcher needs to be marked executable, bug #453266
+ #chmod a+rx opt/SpiderOakONE/lib/inotify_dir_watcher
+
+ #install the executable
+ exeinto /opt/SpiderOakONE/lib
+ doexe opt/SpiderOakONE/lib/SpiderOakONE
+ doexe opt/SpiderOakONE/lib/inotify_dir_watcher
+ rm -f opt/SpiderOakONE/lib/{SpiderOakONE,inotify_dir_watcher}
+
+ #install the prebundled libraries
+ insinto /opt/SpiderOakONE
+ doins -r opt/SpiderOakONE/lib
+
+ #install the config files
+ use dbus || rm -rf etc/dbus-1
+ insinto /
+ doins -r etc
+
+ #install the manpage
+ doman usr/share/man/man1/SpiderOakONE.1.gz
+
+ if use X; then
+ domenu usr/share/applications/SpiderOakONE.desktop
+ doicon usr/share/pixmaps/SpiderOakONE.png
+ fi
+}
+
+pkg_postinst() {
+ if ! use X; then
+ einfo "For instructions on running SpiderOakONE 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..44ea02c697c9
--- /dev/null
+++ b/app-backup/tarsnap/Manifest
@@ -0,0 +1,7 @@
+DIST tarsnap-autoconf-1.0.35.tgz 600115 SHA256 6c9f6756bc43bc225b842f7e3a0ec7204e0cf606e10559d27704e1cc33098c9a SHA512 70f932b172717d7f0d6f96a357487b8f8ad13cb7332d73878f629c3abf0862da54a0621092d81ce8cd9eb8380cf5b4c32e89df4d890949429fc84737024dcb61 WHIRLPOOL c6fb8837fd3845aa037bf38852f16e5fbf74fbd5f8cf9581e86f595b30a02d7d2784db781c2ef3771da83373d4ec9d6a93e8c7d9970a68ad052dcfdb7d79c8fc
+DIST tarsnap-autoconf-1.0.37.tgz 629450 SHA256 fa999413651b3bd994547a10ffe3127b4a85a88b1b9a253f2de798888718dbfa SHA512 050053f2109b74cda16511cf35ab2c11e0470ba745c661d254b7c17efde9e629830d519896b343dbd4f48ee739dfef47b724eb5e2e78c3e7dbc4ae018a536a5f WHIRLPOOL 7a5a3aa6e5a0f6790d1ca4903fbe4dab758c104b1cb713e748721e81aa3305d6d1dea755994468d3b26451441c077362c4a64757c2f4fab552fdd9efba9afaa1
+EBUILD tarsnap-1.0.35.ebuild 895 SHA256 d1a32df111dd4f4de4b6c0d529320622159d4b2164a98e11c41d78f6206712bb SHA512 ef92677942b4303492aa290d921e9bec93716a8e310b26bbff0b77c356bdeea4e158091c53d32812404e4573251bd8c1414b20a249d42aa8f09581350d33a1ba WHIRLPOOL b754d50f9eb9337d232a5ec0d2b8b4273581d11aa8839d0f5fa432f3f98fade67adb65fcb5addfb413fe81a20a3e1d6db01b03c6106eac146e912f2ccf7bb744
+EBUILD tarsnap-1.0.37.ebuild 927 SHA256 4a270735b57ef8b8acaba1ae065dce8244db50b14e245311b390c3aadbf97819 SHA512 6193ff9f8fc4bcb2ac0f8aabe56c4edf9a7af5545c74f00df6a439666be44d42990089e7b5d366cbf07eec2102c84a4ee80fbac9a671fcca593f3d05ceae5246 WHIRLPOOL c9d004cf05d485379288bc11f1687e6e3ee310a25cc010ccf2a5cb279639049b5e0c54ed41e00649806b4f756daadaf805bfb4b3201c46c6408e07389526878b
+MISC ChangeLog 2570 SHA256 ac199e484313a2321f601cd13d2725d155d7cfcc62c8054e1bf4e65dbf417a86 SHA512 acbb55101d9a97beae80aad01aed7ddfbff4f3a396dbff2ce9bf0f88928349dede54f8845d099daa17e58fa2d4deaa0688ea6c4679a82086a88e9244ffc9a0dd WHIRLPOOL cd88c8d89682bf1269a795c081dda66cf313d9d486d68023fc59f6799fb091f6bac31a97aa827dd4d3eef01de9f36f9cd58cf7162dc95687c60ed320dc820f34
+MISC ChangeLog-2015 2081 SHA256 8dff7fe513b4773474d8a8b01282d947238c37c11c3e9111e41e69862c8c036b SHA512 0c4ea6f302203c73ec6691cfbfd90cd79c31d04f0a3cdc700ad600b7719f08d731d5751ca815975a13d07929191782aba8aa41cd2f03c75905dbdb0c344a3248 WHIRLPOOL c71ca6237c2707f30fafa44e473b6622de5b9bce50f0cc1ba6b630c034749763bb7b0fbab9228ea63cd603ddfece5e9b0b617587f14ba4b0f9d17ecfbd7ecb49
+MISC metadata.xml 275 SHA256 4ad67afada6d856ce6924b11f0a4a99a30a2fa53e12d7d4bfb347492f994640a SHA512 5cfcef332788131c3e3b46355f30c3b06fb247f83bcb722e1c4afd5cef5189c3fcb5ba80b55bbf90570661f91c10f9d2803920ed09cd8b2ec76e90775cb44249 WHIRLPOOL 43ec3445f1999a7900f100fbebf7620bad88b4499a4349b7681dc65a55db41387b7867c52cb6be76e28c780a4e088bc4943d4280eeebc2b6ec5de62d86a6aafc
diff --git a/app-backup/tarsnap/metadata.xml b/app-backup/tarsnap/metadata.xml
new file mode 100644
index 000000000000..bf9dc03e0dec
--- /dev/null
+++ b/app-backup/tarsnap/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 type="person">
+ <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..17f77b783b74
--- /dev/null
+++ b/app-backup/tarsnap/tarsnap-1.0.35.ebuild
@@ -0,0 +1,37 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+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 libressl lzma cpu_flags_x86_sse2 xattr"
+
+RDEPEND="
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl: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/tarsnap/tarsnap-1.0.37.ebuild b/app-backup/tarsnap/tarsnap-1.0.37.ebuild
new file mode 100644
index 000000000000..537b94cdf769
--- /dev/null
+++ b/app-backup/tarsnap/tarsnap-1.0.37.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit bash-completion-r1
+
+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 libressl lzma xattr"
+
+RDEPEND="
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl: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 xattr) \
+ $(use_enable acl) \
+ $(use_with bzip2 bz2lib) \
+ --without-lzmadec \
+ $(use_with lzma)
+}
+
+src_install() {
+ default
+ dobashcomp misc/bash_completion.d/*
+}
diff --git a/app-backup/tob/Manifest b/app-backup/tob/Manifest
new file mode 100644
index 000000000000..6b191dfd00ee
--- /dev/null
+++ b/app-backup/tob/Manifest
@@ -0,0 +1,8 @@
+AUX tob-0.26-nice.patch 248 SHA256 953a0fc022715523ba4e95be99bb21f0b4037793d1ea104e6b4eb668084428cf SHA512 5d6cf1434a0ab3f3818748a302d4be78f9a8b71b68a8f641484fb5181c69c561d2fae84a0507b6bd5e124c2df8974985dd1fe9e439b6d4fc622bfff3f4a34868 WHIRLPOOL 4b1b60a91e01c3589dc9788774897c80e48de3ff6c9f4f4e18745c00daaa45f6e5dd232ce5c94657be81280479f92c70c314baa1b0bc6ba6a2ac2a183e672e5d
+AUX tob-0.26-no-maketemp-warn.diff 386 SHA256 3173b761fb3ee878c1954662c406207f42245f32fbd0e5faa02a6fe57ba41405 SHA512 4c91ee5bf9b6dcbc9076481e527da2660a15c7bc20d4105fa3d89aafae3062fa73b4f0041f71a74ff15fe727ccdab36b324fe99974cf3d0dff424c9928b72b30 WHIRLPOOL 729100c363b0014028d6009ed7d08606bf95103ce6c13f0b1c0b47bfe5025519b236ec9fd61559b92e8d3759a68856b4d86282805b901ae88d0291370fffaf1c
+AUX tob-0.26-scsi-tape.diff 406 SHA256 03804f0ca014d7820433bbf7d93b4941ee7073b6611bed871014568a1fbde4f1 SHA512 fa0f6852ebbd1c293dbfea32be81fae370d55fa5bb42596f7cff6f970d12e55667f15a56f5e40db581a64d24704fa47ad5e66e18a402a0cfdeeaa89e5a7ce0a8 WHIRLPOOL 82469ca1d07e25914e07271883e62107eaabbb5c3578bd123218bc02110e1881dd03745a8416f8ae9f3dc9f654aec6376dd165c864b830f6be62ca133569c5e3
+DIST tob-0.26.tgz 107711 SHA256 d05af81cc4316b7e34660d78c0dad7f7a917434e7822b6ce6c156d8c11cd25e7 SHA512 4c570388d3dff6c240a36492c05f7248a5efd527235b45238731db4972ed3fd10b8e3e5632768f16214bafef5e27d7796ada253ce9e3cfb71d182d1c9516b9cd WHIRLPOOL 35799605ed95ca50847a9d6009253574315f69a28f82095032bcbfe1e7bcaa7583e5de50c7216143fa1ed470a4f4a912c80b45e0c249920ab475e399b8a07713
+EBUILD tob-0.26-r2.ebuild 724 SHA256 d77682f6dfea72d6f98cdb5fe734e74849637f49b80856a722aa050f82cf809e SHA512 cf3ab21956e857b7d4343161883920a3590dac98440de913b24f3de256cf80ac77ade001bf557b17296d632e81b31852183774d99aaf153959c105a77736e4b5 WHIRLPOOL f3b33f9cf152be16f9345a4cc9dbb16bf919e7ddc339ef294631ea60ad221b3c0746263d3d493039fa545775887ff3b7f7f61fbe63464c6a3262150e7b585eed
+MISC ChangeLog 2717 SHA256 67fecf477be9b21e27d1463b9d234a61bc3aecb2f46ef6e2af1413e959c0ee0f SHA512 c4848724ce2bec325e2018981737b15d7b9e737f44c151cc0f043359522c8bcdc764435b0f0052b05678b061896775c69ff7212d49d3c23f40db23e973188cf4 WHIRLPOOL ca212dbf5a82c932df657de3d17e9c4971246d4eb3828989d3b5271373d6d831b1fdb7689037177eeecc4be38e71b8eb500ec08f30358621ef9f2fd0d401415e
+MISC ChangeLog-2015 2175 SHA256 a174fb5607e32226ca6be90e30fd40704a41fdc7516211fa29361e708a352dfe SHA512 b2a5a3308d3ff854114fb3a1fdd1cc80e0046d1c39f61c0c1c2f8ccf3a06e727c6abfb20ee2eb16487164146fa554031229d935b61dbb5c54bdbac14048e3a85 WHIRLPOOL e2f11aa79d1f61c7f2c255e75d3057ffe8280825c81941679d96bdf81bea55ffe6a98cf5827bc606e05281f3dcd0f70438992dd3b8755f93af333e4b28c78a39
+MISC metadata.xml 166 SHA256 2caff447f5bd2701d8456ada5cc633c41ef4373fa4bfeabeb73599d40bcc941b SHA512 a56648c974a1d14dd4c18237532773c72057a13ab90c58b5da04f185e3c12a8bd8d5c21fb06053507f31766291a82dc7d87b34cd65fd94cfe2af7295c813ef84 WHIRLPOOL 1ff70497eca6531f0e0614c72a19f4b8e5ff486a58d369f4f0b36308d1d6b01168f9da887740e3b9f536236be251d3fe05f904d27a9233a7cf613416ba882968
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..6f49eba8f496
--- /dev/null
+++ b/app-backup/tob/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<!-- maintainer-needed -->
+</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..ca568a113f3a
--- /dev/null
+++ b/app-backup/tob/tob-0.26-r2.ebuild
@@ -0,0 +1,38 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils
+
+DESCRIPTION="A general driver for making and maintaining backups"
+HOMEPAGE="https://wiki.gentoo.org/wiki/No_homepage"
+SRC_URI="mirror://gentoo/${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..c4e03cbac8aa
--- /dev/null
+++ b/app-backup/tsm/Manifest
@@ -0,0 +1,92 @@
+AUX dsmc.conf.d 196 SHA256 ae57f5f1f61131c4368cb61733fe4e92d52dfc4edcb5a2f02efcc8b59525db48 SHA512 5697da5a820f328e80c78063be2216572b544e4195efbb0866d15f781be8d155aac257b3bb843e67d466b2c1b37efdc3922397cf49fdf5cc18f0c5c08808f634 WHIRLPOOL 8b64f60c9e3421904fba90847879bd7710f7574a2c17b2d082acf393f658cad364281c427bad8bef37d4830f29ee5e4d1fba43bbb3d429410a847df5d2f209c4
+AUX dsmc.init.d 718 SHA256 5569331e74ee6bcde091ead0fbfcce849d6687f649ec7bfd58fecd8ce08a5c43 SHA512 01cf7775b0a7e3ad84cc2c35bd73ae3ce6a4fb1c1968da6cfe9d97a8804833970af32873f895181d7d2220b0787e96b67c4b5f8ff4b6d450ee3a5d92735a6f2c WHIRLPOOL 872f6365a79db16234ae32c2701d65f12d475cf02ccdd44863d96baef022a7e33c9c86d5a4fa808e3e6a9dcec0aca416be91dba341be45e17e20e10d6fd9c979
+AUX dsmc.service 184 SHA256 03682dfbe17ed6069e66cb999d1718c06e71bec20f5d0ce29cbb56e9414ec1c7 SHA512 b047251e3fb7d006315b0f069adac62bc3c7f6ccc835ab59a2975a3f206151de8b0cb6a8f414d0f41922a961378376d79d61e38cd7be2aa5743822f365f87bf6 WHIRLPOOL 78d16392b4e95d0f2e0b37687da928d2e1f558b90be1c1f8731714899cddf6d1a63d9858158b52031d805e48f811060cfd0a75afa494554687344e7de88a59b6
+AUX dsmcad.init.d-r1 531 SHA256 b9dbb60c3ae4e9d81e9ad5b8da11cfd4650a1798960a58f08e4d69a7405ab9bb SHA512 b69166e9e004d81a7f43551e5f1189c3a545afc67e5029009e9693fbed20a247f922975fec695542f0a3afd7c0c5a4ee6c026678de4812b00488afc45699699a WHIRLPOOL a9e8a67a39f2526804adaaa69002a243ccad8a1a56b03f15708fc514352f4902afbb8aa197b0a043a62ad898e6c93f282e9bf26bdd8e447f55911c3341aa72a5
+AUX dsmcad.service 224 SHA256 120f075c5c6006809d6b4bfdf2f75308eae95cf818df18e90f663215fe291900 SHA512 e3572098abf5b2831d10a3b649337b5c9f1cd9fda4ed58844408b6fe31fdc68a3bbc197eab227f9808bc9ab4b4a7488c766aaa472e801d88631b6b8ec398eb45 WHIRLPOOL 38b5d74e301f3839362d1c1052562af508b76831c4128ea7d634b6f17aa6cb84681f728ac2a32593cbc669b880a803be072e04cf70dd9a744d0ce939c53a042a
+AUX tsm.logrotate 60 SHA256 b92ba6a1fa11b82fd32e48efbc8ed362fd46a0d3ae021c699d24200df67ebbc1 SHA512 2f412c61a21dbb2c69b2c12130ae12844787d998098de269da2b8a284c2ed86f7244c2854d7050f2a521b3fbe7239f1ec4339f3b434c67b9cd57980fe5de5a92 WHIRLPOOL 2280c3631725e7d9ab51ad72f3d03b131c5c1036f2e213146f4e206feb32502520f31668e5c26956072e506f8fd476a0fb8b2e7f7dd3ee4936437b2e008aec0e
+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.0.3-TIV-TSMBAC-LinuxX86.tar 98653163 SHA256 cf609457005a14fe8780f6ed9614daf5c55c89e8f981e3eb57b4400e122f69e3 SHA512 fe15406f9b9e2e099cede6752c0e5431b81877f4167871dae04be95837fc15da85860a68809d9e0d121ccefbb72aef947655c94aadf1fde2b87bf581848ab689 WHIRLPOOL 07083fdb389ade842876a681b6f3a6c1d28d123691f7cf03eee7a7fed9b0e2a186802dfb951fb86c336b4ced17af143a2d42ea96fd40e08798e16d31960a679c
+DIST 7.1.0.3-TIVsm-msg.CS_CZ.x86_64.rpm 4450698 SHA256 d400c6ce9792a011068434c022aecdad222531ae99583edad887f676f0454b23 SHA512 8f5e59c5fece331fd2a743854fcf7bf9248ec7eacccd94124078442718cbc52d70aed6ad2f543f017f13a17b0f03e46e40e707a7f4548c70b00d5740ff93d0ca WHIRLPOOL 02286623b96622035a446c15559ca829b3b24b026a980846187e9b08e45eb8d7e44d064b45256d7ae119686abe61c5f975ccc9d143329dd0cdcae35105e79671
+DIST 7.1.0.3-TIVsm-msg.DE_DE.x86_64.rpm 3748176 SHA256 b6da84a0750b90a3ba7643a3565c57436cde1964d57a9c7be86bc4fcb279df22 SHA512 f8ac6f01678502a9e2f296a8c84e11e2e0ea45e8c7584977bd4eee9f519468ab611c0ebed979c6a493f6830eb7490f057e60d6a027394dbc247b34ecadea16ec WHIRLPOOL 4c0be4309a1c628ea939d7c99c859982bbeaf0d7963345b83222470ca7357e7061879fedb83e98cf6018f1461fdfd5c4c8022dcdd8d5e0d2bf17d2d8bf3e00ff
+DIST 7.1.0.3-TIVsm-msg.ES_ES.x86_64.rpm 3787713 SHA256 50deefaaf9f5760a562ce7b139ce2464faa8515b58d1733050fb094f2a796cad SHA512 f7dd5745c1f9dcf5cfb910e64367d876d2f8e845a8cbb4e14e1a465f7fe11806be00d3778e8e0d9c44740aa36edcd74fe4015217312ed820a8be0b95d4d15486 WHIRLPOOL 338ca05370174b520fa2277b0e51cb345a3b64c6c362c76b81e299628829665ea402957031405d7473daf46257b5c4b6cffcf864dd9a2d89c4bb0a4b982133ac
+DIST 7.1.0.3-TIVsm-msg.FR_FR.x86_64.rpm 3741153 SHA256 217fbbfb180154ad2668d1d1ba76ea1751f712cf9314bf29e727c012d83096b5 SHA512 b4feebe4200a6c4e8c63164b6efbee75474cf85b2fd103465485c47c007d8ffc20235af482d6e77c0e55008fea55622d3f0f4596f47de36d91d858ca1a7c78d2 WHIRLPOOL 57e3a13b294f27195686ca8d25f25f58d4eeb8405e97d0a675574e4e74f4f5231733c5fd1b3a71c7d979ce5b2d5b2168871d95f8bf9694badd2b6bdafe072fdb
+DIST 7.1.0.3-TIVsm-msg.HU_HU.x86_64.rpm 3830832 SHA256 9656ec46402b5574475a2cc4510432ab1880d2a23c6042f8fea38979b3effd0b SHA512 fd404434954997d6f3131dbd0b4952d17f25cbf2f764250b5deda269482873e386e04d45f9e4ebf0d94ee50fe5f1928d88def146e0859adcb5ed3766d970550e WHIRLPOOL 02fd19fd7fb131a38452d0c6e032776434f9e7666ca83d1c84ce399070f3e72fc9137b7b6f7b77742673b580c4aa1e8a459b3b1cf8b6188cc38670d9bb0a9220
+DIST 7.1.0.3-TIVsm-msg.IT_IT.x86_64.rpm 3651505 SHA256 e6eb362e878102e410f80d206832e66a76e87b2f1388d247f4de3bdfd859c75a SHA512 15f009ac86e488bff2edee3a8b050132935d895d1d53cc91481220f8687acf27d33f1dcb95849edd0462cf296fa47481cefde32f72bfe2e270fb4c6b9ced8990 WHIRLPOOL cb63e3a6d4dd71d1d4b5fe12f8939616676f27066afccef7c73cff892841e74a04d3e2e3a327cfe4d44d47acda3b6f08f2d0247895fdfb8825ba37424dcf9f99
+DIST 7.1.0.3-TIVsm-msg.JA_JP.x86_64.rpm 3770577 SHA256 da8b974c1041688f02bad88b7eb614c80f1fef0421e70dcf632f724227505e73 SHA512 cbfb5781ac8c68c6ff7ffe0f65b1fa9f153d73312f971ecf10251d0f250c1e16f2a21d985b2aa79893775ede325c31d6424cb00e8f0edb36e5d69467a15f1068 WHIRLPOOL 36b84470a9fa3f1b0c4c0489380c8270d5475fbe29f707ec618bf518b2e50b691c5e5426847e61f8321365c245aabf305744aa25ee64ad0ca8302bd54969db27
+DIST 7.1.0.3-TIVsm-msg.KO_KR.x86_64.rpm 3326626 SHA256 c348d13f22d8776bceec4ca86e1b3443a589c7a311ae3355a2e83b9ffa4c61d2 SHA512 d575e0385a0786f80adb69b2fdfd35d96802a5f22ef4179cf11fee3f184bd5cf7f79191027c089bf262caaa998d927343bc532eb5a4a02a9eb9e10cc82df8607 WHIRLPOOL fa4e17eccfd942f0f979e3d0bed785f6565790bb6c631bc6ee04b3e12fb4448d334e8a3dc473f17c4a5238ee41d45632fadcb83db2b73d418558ddb088b754e6
+DIST 7.1.0.3-TIVsm-msg.PL_PL.x86_64.rpm 3719845 SHA256 ab4d58b29759a13c4849cd6bae303f75dfa54361995bb6d0ecae84a1c218c683 SHA512 61268028e0f35e3da4a1477b3f164714eaa05ad2f2c54d934018909d1887dc990017d30f7c0c92c22d4f6342aa85f59fe314bbe6be0e639d0f456ec134e5bbdf WHIRLPOOL 62a2cce91c6ef13f2a39eba88f6c30aab839f7dd3643694ca3507bb4341dbafc7b615d11ae113a6be25af9d25723581394b109e11a96845dc0e2da519539f8b7
+DIST 7.1.0.3-TIVsm-msg.PT_BR.x86_64.rpm 3730125 SHA256 f1cde1ca9a74145382f9c1e6ecb69d1cf10d7cc6ba9bb9415e390254d912e07d SHA512 471e8a668ed3c12785e2469127e2aaf6c2e36e24f49f367db0a5b7b292ee4ce215d6e5bd53fd50c14e121d4f75fa9ce22482c0f21f2e8ffdfe897c5aa39d15e7 WHIRLPOOL 8e253af14525b374d7bf52b33b7e70d3147d3d8237edfb04924edb0d52957b5d89295a857e094fde98ba622049b714e4256a6f42e39f9b3f575e33ba1c61d386
+DIST 7.1.0.3-TIVsm-msg.RU_RU.x86_64.rpm 4383399 SHA256 0d1b2559c09bada269b46cfa92c5201dd88594ab0fbac982f40cc647a8fe4804 SHA512 d4d39251a5b5c0507897855289cc7516fb4fdb60ef788b083332a9e15ff31788c74de64950cc04f67f0c16d64f7bccc85bbda07106f1cd1eba63c2f45df8cdee WHIRLPOOL 9b005c286968f7d2f74a32572e7094879ea5618b676d1e08cc3cb487df6e07aefeebdc48e9a2a0b1321ba010cae8dc341d610289411fc61d59bb8247f1fdb472
+DIST 7.1.0.3-TIVsm-msg.ZH_CN.x86_64.rpm 3439170 SHA256 3ec55d3165b69c3d22d1d5fe96ab2398ce72952b8e6a3bc1b0e71011caefdf5d SHA512 acaaed9f3f5bf2e442b45b511cbfe6b6075b36be8073e61ba1fcc4bd794a717c436245febeb5f2198bc7a025600c006ef1cfa2b2380be00c5c9d38d8aea50a91 WHIRLPOOL 94b163b61e5a66aeb628f73228557a44812d25a3bbf2f804a8ef7feeae6990e0f0e7516133f07dea608ef88dbfa0f711510351ed8d161510a5e5d74ba6133d31
+DIST 7.1.0.3-TIVsm-msg.ZH_TW.x86_64.rpm 3524512 SHA256 45962815b4deaa83a7202a7381cb02681b6f1edaa5c704000a8ef186a2955f85 SHA512 440c5d16d8681b60493f33b800d20cd4e4cec7cd60ae59d76b67043e7e9693a7654b5975e8ce5dffe29cafbafe9741bb1651630d65188ebc83bf29f572fb7ac4 WHIRLPOOL 37c2e7a0b3ddf4d87438cc2148c55c9d254f8954f2a78bed605ab02632cd9ac527d07dfb2b8b4161e4c96c75b08ba638f4925d157130ea94d517fa5859948d70
+DIST 7.1.1.4-TIV-TSMBAC-LinuxX86.tar 107806720 SHA256 5de583c2f655e19bd0dc5aa39120d889744e74fea4b0ee25b5c0abb09170405c SHA512 ef0d1aee978f7664b761ff48ad76c27a4693576eb43320f2367244e8d6c69bf69e6defa30d9abe61b56c2613ae08df4905097c695c3ceb3e3d657224fecf894f WHIRLPOOL 4c8cdcfe46caefd5f3717025e9c328894a808e0a972350f6b377a58527dbc2226d4af11d364f69ebec28f81b6778549169ae52f71dbe7930ed143a9ffe1707a8
+DIST 7.1.1.4-TIVsm-msg.CS_CZ.x86_64.rpm 4520127 SHA256 26d5d80a5a8b4185959401c0cae49dfa9f0368932984d8b9b0a0ef6a7dab15f7 SHA512 6af571027ff8500c696626c2087f735561b8e5b82be4e24a3d4abdb3d1d1dca0bccb63282f03a136bc1f2d48b0741661da80b67ff1e50ef3bdd9777f4f9aff29 WHIRLPOOL 6c3b316529c25ff5ca91c0e6d52fd4ef04bd2a759a522884f95fcfbd1841d6289c8d0bee44282aa86a27f8254693ddc05796592f318b0b7b9319fedf26f3d969
+DIST 7.1.1.4-TIVsm-msg.DE_DE.x86_64.rpm 3820514 SHA256 27ff21934c7b168e71024281a9b8bf34aeabdd62a9164bab4f27d9f3539263b1 SHA512 ce723adf833d0d52cdf644aebdef6499d011236bffd3a42756705c771350790a181416dff51bf4e9804e72c8dd80d6b7be8e8e315fc758ed735ec4b022e8636a WHIRLPOOL 670584187c600500c2686ca81b019accc0feee3e98779d399448b7e708a9e18801d6ac5266c0fb9d9899e1ee8627e9014aaa5ac5174d1b4fb426caf94c989767
+DIST 7.1.1.4-TIVsm-msg.ES_ES.x86_64.rpm 3850294 SHA256 58ed22a273afb165bd0d2808e535bf0834908970a69627e07b882ba321e27eb0 SHA512 08fdd1cc8f6f8ea9005f8d063b04a8cc780da9fd6e75e0101a70a2fd910829d4634bbe3b83bbbc8a154aba1ab9bd6f298b1c049fea99e915fa4cccae007ebe42 WHIRLPOOL 6d02d94939fc5faf28f4f12e4d38dba4160df078ce4d8b35a057b4158b5ad1b275cba198a5f1d5fe63c05c2577dacda2745bd59ae9930a02911591383b55a0fc
+DIST 7.1.1.4-TIVsm-msg.FR_FR.x86_64.rpm 3804267 SHA256 8f72546a66ec593ca7b0e300fd347ff5d65099c78aa4c0d80ff343fe4271cdf4 SHA512 c768e9b1b4939572c4165d33c74b8221d6cd1ef96bee4d9c3a9754c9e611e7bbc23d825061ed8e2a9c36b061fff928cfa68e060cb40ba6349923bc958e7a42ac WHIRLPOOL a1a58b8aead6e1cd2703ebffff08ef3169e29a2a67f0d63048a297d1427aa1ab51e97dd9f77701c36996162d942a53b3b5f1451244db3956abba1f5521f19aa8
+DIST 7.1.1.4-TIVsm-msg.HU_HU.x86_64.rpm 3878375 SHA256 0f0876960630c0a3c20397da4fd5962a508521777d7a31210ff8a6e3c69b0c48 SHA512 bee4e11ca1f81c942b65fe5fdfcea3ad8bd08faefff7748798669bca3d417560688d3d8d83f8116cf78d6cfecd1e23f74d7f7563b7898d24759cddddceadcbd3 WHIRLPOOL 4ed75509abcfb68ee980fd0032f3eb0ab0e55a6282a1c50ce1d33d22573ff3ef1ccd6dd56dc20604ff502a92da7f66f4f962e1124a667bcdfb246eb464d7100e
+DIST 7.1.1.4-TIVsm-msg.IT_IT.x86_64.rpm 3683951 SHA256 2a5fcf484a268bff79342ce23d0619811be1c3750959891a13a1a2df437a734f SHA512 bd051a1d52c92951530373d4beb47ccfbe61416d27a1b31525fa55464c4ce86247de1d170b505929f03c3cc9a6978e925a1e3561bbf21384df841fbb3362aaff WHIRLPOOL 0726e73590760b9ea0ad5995fb9500986929f7ec54427f3ed9c493bdf08323b35c1e73745b6d8e15af4755cc89695c4c8bf2d5ffe1074a09e22c0fdea768f15e
+DIST 7.1.1.4-TIVsm-msg.JA_JP.x86_64.rpm 3833380 SHA256 3b83ecbb9eea4f21d01e16938a70dafb8e2380e8877195641a55008adddc2da9 SHA512 aa35807b0d8986cf8953cf85422e698f0090997e89288bb6e9f99286f6f8fe3f42a55eef581a1add66a2ff40cbfae25880327322ca07240a766d4ff9ceb97802 WHIRLPOOL 2fb68ee665a1131b5835de15c55091fb633cbde5e33eb0fa8e9dbc9d0f6dfd3884951d8a5d981575b775ad43b76be04a72a4e841d1ee3f80fbc8ff99d8c8612d
+DIST 7.1.1.4-TIVsm-msg.KO_KR.x86_64.rpm 3670780 SHA256 1b3728a0235c2dc7019a327755f4962973add15bd4251a458443cbee35b55a97 SHA512 1a96e0457454ce9a54f984be5e994244e80ef77fa091748780cebbf2057983b91b9d291fa2ae2a45f1fd4907168dbf52af10c5988e0d2318f89a3b7fb107f315 WHIRLPOOL d18a95ac6c927e72b543c5dc003605aa1f96d491168b6d549ce731b43c8d74c00c25edf8d9e59121f35922263897a57fd6e931a01e5f9b06a0715f7d936d2ffa
+DIST 7.1.1.4-TIVsm-msg.PL_PL.x86_64.rpm 3757534 SHA256 ffc9ea0027183357fe170d65e714694a557945f6f164a4790564d5cf49cd45de SHA512 3088182f7cebf20b4ed9da2ca18f8bfa05def5cd671eca638629bd83fa8bd8bf152fbb2db710348d958777a8b1ecf890a09ddeef72010fca563827f4392c2814 WHIRLPOOL 1c130637bf9cfb64ebb6bd379409568c57b160212ab1384f9bb6099aac70d61d74bb4e80c7c71db08891f3bd125f08e235e3e682f054d4fd4ee1ea8ea7856798
+DIST 7.1.1.4-TIVsm-msg.PT_BR.x86_64.rpm 3787311 SHA256 78e593b5291c56f9b10f45dad3880715445622deea371d5364cf6a8d7074a5b2 SHA512 c1de15f6e192ade933350a1eeebf4b33ae7f013697e8df4009424dcc21d29a4a8aa4b814e8e00ac16df536191644f72ea08f055a2851fc0c05e46144427ed80f WHIRLPOOL 6d0f66f60b31bb1630aa0139dbbf75baebe0944378f53211314065bf83342330a554d60bed48a8d95d6f747c93b30c775a00c938a583513ed8844727cb216462
+DIST 7.1.1.4-TIVsm-msg.RU_RU.x86_64.rpm 4439766 SHA256 63ceac563d7b7aeab48519533e8a6eafd946e79ddc3168e3893473579d628498 SHA512 e20ef1f68a9cb1a1ee6ad5d9873ad27b3bc8c9d93bb01a82459e6a2abfb2f69a2f2d52f11913e3d6b14db3c6c9f558d46dda5b5ccfd6a7bdb7d652ff3ff86d4c WHIRLPOOL 5c10159b8fbe0eaa55f1b54b4ef2ab026cc9128125af40274978085331f6a0ee249f5fbb853d4f882a5fde04812cf9977140539e8ba2e3b5f192db04a2e777cf
+DIST 7.1.1.4-TIVsm-msg.ZH_CN.x86_64.rpm 3498617 SHA256 56a1f7ea91336451935fba3c2a450fd34aaa9f387f94166b2dbe75bdbb9fcba5 SHA512 c047dea24569348e36390936fa1bf5ce505503a62042b5965be70b7f860992bfcabf735c8ea1a64fc88d70140d1bfa54f3197a04daa24fa0ad815fcdf1d4aa2a WHIRLPOOL 4f78fb8acc82ca5dafcef700876303b5ae53bd6662ba35613f0737dd617cb566904d9f5bc623aabb74f84b0495b6f972f5fd6adf9348b52eaf86ab344bd94107
+DIST 7.1.1.4-TIVsm-msg.ZH_TW.x86_64.rpm 3581954 SHA256 2af3761fca55c365d376f41014c55fbafdfedd4752684997f1d2ce5793d6accc SHA512 6f620d51e45c966829f49fde5f5ce0bccfd5b716f14d2cbba2a2dd54acf8715a5bbc43c3a8ccffb2febdea5e74f487acb3058234e1e17786cf81d804d750b348 WHIRLPOOL 6f486e5d06dcc0c90ecc61ab6ec038efd46466b7ebab053edc442fe6ec97695b1cd6acaa2915c7f4717ca433a72ca9586653a631ce2af543af3c59c2ae9148c8
+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
+DIST 7.1.2.3-TIV-TSMBAC-LinuxX86.tar 113408000 SHA256 d0c10d45a0c3ca283b21c0319997efed2c33e8a0cb2671191b5923b7309e0935 SHA512 47c6d7d78ebe2430bb39af084daf37e6e1020b675761c0789b7bb9078b56571423cbb7bbd7cd7f6cae41bfbc542ad569c3fd01fc6bd84b0904b4d9e64b9a564a WHIRLPOOL 2fe4448a5fa49b5f69de99812ac7df4f737c5b651284c0655f4a986bf1acd34ea59f15d0a36f63040b8f0daf7850865403091adea92a8a7c220d123c278cbe88
+DIST 7.1.2.3-TIVsm-msg.CS_CZ.x86_64.rpm 4436111 SHA256 c8da34c31b0b33ac00a80cee98070dd71289a54d1d4ae3b7d5ca702cab596b90 SHA512 ff9cc0bd3b209a19c03417e9283e5ac7572dff5ed54cd39f216bd671c432e68ee341b3560a19020ac9f4469a9747583c16af93d2c373a20227562c3ecfcbc6ca WHIRLPOOL 4169b74daa6f1327e9c6a1b7d4d5515b9c8355c6aea1ac99c0b3220b4c1c2fc64810ee905945ace9df79a2778684cb496d98c7bd92588ca691b88f7a922a0597
+DIST 7.1.2.3-TIVsm-msg.DE_DE.x86_64.rpm 3745823 SHA256 399a4cb8126691816b22f37d760c44f659133d79ac69be64b782263c7ab9b17d SHA512 d2be6d1ecab5239669eff776fede2cfaf6a370ea43e24c0623dd371b4db6b690539367350f5ec363a11d3bc8e41ad24bcbec0799e8cfadc337b69e5ab26bc0d0 WHIRLPOOL 25c4b5fd05f21692796595e09e00d049729cbe97d141de4bdba50f6029b6b6b7e751d207f1025c7cf508c7307c871c7df92d04431502d9ad4bdc77f4c29a8e07
+DIST 7.1.2.3-TIVsm-msg.ES_ES.x86_64.rpm 3780755 SHA256 9bbf3016efd6625a1fd1145348332fb0084384f6921ee57db30c575263f20d73 SHA512 d62985cceb0433a4dcb8107b241a3c13bc13ed8efef01680dd71ab8712bf908861506542735295a199ece907b9acb0df72edca7304c618f5bf5053ff94638b8e WHIRLPOOL fd9912d7b17acf7f2e359c705e77dc8d9043371876507dd0ac549aafb6702c9084f73c4145b9812b55538ec4ea1d46f04b8caec1e73bca9d051eaeff5433b5ea
+DIST 7.1.2.3-TIVsm-msg.FR_FR.x86_64.rpm 3734192 SHA256 e4aa27d42cd251ea400d5a440edcfebb690a01b7bb8a5bc7347b1c6a3eb6fb7f SHA512 c1c5614706a5c7afd74ecc4b49a5522e98a8253f4d8ab17d9f9ead8f154864f9b73e855d398655fc906f6b93f3224c8c251585c665bdb266d8ca7f41fb634ace WHIRLPOOL f198b0642e4b681a76e75c79749ad2d4b54191cc2adbefad39622065c2fb67b7750faa48578f907081d7097444044128dc666a8d5fe000cbbabcd0123e21719e
+DIST 7.1.2.3-TIVsm-msg.HU_HU.x86_64.rpm 3820435 SHA256 9db7fcdda1582e569c415cf2978ebdfb96834660a9c128f024ab3912c0300c77 SHA512 ed5afc7ff38fef08adc31226c6a8b86f66f4a8767f90d48520d2706be185684b632c368eaa702594d75a20412049daeb26ca6028095e3401a95ca7d7b6273480 WHIRLPOOL ccccb90257ae2feeab1fdd53bd00f25f592ad236af8f8d1f3c8e8e5199f04e12083925922600490fe532f7aaf1c7b3797af4b83ac934ea69a29e6d1f06e78b7b
+DIST 7.1.2.3-TIVsm-msg.IT_IT.x86_64.rpm 3632096 SHA256 2ee04d31ef14069e55b83816213ba9dac79aff34329df1f903306894187cbf6c SHA512 ba80f7137b8fc9aa53dfa501f94e07b9131d5a209728f6765b96f7b1674d39fbae91a9316a12f9432c6d2bfd553d1d58d22d8eb1a64e9ce059690370760cd7c8 WHIRLPOOL 81637a25f75a3683097f9a9f6440ebeafce5e8313ed254dfa16efe11310241fe1439130e88f04abf037244966d1cee37e54c1debb9fa44ccbf5b154691b500ee
+DIST 7.1.2.3-TIVsm-msg.JA_JP.x86_64.rpm 3771493 SHA256 3284280c11ac3fde54090caf54d43e82f952b4a83b5b387f2168dffc5cf89811 SHA512 0282a76c95f9006aafc212d4ac0f06817ffb1a509f945749a3afbffa7d31efe8688ba89b3e135cf5de671893efa1319088e36ea6ab40b3f3fdfc33e25ddadb5c WHIRLPOOL 985e8a3c3a910a872ab3bb3a49638da081b1cc5998c10f0b2a3903a935ff30af4bfdf7194db064ae080cec093d752394dbcd2df6c5fddb20130d1ae4e97c7ab3
+DIST 7.1.2.3-TIVsm-msg.KO_KR.x86_64.rpm 3600633 SHA256 e4e9e2e226fc6caa44a6dbe6bd8bdc6c4bbde553bcdbedba9d8532b2305fef1c SHA512 fee9fcd102271fcd826aa2735446ef08d30fab8861cbf3193db499150bfaad2010affa12cba2175c79f0c4cd042fb7448ae5d39e6d7913b0812ba85a302505d5 WHIRLPOOL 39f94116672540806c0be1b2ade4d2db116b1fd2d0857dd33578a8ad629f77bf61958d2561bd5ac06fcbdf1c198684cffa70927690779fc2560bedf1205b6e65
+DIST 7.1.2.3-TIVsm-msg.PL_PL.x86_64.rpm 3738872 SHA256 cd4fb8bd0f0c632c92e835f213ef3955fcccb6a85540b5b2b874ad0e49c6e47d SHA512 7dd4b8127e7f3896167c9c0cad3f2cc35c5a4c5bc30b6799f80fd75193b9730f977d4913317e7de7f2ab2c82e4fdbd4c9a0b96a009033666e11f854b547c60f1 WHIRLPOOL d228d4a8299896a61ee0df2efa3371aecdcb77e82691000542767f2bfddd719af41e7a7b569053cbc54f68c5968f0154cfe936538d52af7ae069483e0876b839
+DIST 7.1.2.3-TIVsm-msg.PT_BR.x86_64.rpm 3735750 SHA256 184baf811a5bf82a61528c1de88ba9e1136cc55212209a9d7e12625dab4fd606 SHA512 c06bc02b3bb46b9a66afef25c1acc8bc8211f94cd4a73f766cf3c98fa9a1ffd04bd7e6e806f859c94cd4f886f18d93ee12963e9e7292c11e173b4e081af7cd77 WHIRLPOOL 5f85dfc734ceea23976fe8e3336b47e983df8296336e830fa1f9005bbe49e881abc13d858ae4c957e6d4e3aa5d96b8e12216b7488da08d5eacc8a55756d1a0c1
+DIST 7.1.2.3-TIVsm-msg.RU_RU.x86_64.rpm 4378794 SHA256 97cf9bcca1a56aa7e6da501eb49ea979deaa39d1440845561bf3bcca592001b3 SHA512 8408673a046fcaafcb83205e7a0aa3dc123255cedfde58fafd88a02f4b207ba1b55e77d3eb9338bf5c61611479dd48cddaa9f82eeefd7179997c0d230b8a9aa1 WHIRLPOOL 67cfb50ed28af54d4722a665316803a9b01422477bda9b209477bf15479b04c168896fc32618a2c5ff73ba0a5902aee48aac9564280d49b3ff58e1408d8a7f3c
+DIST 7.1.2.3-TIVsm-msg.ZH_CN.x86_64.rpm 3430325 SHA256 ab741203f42010448b5d1e0500d9a8945e76add88c6b3528ec4a7f57341e9c8e SHA512 c34829170ea16c094759580475e205d65fa29a1edb08e3dd763c9486156188e9d1a8a64fb6083ee1ef7f172db568c39bf47b91a65fa3c5de8c7095e6ecb076c6 WHIRLPOOL a49fa02cd9e2254bcf33df66d23abab77e3e16d9d099faf1fcb867dace8faf87e9825e42062fd77a6078eee8abad432feb8929fbf1c3b0b2089fae9c9298c64a
+DIST 7.1.2.3-TIVsm-msg.ZH_TW.x86_64.rpm 3527076 SHA256 3499e674dc8990bbeca15c07f93b7e3bf65349b38ada66d31a057229b908124b SHA512 e81ea92d6ab15f70812475e506da15912842e31fff98de7048e620a7b56349fbbfc897cb52e7a307e2deb9978a05a051e1be8dd594ef82a13b0d81d467af4f34 WHIRLPOOL b613b13f594713c4a139b28f7f6778c3302c99e0f1484d7ffc2931de595a22f4353125428d4a2adad1f44c1b1375ec32442096a2c8ada69b5999f996abe7a47f
+DIST 7.1.3.1-TIV-TSMBAC-LinuxX86.tar 220323840 SHA256 488284bc46da88b62046cb3878dcbc93772f12f5201118a951f64535c407ac6b SHA512 9ec074d4e1417b02f51b884b775338f1df205001c073f88a8fa249c77d3b7f6b80aea97d43fb635ba8385227f2502e39ee70dbb66ff80c10225085272afd430e WHIRLPOOL 2d2c43b4ac88aa3e49ce3d0f002385a9227664847eeee5ede29eb774ed203e8700d036476d98c4b97579d25616f8745dbf9bf6c6ddb48cc57b5ae4280917144e
+DIST 7.1.3.2-TIV-TSMBAC-LinuxX86.tar 220262400 SHA256 33b74f3e38e732fd5d029ffe44ada86d118478e542cbca1b83496460818feccb SHA512 451280deabae62c6c2acd281165cbcdec7421aed17531bcc387e46be57fcbb85960fb0a6c8686e5d65d24a732c2778ce8610407f0c1fba21cd5bfce1c2c29fef WHIRLPOOL b818673a1e8dd96f91a61ac06bca002cb4d1b5e68789fb9e3ece3b778f12d42fffcdc9b20fe5786da54cd91bfc4abe7cf7b6173ec88270c116a70db79111044c
+DIST 7.1.4.4-TIV-TSMBAC-LinuxX86.tar 220456960 SHA256 0b0c4c6537e96a73e4c528490509c9a5696251c871f9e31bb3f690e78337667c SHA512 5f0b0262ad4b8f1dc6d9763735c3390a9ea0d559a3efd08593c6aa81e89978387906ff728a5dee575725da7d0b7e4f4e6d207111b79625c6487b6e8d56d767de WHIRLPOOL 0990653b96d9d2e6357c98a8ba8bbe7407e629063ea48ae834d8f51abf0cbaba78ca0e51479c3f192c467972f3da2c3dab10dd7b5f1f3c54bc11c02be81856d7
+EBUILD tsm-7.1.0.0-r1.ebuild 7370 SHA256 2b1d864b1842394f20c213877b1d9dc26a124966f29fb3702898269196152cc3 SHA512 11941c682f2ee9322203d9dcf7d035dea87a5d373b898ba7afccf69b16a81bd77eabea582f0168a4c74f0eb006e91a3c7e38101accba68724298ab7aabf0c582 WHIRLPOOL d1995135c30997c037fbf0090b7fd01903f12baecdf529b376de40c68fc60763c78a450c7e4d7e02682bb82a6da32c4a9b48ce243c9fbefd6b09cf2d663b8624
+EBUILD tsm-7.1.0.3.ebuild 7373 SHA256 e9507d9cd7c6fd8dd5410bc1576df4a485e2e3b3383a0bbdf8079d307abed31a SHA512 a84ad62dbfe3482d5b2bae897ffc783d4c739b91d4d55ef5302fefbaf6014d4913f2a0de4368fef20ecf7e4a92399b03e9d581b11378a9c1040f9644d99548a9 WHIRLPOOL 7e90f3669b0c9363404a03d6619f424afea52ee28c26167edd6292bc0f6bac8ba073c0386553b15122ef3b162cf7a43cb97c68470bc185a6aea9eb37ba74dfbe
+EBUILD tsm-7.1.1.4.ebuild 7373 SHA256 e9507d9cd7c6fd8dd5410bc1576df4a485e2e3b3383a0bbdf8079d307abed31a SHA512 a84ad62dbfe3482d5b2bae897ffc783d4c739b91d4d55ef5302fefbaf6014d4913f2a0de4368fef20ecf7e4a92399b03e9d581b11378a9c1040f9644d99548a9 WHIRLPOOL 7e90f3669b0c9363404a03d6619f424afea52ee28c26167edd6292bc0f6bac8ba073c0386553b15122ef3b162cf7a43cb97c68470bc185a6aea9eb37ba74dfbe
+EBUILD tsm-7.1.2.0.ebuild 7370 SHA256 9f3cd9879f5c4ffacfbc79b1a432a9817151afae6600d1e733f92822ef8757ab SHA512 68cd26da3720e2ddd1ec182d6849e9e5b52192c6592a624e11b34dfad4aa634e537b8a0c6f8c51f3a6055b1aa2c5bd7e39e3bb33e1042009c7ba7556793efef1 WHIRLPOOL e3199c45639104aa6ae8e716efa207f0bbfeea0885db082b39eaa438d292d515fc2f8d853911fb95ad4bffdf4f3aee7ab71b9fd13ae68c7a8fc63a32c53c1a87
+EBUILD tsm-7.1.2.3.ebuild 7370 SHA256 2b1d864b1842394f20c213877b1d9dc26a124966f29fb3702898269196152cc3 SHA512 11941c682f2ee9322203d9dcf7d035dea87a5d373b898ba7afccf69b16a81bd77eabea582f0168a4c74f0eb006e91a3c7e38101accba68724298ab7aabf0c582 WHIRLPOOL d1995135c30997c037fbf0090b7fd01903f12baecdf529b376de40c68fc60763c78a450c7e4d7e02682bb82a6da32c4a9b48ce243c9fbefd6b09cf2d663b8624
+EBUILD tsm-7.1.3.1-r1.ebuild 7551 SHA256 64dd279d95be44615393dfa00a5027f340d58455016e4ecc74ded0dd230938ff SHA512 de692a7c90e6a99e772c8f2960fff7dd2573de80cc16820f1efe7e345b2959449a6f668b393e72a77151b6f40bb168462b7c6b193a02e0eeec388748c048acb5 WHIRLPOOL 0420d151c8c175677aa66b770f8ed4eb5712eaea72067ed8803f9445dbf0390a3ebbc7e1b4415984e690030fe28dd9c36a646c537374c5d72bf564090c605df5
+EBUILD tsm-7.1.3.1.ebuild 7395 SHA256 870d0b3b17078debba73dc58eaf3b979f9d2d88971f9c3293b9c0576a4532ebf SHA512 e2920d8fec310c6cbe7be7ad38e322ccdfd414b67d6f1b3d11a2e0d9a9165485c148c0b70bbf619b79d68bbfa0e83f58edf69835e2d7ea81ed0d87a1b0260eb2 WHIRLPOOL 6c697bceef945dbd34f38d8aa4f8fe39a30b27ffbf099edab0512af298f72053237c40ac557a1793f0c0d3d08b643c09662a611a57283178bec96733d94049ec
+EBUILD tsm-7.1.3.2.ebuild 7551 SHA256 64dd279d95be44615393dfa00a5027f340d58455016e4ecc74ded0dd230938ff SHA512 de692a7c90e6a99e772c8f2960fff7dd2573de80cc16820f1efe7e345b2959449a6f668b393e72a77151b6f40bb168462b7c6b193a02e0eeec388748c048acb5 WHIRLPOOL 0420d151c8c175677aa66b770f8ed4eb5712eaea72067ed8803f9445dbf0390a3ebbc7e1b4415984e690030fe28dd9c36a646c537374c5d72bf564090c605df5
+EBUILD tsm-7.1.4.4-r1.ebuild 7046 SHA256 bff7a33723f2723b1bc5034c62907f8c6d6385156b487517a9ba063f93961316 SHA512 870b22116b778ecda5658f92ea094c81aedf40bf2c1bdd91cceb2adf58ad6ec32ec365f0650aebc1d0822d8b45b50351974e008f15147795a319d2eb30810d74 WHIRLPOOL 16f78940481879d4c0fa43b90e68f62e3a3adcdd5150b6fcecb33dfc625f278a92cc5ecee93a65cd0008453fe0314e564d64976e2e642b88e3462ee48377ba1c
+EBUILD tsm-7.1.4.4.ebuild 6911 SHA256 6d14b97dc8333586f589428799bb5913d622f0755fb87cebd2d771b7c7216ec5 SHA512 36c5da4a302b6a5366bf9d773f6ace9c2a8384a07177a24b64917f4c43b0b2c7f0976fe65cd879e9d241dca88cf33474a3cefb16bcede8f2b35c0beb43383c3b WHIRLPOOL 34c7cb22d19cc74edb2538e937456db656cd76e8b5a6862e03236372edee09857fdb12282ff8bf01b5e11fb81101034103e59c4ae6dbed0806fdd2caead90f82
+MISC ChangeLog 5917 SHA256 32d66015942ba9a7a8fdf85d0c9a9c48b9f9a154a7943ecb4ef483dc874a01cc SHA512 1bfef085a4048359cb4e1976a678e398e5a72e07b4fd95e2aba856ee58b908cb1b17f9044febd7dfb363683d2dba666a689c844077288e751fcf614846338351 WHIRLPOOL 81b190bb6a71367eee379db4cb97df9de093f643cfd87491d57048e8edbdbff7a7899d53d55d89bf62d16ac030aa4cfa65147677c4e0a80d5bcfbf7b65ae216d
+MISC ChangeLog-2015 4827 SHA256 30915fd1296ab12cd16ef4a3d80384ce0f08d265a018ede8b59837b270d3a683 SHA512 195d47f05d9bee89031fcba4c28b0aa6ecc3d7071554ae4eecc563c581cfd79f41aa4e6cd1727abf392fd29a2fd4a21b3e909c238dacee0b9c9b10199f599564 WHIRLPOOL 4f14f46972fee723c3e096d51c74eb6b479a546b2207b60d680547208a4b4e3fcaae10d00ac150e348d2cab45166b34e8362f1d1609bd5354d9e033cc1d06747
+MISC metadata.xml 909 SHA256 0122b73bc34380ccc3cde8bbf52110af1aeb7c301617f002d69a073448e43e4b SHA512 f8126f3781a95270896e9c215dd5e2447934b79125c787dd11790ebf54d3caee3e90a537743203db517cfe0d82a2f7c3f3ea269d906bc05ed3532f259fb9615d WHIRLPOOL 84f24de3b76643af605c2e3389d37196d49bc7cfdc2918c857abcaf1a79716ad2c7f639abe542a0e4d9687fd71f3fffc789fe574e3522694b04c8f7cbedf15cb
diff --git a/app-backup/tsm/files/dsmc.conf.d b/app-backup/tsm/files/dsmc.conf.d
new file mode 100644
index 000000000000..c4fd1c76a98c
--- /dev/null
+++ b/app-backup/tsm/files/dsmc.conf.d
@@ -0,0 +1,7 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+# 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..0e9773294858
--- /dev/null
+++ b/app-backup/tsm/files/dsmc.init.d
@@ -0,0 +1,27 @@
+#!/sbin/openrc-run
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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-r1 b/app-backup/tsm/files/dsmcad.init.d-r1
new file mode 100644
index 000000000000..6c487fd8c970
--- /dev/null
+++ b/app-backup/tsm/files/dsmcad.init.d-r1
@@ -0,0 +1,25 @@
+#!/sbin/openrc-run
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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..4bb779b93a0f
--- /dev/null
+++ b/app-backup/tsm/metadata.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>Martin.vGagern@gmx.net</email>
+ <name>Martin von Gagern</name>
+ <description>Assign bugs to him</description>
+ </maintainer>
+ <maintainer type="person">
+ <email>dilfridge@gentoo.org</email>
+ <description>Proxy maintainer, CC him in bugs.</description>
+ </maintainer>
+ <maintainer type="person">
+ <email>xmw@gentoo.org</email>
+ <name>Michael Weber</name>
+ <description>Proxy maintainer, CC him in bugs.</description>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <use>
+ <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-7.1.0.0-r1.ebuild b/app-backup/tsm/tsm-7.1.0.0-r1.ebuild
new file mode 100644
index 000000000000..26837d891d5b
--- /dev/null
+++ b/app-backup/tsm/tsm-7.1.0.0-r1.ebuild
@@ -0,0 +1,239 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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-BR:PT_BR ru:RU_RU zh-CN:ZH_CN zh-TW:ZH_TW"
+MY_LANG_PV="${MY_PVR_ALLDOTS}-"
+for lang in ${MY_LANGS}; do
+ IUSE="${IUSE} l10n_${lang%:*}"
+ SRC_URI="${SRC_URI} l10n_${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.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.0.3.ebuild b/app-backup/tsm/tsm-7.1.0.3.ebuild
new file mode 100644
index 000000000000..4cfd77a503c9
--- /dev/null
+++ b/app-backup/tsm/tsm-7.1.0.3.ebuild
@@ -0,0 +1,239 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit versionator multilib eutils readme.gentoo-r1 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-BR:PT_BR ru:RU_RU zh-CN:ZH_CN zh-TW:ZH_TW"
+MY_LANG_PV="${MY_PVR_ALLDOTS}-"
+for lang in ${MY_LANGS}; do
+ IUSE="${IUSE} l10n_${lang%:*}"
+ SRC_URI="${SRC_URI} l10n_${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.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.1.4.ebuild b/app-backup/tsm/tsm-7.1.1.4.ebuild
new file mode 100644
index 000000000000..4cfd77a503c9
--- /dev/null
+++ b/app-backup/tsm/tsm-7.1.1.4.ebuild
@@ -0,0 +1,239 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit versionator multilib eutils readme.gentoo-r1 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-BR:PT_BR ru:RU_RU zh-CN:ZH_CN zh-TW:ZH_TW"
+MY_LANG_PV="${MY_PVR_ALLDOTS}-"
+for lang in ${MY_LANGS}; do
+ IUSE="${IUSE} l10n_${lang%:*}"
+ SRC_URI="${SRC_URI} l10n_${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.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..0a7432b68e83
--- /dev/null
+++ b/app-backup/tsm/tsm-7.1.2.0.ebuild
@@ -0,0 +1,239 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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-BR:PT_BR ru:RU_RU zh-CN:ZH_CN zh-TW:ZH_TW"
+MY_LANG_PV="${MY_PVR_ALLDOTS}-"
+for lang in ${MY_LANGS}; do
+ IUSE="${IUSE} l10n_${lang%:*}"
+ SRC_URI="${SRC_URI} l10n_${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/tsm/tsm-7.1.2.3.ebuild b/app-backup/tsm/tsm-7.1.2.3.ebuild
new file mode 100644
index 000000000000..26837d891d5b
--- /dev/null
+++ b/app-backup/tsm/tsm-7.1.2.3.ebuild
@@ -0,0 +1,239 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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-BR:PT_BR ru:RU_RU zh-CN:ZH_CN zh-TW:ZH_TW"
+MY_LANG_PV="${MY_PVR_ALLDOTS}-"
+for lang in ${MY_LANGS}; do
+ IUSE="${IUSE} l10n_${lang%:*}"
+ SRC_URI="${SRC_URI} l10n_${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.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.3.1-r1.ebuild b/app-backup/tsm/tsm-7.1.3.1-r1.ebuild
new file mode 100644
index 000000000000..393cf38ff26b
--- /dev/null
+++ b/app-backup/tsm/tsm-7.1.3.1-r1.ebuild
@@ -0,0 +1,243 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit versionator multilib eutils readme.gentoo rpm systemd user pax-utils
+
+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="*"
+
+# not available (yet?)
+#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-BR:PT_BR ru:RU_RU zh-CN:ZH_CN zh-TW:ZH_TW"
+MY_LANG_PV="${MY_PVR_ALLDOTS}-"
+for lang in ${MY_LANGS}; do
+ IUSE="${IUSE} l10n_${lang%:*}"
+ SRC_URI="${SRC_URI} l10n_${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.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
+
+ # Need this for hardened, otherwise a cryptic "connection to server lost" message appears
+ pax-mark -m "${D}/opt/tivoli/tsm/client/ba/bin/dsmc"
+
+ 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.3.1.ebuild b/app-backup/tsm/tsm-7.1.3.1.ebuild
new file mode 100644
index 000000000000..31ce93ebfb72
--- /dev/null
+++ b/app-backup/tsm/tsm-7.1.3.1.ebuild
@@ -0,0 +1,240 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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="*"
+
+# not available (yet?)
+#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-BR:PT_BR ru:RU_RU zh-CN:ZH_CN zh-TW:ZH_TW"
+MY_LANG_PV="${MY_PVR_ALLDOTS}-"
+for lang in ${MY_LANGS}; do
+ IUSE="${IUSE} l10n_${lang%:*}"
+ SRC_URI="${SRC_URI} l10n_${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.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.3.2.ebuild b/app-backup/tsm/tsm-7.1.3.2.ebuild
new file mode 100644
index 000000000000..393cf38ff26b
--- /dev/null
+++ b/app-backup/tsm/tsm-7.1.3.2.ebuild
@@ -0,0 +1,243 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit versionator multilib eutils readme.gentoo rpm systemd user pax-utils
+
+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="*"
+
+# not available (yet?)
+#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-BR:PT_BR ru:RU_RU zh-CN:ZH_CN zh-TW:ZH_TW"
+MY_LANG_PV="${MY_PVR_ALLDOTS}-"
+for lang in ${MY_LANGS}; do
+ IUSE="${IUSE} l10n_${lang%:*}"
+ SRC_URI="${SRC_URI} l10n_${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.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
+
+ # Need this for hardened, otherwise a cryptic "connection to server lost" message appears
+ pax-mark -m "${D}/opt/tivoli/tsm/client/ba/bin/dsmc"
+
+ 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.4.4-r1.ebuild b/app-backup/tsm/tsm-7.1.4.4-r1.ebuild
new file mode 100644
index 000000000000..6d6e2634a688
--- /dev/null
+++ b/app-backup/tsm/tsm-7.1.4.4-r1.ebuild
@@ -0,0 +1,231 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit versionator multilib eutils readme.gentoo rpm systemd user pax-utils
+
+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="*"
+
+# not available (yet?)
+#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-BR:PT_BR ru:RU_RU zh-CN:ZH_CN zh-TW:ZH_TW"
+MY_LANG_PV="${MY_PVR_ALLDOTS}-"
+for lang in ${MY_LANGS}; do
+ IUSE="${IUSE} l10n_${lang%:*}"
+ SRC_URI="${SRC_URI} l10n_${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}/bacli"
+
+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}
+
+ cd "${S}"
+ 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_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
+
+ # 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
+
+ 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}
+
+ echo 'SEARCH_DIRS_MASK="/opt/tivoli/tsm/client/ba/bin"' > "${T}/80${PN}" || die
+ insinto "/etc/revdep-rebuild"
+ doins "${T}/80${PN}"
+
+ newconfd "${FILESDIR}/dsmc.conf.d" dsmc
+ newinitd "${FILESDIR}/dsmc.init.d" dsmc
+ newinitd "${FILESDIR}/dsmcad.init.d-r1" dsmcad
+
+ # Need this for hardened, otherwise a cryptic "connection to server lost" message appears
+ pax-mark -m "${D}/opt/tivoli/tsm/client/ba/bin/dsmc"
+
+ 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.4.4.ebuild b/app-backup/tsm/tsm-7.1.4.4.ebuild
new file mode 100644
index 000000000000..3f145a028f8e
--- /dev/null
+++ b/app-backup/tsm/tsm-7.1.4.4.ebuild
@@ -0,0 +1,227 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit versionator multilib eutils readme.gentoo rpm systemd user pax-utils
+
+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="*"
+
+# not available (yet?)
+#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-BR:PT_BR ru:RU_RU zh-CN:ZH_CN zh-TW:ZH_TW"
+MY_LANG_PV="${MY_PVR_ALLDOTS}-"
+for lang in ${MY_LANGS}; do
+ IUSE="${IUSE} l10n_${lang%:*}"
+ SRC_URI="${SRC_URI} l10n_${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}/bacli"
+
+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}
+
+ cd "${S}"
+ 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_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
+
+ # 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
+
+ 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
+
+ # Need this for hardened, otherwise a cryptic "connection to server lost" message appears
+ pax-mark -m "${D}/opt/tivoli/tsm/client/ba/bin/dsmc"
+
+ 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/untangle-https-backup/Manifest b/app-backup/untangle-https-backup/Manifest
new file mode 100644
index 000000000000..ec363bcdedf3
--- /dev/null
+++ b/app-backup/untangle-https-backup/Manifest
@@ -0,0 +1,4 @@
+DIST untangle-https-backup-0.0.6.tar.gz 15730 SHA256 91f5a308557d89de50d4f741c623b3b2073878bae44d2efa64b9237b06d18baa SHA512 a7854fe23faba88ee21e3bc9aaaedc54aefc58d8cd844d200d184ddffcff3cc5c90ff429464914e89cbfc4651057007ad328a665ed706d65ba3e1bda87965da1 WHIRLPOOL 913bec9d3bd291798688aa9a1cda9af8fbd746574401d3387f42e7f32bcd817e34702e498594012db19b06ff214b997bd06b0a0712e4690d9549cb5df5a06770
+EBUILD untangle-https-backup-0.0.6.ebuild 579 SHA256 ce5ffab417bd50f5d0a4777a29ed2f8458d2bb1816dca12a403ebfa3cc689cd6 SHA512 1605b1593d8fad6a25c8a424a2ef31a1365f7797c18b5d63499b718c198aea4ab38b306596e31f12b8ffcc804f5cd9d065d05982003df6b31debeb619f80b6dc WHIRLPOOL ad01f1902f22bb09027cc8b594edb580003b1c285e24f25d12ae1516814b7ec606dac9f6875f5f6a77d2e6164602ca1dbff0301068a85ca4b6e40e657b14e8ac
+MISC ChangeLog 522 SHA256 6958a7b7582f4780b4d95bc5b272ee1158bd07b930fc75a17f66fc1bf2431347 SHA512 345c9998fc97b3dbe9121f882ac434e773fb06b1ca6e44d7a1669392487ac0f0e909a38cfb4c7db8205d2ac3feba8248b87f87f1548bc629b43d7dcb0cb27e8f WHIRLPOOL 60c88b2fbc51ac7977c4878e274e28c31472ff5f4582ede85592c7624fc56c51608ec80f5dc980f2ac41913b0f2b9ca1dd9df22492b4de6bc5dd218567d41178
+MISC metadata.xml 252 SHA256 f12a15b7cc3ce0ff76c3dbbeba9d162cac9771fb6ecc0f965a34e93f73e67d52 SHA512 92f660063c96ac5b3e24e58733006d4a72a7e2f41605988efb575546a2539a92b1ceb3a37e018fcb5c08264a42af26950d6520ea80ba60130ad25ce6092ce742 WHIRLPOOL b7954a2a1cbccce0641aaf3dd273bf6dc64e7b5d39097eefe4d0c06eacc0b5f310db23e93a0a2fff7c8c735193acb1c5c8d4210bf77e78d457d50d05412796e0
diff --git a/app-backup/untangle-https-backup/metadata.xml b/app-backup/untangle-https-backup/metadata.xml
new file mode 100644
index 000000000000..45125b9b6e99
--- /dev/null
+++ b/app-backup/untangle-https-backup/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 type="person">
+ <email>mjo@gentoo.org</email>
+ <name>Michael Orlitzky</name>
+ </maintainer>
+</pkgmetadata>
diff --git a/app-backup/untangle-https-backup/untangle-https-backup-0.0.6.ebuild b/app-backup/untangle-https-backup/untangle-https-backup-0.0.6.ebuild
new file mode 100644
index 000000000000..5c11e34be8d4
--- /dev/null
+++ b/app-backup/untangle-https-backup/untangle-https-backup-0.0.6.ebuild
@@ -0,0 +1,26 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+PYTHON_COMPAT=( python{3_4,3_5} )
+PYTHON_REQ_USE="ssl(+)"
+inherit distutils-r1
+
+DESCRIPTION="Back up Untangle configurations via the web admin UI"
+HOMEPAGE="http://michael.orlitzky.com/code/untangle-https-backup.php"
+SRC_URI="http://michael.orlitzky.com/code/releases/${P}.tar.gz"
+
+LICENSE="AGPL-3"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND=""
+
+src_install() {
+ distutils-r1_src_install
+ doman "doc/man8/${PN}.8"
+ dodoc "doc/${PN}.example.ini"
+}
diff --git a/app-backup/vzdump/Manifest b/app-backup/vzdump/Manifest
new file mode 100644
index 000000000000..7e17d20b7e9a
--- /dev/null
+++ b/app-backup/vzdump/Manifest
@@ -0,0 +1,5 @@
+DIST vzdump-1.2.tar.gz 20296 SHA256 356216d38281d956cb7ba21d7c56df9a57b51bf23410ac835a7dd8f0cba1c62e SHA512 c24bf785704ca3a624127b322a87fee5436fa272e42db159bd08b575405a9ec427d9ad3c82bb0a839495ece4f53b7dafcadc0430b8074368bb8cd844eb31b6cc WHIRLPOOL 3ca8bec0140756adcd66ecad4207b31413032c6c54fe05ce723d4a932e8893d3df463ff71e37e1f18d52792dbb37b5d08b5d9a940c09cac71a591307b1cf0fdb
+EBUILD vzdump-1.2.ebuild 754 SHA256 1bb6201bff85578a29eb84fb7714ad3321bd8e35aea3da05f435e1bcc6b77fbf SHA512 2f3f1811ba0aa7905fac76b23c3deb3465846c7a4d49a692fc1b022c551d799dddad9356250b8c11da5360fcecfbb67841d40e99f1d5a00ec6c46e532b1d65ad WHIRLPOOL 3d5870abe502cfeab39cfde4a43800410e1f9048a4bdb07abb05bf3cde354989c2006207dbdbe2f68c80b65e91c1b4b870e55fef02b5e93eb92e02bcc78bb37f
+MISC ChangeLog 3023 SHA256 a587842a41fa92f1409af64f5f926467a7a5036fbca96ef53163d175a38d8282 SHA512 ebaadc2bf8b99c6dbd355ab9369e0a982f03efd5a04edf18abef5bda6634edcca8da26e2646b5a408715fe3a21cef143e787398651c760f460944135a9408d8b WHIRLPOOL c939e01e916aae81ca560ff63c4097bed25fb16ff57290e82269df1387095e6a47e25d398cf48f10cf47ccee3ca75cbcd449e3145a9408e0637bcc76f1ea95ca
+MISC ChangeLog-2015 1013 SHA256 bbb6fed7760fcfa68927bf7c8301180cc09fdbfb724d12e2696a8d92935b4877 SHA512 95f98774002133fb9c64fcd9cbaafb5a720295bf9f24182b289f63211fcf8444882f7f831a18ac1a57ea2b47cbd5a8f6d97f9db77818257dedc4406d121843a4 WHIRLPOOL c3964df0da9a1d662500982378ff5e5819f0dec6862d59521fa005c84734f20a97363c467a87d01bd6e33e142875e1f1fb7f75a08af51459c05a94a9718c12d6
+MISC metadata.xml 568 SHA256 21859d4b346d08d6613fa5b8a5543266507bb3b73842707f66c81f2f1dfa1ad3 SHA512 a3b126c86aa2b924f258a9077248a0381a118f8083432138b4e634c91bfb2d69994f779b947501fddf76e51caf578b9488f1a53b2f10d7db75be6993acf5ad43 WHIRLPOOL 8d73e05c0c51ea5c9f1fb173d2679ed0610bbdec74a6f0904840022f9519baf485866ead170061da4ba4b07f48d697b06c18134674633a79653487c7addb3673
diff --git a/app-backup/vzdump/metadata.xml b/app-backup/vzdump/metadata.xml
new file mode 100644
index 000000000000..1c2b9403b157
--- /dev/null
+++ b/app-backup/vzdump/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-needed -->
+<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..eb385bda0694
--- /dev/null
+++ b/app-backup/vzdump/vzdump-1.2.ebuild
@@ -0,0 +1,33 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+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
+}
diff --git a/app-backup/zbackup/Manifest b/app-backup/zbackup/Manifest
new file mode 100644
index 000000000000..33c55c51b4af
--- /dev/null
+++ b/app-backup/zbackup/Manifest
@@ -0,0 +1,6 @@
+AUX zbackup-1.4.4-tartool.patch 277 SHA256 ffa55f6db445a37dd8cda79e85d6df421e2d6d18446f97b384f3a067b379450f SHA512 79a7c9e7a929b5b9ed2cb472e96c21a4db9e369590744be4e84335ae428273a9d1c2f28a57f09f571ee99af0c6274e535b25f7494f0dc8c4d2c391428a064d8a WHIRLPOOL a9e2637a3f422d8058c4f03721559620793e0857be06253464af3fe56fe4c10363005378cf1d4a8594b0cb51aaa789c6d0175923826e41a6ecb27f13348c6c57
+AUX zbackup-9999-tartool.patch 283 SHA256 9813e052224b435c9526c48c951993b27161d099180dae6c2fd4ede473968efe SHA512 53724bf11c6219e494a77090de34105eb87732a6f6b671bb950ac3d86d8c188544b25e06bd49b9df00cfd471e7de976a37ec8ce60dbbc55dd4ba0d0e21e3d61c WHIRLPOOL 6983d906b844f5d422e2939742cdd30c5a414bb404c0d76545b1d5f8866e2db4259150d95d31340a397021994da717038bc8d69b73e67499828629fcf05932b2
+DIST zbackup-1.4.4.tar.gz 87118 SHA256 efccccd2a045da91576c591968374379da1dc4ca2e3dec4d3f8f12628fa29a85 SHA512 96f0984be71e521b2a188448bb2801996701be6e96b1dac4672cabc9f6bcb6631fdb8d03f5dde4bbdbb0050d9bd1409d468fcba15f93730d69e6c55271aba575 WHIRLPOOL 4c41f300177b3a140f833f999e5b86e8c3386e81c02a7a94f2a0dd418ba2027adb2c7906d5d2a59fba12b47c5ea3190727ef63b1e8fd12eef8bc9fbe2ca426a6
+EBUILD zbackup-1.4.4.ebuild 776 SHA256 ee85b4d9d1553e0f3c5b14c007a3efa719896b76cfcada57167788e9a2ac328d SHA512 611bf46435444ff81a5b139721c1a1498db36cfe7135836418c996a0253317f8ed638269838a88bb011e1ea73e38b0b3eaf380a371596a496f1a40c0c78736d6 WHIRLPOOL b454fd41eb987e82f3b2716ecc140a6fb496251bc5c5900343511848642ac7ea76775cdc47f3527ee847b398f2bdb8cb1c872a557c72fc2de85a7e1dfb75cdf6
+EBUILD zbackup-9999.ebuild 779 SHA256 7295c9114568678b30983d48af945dd22ae540c9ae224a3e1ccf29246db6fbe3 SHA512 7ce0ed34fc1863b1ac0b0051ab154dae6ae2486d48fb005c05644d910e002ca852b47573e3e3beabf1b38621207f0f2d8ece7b9ea6b0f4e21754709f51566a8b WHIRLPOOL 9e83ff30475748560f74ce8339805fc48a38005c24abbde1e1841f9bbb82e7b7459746d5c1843be54efb909334c96a5f13e21b299debb96b1c448757406a85cb
+MISC metadata.xml 868 SHA256 d68551f55cc6421112d9521fb06d5e7c0d3fa9080dc0f223b004fc8fc042e265 SHA512 d452d2e94449e05f0d2f99d223587560380999c7afd1396e3c7e3ed8a3792d4abd0bb717d078053cec0cd397df4cb2cf00949b24ab407fc966705bfe6911b524 WHIRLPOOL dad97bf20eab57d74ba534ed6221e2a2aceadb0b43ecddceedb3333b9d5ccbf3864a484eae9ed8c4d03fdfaf108c063ed7237824da2da8f96e857e7e86768b9d
diff --git a/app-backup/zbackup/files/zbackup-1.4.4-tartool.patch b/app-backup/zbackup/files/zbackup-1.4.4-tartool.patch
new file mode 100644
index 000000000000..8f9f839a66fd
--- /dev/null
+++ b/app-backup/zbackup/files/zbackup-1.4.4-tartool.patch
@@ -0,0 +1,11 @@
+--- a/CMakeLists.txt 2017-02-24 09:22:39.360392521 +0200
++++ b/CMakeLists.txt 2017-02-24 09:23:13.642390978 +0200
+@@ -51,4 +51,8 @@
+ ${LIBLZO_LIBRARIES}
+ )
+
++if (BUILD_TARTOOL)
++ add_subdirectory(tartool)
++endif (BUILD_TARTOOL)
++
+ install( TARGETS zbackup DESTINATION bin )
diff --git a/app-backup/zbackup/files/zbackup-9999-tartool.patch b/app-backup/zbackup/files/zbackup-9999-tartool.patch
new file mode 100644
index 000000000000..26052f97a485
--- /dev/null
+++ b/app-backup/zbackup/files/zbackup-9999-tartool.patch
@@ -0,0 +1,11 @@
+--- a/CMakeLists.txt 2017-02-24 09:22:39.360392521 +0200
++++ b/CMakeLists.txt 2017-02-24 09:23:13.642390978 +0200
+@@ -51,4 +51,8 @@
+ ${LIBLZO_LIBRARIES}
+ )
+
++if (BUILD_TARTOOL)
++ add_subdirectory(tools/tartool)
++endif (BUILD_TARTOOL)
++
+ install( TARGETS zbackup DESTINATION bin )
diff --git a/app-backup/zbackup/metadata.xml b/app-backup/zbackup/metadata.xml
new file mode 100644
index 000000000000..65b656521136
--- /dev/null
+++ b/app-backup/zbackup/metadata.xml
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>spiderx@spiderx.dp.ua</email>
+ <name>Vladimir Pavljuchenkov</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>proxy-maint@gentoo.org</email>
+ <name>Proxy Maintainers</name>
+ </maintainer>
+ <longdescription>
+ zbackup is a globally-deduplicating backup tool.
+ The program has the following features:
+ Parallel LZMA or LZO compression of the stored data
+ Built-in AES encryption of the stored data
+ Possibility to delete old backup data
+ Use of a 64-bit rolling hash, keeping the amount of soft collisions to zero
+ </longdescription>
+ <use>
+ <flag name="tartool">Install tartool utility</flag>
+ </use>
+ <upstream>
+ <remote-id type="github">zbackup/zbackup</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/app-backup/zbackup/zbackup-1.4.4.ebuild b/app-backup/zbackup/zbackup-1.4.4.ebuild
new file mode 100644
index 000000000000..75f7cf5fca25
--- /dev/null
+++ b/app-backup/zbackup/zbackup-1.4.4.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils
+
+DESCRIPTION="A versatile deduplicating backup tool"
+HOMEPAGE="http://zbackup.org/ https://github.com/zbackup/zbackup"
+SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2+-with-openssl-exception"
+KEYWORDS="~amd64 ~x86"
+SLOT="0"
+IUSE="libressl tartool"
+
+DEPEND="app-arch/lzma
+ dev-libs/lzo:2
+ <dev-libs/protobuf-3:0=
+ sys-libs/zlib
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )"
+RDEPEND="${DEPEND}"
+
+# Add tartool build
+PATCHES=( "${FILESDIR}/${P}-tartool.patch" )
+
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_TARTOOL="$(usex tartool)"
+ )
+
+ cmake-utils_src_configure
+}
diff --git a/app-backup/zbackup/zbackup-9999.ebuild b/app-backup/zbackup/zbackup-9999.ebuild
new file mode 100644
index 000000000000..e199603c64d9
--- /dev/null
+++ b/app-backup/zbackup/zbackup-9999.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit cmake-utils git-r3
+
+DESCRIPTION="A versatile deduplicating backup tool"
+HOMEPAGE="http://zbackup.org/ https://github.com/zbackup/zbackup"
+SRC_URI=""
+EGIT_REPO_URI="https://github.com/${PN}/${PN}.git"
+
+LICENSE="GPL-2+-with-openssl-exception"
+KEYWORDS=""
+SLOT="0"
+IUSE="libressl tartool"
+
+DEPEND="app-arch/lzma
+ dev-libs/lzo:2
+ <dev-libs/protobuf-3:0=
+ sys-libs/libunwind:7
+ sys-libs/zlib
+ !libressl? ( dev-libs/openssl:0= )
+ libressl? ( dev-libs/libressl:0= )"
+RDEPEND="${DEPEND}"
+
+# Add tartool build
+PATCHES=( "${FILESDIR}/${P}-tartool.patch" )
+
+src_configure() {
+ local mycmakeargs=(
+ -DBUILD_TARTOOL="$(usex tartool)"
+ )
+
+ cmake-utils_src_configure
+}