diff options
author | tv <tv@pkgsrc.org> | 1998-03-04 14:51:38 +0000 |
---|---|---|
committer | tv <tv@pkgsrc.org> | 1998-03-04 14:51:38 +0000 |
commit | ecad564d0868ec50a82cea049cbc4787dc9d7ccd (patch) | |
tree | c74eed20bc5766ada281ce4d32525aa88b86e2b5 /archivers/gcpio | |
parent | b99fc5075b2c7fa5bbdad2875f91b6b91b88ef3a (diff) | |
download | pkgsrc-ecad564d0868ec50a82cea049cbc4787dc9d7ccd.tar.gz |
Import of `gcpio' pkg (GNU cpio); not yet enabled in archivers/Makefile
until pax-cpio work is complete
Diffstat (limited to 'archivers/gcpio')
-rw-r--r-- | archivers/gcpio/Makefile | 30 | ||||
-rw-r--r-- | archivers/gcpio/files/md5 | 1 | ||||
-rw-r--r-- | archivers/gcpio/patches/patch-aa | 40 | ||||
-rw-r--r-- | archivers/gcpio/patches/patch-ab | 124 | ||||
-rw-r--r-- | archivers/gcpio/pkg/COMMENT | 1 | ||||
-rw-r--r-- | archivers/gcpio/pkg/DESCR | 3 | ||||
-rw-r--r-- | archivers/gcpio/pkg/PLIST | 6 |
7 files changed, 205 insertions, 0 deletions
diff --git a/archivers/gcpio/Makefile b/archivers/gcpio/Makefile new file mode 100644 index 00000000000..481a3633c67 --- /dev/null +++ b/archivers/gcpio/Makefile @@ -0,0 +1,30 @@ +# New ports collection makefile for: gcpio +# Version required: 2.4.2 +# Date created: 1 March 1998 +# Whom: tv@netbsd.org +# +# $NetBSD: Makefile,v 1.1.1.1 1998/03/04 14:51:38 tv Exp $ +# + +DISTNAME= cpio-2.4.2 +PKGNAME= gcpio-2.4.2 +CATEGORIES= devel +MASTER_SITES= ${MASTER_SITE_GNU} + +MAINTAINER= packages@netbsd.org + +OPSYS!= uname -s +.if (${OPSYS} == "NetBSD") +BUILD_DEPENDS= ${PREFIX}/bin/install-info:${PORTSDIR}/devel/gtexinfo +.endif + +GNU_CONFIGURE=yes +CONFIGURE_ARGS= --program-prefix=g +LDFLAGS= -lgnumalloc + +MAN1= gcpio.1 + +post-install: + install-info --info-dir=${PREFIX}/info ${PREFIX}/info/cpio.info + +.include <bsd.port.mk> diff --git a/archivers/gcpio/files/md5 b/archivers/gcpio/files/md5 new file mode 100644 index 00000000000..50b936ff59d --- /dev/null +++ b/archivers/gcpio/files/md5 @@ -0,0 +1 @@ +MD5 (cpio-2.4.2.tar.gz) = e651ca1e1ac53aaebfa7ad256b0fe4fc diff --git a/archivers/gcpio/patches/patch-aa b/archivers/gcpio/patches/patch-aa new file mode 100644 index 00000000000..641548a96ed --- /dev/null +++ b/archivers/gcpio/patches/patch-aa @@ -0,0 +1,40 @@ +--- Makefile.in.orig Wed Dec 20 11:28:30 1995 ++++ Makefile.in Tue Mar 3 13:59:43 1998 +@@ -60,15 +60,15 @@ + RTAPELIB = @RTAPELIB@ + + CFLAGS = @CFLAGS@ +-LDFLAGS = @LDFLAGS@ ++LDFLAGS = @LDFLAGS@ -lgnumalloc + + 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 @@ + 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) diff --git a/archivers/gcpio/patches/patch-ab b/archivers/gcpio/patches/patch-ab new file mode 100644 index 00000000000..f7d38aaf63f --- /dev/null +++ b/archivers/gcpio/patches/patch-ab @@ -0,0 +1,124 @@ +--- cpio.1.orig Wed Nov 30 19:23:38 1994 ++++ cpio.1 Tue Mar 3 14:11:31 1998 +@@ -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 @@ + [\-\-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 @@ + [\-\-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 @@ + 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 @@ + 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 @@ + 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 @@ + 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 @@ + 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 @@ + 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 @@ + .TP + .I "\-\-version" + Print the +-.B cpio ++.B gcpio + program version number and exit. diff --git a/archivers/gcpio/pkg/COMMENT b/archivers/gcpio/pkg/COMMENT new file mode 100644 index 00000000000..4b3f88c71a4 --- /dev/null +++ b/archivers/gcpio/pkg/COMMENT @@ -0,0 +1 @@ +GNU copy-in/out (cpio) with remote magnetic tape (rmt) support. diff --git a/archivers/gcpio/pkg/DESCR b/archivers/gcpio/pkg/DESCR new file mode 100644 index 00000000000..692b862ebe3 --- /dev/null +++ b/archivers/gcpio/pkg/DESCR @@ -0,0 +1,3 @@ +GNU cpio, originally shipped as NetBSD's "cpio" up to version 1.3, is a +full-featured cpio command that can access remote and local magnetic tapes, +and both tar and cpio format archives in files or on tapes. diff --git a/archivers/gcpio/pkg/PLIST b/archivers/gcpio/pkg/PLIST new file mode 100644 index 00000000000..906e0b4b705 --- /dev/null +++ b/archivers/gcpio/pkg/PLIST @@ -0,0 +1,6 @@ +@comment $NetBSD: PLIST,v 1.1.1.1 1998/03/04 14:51:38 tv Exp $ +bin/gcpio +@unexec %D/bin/install-info --delete --info-dir=%D/info %D/info/cpio.info +info/cpio.info +@exec %D/bin/install-info --info-dir=%D/info %D/info/cpio.info +man/man1/gcpio.1.gz |