[WBEL-users] Building My own Updates.

Jan-Albert van Ree javanree@vanree.net
Wed, 8 Dec 2004 19:06:23 +0100


On Wed, Dec 08, 2004 at 05:22:27PM +0000, [NICK] wrote:
 
> > > (6) cron wget
> > > ftp://ftp.redhat.com/pub/redhat/linux/enterprise/3/en/os/i386/SRPMS/
> > > [NOTE not *]
> > > (7) cron md5sum the index.html generated by 6
> > 
> > Interesting idea to see if anything has changed.  I'm not sure if it would
> > work as written, but wget should be able to generate a listing file for
> > you.

Why not make one initial get, rename it to index.old and next time get index.html and do a diff? The diff should give nothing more than a pure URL. After the diff erase the old index.old and rename the index.html to index.old again. Perhaps clean up the diff output a bit with some greps (grep to .src.rpm or something)
 
> yeah that's kinda what i was thinking, get a list of all sources, and
> see if that lists "changes" (1) does anyone know of a better way to
> check for changes ?

> (2)  when RH update a package, is this the right site to check ?

A mirror might be better, since the original ftp.redhat.com seems to be unavailable quite often and most mirrors do a 6 or 12 hour rsynch.
 
> > > (8) if md5sum changes.....get everything? and rebuild. (wget ~/SRPMS/*
> > > & rpm ivh & rpmbuild)
> > 
> > Why get and rebuild everything when only one or two SRPMS change?
> > 
> 
> Yeah, unfortunately my scripting skills are minimal, so _right now_
> I've got no idea how I'd automatically just build *new* packages :-(
> 
> so am I barking up the right tree ?

Use the same diff I mentioned earlier perhaps?
If you store the output of the diff, minus the paths, in a variable you can reuse it in your script to do the 'rpm -i $1.src.rpm' and lateron the 'rpmbuild -bb $1.spec' or something

Mind you I'm no script guru, but with this and the BASH Programming HOWTO it should be doable ;)
-- 
Jan-Albert van Ree        | http://www.vanree.net/brickpiles/
VanReeDotNet IT Solutions | http://www.vanree.net