PDA

View Full Version : Port install


nuambenzina
12-26-2005, 08:31 AM
Because I reinstalled my sistem, and wish ports on it



I did #sysinstall , cd /usr/ports/
nuambenzina# make search name=portinstall edit ports-supfile (/root/ports-supfile) , cvsup ports-file, /usr/ports/sysutils/portupgrade; make install clean

rehash
Till here is ok , but i can`t figure where to put this to "fetch" , i mean when i give "portinstall mc"
i wish to download it from a mirror from a ftp server from my country.

here is say : http://www.freebsd.org/doc/handbook/ports-using.html

"In some rare cases, users may need to acquire the tarballs from a site other than the MASTER_SITES (the location where files are downloaded from). You can override the MASTER_SITES option with the following command:
# cd /usr/ports/directory
# make MASTER_SITE_OVERRIDE= \
ftp://ftp.FreeBSD.org/pub/FreeBSD/ports/distfiles/ fetch"


at first line #cd/usr/ports/directory , whitch is the name of "directory" ? it refers at what ? or should I just "cd /usr/ports" without "directory"? What exactly shoud i "edit" to "fetch/download/system source,ports etc. all from my country mirrors ?



10 q
:idea:

popey
12-26-2005, 08:58 AM
It doesn't work like that, source code is stored on servers all around the world. If, for example you install mplayer, the source is obtained directly from the mplayer site not a local mirror.
If you're worried about bandwidth then use portsnap instead of cvsup. Open a root konsole and enter

portsnap fetch
portsnap extract

This will fetch a compressed image of the ports tree plus the latest updates and populate your ports tree. To update just enter

portsnap fetch
portsnap update

Which will fetch only the changes made to the ports since you last updated. This method uses less bandwidth and has the advantage of being much faster.

nuambenzina
12-26-2005, 09:08 AM
Well...

=> mc-4.6.1.tar.gz doesn't seem to exist in /usr/ports/distfiles/.
=> Attempting to fetch from http://www.ibiblio.org/pub/Linux/utils/ ... agers/mc// (http://www.ibiblio.org/pub/Linux/utils/file/managers/mc//).
mc-4.6.1.tar.gz 25% of 3836 kB 55 Bps 14h36m

:( yep My internet connection is very strange ;) If i surf the internet and download from sites , i`ll have sometimes 15 , usualy 30 , and sometimes 200 Kb/sec. In shell with portinstall i`m running nuts now :)) . If i acces a ftp://mirrors.evolva.ro/FreeBSD/ i`ll have 450-700 KB/sec

nuambenzina
12-26-2005, 09:19 AM
take a look

portsnap fetch
Looking up portsnap.FreeBSD.org mirrors... using portsnap2.FreeBSD.org.
Fetching public key... done.
Fetching snapshot tag... done.
Fetching snapshot metadata... done.
Fetching snapshot generated at Tue Dec 20 16:21:20 PST 2005:
f009a96a9b3f0a8dbc5bd428a91645e07808ac0d8a46d8 1% of 37 MB 1922 Bps 05h36m^C
fetch: transfer interrupted

very very slow 1922 Bps 05h36m ;((

So... it` can be done with one of ftp.miror..free.bsd.romania ? or from a linux ftp? (somebody told me that the sources are the same) like http://ftp.iasi.roedu.net/mirrors/ftp.s ... suse/i586/ (http://ftp.iasi.roedu.net/mirrors/ftp.suse.com/pub/suse/i386/9.3/suse/i586/)

nuambenzina
12-26-2005, 09:24 AM
That`s why I wish to redirect all sistem updates, ports, packages, etc to my country mirrow site.



P.S. Life is hard for a newbie like me on bsd/linux.... but is a challege ;)

popey
12-26-2005, 09:25 AM
You can use a local mirror for portsnap but it's not usually worth the effort :D
See /etc/portsnap.conf and the FreeBSD website for a list of mirrors.

nuambenzina
12-26-2005, 09:58 AM
_________________________________
zina# make MASTER_SITE_OVERRIDE= \
? ftp://mirrors.evolva.ro/FreeBSD/distfiles fetch
make: don't know how to make ftp://mirrors.evolva.ro/FreeBSD/distfiles. Stop
_________________________________

okay` i`m still searching for a portsnap mirror . it seems that i can`t hande the cvsup :(

nuambenzina
12-26-2005, 10:07 AM
i guess that Portsnap mirrors dosen`t exist at all, but how about those ftp-s ? there aren`t used only for .iso they have a lot of data`s on it like ports, packages , stable/current , distfiles , etc. and they are fast too.

nuambenzina
01-05-2006, 03:02 PM
well, i switched pc-BSD , with a DEBIAN , because this http://apt-proxy.sourceforge.net/#Introduction solve my problem. but I wanna run PC-BSD not this DEB. hm...