epm  4.5.1
About: EPM is a complete, cross-platform Linux/UNIX software and file packaging program that generates distribution archives from a list of files.
  Fossies Dox: epm-4.5.1.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

portable.c File Reference
#include "epm.h"
Include dependency graph for portable.c:

Go to the source code of this file.

Functions

static void clean_distfiles (const char *directory, const char *prodname, const char *platname, dist_t *dist, const char *subpackage)
 
static int write_combined (const char *title, const char *directory, const char *prodname, const char *platname, dist_t *dist, const char **files, time_t deftime, const char *setup, const char *types)
 
static int write_commands (dist_t *dist, FILE *fp, int type, const char *subpackage)
 
static FILE * write_common (dist_t *dist, const char *title, int rootsize, int usrsize, const char *filename, const char *subpackage)
 
static int write_confcheck (FILE *fp)
 
static int write_depends (const char *prodname, dist_t *dist, FILE *fp, const char *subpackage)
 
static int write_distfiles (const char *directory, const char *prodname, const char *platname, dist_t *dist, time_t deftime, const char *subpackage)
 
static int write_install (dist_t *dist, const char *prodname, int rootsize, int usrsize, const char *directory, const char *subpackage)
 
static int write_instfiles (tarf_t *tarfile, const char *directory, const char *prodname, const char *platname, const char **files, const char *destdir, const char *subpackage)
 
static int write_patch (dist_t *dist, const char *prodname, int rootsize, int usrsize, const char *directory, const char *subpackage)
 
static int write_remove (dist_t *dist, const char *prodname, int rootsize, int usrsize, const char *directory, const char *subpackage)
 
static int write_space_checks (const char *prodname, FILE *fp, const char *sw, const char *ss, int rootsize, int usrsize)
 
int make_portable (const char *prodname, const char *directory, const char *platname, dist_t *dist, struct utsname *platform, const char *setup, const char *types)
 

Function Documentation

◆ clean_distfiles()

static void clean_distfiles ( const char *  directory,
const char *  prodname,
const char *  platname,
dist_t dist,
const char *  subpackage 
)
static

Definition at line 176 of file portable.c.

References snprintf, strlcpy, and Verbosity.

Referenced by make_portable().

◆ make_portable()

int make_portable ( const char *  prodname,
const char *  directory,
const char *  platname,
dist_t dist,
struct utsname *  platform,
const char *  setup,
const char *  types 
)

◆ write_combined()

static int write_combined ( const char *  title,
const char *  directory,
const char *  prodname,
const char *  platname,
dist_t dist,
const char **  files,
time_t  deftime,
const char *  setup,
const char *  types 
)
static

◆ write_commands()

static int write_commands ( dist_t dist,
FILE *  fp,
int  type,
const char *  subpackage 
)
static

◆ write_common()

static FILE * write_common ( dist_t dist,
const char *  title,
int  rootsize,
int  usrsize,
const char *  filename,
const char *  subpackage 
)
static

◆ write_confcheck()

static int write_confcheck ( FILE *  fp)
static

Definition at line 1026 of file portable.c.

Referenced by write_common().

◆ write_depends()

static int write_depends ( const char *  prodname,
dist_t dist,
FILE *  fp,
const char *  subpackage 
)
static

◆ write_distfiles()

static int write_distfiles ( const char *  directory,
const char *  prodname,
const char *  platname,
dist_t dist,
time_t  deftime,
const char *  subpackage 
)
static

◆ write_install()

static int write_install ( dist_t dist,
const char *  prodname,
int  rootsize,
int  usrsize,
const char *  directory,
const char *  subpackage 
)
static

◆ write_instfiles()

static int write_instfiles ( tarf_t tarfile,
const char *  directory,
const char *  prodname,
const char *  platname,
const char **  files,
const char *  destdir,
const char *  subpackage 
)
static

Definition at line 2093 of file portable.c.

References snprintf, strlcpy, tar_file(), tar_header(), TAR_NORMAL, and Verbosity.

Referenced by write_combined().

◆ write_patch()

static int write_patch ( dist_t dist,
const char *  prodname,
int  rootsize,
int  usrsize,
const char *  directory,
const char *  subpackage 
)
static

◆ write_remove()

static int write_remove ( dist_t dist,
const char *  prodname,
int  rootsize,
int  usrsize,
const char *  directory,
const char *  subpackage 
)
static

◆ write_space_checks()

static int write_space_checks ( const char *  prodname,
FILE *  fp,
const char *  sw,
const char *  ss,
int  rootsize,
int  usrsize 
)
static

Definition at line 2727 of file portable.c.

Referenced by write_install(), and write_patch().