pavement

Etc/make.conf

From FreeBSDwiki
(Difference between revisions)
Jump to: navigation, search
m (keeping all "M" together in category)
m (append inlince # comment to SUP line to indicate the step is not required)
 
(One intermediate revision by one user not shown)
Line 1: Line 1:
 
The file /etc/make.conf specifies all the defaults that [[make]] should use when building programs. Any changes in here will reflect globally, and specific changes can be very handy if you're going to be using the same options on a lot of builds. For example, adding  
 
The file /etc/make.conf specifies all the defaults that [[make]] should use when building programs. Any changes in here will reflect globally, and specific changes can be very handy if you're going to be using the same options on a lot of builds. For example, adding  
 
  WITHOUT_X11= yes
 
  WITHOUT_X11= yes
to your make.conf will mean that if a port that you're building can be made without X11 options, it will be -- very handy for a [[headless_server]].
+
to your make.conf will mean that if a port that you're building can be made without X11 options, it will be -- very handy for a [[headless_server]]. Note that in FreeBSD 7 and above the packages that are compiled moved from make.conf to src.conf. View the man page for src.conf for more information.
  
 
Following the tip from [[http://simon.nitro.dk/freebsd-tips.html this page]], I added the lines
 
Following the tip from [[http://simon.nitro.dk/freebsd-tips.html this page]], I added the lines
  
 
  SUP_UPDATE=yes
 
  SUP_UPDATE=yes
  SUP= /usr/local/bin/cvsup
+
  SUP= /usr/local/bin/cvsup # override default `csup` in base
 
  SUPFLAGS= -g -L 2
 
  SUPFLAGS= -g -L 2
 
  SUPHOST= cvsupX.us.freebsd.org  
 
  SUPHOST= cvsupX.us.freebsd.org  

Latest revision as of 13:32, 15 July 2009

The file /etc/make.conf specifies all the defaults that make should use when building programs. Any changes in here will reflect globally, and specific changes can be very handy if you're going to be using the same options on a lot of builds. For example, adding

WITHOUT_X11= yes

to your make.conf will mean that if a port that you're building can be made without X11 options, it will be -- very handy for a headless_server. Note that in FreeBSD 7 and above the packages that are compiled moved from make.conf to src.conf. View the man page for src.conf for more information.

Following the tip from [this page], I added the lines

SUP_UPDATE=yes
SUP= /usr/local/bin/cvsup # override default `csup` in base
SUPFLAGS= -g -L 2
SUPHOST= cvsupX.us.freebsd.org 
SUPFILE= /usr/share/examples/cvsup/standard-supfile
PORTSSUPFILE= /usr/share/examples/cvsup/ports-supfile

to my make.conf, I was able to go into /usr/ports and type in

# make update

and update all my ports. Likewise, I can go into /usr/src and run the same command and update all my system sources.

You can see what options are available to you in /usr/share/examples/etc/make.conf

Note that you can also set compiler settings (for you Gentoo Linux expatriates) and CPU architecture in make.conf.

Personal tools