initial import of gcpio-2.4.2. naddy@ OK.

This commit is contained in:
lebel 2001-04-10 00:41:32 +00:00
parent 10a630ab9e
commit 5daf604020
8 changed files with 227 additions and 0 deletions

23
archivers/gcpio/Makefile Normal file
View File

@ -0,0 +1,23 @@
# $OpenBSD: Makefile,v 1.1.1.1 2001/04/10 00:41:32 lebel Exp $
COMMENT= "GNU copy-in/out (cpio)"
DISTNAME= cpio-2.4.2
PKGNAME= g${DISTNAME}
CATEGORIES= archivers
NEED_VERSION= 1.364
MAINTAINER= David Lebel <lebel@openbsd.org>
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
MASTER_SITES= ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= cpio
CONFIGURE_STYLE= gnu dest
CONFIGURE_ARGS= --program-prefix="g"
.include <bsd.port.mk>

View File

@ -0,0 +1,3 @@
MD5 (cpio-2.4.2.tar.gz) = e651ca1e1ac53aaebfa7ad256b0fe4fc
RMD160 (cpio-2.4.2.tar.gz) = 05a99dbad5a27b4d8c08f1a8113b0f241bb12327
SHA1 (cpio-2.4.2.tar.gz) = 88e557b2e14ad7b575554473e4ef4624a993b71f

View File

@ -0,0 +1,34 @@
$OpenBSD: patch-Makefile_in,v 1.1.1.1 2001/04/10 00:41:32 lebel Exp $
--- Makefile.in.orig Wed Dec 20 11:28:30 1995
+++ Makefile.in Fri Apr 6 10:10:35 2001
@@ -66,9 +66,9 @@ prefix = @prefix@
exec_prefix = @exec_prefix@
# Prefix for each installed program, normally empty or `g'.
-binprefix =
+binprefix = g
# Prefix for each installed man page, normally empty or `g'.
-manprefix =
+manprefix = g
# Where to install the cpio and mt executables.
@@ -117,17 +117,14 @@ README NEWS INSTALL cpio.1 mt.1 makefile
configure configure.in mkinstalldirs install-sh $(MT_SRCS) rmt.c tcexparg.c \
alloca.c cpio.texi cpio.info texinfo.tex
-all: @PROGS@
+all: cpio
.c.o:
$(CC) -c $(CPPFLAGS) $(DEFS) -I$(srcdir) $(CFLAGS) $<
install:: installdirs all $(srcdir)/cpio.1 $(srcdir)/mt.1
$(INSTALL_PROGRAM) cpio $(bindir)/$(binprefix)cpio
- test ! -f mt || $(INSTALL_PROGRAM) mt $(bindir)/$(binprefix)mt
- -test ! -f rmt || $(INSTALL_PROGRAM) rmt $(libexecdir)/rmt
-$(INSTALL_DATA) $(srcdir)/cpio.1 $(mandir)/$(manprefix)cpio.$(manext)
- -test ! -f mt || $(INSTALL_DATA) $(srcdir)/mt.1 $(mandir)/$(manprefix)mt.$(manext)
installdirs:
$(srcdir)/mkinstalldirs $(bindir) $(libexecdir) $(mandir) $(infodir)

View File

@ -0,0 +1,125 @@
$OpenBSD: patch-cpio_1,v 1.1.1.1 2001/04/10 00:41:32 lebel Exp $
--- cpio.1.orig Wed Nov 30 19:23:38 1994
+++ cpio.1 Fri Apr 6 10:10:35 2001
@@ -1,8 +1,8 @@
.TH CPIO 1L \" -*- nroff -*-
.SH NAME
-cpio \- copy files to and from archives
+gcpio \- GNU cpio, copy files to and from archives
.SH SYNOPSIS
-.B cpio
+.B gcpio
{\-o|\-\-create} [\-0acvABLV] [\-C bytes] [\-H format] [\-M message]
[\-O [[user@]host:]archive] [\-F [[user@]host:]archive]
[\-\-file=[[user@]host:]archive] [\-\-format=format] [\-\-message=message]
@@ -10,7 +10,7 @@ cpio \- copy files to and from archives
[\-\-block-size=blocks] [\-\-dereference] [\-\-io-size=bytes] [\-\-quiet]
[\-\-force\-local] [\-\-help] [\-\-version] < name-list [> archive]
-.B cpio
+.B gcpio
{\-i|\-\-extract} [\-bcdfmnrtsuvBSV] [\-C bytes] [\-E file] [\-H format]
[\-M message] [\-R [user][:.][group]] [\-I [[user@]host:]archive]
[\-F [[user@]host:]archive] [\-\-file=[[user@]host:]archive]
@@ -22,7 +22,7 @@ cpio \- copy files to and from archives
[\-\-force\-local] [\-\-no\-absolute\-filenames] [\-\-sparse] [\-\-only\-verify\-crc]
[\-\-quiet] [\-\-help] [\-\-version] [pattern...] [< archive]
-.B cpio
+.B gcpio
{\-p|\-\-pass-through} [\-0adlmuvLV] [\-R [user][:.][group]]
[\-\-null] [\-\-reset-access-time] [\-\-make-directories] [\-\-link] [\-\-quiet]
[\-\-preserve-modification-time] [\-\-unconditional] [\-\-verbose] [\-\-dot]
@@ -32,16 +32,16 @@ cpio \- copy files to and from archives
This manual page
documents the GNU version of
.BR cpio .
-.B cpio
+.B gcpio
copies files into or out of a cpio or tar archive, which is a file that
contains other files plus information about them, such as their
file name, owner, timestamps, and access permissions. The archive can
be another file on the disk, a magnetic tape, or a pipe.
-.B cpio
+.B gcpio
has three operating modes.
.PP
In copy-out mode,
-.B cpio
+.B gcpio
copies files into an archive. It reads a list of filenames, one per
line, on the standard input, and writes the archive onto the standard
output. A typical way to generate the list of filenames is with the
@@ -52,7 +52,7 @@ the \-depth option to minimize problems
directories that are unwritable or not searchable.
.PP
In copy-in mode,
-.B cpio
+.B gcpio
copies files out of an archive or lists the archive contents. It
reads the archive from the standard input. Any non-option command
line arguments are shell globbing patterns; only files in the archive
@@ -63,14 +63,14 @@ can match wildcards. If no patterns are
extracted.
.PP
In copy-pass mode,
-.B cpio
+.B gcpio
copies files from one directory tree to another, combining the
copy-out and copy-in steps without actually using an archive.
It reads the list of files to copy from the standard input; the
directory into which it will copy them is given as a non-option
argument.
.PP
-.B cpio
+.B gcpio
supports the following archive formats: binary, old ASCII, new
ASCII, crc, HPUX binary, HPUX old ASCII, old tar, and POSIX.1 tar.
The binary format
@@ -86,7 +86,7 @@ currently, it is only supported by GNU a
The crc format is
like the new ASCII format, but also contains a checksum for each file
which
-.B cpio
+.B gcpio
calculates when creating an archive
and verifies when the file is extracted from the archive.
The HPUX formats are provided for compatibility with HPUX's cpio which
@@ -102,18 +102,18 @@ The POSIX.1 tar format can not be used t
than 255 characters (less unless they have a "/" in just the right place).
.PP
By default,
-.B cpio
+.B gcpio
creates binary format archives, for compatibility with
older
.B cpio
programs.
When extracting from archives,
-.B cpio
+.B gcpio
automatically recognizes which kind of archive it is reading and can
read archives created on machines with a different byte-order.
.PP
Some of the options to
-.B cpio
+.B gcpio
apply only to certain operating modes; see the SYNOPSIS section for a
list of which options are allowed in which modes.
.SS OPTIONS
@@ -164,7 +164,7 @@ Create leading directories where needed.
In copy-in mode, read additional patterns specifying filenames to
extract or list from FILE. The lines of FILE are treated as if they
had been non-option arguments to
-.BR cpio .
+.BR gcpio .
.TP
.I "\-f, \-\-nonmatching"
Only copy files that do not match any of the given patterns.
@@ -322,5 +322,5 @@ Print a "." for each file processed.
.TP
.I "\-\-version"
Print the
-.B cpio
+.B gcpio
program version number and exit.

View File

@ -0,0 +1,9 @@
$OpenBSD: patch-filetypes_h,v 1.1.1.1 2001/04/10 00:41:32 lebel Exp $
--- filetypes.h.orig Sun Jul 19 01:53:46 1992
+++ filetypes.h Fri Apr 6 10:10:36 2001
@@ -80,5 +80,3 @@
#ifndef S_ISLNK
#define lstat stat
#endif
-int lstat ();
-int stat ();

View File

@ -0,0 +1,12 @@
$OpenBSD: patch-main_c,v 1.1.1.1 2001/04/10 00:41:32 lebel Exp $
--- main.c.orig Wed Nov 30 19:24:21 1994
+++ main.c Fri Apr 6 10:10:36 2001
@@ -492,7 +492,7 @@ initialize_buffers ()
bzero (zeros_512, 512);
}
-void
+int
main (argc, argv)
int argc;
char *argv[];

15
archivers/gcpio/pkg/DESCR Normal file
View File

@ -0,0 +1,15 @@
GNU cpio copies files into or out of a cpio or tar archive. The
archive can be another file on the disk, a magnetic tape, or a pipe.
GNU cpio supports the following archive formats: binary, old ASCII,
new ASCII, crc, HPUX binary, HPUX old ASCII, old tar, and POSIX.1
tar. The tar format is provided for compatibility with the tar
program. By default, cpio creates binary format archives, for
compatibility with older cpio programs. When extracting from
archives, cpio automatically recognizes which kind of archive it
is reading and can read archives created on machines with a different
byte-order.
Note that this port will install these utilities with a 'g' prefix,
e.g. gcpio, but the texinfo documentation will refer to them without
the 'g' prefix.

View File

@ -0,0 +1,6 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2001/04/10 00:41:32 lebel Exp $
@unexec install-info --delete --info-dir=%D/info %D/info/cpio.info
bin/gcpio
info/cpio.info
man/man1/gcpio.1
@exec install-info --info-dir=%D/info %D/info/cpio.info