Pre-Ports configuration
Before we begin compiling stuff, we want to make sure we only compile what we need, and how we need. We want to optimize the compile for our cpu type, and not compile support for things we don't need.
First,
# dmesg|grep CPU
to see what cpu you have. then
# less /usr/share/examples/etc/make.conf
and find the cpu type that matches your system architecture.
# edit /etc/src.conf
Prior to FreeBSD v7.3, the file to edit is /etc/make.conf instead of /etc/src.conf
add a line (or edit if exists) to say CPUTYPE?= and edit it for your particular cpu type.
These lines are kind of a no brainer. Will you use ATM, BLUETOOTH, IPX etc on your desktop/server? Disabling Kerberos will save you some heartache when doing builds.
WITHOUT_ATM=yesWITHOUT_BLUETOOTH=yes
WITHOUT_I4B=yesWITHOUT_IPX=yes NO_KERBEROS=true
it is VERY important that if you are running this system as a remote type connection, and not as a desktop that you include the following line in your /etc/src.conf file
WITHOUT_X11= YES
which will prevent the compilers from attempting to compile any of the X11 graphical programs into your installation. If you don't use FreeBSD as a desktop workstation, this will keep your system cleaner and easier on memory.