Main Page   Modules   Compound List   File List   Compound Members   File Members   Related Pages  

build/pack.c File Reference

Assemble components of an RPM package. More...

#include "system.h"
#include <rpmio_internal.h>
#include <rpmbuild.h>
#include "buildio.h"
#include "misc.h"
#include "signature.h"
#include "rpmlead.h"
#include "debug.h"

Go to the source code of this file.

Functions

int genSourceRpmName (Spec spec)
int cpio_doio (FD_t fdo, CSA_t *csa, const char *fmodeMacro)
int cpio_copy (FD_t fdo, CSA_t *csa)
StringBuf addFileToTagAux (Spec spec, const char *file, StringBuf sb)
int addFileToTag (Spec spec, const char *file, Header h, int tag)
int addFileToArrayTag (Spec spec, char *file, Header h, int tag)
int processScriptFiles (Spec spec, Package pkg)
int readRPM (const char *fileName, Spec *specp, struct rpmlead *lead, Header *sigs, CSA_t *csa)
 Read rpm package components from file. More...

int writeRPM (Header *hdrp, const char *fileName, int type, CSA_t *csa, char *passPhrase, const char **cookie)
 Write rpm package to file. More...

int packageBinaries (Spec spec)
int packageSources (Spec spec)

Variables

int _noDirTokens
int_32 copyTags []


Detailed Description

Assemble components of an RPM package.

Definition in file pack.c.


Function Documentation

int addFileToArrayTag ( Spec spec,
char * file,
Header h,
int tag ) [static]
 

Definition at line 141 of file pack.c.

Referenced by processScriptFiles().

int addFileToTag ( Spec spec,
const char * file,
Header h,
int tag ) [static]
 

Definition at line 120 of file pack.c.

Referenced by processScriptFiles().

StringBuf addFileToTagAux ( Spec spec,
const char * file,
StringBuf sb ) [static]
 

Definition at line 90 of file pack.c.

Referenced by addFileToArrayTag(), and addFileToTag().

int cpio_copy ( FD_t fdo,
CSA_t * csa ) [static]
 

Definition at line 67 of file pack.c.

Referenced by writeRPM().

int cpio_doio ( FD_t fdo,
CSA_t * csa,
const char * fmodeMacro ) [static]
 

Definition at line 38 of file pack.c.

Referenced by writeRPM().

int genSourceRpmName ( Spec spec ) [inline, static]
 

Definition at line 21 of file pack.c.

Referenced by packageBinaries(), and packageSources().

int processScriptFiles ( Spec spec,
Package pkg ) [static]
 

Definition at line 158 of file pack.c.

Referenced by packageBinaries().

int readRPM ( const char * fileName,
Spec * specp,
struct rpmlead * lead,
Header * sigs,
CSA_t * csa )
 

Read rpm package components from file.

Parameters:
filename   file name of package (or NULL to use stdin)
Return values:
specp   spec structure to carry package header (or NULL)
lead   package lead
sigs   package signature
Parameters:
csa  
Returns:
0 on success

Definition at line 225 of file pack.c.

Referenced by rewriteRPM().

int writeRPM ( Header * hdrp,
const char * fileName,
int type,
CSA_t * csa,
char * passPhrase,
const char ** cookie )
 

Write rpm package to file.

Warning:
The first header argument is now passed by reference in order to return a reloaded contiguous header to the caller.
Return values:
hdrp   header to write (final header is returned).
Parameters:
filename   file name of package
type   RPMLEAD_SOURCE/RPMLEAD_BINARY
csa  
passPhrase  
Return values:
cookie   generated cookie (i.e build host/time)
Returns:
0 on success

Definition at line 291 of file pack.c.

Referenced by packageBinaries(), packageSources(), and rewriteRPM().


Variable Documentation

int _noDirTokens
 

Definition at line 17 of file pack.c.

int_32 copyTags[] [static]
 

Initial value:

 {
    RPMTAG_CHANGELOGTIME,
    RPMTAG_CHANGELOGNAME,
    RPMTAG_CHANGELOGTEXT,
    0
}

Definition at line 559 of file pack.c.


Generated at Mon May 21 08:53:41 2001 for rpm by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001