Difference between revisions of "Rpm2targz"

From CBLFS
Jump to navigationJump to search
(Update to 9.0.0.4g, which includes the Gentoo patch and has a Makefile included.)
Line 2: Line 2:
 
|-
 
|-
 
!Download Source:
 
!Download Source:
|http://prometheus.cs.wmich.edu/gentoo/distfiles/rpm2targz-{{Rpm2targz-Version}}.tar.gz
+
|http://gentoo.osuosl.org/distfiles/rpm2targz-{{Rpm2targz-Version}}.tar.lzma
|-
 
!Download Patch:
 
|http://svn.cross-lfs.org/svn/repos/patches/rpm2targz/rpm2targz-{{Rpm2targz-Version}}-fixes-1.patch
 
 
|}
 
|}
  
Line 12: Line 9:
 
{{Package-Introduction|Converts a .rpm file to a .tar.gz archive|http://www.slackware.com/config/packages.php}}
 
{{Package-Introduction|Converts a .rpm file to a .tar.gz archive|http://www.slackware.com/config/packages.php}}
  
{{Note|This is Slackware's rpm2targz patched to add bzip2 support, support for other than bash, secure tempfile, non-GNU portability, and causes rpm2targz to extract to current directory.}}
+
{{Note|This is Gentoos's rpm2targz patched to add bzip2 support, support for other than bash, secure tempfile, non-GNU portability, and causes rpm2targz to extract to current directory.}}
 +
 
 +
== Requirements ==
 +
  Either XZ-Utils (prefered) or LZMA-Utils to unpack the tarball.
  
 
== Non-Multilib ==
 
== Non-Multilib ==
Line 18: Line 18:
 
Compile the package:
 
Compile the package:
  
  patch -Np1 -i ./rpm2targz-{{Rpm2targz-Version}}-fixes-1.patch &&
+
  make
gcc rpmoffset.c -o rpmoffset
 
  
 
Install the package:
 
Install the package:
  
  install -vm755 rpm2targz rpmoffset /usr/bin
+
  make install
  
 
== Multilib ==
 
== Multilib ==
Line 33: Line 32:
 
Compile the package:
 
Compile the package:
  
  patch -Np1 -i ./rpm2targz-{{Rpm2targz-Version}}-fixes-1.patch &&
+
  CC="${BUILD32}" make
gcc ${BUILD32} rpmoffset.c -o rpmoffset
 
  
 
Install the package:
 
Install the package:
  
  install -vm755 rpm2targz rpmoffset /usr/bin
+
  make install
  
 
=== N32 ===
 
=== N32 ===
Line 44: Line 42:
 
Compile the package:
 
Compile the package:
  
  patch -Np1 -i ./rpm2targz-{{Rpm2targz-Version}}-fixes-1.patch &&
+
  CC="${BUILDN32}" make
gcc ${BUILDN32} rpmoffset.c -o rpmoffset
 
  
 
Install the package:
 
Install the package:
  
  install -vm755 rpm2targz rpmoffset /usr/bin
+
  make install
  
 
=== 64Bit ===
 
=== 64Bit ===
Line 55: Line 52:
 
Compile the package:
 
Compile the package:
  
  patch -Np1 -i ./rpm2targz-{{Rpm2targz-Version}}-fixes-1.patch &&
+
  CC="${BUILD64}" make
gcc ${BUILD64} rpmoffset.c -o rpmoffset
 
  
 
Install the package:
 
Install the package:
  
  install -vm755 rpm2targz rpmoffset /usr/bin
+
  make install
  
 
== Contents ==
 
== Contents ==

Revision as of 12:51, 13 February 2010

Download Source: http://gentoo.osuosl.org/distfiles/rpm2targz-9.0.0.4g.tar.lzma

Introduction to Rpm2targz

Converts a .rpm file to a .tar.gz archive

Project Homepage: http://www.slackware.com/config/packages.php

Caution.png

Note

This is Gentoos's rpm2targz patched to add bzip2 support, support for other than bash, secure tempfile, non-GNU portability, and causes rpm2targz to extract to current directory.

Requirements

  Either XZ-Utils (prefered) or LZMA-Utils to unpack the tarball.

Non-Multilib

Compile the package:

make

Install the package:

make install

Multilib

This package does not provide any libraries so only one installation is required.

32Bit

Compile the package:

CC="${BUILD32}" make

Install the package:

make install

N32

Compile the package:

CC="${BUILDN32}" make

Install the package:

make install

64Bit

Compile the package:

CC="${BUILD64}" make

Install the package:

make install

Contents

Installed Directories: None
Installed Programs: rpm2targz, rpmoffset
Installed Libraries: None

Short Descriptions