-diff -ur amanda-2.6.0/common-src/conffile.c amanda-2.6.0-fhs/common-src/conffile.c
---- amanda-2.6.0/common-src/conffile.c 2008-01-28 22:57:34.000000000 +0100
-+++ amanda-2.6.0-fhs/common-src/conffile.c 2008-05-08 17:39:18.000000000 +0200
-@@ -3143,9 +3143,9 @@
- conf_init_str (&conf_data[CNF_LABELSTR] , ".*");
+diff -urNp -x '*.orig' amanda-3.5.1.org/common-src/conffile.c amanda-3.5.1/common-src/conffile.c
+--- amanda-3.5.1.org/common-src/conffile.c 2017-12-01 14:26:28.000000000 +0100
++++ amanda-3.5.1/common-src/conffile.c 2021-05-08 10:23:13.673469863 +0200
+@@ -6422,9 +6422,9 @@ init_defaults(
+ conf_init_str(&conf_data[CNF_CHANGERFILE] , "changer");
conf_init_str (&conf_data[CNF_TAPELIST] , "tapelist");
conf_init_str (&conf_data[CNF_DISKFILE] , "disklist");
- conf_init_str (&conf_data[CNF_INFOFILE] , "/usr/adm/amanda/curinfo");
+ conf_init_str (&conf_data[CNF_INDEXDIR] , "/var/lib/amanda/index");
conf_init_ident (&conf_data[CNF_TAPETYPE] , "DEFAULT_TAPE");
conf_init_identlist(&conf_data[CNF_HOLDINGDISK] , NULL);
- conf_init_int (&conf_data[CNF_DUMPCYCLE] , 10);
-diff -ur amanda-2.6.0/example/amanda.conf.in amanda-2.6.0-fhs/example/amanda.conf.in
---- amanda-2.6.0/example/amanda.conf.in 2008-01-18 01:31:14.000000000 +0100
-+++ amanda-2.6.0-fhs/example/amanda.conf.in 2008-05-08 17:42:35.000000000 +0200
-@@ -237,9 +237,9 @@
+ conf_init_int (&conf_data[CNF_DUMPCYCLE] , CONF_UNIT_NONE, 10);
+diff -urNp -x '*.orig' amanda-3.5.1.org/example/amanda.conf.in amanda-3.5.1/example/amanda.conf.in
+--- amanda-3.5.1.org/example/amanda.conf.in 2017-12-01 14:26:34.000000000 +0100
++++ amanda-3.5.1/example/amanda.conf.in 2021-05-08 10:23:13.673469863 +0200
+@@ -215,9 +215,9 @@ holdingdisk hd1 {
# Note that, although the keyword below is infofile, it is only so for
# historic reasons, since now it is supposed to be a directory (unless
# you have selected some database format other than the `text' default)
#tapelist "@CONFIG_DIR@/@DEFAULT_CONFIG@/tapelist" # list of used tapes
# tapelist is stored, by default, in the directory that contains amanda.conf
-diff -ur amanda-2.6.0/example/template.d/advanced.conf.in amanda-2.6.0-fhs/example/template.d/advanced.conf.in
---- amanda-2.6.0/example/template.d/advanced.conf.in 2008-01-18 01:31:13.000000000 +0100
-+++ amanda-2.6.0-fhs/example/template.d/advanced.conf.in 2008-05-08 17:43:27.000000000 +0200
-@@ -97,10 +97,10 @@
+diff -urNp -x '*.orig' amanda-3.5.1.org/example/template.d/advanced.conf.in amanda-3.5.1/example/template.d/advanced.conf.in
+--- amanda-3.5.1.org/example/template.d/advanced.conf.in 2017-12-01 14:26:34.000000000 +0100
++++ amanda-3.5.1/example/template.d/advanced.conf.in 2021-05-08 10:23:13.673469863 +0200
+@@ -84,10 +84,10 @@ autoflush no
# Note that, although the keyword below is infofile, it is only so for
# historic reasons, since now it is supposed to be a directory (unless
# you have selected some database format other than the `text' default)
# tapelist is stored, by default, in the directory that contains amanda.conf
# Specify holding disks. These are used as a temporary staging area for
-diff -ur amanda-2.6.0/server-src/amserverconfig.pl amanda-2.6.0-fhs/server-src/amserverconfig.pl
---- amanda-2.6.0/server-src/amserverconfig.pl 2008-01-18 01:31:25.000000000 +0100
-+++ amanda-2.6.0-fhs/server-src/amserverconfig.pl 2008-05-08 17:37:13.000000000 +0200
-@@ -99,16 +99,16 @@
+diff -urNp -x '*.orig' amanda-3.5.1.org/server-src/amserverconfig.pl amanda-3.5.1/server-src/amserverconfig.pl
+--- amanda-3.5.1.org/server-src/amserverconfig.pl 2017-12-01 14:26:29.000000000 +0100
++++ amanda-3.5.1/server-src/amserverconfig.pl 2021-05-08 10:23:13.673469863 +0200
+@@ -96,16 +96,16 @@ sub log_and_die {
unlink "$confdir/$config/tapelist" ||
print LOG "unlink $confdir/$config/tapelist failed: $!\n";
}
- if ( -e "$confdir/$config/curinfo" ) {
- rmdir "$confdir/$config/curinfo" ||
- print LOG "rmdir $confdir/$config failed: $!\n";
-- }
-- if ( -e "$confdir/$config/index" ) {
-- rmdir "$confdir/$config/index" ||
-- print LOG "rmdir $confdir/$config/index failed: $!\n";
+ if ( -e "$localstatedir/lib/amanda/$config/curinfo" ) {
+ rmdir "$localstatedir/lib/amanda/$config/curinfo" ||
+ print LOG "rmdir $localstatedir/lib/amanda/$config/curinfo failed: $!\n";
-+ }
+ }
+- if ( -e "$confdir/$config/index" ) {
+- rmdir "$confdir/$config/index" ||
+- print LOG "rmdir $confdir/$config/index failed: $!\n";
+ if ( -e "$localstatedir/lib/amanda/$config/index" ) {
+ rmdir "$localstatedir/lib/amanda/$config/index" ||
+ print LOG "rmdir $localstatedir/lib/amanda/$config/index failed: $!\n";
}
die $err;
}
-@@ -173,10 +173,12 @@
+@@ -159,10 +159,12 @@ sub copy_template_file {
sub create_curinfo_index_dir {
---- amanda-2.6.0/config/amanda/krb5-security.m4~ 2008-01-18 01:31:33.000000000 +0100
-+++ amanda-2.6.0/config/amanda/krb5-security.m4 2008-05-13 11:41:28.000000000 +0200
-@@ -69,6 +69,8 @@
- AMANDA_ADD_LIBS([-lgssapi_krb5 -lkrb5 $K5CRYPTO $K5SUPPORT -lcom_err])
- break
- elif test \( -f ${k5libdir}/libkrb5.a -o -f ${k5libdir}/libkrb5.so \) -a \( -f ${k5libdir}/libasn1.a -o -f ${k5libdir}/libasn1.so \) -a \( -f ${k5libdir}/libgssapi.a -o -f ${k5libdir}/libgssapi.so \); then
-+ KRB5_DIR_FOUND=$dir
-+ KRB5_LIBDIR_FOUND=$k5libdir
- AMANDA_ADD_LIBS([-lgssapi -lkrb5 -lasn1])
- AMANDA_ADD_CPPFLAGS([-DKRB5_HEIMDAL_INCLUDES])
- break
---- amanda-2.6.0/common-src/krb5-security.c~ 2008-01-18 01:31:41.000000000 +0100
-+++ amanda-2.6.0/common-src/krb5-security.c 2008-05-13 11:50:57.000000000 +0200
-@@ -45,7 +45,7 @@
+diff -urNp -x '*.orig' amanda-3.5.1.org/common-src/krb5-security.c amanda-3.5.1/common-src/krb5-security.c
+--- amanda-3.5.1.org/common-src/krb5-security.c 2017-12-01 14:26:28.000000000 +0100
++++ amanda-3.5.1/common-src/krb5-security.c 2021-05-08 10:23:14.430132083 +0200
+@@ -43,7 +43,7 @@
#include "sockaddr-util.h"
#ifdef KRB5_HEIMDAL_INCLUDES
#endif
#define BROKEN_MEMORY_CCACHE
-@@ -67,7 +67,7 @@
+@@ -65,7 +65,7 @@
#ifndef KRB5_HEIMDAL_INCLUDES
#include <gssapi/gssapi_generic.h>
#else
#endif
#include <krb5.h>
---- amanda-2.6.0/common-src/security-util.h~ 2008-01-18 01:31:41.000000000 +0100
-+++ amanda-2.6.0/common-src/security-util.h 2008-05-13 11:51:10.000000000 +0200
-@@ -47,11 +47,11 @@
-
+diff -urNp -x '*.orig' amanda-3.5.1.org/common-src/security-util.h amanda-3.5.1/common-src/security-util.h
+--- amanda-3.5.1.org/common-src/security-util.h 2017-12-01 14:26:28.000000000 +0100
++++ amanda-3.5.1/common-src/security-util.h 2021-05-08 10:23:14.430132083 +0200
+@@ -53,11 +53,11 @@
+ #define H_EOF -2 /* this connection has been shut down */
#ifdef KRB5_SECURITY
-# define KRB5_DEPRECATED 1
# endif
# include <krb5.h>
#endif
+diff -urNp -x '*.orig' amanda-3.5.1.org/config/amanda/krb5-security.m4 amanda-3.5.1/config/amanda/krb5-security.m4
+--- amanda-3.5.1.org/config/amanda/krb5-security.m4 2017-12-01 14:26:31.000000000 +0100
++++ amanda-3.5.1/config/amanda/krb5-security.m4 2021-05-08 10:23:14.430132083 +0200
+@@ -61,6 +61,8 @@ AC_DEFUN([AMANDA_KRB5_SECURITY],
+ AMANDA_ADD_LIBS([-lgssapi_krb5 -lkrb5 $K5CRYPTO $K5SUPPORT -lcom_err])
+ break
+ elif test \( -f ${k5libdir}/libkrb5.a -o -f ${k5libdir}/libkrb5.so \) -a \( -f ${k5libdir}/libasn1.a -o -f ${k5libdir}/libasn1.so \) -a \( -f ${k5libdir}/libgssapi.a -o -f ${k5libdir}/libgssapi.so \); then
++ KRB5_DIR_FOUND=$dir
++ KRB5_LIBDIR_FOUND=$k5libdir
+ AMANDA_ADD_LIBS([-lgssapi -lkrb5 -lasn1])
+ AMANDA_ADD_CPPFLAGS([-DKRB5_HEIMDAL_INCLUDES])
+ break
---- amanda-3.3.6/perl/Amanda/Xfer.swg.orig 2015-12-27 11:44:42.539670320 +0100
-+++ amanda-3.3.6/perl/Amanda/Xfer.swg 2015-12-27 11:47:02.104286963 +0100
-@@ -533,8 +533,6 @@
- %perlcode {
+diff -urNp -x '*.orig' amanda-3.5.1.org/perl/Amanda/Xfer.swg amanda-3.5.1/perl/Amanda/Xfer.swg
+--- amanda-3.5.1.org/perl/Amanda/Xfer.swg 2017-12-01 14:26:29.000000000 +0100
++++ amanda-3.5.1/perl/Amanda/Xfer.swg 2021-05-08 10:23:15.580125519 +0200
+@@ -614,8 +614,6 @@ XFER_ELEMENT_SUBCLASS_OF(Amanda::Xfer::E
+ %perlcode %{
sub new {
my $pkg = shift;
- # The C function adds the proper blessing -- this function
- # just gets $pkg out of the way.
C_CONSTRUCTOR(@_);
}
- }
-@@ -543,7 +543,6 @@
+ %}
+@@ -624,7 +622,6 @@ sub new {
%define OVERLOAD_REPR()
- %perlcode {
+ %perlcode %{
use overload '""' => sub { $_[0]->repr(); };
-# overload comparison, so users can ask if one obj == another
use overload '==' => sub { Amanda::Xfer::same_elements($_[0], $_[1]); };
use overload '!=' => sub { not Amanda::Xfer::same_elements($_[0], $_[1]); };
- }
+ %}