Difference between revisions of "Cpio"
From CBLFS
Jump to navigationJump to search (→Introduction to Cpio) |
(Removed hacks required for previous version) |
||
Line 3: | Line 3: | ||
!Download Source: | !Download Source: | ||
| ftp://ftp.gnu.org/pub/gnu/cpio/cpio-{{Cpio-Version}}.tar.bz2 | | ftp://ftp.gnu.org/pub/gnu/cpio/cpio-{{Cpio-Version}}.tar.bz2 | ||
− | |||
− | |||
− | |||
|} | |} | ||
Line 20: | Line 17: | ||
Compile the package: | Compile the package: | ||
− | |||
− | |||
./configure CPIO_MT_PROG=mt --prefix=/usr \ | ./configure CPIO_MT_PROG=mt --prefix=/usr \ | ||
--bindir=/bin --libexecdir=/tmp \ | --bindir=/bin --libexecdir=/tmp \ | ||
--with-rmt=/usr/sbin/rmt && | --with-rmt=/usr/sbin/rmt && | ||
− | |||
− | |||
make | make | ||
Line 34: | Line 27: | ||
=== Command Explanations === | === Command Explanations === | ||
− | |||
− | |||
''CPIO_MT_PROG=mt'': This causes '''mt''' to be included in the build. | ''CPIO_MT_PROG=mt'': This causes '''mt''' to be included in the build. | ||
Line 44: | Line 35: | ||
--with-rmt=/usr/sbin/rmt: This parameter prevents '''rmt''' from being built. It was already installed with the Tar package. | --with-rmt=/usr/sbin/rmt: This parameter prevents '''rmt''' from being built. It was already installed with the Tar package. | ||
− | |||
− | |||
− | |||
− | |||
== Multilib == | == Multilib == | ||
Line 54: | Line 41: | ||
=== 32Bit === | === 32Bit === | ||
− | |||
− | |||
CC="gcc ${BUILD32}" ./configure CPIO_MT_PROG=mt --prefix=/usr \ | CC="gcc ${BUILD32}" ./configure CPIO_MT_PROG=mt --prefix=/usr \ | ||
--bindir=/bin --libexecdir=/tmp \ | --bindir=/bin --libexecdir=/tmp \ | ||
--with-rmt=/usr/sbin/rmt && | --with-rmt=/usr/sbin/rmt && | ||
− | |||
− | |||
make | make | ||
Line 69: | Line 52: | ||
=== N32 === | === N32 === | ||
− | |||
− | |||
CC="gcc ${BUILDN32}" ./configure CPIO_MT_PROG=mt --prefix=/usr --libdir=/usr/lib32 \ | CC="gcc ${BUILDN32}" ./configure CPIO_MT_PROG=mt --prefix=/usr --libdir=/usr/lib32 \ | ||
--bindir=/bin --libexecdir=/tmp \ | --bindir=/bin --libexecdir=/tmp \ | ||
--with-rmt=/usr/sbin/rmt && | --with-rmt=/usr/sbin/rmt && | ||
− | |||
− | |||
make | make | ||
Line 86: | Line 65: | ||
Compile the package: | Compile the package: | ||
− | |||
− | |||
CC="gcc ${BUILD64}" ./configure CPIO_MT_PROG=mt --prefix=/usr --libdir=/usr/lib64 \ | CC="gcc ${BUILD64}" ./configure CPIO_MT_PROG=mt --prefix=/usr --libdir=/usr/lib64 \ | ||
--bindir=/bin --libexecdir=/tmp \ | --bindir=/bin --libexecdir=/tmp \ | ||
--with-rmt=/usr/sbin/rmt && | --with-rmt=/usr/sbin/rmt && | ||
− | |||
− | |||
make | make | ||
Revision as of 12:26, 4 April 2007
Download Source: | ftp://ftp.gnu.org/pub/gnu/cpio/cpio-2.9.90.tar.bz2 |
---|
Contents
Introduction to Cpio
<Package Description Needed>
Dependencies
Non-Multilib
Compile the package:
./configure CPIO_MT_PROG=mt --prefix=/usr \ --bindir=/bin --libexecdir=/tmp \ --with-rmt=/usr/sbin/rmt && make
Install the package
make install
Command Explanations
CPIO_MT_PROG=mt: This causes mt to be included in the build.
--bindir=/bin: This makes it so that cpio is put in /bin instead of /usr/bin. This is done to match the FHS.
--libexecdir=/tmp: This prevents the creation of /usr/libexec.
--with-rmt=/usr/sbin/rmt: This parameter prevents rmt from being built. It was already installed with the Tar package.
Multilib
This package does not provide any libraries so only one installation is needed.
32Bit
CC="gcc ${BUILD32}" ./configure CPIO_MT_PROG=mt --prefix=/usr \ --bindir=/bin --libexecdir=/tmp \ --with-rmt=/usr/sbin/rmt && make
Install the package:
make install
N32
CC="gcc ${BUILDN32}" ./configure CPIO_MT_PROG=mt --prefix=/usr --libdir=/usr/lib32 \ --bindir=/bin --libexecdir=/tmp \ --with-rmt=/usr/sbin/rmt && make
Install the package:
make install
64Bit
Compile the package:
CC="gcc ${BUILD64}" ./configure CPIO_MT_PROG=mt --prefix=/usr --libdir=/usr/lib64 \ --bindir=/bin --libexecdir=/tmp \ --with-rmt=/usr/sbin/rmt && make
Install the package:
make install
Contents
Installed Programs: | cpio and mt |
---|---|
Installed Libraries: | None |
Installed Directories: | None |
Short Descriptions
cpio | copies files to and from archives. |
---|---|
mt | controls magnetic tape drive operations. |