These are the scripts I use for building and managing rpms & src.rpms
for Tao Linux.

They still kinda suck, just not as bad now. ;-) (and of course, mainly,
they Work For Me(tm))  The tarball is still hard-coded for installation
in /usr/local, but was made a little more flexible in repo organization.

In brief:
tmnewrepo <dir> yum|build|dist
  create a tmtools compatible repository directory structure
tmbuild (-n e-mail addy)
  run w/in a build repo, starts a build of all src.rpms in
  queue directory.  Customized (hard-coded) for i386; builds
  i386/i586/i686/athlon as appropriate for kernel, glibc,
  etc. -n to send notify when done.
tmrpm / tmrpmbuild
  wrappers to run rpm & rpmbuild using current repo as topdir
tmgensrpmmap
  run w/in any repo, creates the srpmmap/*smap files that
  indicate which rpms where built by which src.rpms.
  pre-requisite to using the tools listed below.
tmmove x.smap ... /dest/repo
  move entire sets of rpms & src.rpms between repo
  directories
tmcopy x.smap ... /dest/repo
tmdelete x.smap ...
tmverifyrpms /path/to/ref/rpms
  Used to compare rpms built to a set of reference rpms; see
  the script for what is actually checked/compared.  Appends
  results to lines in smap file.
tmprunerepo (-t)
  When run w/in a repo, it prunes older rpm/srpm sets. -t
  is a test run that doesn't actually call tmdelete.

These are the scripts I use all the time; there are a couple others that
aren't finished.  Still, these make it really easy & fast for me to
create individual specialized build repositories, check the results, and
merge the best stuff & stuff I want into a single yum or dist
repository.

The latest version can be found at:
ftp://dist.taolinux.org/pub/taolinux/tao-1.0-i386/tmtools/

Also there you'll find my 'getupdates.sh' script which I run in cron; it
mirrors SRPMS from RH & fires off an automated build of whatever it
finds.  It's likewise hard-coded, but easily modified for your own use.

Comments/patches welcome.

regards,
        David

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to