Take a page out of the FreeBSD ports structure handbook:

they have a 'make makesum' command

when you run this command (usually by the port maintainer), it downloads (if required) and then calculates the MD5SUM's and SIZES's for all requested files and stores that for future reference into the "port tree" for inclusion into the Master CVS.

When a normal user (sysadmin) does a "make install" to add the application to their configuration, it downloads then verifies that the file downloaded matches both for size and md5sum what the port maintainer earlier recorded from the 'make makesum' command.

In fact, the more I think about it, the more features are added to the current unattended application setup, the more you will be approaching a a binary downloading ports structure siminlar in concept to the FreeBSD ports tree (which I like, doesn't require nasty modifications to core OS system for using on a different platform), or say Gentoo's portage structure (which I don't like, which does nasty things to the poor OS, core OS things should _NOT_ be part of the ports tree, binary patches for Windows yes, entire OS system, _NO_).

Jens Geile wrote:
Hi,

while running the prepare script i encountered the following problem:

--11:59:32--  ftp://ftp.download.com/pub/win95/utilities/spybotsd13.exe
           => `packages/spybotsd13.exe.tmp'
Resolving ftp.download.com... 206.16.4.28, 206.16.4.29, 206.16.4.30, ...
Connecting to ftp.download.com[206.16.4.28]:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD /pub/win95/utilities ... done.
==> PASV ... done.    ==> RETR spybotsd13.exe ...
No such file `spybotsd13.exe'.

But that's not the main reason why I am writing this email.
I was always kind of annoyed when the download of a service pack or something similar big failed 
and i had to start all over again because the prepare script isnt set to resume previous incomplete 
downloads. So I changed the prepare script a bit and added the "-c" switch as well as a 
"-t 3" switch because 20 tries to reach a host is a little too much, isn't it? ;)

But then I remembered that resumed downloads might get corrupted and so I added 
a feature to check the md5 checksums of the downloaded files against md5 
checksums added to the .bat files from the /scripts folder. I remember reading 
such a request before but don't remember if anyone opposed this idea or not.

I know it is a lot of work to add all md5 checksums to the .bat files but I'll glad to help with 
the checksums for the "GER" and "ALL" files. :)

I'm hosting a patch file (prepare.patch), a complete version of the new prepare 
script (preparenew) and an example .bat file (7-zip.bat) [so that you can see 
how it will look like with the md5 checksums] at 
http://iserv.bs.ni.schule.de/~jens.geile/

That's it for now. Have a nice day,

-
jens


------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ unattended-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/unattended-devel



------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ unattended-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/unattended-devel

Reply via email to