[WBEL-users] Building My own Updates.

bishop bishop@platypus.bc.ca
Wed, 08 Dec 2004 15:05:38 -0800


Jan-Albert van Ree wrote:

> 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 ?

Anyone still using mirror(.pl) for ftp mirroring?  I'm finding it 
working really well for me, especially when it emails me a list of the 
new stuff.  I at least know to for;ssh"apt-get-upgrade";done all the 
servers, for now, until I get a better system in place (which used to be 
a mirror;rpm-Fvh routine but now should really use apt/yum)

>>>>(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 ;)

Actually, here, too, that mirror perlly bit outputs a list of filenames 
in a format that can actually be picked apart easily.  If it's 
interesting to you, I can feed you few rough RPMs I use a lot.

  - bish

--