Pantek Library
Hosting Provided By
CybrHost
High Speed Hosting

Re: [make fetch] is useless

From: Todd T. Fries <todd(at)openbsd.org>
Date: Sun Jun 08 2003 - 07:55:58 EDT

whether or not the merits of your idea are good, it is possible to implement.

  1. create some script named 'size' in /usr/ports/infrastructure/build that outputs size in the same manner of the exsting hash algorithms, so that you get something like:

     SIZE (filename) = 4932145

2. add it as another 'algorithm' to the 'distfile' file by inserting the

   code in bsd.port.mk to do this

3. consider sending a diff to ports@

4. enjoy the pleasures of making '(echo [....]; echo reget; ..) | ftp' work

   as there is no commandline option for reget for ftp

Do you need help?X

5. implement your logic in bsd.port.mk to do a reget if the distfilesize is

   not the same

6. figure out some way to not remove files if the transfer is aborted

7. make sure the above techniques work for 'mirror-maker' (you can test with

    a small set of files ftp'ing from localhost if you wish)

8. consider sending a diff to ports@

Hope this helps. I'm sure others will have opinions on how sane of an idea this is, but I believe sane or not, it is implementable. Seems like a reasonable idea to me. Personally, I wish all ISP's in the world charged for (a fixed, limited) bandwidth and not bytes transferred, but unfortunately this is not so...

-- 
Todd Fries .. todd@openbsd.org


Free Daemon Consulting, LLC                    Land: 405-748-4596
http://FreeDaemonConsulting.com              Mobile: 405-203-6124
"..in support of free software solutions."

Key fingerprint: 37E7 D3EB 74D0 8D66 A68D  B866 0326 204E 3F42 004A
            Key: 
http://todd.fries.net/pgp.txt

(last updated 2003/03/13 07:14:10)

Penned by Alexey G. Khramkov on Sun, Jun 08, 2003 at 03:22:30PM +0500, we have:

| Hello.
Received on Sun Jun 8 08:06:09 2003

This archive was generated by hypermail 2.1.8 : Wed Aug 23 2006 - 13:44:59 EDT

Do you need more help?X

Contact Us  Legal Notices  Order Services Online 
Pantek Home  Privacy Policy  IT news  Site Map  Pantek Library