Project Intelligent MASTER_SITE - Discussion

Ricardo A. Reis ricardo_bsd at yahoo.com.br
Thu Sep 15 12:25:14 PDT 2005


Hy all,

I think in make a new schema for bsd.sites.mk, this idea possibility bether utilization of the bandwidth create a structure 

the evaluation mirrors, ports automatic capture the mirror address, category and download average  in passive mode,

Samples using make fetch target and scripts.


(369)[ricardo at myfreebsd:/usr/ports/ftp/mget] # sudo script
Password:
Script started, output file is typescript
(370)[root at myfreebsd:/usr/ports/ftp/mget] # make fetch
=> mget-1.4.2.tar.gz doesn't seem to exist in
/usr/ports/distfiles/.
=> Attempting to fetch from
http://cs-people.bu.edu/dbera/activities/projects/mget/.
mget-1.4.2.tar.gz                             100% of 
 63 kB   30 kBps
make fetch  0,70s user 0,67s system 12% cpu 10,816
total
(371)[root at myfreebsd:/usr/ports/ftp/mget] # exit

Script done, output file is typescript

(370)[ricardo at myfreebsd:/usr/ports/ftp/mget] # more
typescript
Script started on Sat Sep 10 06:24:03 2005
^MESC[m^OESC[27mESC[24mESC[J(370)ESC[0m[ESC[1;32mrootESC[0m at ESC[1;36mmyfreebsdESC[0m:ESC[1;33m/usr/ports/ftp/mgetESC[0m]
# ESC[Kmake fetchESC[10D^M
=> mget-1.4.2.tar.gz doesn't seem to exist in
/usr/ports/distfiles/.
=> Attempting to fetch from
http://cs-people.bu.edu/dbera/activities/projects/mget/.
^Mmget-1.4.2.tar.gz                               0%
of   63 kB    0  Bps^Mmget-1.4.2.tar.gz               
              43% of   63 kB   27
kBps^Mmget-1.4.2.tar.gz
                        87% of   63 kB   30
kBps^Mmget-1.4.2.tar.gz                            
100% of   63 kB   30 kBps
make fetch  0,70s user 0,67s system 12% cpu 10,816
total
^MESC[m^OESC[27mESC[24mESC[J(371)ESC[0m[ESC[1;32mrootESC[0m at ESC[1;36mmyfreebsdESC[0m:ESC[1;33m/usr/ports/ftp/mgetESC[0m]
# ESC[Kexit^M


First Stage is possible create a intermediate target in makefile, capable of it transform in ..

http://cs-people.bu.edu/dbera/activities/projects/mget/ 30 kBps

One second stage create a interface web capable the estorage in database, this information in source 
file (like freshports) and source ip address sumarized in full class C or /24. 

The last stage is a create a userland aplication to apply this util for end users  



I sorry for my bad english,


Considerately

Ricardo A. Reis
UNIFESP



More information about the freebsd-stable mailing list