1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00
freebsd-ports/misc/afbackup/files/patch-ad
Anton Berezin 5f9bb0d96f Update to 3.3.5.
Submitted by:	maintainer
2001-11-06 13:28:06 +00:00

39 lines
1.2 KiB
Plaintext

--- label_tape.c.orig Tue Sep 18 08:26:18 2001
+++ label_tape.c Fri Nov 2 15:51:10 2001
@@ -33,11 +33,13 @@
UChar *programfile = NULL;
UChar *programdir = NULL;
UChar *bindir = NULL;
+UChar *libexecdir = NULL;
UChar *libdir = NULL;
UChar *vardir = NULL;
ReplSpec replacements[] = {
{ "%B", NULL, &bindir },
+ { "%E", NULL, &libexecdir },
{ "%L", NULL, &libdir },
{ "%V", NULL, &vardir },
};
@@ -1044,11 +1046,13 @@
if( (cptr = FN_LASTDIRDELIM(programdir)) )
*(cptr) = '\0';
bindir = strapp(programdir, FN_DIRSEPSTR "bin");
+ libexecdir = strapp(programdir, FN_DIRSEPSTR "libexec/afbackup");
libdir = strapp(programdir, FN_DIRSEPSTR "lib");
#else /* defined(ORIG_DEFAULTS) */
bindir = strdup(DEFSERVBINDIR);
+ libexecdir = strdup(DEFSERVLIBEXECDIR);
libdir = strdup(DEFSERVLIBDIR);
#endif /* if else defined(ORIG_DEFAULTS) */
@@ -1058,6 +1062,7 @@
backuphome = strdup(backuphome);
/* construct file- and dirnames */
bindir = strapp(backuphome, FN_DIRSEPSTR "bin");
+ libexecdir = strapp(backuphome, FN_DIRSEPSTR "libexec/afbackup");
libdir = strapp(backuphome, FN_DIRSEPSTR "lib");
}