NAME

pkgsubmit - Package submission script

SYNOPSIS

pkgsubmit -B bucket [ -x ] rpm [ rpm ... ]

DESCRIPTION

pkgsubmit is used to submit packages (and their sources) to the package repository. Currently only RPMs are supported.

By default, pkgsubmit will only submit RPMs if it can find the associated SRPM(s). It does this by looking in the SRPM sub-directory of the directory specified by the %_topdir resource in the ~/.rpmmacros file (or the directory specified by the environment variable SRPMDIR if set). If the build dates match, both the RPMs and the SRPM(s) are submitted.

The current, simplistic, implementation of pkgsubmit works by copying the RPMs and SRPMs files directly to the relevant directories. Once the copy is complete, pkgsubmit creates the RPM header files (which updaterpms requires) by running /usr/sbin/genhdfile on each submitted RPM file.

The (S)RPMs are submitted into an (S)RPM repository which is specified in the configuration file /etc/pkgsubmit/default.conf. The repository contains various buckets of (S)RPMs; the -B flag is used to indicate which bucket to use for the specified (S)RPMs.

OPTIONS

-B bucket

The destination bucket for the (S)RPMs.

-x

Normally pkgsubmit will only successfully submit an RPM if it can also find and submit the associated SRPM. The -x option disables this; this is necessary where the SRPM(s) aren't available for submission.

-f file

The name of an alternative configuration file to use. This file is given relative to /etc/pkgsubmit/, and must exist within that directory.

-r path

Specify an alternative path to use as the location to copy RPMs to. This overrides the contents of the configuration file.

-s path

Specify an alternative path to save SRPMs to. This overrides the contents of the configuration file.

RETURN VALUE

FILES

/etc/pkgsubmit/default.conf

The configuration file for pkgsubmit, as described below.

CONFIGURATION FILE

The configuration file sets the default paths, buckets and access control for pkgsubmit. It consists of a set of lines containing key = value pairs, as follows

logmailsrc

The address which logging mail will be sent from

logmaildst

A comma separated list of addresses that log mail should be sent to

rpmrepository

The base path of the rpm repository to which RPMs should be copied

srpmrepository

The base path of the srpm repository to which SRPMs should be copied

buckets

A comma separated list of permitted RPM buckets

PLATFORMS

SL5

AUTHOR

Alastair Scobie <ascobie@inf.ed.ac.uk>