DaemonForums  

Go Back   DaemonForums > NetBSD > NetBSD Package System (pkgsrc)

NetBSD Package System (pkgsrc) Installation and upgrading of packages on NetBSD.

Reply
 
Thread Tools Display Modes
  #1   (View Single Post)  
Old 16th August 2012
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Thanked 0 Times in 0 Posts
Default pkgsrc preset to fetch one particular ftp site .. possible ?

Hi !

Is it possible to set pkgsrc to fetch only from a particular (eg. close/working/fast/favored) FTP site ??

Thanks.
Reply With Quote
  #2   (View Single Post)  
Old 17th August 2012
s0xxx's Avatar
s0xxx s0xxx is offline
Package Pilot
 
Join Date: May 2008
Posts: 194
Thanked 47 Times in 22 Posts
Default

Try setting MASTER_SITE_OVERRIDE in your /etc/mk.conf:

http://www.netbsd.org/docs/pkgsrc/bu...uild.fetch.how
__________________
The best way to learn UNIX is to play with it, and the harder you play, the more you learn.
If you play hard enough, you'll break something for sure, and having to fix a badly broken system is arguably the fastest way of all to learn. -Michael Lucas, AbsoluteBSD
Reply With Quote
  #3   (View Single Post)  
Old 17th August 2012
daemonfowl daemonfowl is offline
bsdstudent
 
Join Date: Jan 2012
Location: DaemonLand
Posts: 834
Thanked 0 Times in 0 Posts
Default

Thank you s0xxx !
It works.
Here a portion of script for building xv on NetBSD 6 Beta :
Code:
..
Connected to ftp.jp.netbsd.org.
220 lala FTP server (NetBSD-ftpd 20080916) ready.
331 Guest login ok, type your name as password.
230 Guest login ok, access restrictions apply.
Remote system type is UNIX.
Using binary mode to transfer files.
......
250 CWD command successful.
local: xv-3.10a.tar.gz remote: xv-3.10a.tar.gz
229 Entering Extended Passive Mode (|||51267|)
150 Opening BINARY mode data connection for 'xv-3.10a.tar.gz' (2259124 bytes).

  0% |                                   |     0        0.00 KiB/s    --:-- ETA
  1% |                                   | 26960       26.27 KiB/s    01:22 ETA
  4% |*                                  | 97056       47.32 KiB/s    00:44 ETA
  7% |**                                 |   173 KiB   57.86 KiB/s    00:35 ETA
 11% |***                                |   250 KiB   62.47 KiB/s    00:31 ETA
 14% |****                               |   323 KiB   64.71 KiB/s    00:29 ETA
 18% |******                             |   404 KiB   67.30 KiB/s    00:26 ETA
 21% |*******                            |   479 KiB   68.40 KiB/s    00:25 ETA
 25% |********                           |   552 KiB   69.05 KiB/s    00:23 ETA
 28% |*********                          |   637 KiB   70.74 KiB/s    00:22 ETA
 32% |***********                        |   713 KiB   71.29 KiB/s    00:20 ETA
 35% |************                       |   787 KiB   71.51 KiB/s    00:19 ETA
 39% |*************                      |   868 KiB   72.35 KiB/s    00:18 ETA
 42% |**************                     |   947 KiB   72.85 KiB/s    00:17 ETA
 46% |****************                   |  1016 KiB   72.54 KiB/s    00:16 ETA
 49% |*****************                  |  1096 KiB   73.05 KiB/s    00:15 ETA
 53% |******************                 |  1179 KiB   73.67 KiB/s    00:13 ETA
 55% |*******************                |  1230 KiB   72.35 KiB/s    00:13 ETA
 57% |*******************                |  1275 KiB   70.82 KiB/s    00:13 ETA
 59% |********************               |  1309 KiB   68.89 KiB/s    00:13 ETA
 61% |*********************              |  1349 KiB   67.45 KiB/s    00:12 ETA
 63% |**********************             |  1405 KiB   66.93 KiB/s    00:11 ETA
 67% |***********************            |  1478 KiB   67.18 KiB/s    00:10 ETA
 69% |************************           |  1538 KiB   66.89 KiB/s    00:09 ETA
 72% |*************************          |  1599 KiB   66.62 KiB/s    00:09 ETA
 74% |*************************          |  1638 KiB   65.52 KiB/s    00:08 ETA
 75% |**************************         |  1667 KiB   64.12 KiB/s    00:08 ETA
 77% |**************************         |  1714 KiB   63.50 KiB/s    00:07 ETA
 80% |****************************       |  1779 KiB   63.53 KiB/s    00:06 ETA
 83% |*****************************      |  1837 KiB   63.33 KiB/s    00:05 ETA
 87% |******************************     |  1921 KiB   64.03 KiB/s    00:04 ETA
 90% |*******************************    |  2001 KiB   64.55 KiB/s    00:03 ETA
 93% |********************************   |  2067 KiB   64.59 KiB/s    00:02 ETA
 97% |*********************************  |  2154 KiB   65.27 KiB/s    00:00 ETA
100% |***********************************|  2206 KiB   65.48 KiB/s    00:00 ETA
226 Transfer complete.
2259124 bytes received in 00:33 (65.48 KiB/s)
221-
    Data traffic for this session was 2259124 bytes in 1 file.
    Total traffic for this session was 2261281 bytes in 1 transfer.
221 Thank you for using the FTP service on lala.
=> Fetching xv-3.10a-jumbo-patches-20070520.tar.gz
=> Total size: 1363802 bytes
Connected to ftp.jp.netbsd.org.
220 lala FTP server (NetBSD-ftpd 20080916) ready.
331 Guest login ok, type your name as password.
230 Guest login ok, access restrictions apply.
Remote system type is UNIX.
Using binary mode to transfer files.
200 Type set to I.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Which is the latest package site for netbsd 5.1.2? (pkgsrc-2012Q1) sotris99 NetBSD Package System (pkgsrc) 5 22nd June 2012 07:40 PM
Help with Home connection site to site vpn setup badguy OpenBSD Security 3 25th October 2010 05:15 PM
Which is the significance about pkgsrc-2009Q2 and pkgsrc-2009Q3? aleunix NetBSD Package System (pkgsrc) 3 16th December 2009 07:19 AM
Routing between site-to-site tunnels docrice OpenBSD General 5 26th September 2008 09:21 AM
Bare Minimum Site-to-Site VPN on OpenBSD ai-danno Guides 0 20th May 2008 12:45 AM


All times are GMT. The time now is 06:45 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick