aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorasami <asami@FreeBSD.org>1995-10-05 01:29:14 +0800
committerasami <asami@FreeBSD.org>1995-10-05 01:29:14 +0800
commite9e2fead614dff688fa08f61e2145cf24fb4be1f (patch)
tree2146287af6a66f306af16287875993da0a4c066a
parent25b6e229e4857d1c251912e81b68cb5b16a82bd3 (diff)
downloadfreebsd-ports-gnome-e9e2fead614dff688fa08f61e2145cf24fb4be1f.tar.gz
freebsd-ports-gnome-e9e2fead614dff688fa08f61e2145cf24fb4be1f.tar.zst
freebsd-ports-gnome-e9e2fead614dff688fa08f61e2145cf24fb4be1f.zip
Archiver & backup program w/ builtin compression.
Submitted by: Juergen Lock <nox@jelal.hb.north.de>
-rw-r--r--sysutils/afio/Makefile26
-rw-r--r--sysutils/afio/distinfo1
-rw-r--r--sysutils/afio/files/patch-aa81
-rw-r--r--sysutils/afio/pkg-comment1
-rw-r--r--sysutils/afio/pkg-descr64
-rw-r--r--sysutils/afio/pkg-plist3
6 files changed, 176 insertions, 0 deletions
diff --git a/sysutils/afio/Makefile b/sysutils/afio/Makefile
new file mode 100644
index 000000000000..34ede158c527
--- /dev/null
+++ b/sysutils/afio/Makefile
@@ -0,0 +1,26 @@
+# New ports collection makefile for: afio
+# Version required: 2.4.
+# Date created: 4 October 1995
+# Whom: Juergen Lock <nox@jelal.hb.north.de>
+#
+# $Id: Makefile,v 1.1.1.1 1995/08/25 10:04:31 asami Exp $
+#
+
+DISTNAME= afio.2.4.1
+PKGNAME= afio-2.4.1
+CATEGORIES+= sysutils
+MASTER_SITES= ftp://sunsite.unc.edu/pub/Linux/system/Backup/ \
+ ftp://ftp.win.tue.nl/pub/linux/tbackup/ \
+ ftp://ftp.germany.eu.net/pub/os/Linux/Mirror.SunSITE/system/Backup/ \
+ ftp://nic.funet.fi/pub/Linux/util/backup/ \
+ ftp://medusa.k12.ar.us/pub/linux2/sunsite/system/Backup/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= nox@jelal.hb.north.de
+
+post-install:
+.if !defined(NOMANCOMPRESS)
+ gzip -9nf ${PREFIX}/man/man1/afio.1
+.endif
+
+.include <bsd.port.mk>
diff --git a/sysutils/afio/distinfo b/sysutils/afio/distinfo
new file mode 100644
index 000000000000..79ba0e7d0f98
--- /dev/null
+++ b/sysutils/afio/distinfo
@@ -0,0 +1 @@
+MD5 (afio.2.4.1.tgz) = a510e280764acbe31b88e31a09a953ac
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 ();
diff --git a/sysutils/afio/pkg-comment b/sysutils/afio/pkg-comment
new file mode 100644
index 000000000000..8a2d6fcf2925
--- /dev/null
+++ b/sysutils/afio/pkg-comment
@@ -0,0 +1 @@
+Archiver & backup program w/ builtin compression
diff --git a/sysutils/afio/pkg-descr b/sysutils/afio/pkg-descr
new file mode 100644
index 000000000000..73fe1eb8b3f1
--- /dev/null
+++ b/sysutils/afio/pkg-descr
@@ -0,0 +1,64 @@
+[afio.2.4.1/README:]
+
+This is afio 2.4.1.
+
+The current maintainer is Koen Holtman (koen@stack.urc.tue.nl).
+
+--------------------------------------------------------------------------
+
+Afio makes cpio-format archives. It deals somewhat gracefully with
+input data corruption. Supports multi-volume archives during
+interactive operation. Afio can make compressed archives that are
+much safer than compressed tar or cpio archives. Afio is best used as
+an `archive engine' in a backup script.
+
+--------------------------------------------------------------------------
+
+See the file SCRIPTS for more information on backup scripts that use
+afio.
+
+See the file PORTING for information on compiling afio on non-Linux
+machines.
+
+---------------------------------------------------------------------------
+
+This afio version is based on a Linux port of afio 2.3. Since the
+original port, significant functionality has been added and some bugs
+were removed. While primarily intended for use under Linux, this code
+should be portable to other UNIX versions. As far as I know, there
+has been no afio development beyond 2.3 outside the Linux community.
+Thus, it should be safe to advertise ports of this code to other UNIX
+versions as ports of afio version 2.4.1.
+
+---------------------------------------------------------------------------
+
+Afio has far too many options and features (some of which are not even
+in the manual page). Anything in afio that doesn't relate to reading
+or writing an archive from/to a simple file or pipe or backing up and
+restoring from floppies remains untested.
+
+In particular, nobody has verified if the options -p -b -d -e -g -h
+-j -l -m -u and -R and the special case archive names `!command'
+and `system:file' really do what they claim to do.
+
+Typical `tested' afio uses are
+ ... | afio -o -v -f -b 1024 -s 1440x -F -Z /dev/fd0H1440
+ ... | afio -o -v -s 1440k -F -V -Z -G1 /dev/fd0H1440
+ afio -oZvx /tmp/pipe1 </tmp/pipe2
+ afio -i -Z -k -v -x -n /tmp/pipe1
+ ... | afio -s 512m -c 1024 -Z -T 20k -G 1 -E /backup/compressed -v -o \
+ -L /backup/LOG -z /dev/tape 2>/dev/tty8 >/var/adm/backup
+
+WARNING1: The Linux floppy drivers below kernel version 1.1.54 do not
+allow afio to find out if a floppy write error has happened. If you
+are running a kernel below 1.1.54, afio will happily fail to backup to
+(say) a write protected disk and not report anything wrong! The only
+way to find out about write errors in this case is by watching the
+kernel messages, or by switching on the verify option.
+
+WARNING2: the code for -F (and -f and -K) is a complete mess. It will
+probably work in the normal case, but don't expect it to handle a
+write/verify error correctly. If you get such an error, best thing is
+to restart afio completely.
+
+---------------------------------------------------------------------------
diff --git a/sysutils/afio/pkg-plist b/sysutils/afio/pkg-plist
new file mode 100644
index 000000000000..fd9605f8e3db
--- /dev/null
+++ b/sysutils/afio/pkg-plist
@@ -0,0 +1,3 @@
+@cwd /usr/local
+bin/afio
+man/man1/afio.1.gz