the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: cpio
Version: 2.11
Revision: 1
Description: Archiving program for files and tape
DescDetail: <<
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.
<<
DescUsage: <<
The utility is named "gcpio" to avoid conflicting with /usr/bin/cpio
which takes different arguments.
<<
Homepage: http://www.gnu.org/software/cpio/
Maintainer: Daniel Johnson
License: GPL3
Source: gnu
Source-MD5: 1112bb6c45863468b5496ba128792f6c
PatchFile: %n.patch
PatchFile-MD5: 6e976e37e2537bf1a499759fb2dfe497
Depends: libgettext8-shlibs
BuildDepends: fink (>= 0.24.12), libgettext8-dev, libiconv-dev, gettext-tools
ConfigureParams: --disable-dependency-tracking --program-prefix=g
SetCFLAGS: -Os
InfoTest: TestScript: make check || exit 2
InstallScript: <<
make install DESTDIR=%d
rm -r %i/libexec
rm -r %i/share/man/man1/gmt.1
<<
InfoDocs: cpio.info
DocFiles: AUTHORS ChangeLog COPYING NEWS README THANKS TODO
diff -ru cpio-2.11.orig/src/filetypes.h cpio-2.11/src/filetypes.h
--- cpio-2.11.orig/src/filetypes.h 2010-02-12 05:19:23.000000000 -0500
+++ cpio-2.11/src/filetypes.h 2010-11-29 11:36:54.000000000 -0500
@@ -81,5 +81,3 @@
#ifndef S_ISLNK
#define lstat stat
#endif
-int lstat ();
-int stat ();
diff -ru cpio-2.11.orig/tests/setstat01.at cpio-2.11/tests/setstat01.at
--- cpio-2.11.orig/tests/setstat01.at 2010-02-15 05:02:23.000000000 -0500
+++ cpio-2.11/tests/setstat01.at 2010-11-29 11:38:09.000000000 -0500
@@ -28,6 +28,8 @@
chmod 500 dir
find dir | cpio -o --quiet > archive
+# Darwin cannot rename a directory whose permissions disallow writing.
+chmod 700 dir
mv dir old
cpio -i --quiet < archive
diff -ru cpio-2.11.orig/tests/setstat02.at cpio-2.11/tests/setstat02.at
--- cpio-2.11.orig/tests/setstat02.at 2010-02-15 05:02:23.000000000 -0500
+++ cpio-2.11/tests/setstat02.at 2010-11-29 11:38:23.000000000 -0500
@@ -33,6 +33,8 @@
chmod 500 dir
find dir -depth | cpio -o --quiet > archive
+# Darwin cannot rename a directory whose permissions disallow writing.
+chmod 700 dir
mv dir old
cpio -id --quiet < archive