diff options
author | Satoshi Asami <asami@FreeBSD.org> | 1995-10-04 17:29:14 +0000 |
---|---|---|
committer | Satoshi Asami <asami@FreeBSD.org> | 1995-10-04 17:29:14 +0000 |
commit | a966677871a4f8c872f107abb741917b20a0a480 (patch) | |
tree | 43c181f2137945f5ccacb8190dbdae52244ca2c5 /sysutils/afio/files | |
parent | e78713e7ef07280853f19c22771aa220cd80fe70 (diff) |
Archiver & backup program w/ builtin compression.
Submitted by: Juergen Lock <nox@jelal.hb.north.de>
Notes
Notes:
svn path=/head/; revision=2254
Diffstat (limited to 'sysutils/afio/files')
-rw-r--r-- | sysutils/afio/files/patch-aa | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/sysutils/afio/files/patch-aa b/sysutils/afio/files/patch-aa new file mode 100644 index 000000000000..e1e94bc479f2 --- /dev/null +++ b/sysutils/afio/files/patch-aa @@ -0,0 +1,81 @@ +Index: Makefile +@@ -26,7 +26,7 @@ + c = -DHAVEMEMCMP + ## Define DEFFMTCMD to being how to format the media you use the most + ## This is the DEFault FoRMat CoManD. +-d = -DDEFFMTCMD='"/bin/fdformat /dev/fd0H1440"' ++d = -DDEFFMTCMD='"/usr/sbin/fdformat -f 1440 /dev/fd0.1440"' + ## Define LONGZFILE if you want .Z to be tagged on the end of a 14 char + ## file name (or longer for BSD) in the archive when the file is compressed + #e = -DLONGZFILE +@@ -54,24 +54,29 @@ + # Please read the COPYING.LIB file in this archive if you plan to + # redistribute afio executables with this library linked in. + +-CFLAGS = -s -O2 -fomit-frame-pointer ++CPPFLAGS = $1 $2 $3 $4 $5 $6 $7 $8 $9 $a $b $c $d $e $f $g $I ++ ++CFLAGS = -O2 -fomit-frame-pointer -fno-strength-reduce $(CPPFLAGS) + #CFLAGS = -fomit-frame-pointer + #CFLAGS = -Wall -fomit-frame-pointer + + CC=gcc + + +-CPPFLAGS = $1 $2 $3 $4 $5 $6 $7 $8 $9 $a $b $c $d $e $f $g $I +-LDFLAGS = -s -N ++#LDFLAGS = -s -N ++#LDFLAGS = -s ++ ++all : afio + + afio : afio.o compfile.o exten.o match.o $M ++ $(CC) $(LDFLAGS) $? -o $@ + + clean: + rm -f *.o afio + + install: afio +- cp afio /usr/bin +- cp afio.1 /usr/man/man1 ++ install -cs -o bin -g bin afio ${PREFIX}/bin ++ install -c -o bin -g bin afio.1 ${PREFIX}/man/man1 + + tarfile: clean + { cd .. ; tar zcvf /root/src/tbackup/afio.2.4.1.tgz afio.2.4.1 } +Index: afio.h +@@ -194,9 +194,9 @@ + char sb_link[PATHSIZE]; + } Stat; + +-#define STAT(name, asb) stat(name, &(asb)->sb_stat) +-#define FSTAT(fd, asb) fstat(fd, &(asb)->sb_stat) +-#define LSTAT(name, asb) lstat(name, &(asb)->sb_stat) ++#define STAT(name, asb) (stat(name, (((asb)->sb_stat.st_rdev = 0), &(asb)->sb_stat)) ? -1 : ((((asb)->sb_stat.st_mode & S_IFMT) == S_IFREG) ? ((asb)->sb_stat.st_rdev = 0) : 0)) ++#define FSTAT(fd, asb) (fstat(fd, (((asb)->sb_stat.st_rdev = 0), &(asb)->sb_stat)) ? -1 : ((((asb)->sb_stat.st_mode & S_IFMT) == S_IFREG) ? ((asb)->sb_stat.st_rdev = 0) : 0)) ++#define LSTAT(name, asb) (lstat(name, (((asb)->sb_stat.st_rdev = 0), &(asb)->sb_stat)) ? -1 : ((((asb)->sb_stat.st_mode & S_IFMT) == S_IFREG) ? ((asb)->sb_stat.st_rdev = 0) : 0)) + #define sb_dev sb_stat.st_dev + #define sb_ino sb_stat.st_ino + #define sb_mode sb_stat.st_mode +@@ -215,9 +215,9 @@ + * File status without symbolic links. + */ + typedef struct stat Stat; +-#define STAT(name, asb) stat(name, asb) +-#define FSTAT(fd, asb) fstat(fd, asb) +-#define LSTAT(name, asb) stat(name, asb) ++#define STAT(name, asb) (stat(name, (((asb)->st_rdev = 0), asb)) ? -1 : ((((asb)->sb_stat.st_mode & S_IFMT) == S_IFREG) ? ((asb)->sb_stat.st_rdev = 0) : 0)) ++#define FSTAT(fd, asb) (fstat(fd, (((asb)->st_rdev = 0), asb)) ? -1 : ((((asb)->sb_stat.st_mode & S_IFMT) == S_IFREG) ? ((asb)->sb_stat.st_rdev = 0) : 0)) ++#define LSTAT(name, asb) (stat(name, (((asb)->st_rdev = 0), asb)) ? -1 : ((((asb)->sb_stat.st_mode & S_IFMT) == S_IFREG) ? ((asb)->sb_stat.st_rdev = 0) : 0)) + #define sb_dev st_dev + #define sb_ino st_ino + #define sb_mode st_mode +@@ -371,7 +371,7 @@ + #ifndef MKDIR + int rmdir (); + #endif +-#ifndef linux ++#if !defined (linux) && !defined(__FreeBSD__) + VOIDFN (*signal ())(); + #endif + int fswrite (); |