how to restore /usr/src

2008-01-21 Thread ivan dimitrov
Hi guys

how can i reinstall the original /usr/src tree?


thanks in advance
I.

   
-
Never miss a thing.   Make Yahoo your homepage.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: how to restore /usr/src

2008-01-21 Thread Nerius Landys
how can i reinstall the original /usr/src

 Oh that's really easy.  Don't fret.  I delete it all the time and get it
back in the following way.

In the handbook, there's a section about synchronizing your source:
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/synching.html

Use 'cvsup' or 'csup'; if your system is newer 'csup' will be part of the
system.  Find your 'standard-supfile' file (probably in
/usr/share/examples/cvsup/standard-supfile), copy it to your home directory
and modify it by changing the lines

*default host=CHANGE_THIS.FreeBSD.org (change 'CHANGE_THIS' to 'cvsup11.us'
for example)
*default release=cvs tag=CVS TAG (see below)

and then run 'csup standard-supfile' or 'cvsup standard-supfile'.

'cvsup' is in /usr/ports/net/cvsup-without-gui if you need to install it.
CVS TAGs are explained in
http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/cvs-tags.html
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: how to restore /usr/src

2008-01-21 Thread Rakhesh Sasidharan

Nerius Landys wrote:


how can i reinstall the original /usr/src


If you have the install CD, you can even extract the sources from 
there.


I don't recollect the exact location (am in office, don't have a CD with 
me) but its in a directory named src and has many files in it. These 
files are split archives of the original /usr/src tree. There's also a 
shell script called ''install.sh'' which can be run to combine all these 
files and extract to a specific location.


By default the extracted to location is $DESTDIR/usr/src. Since you want 
to install to /usr/src, set $DESTDIR to /.


So in effect, the following commands should extract the sources to 
/usr/src for you. (I assume you've inserted the FreeBSD and its mounted at 
some path).


# cd /path/on/cd/where/sources/are
# DESTDIR=/ ./install.sh all

Hope that helps.



- Rakhesh
http://rakhesh.net/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]