Anyone use /etc/make.conf ?

General questions about the FreeBSD operating system. Ask here if your question does not fit elsewhere.

Anyone use /etc/make.conf ?

Postby johnblue » 16 Apr 2009, 06:41

What are some default options that you would set in /etc/make.conf for a fresh install?
johnblue
Member
 
Posts: 224
Joined: 28 Jan 2009, 08:27
Location: O-o-o-o-o-o-o-klahoma

Postby vermaden » 16 Apr 2009, 06:47

Religions, worst damnation of mankind.
"FreeBSD has always been the operating system that GNU/Linux should have been." Frank Pohlmann, IBM
[FILE][color="DarkSlateBlue"]http://vermaden.blogspot.com[/color][/FILE]
User avatar
vermaden
Giant Locked
 
Posts: 2317
Joined: 16 Nov 2008, 19:37
Location: pl_PL.lodz

Postby ctaranotte » 16 Apr 2009, 07:48

And if you are building world for a jail only (and not for your host), the one below might be useful:

Code: Select all
NO_ACPI=       true    # do not build acpiconf(8) and related programs
NO_BOOT=       true    # do not build boot blocks and loader
NO_BLUETOOTH=  true    # do not build Bluetooth related stuff
NO_FORTRAN=    true    # do not build g77 and related libraries
NO_GDB=        true    # do not build GDB
NO_GPIB=       true    # do not build GPIB support
NO_I4B=        true    # do not build isdn4bsd package
NO_IPFILTER=   true    # do not build IP Filter package
NO_PF=         true    # do not build PF firewall package
NO_AUTHPF=     true    # do not build and install authpf (setuid/gid)
NO_KERBEROS=   true    # do not build and install Kerberos 5 (KTH Heimdal)
NO_LPR=        true    # do not build lpr and related programs
NO_MAILWRAPPER=true    # do not build the mailwrapper(8) MTA selector
NO_MODULES=    true    # do not build modules with the kernel
NO_NETCAT=     true    # do not build netcat
NO_NIS=        true    # do not build NIS support and related programs
NO_SENDMAIL=   true    # do not build sendmail and related programs
NO_SHAREDOCS=  true    # do not build the 4.4BSD legacy docs
NO_USB=        true    # do not build usbd(8) and related programs
NO_VINUM=      true    # do not build Vinum utilities
NO_ATM=        true    # do not build ATM related programs and libraries
NO_CRYPT=      true    # do not build any crypto code
NO_GAMES=      true    # do not build games (games/ subdir)
NO_INFO=       true    # do not make or install info files
NO_MAN=        true    # do not build manual pages
NO_PROFILE=    true    # Avoid compiling profiled libraries

# BIND OPTIONS
NO_BIND=               true    # Do not build any part of BIND
NO_BIND_DNSSEC=        true    # Do not build dnssec-keygen, dnssec-signzone
NO_BIND_ETC=           true    # Do not install files to /etc/namedb
NO_BIND_LIBS_LWRES=    true    # Do not install the lwres library
NO_BIND_MTREE=         true    # Do not run mtree to create chroot directories
NO_BIND_NAMED=         true    # Do not build named, rndc, lwresd, etc.


This is taken from Creating a FreeBSD Jail
ctaranotte
Junior Member
 
Posts: 85
Joined: 17 Nov 2008, 09:25

Postby DutchDaemon » 16 Apr 2009, 08:58

Don't confuse [man=5]make.conf[/man] and [man=5]src.conf[/man].

make.conf:
Code: Select all
The primary purpose of make.conf is to control the compilation of the
     FreeBSD sources, documentation, and ported applications, which are usu-
     ally found in /usr/src, /usr/doc, and /usr/ports.  As a rule, the system
     administrator creates make.conf when the values of certain control vari-
     ables need to be changed from their defaults.


src.conf:
Code: Select all
The only purpose of src.conf is to control the compilation of the FreeBSD
     source code, which is usually located in /usr/src.  As a rule, the system
     administrator creates src.conf when the values of certain control vari-
     ables need to be changed from their defaults.


If you're looking for a way not to build stuff with the base system (e.g. WITHOUT_INET6), use src.conf.
User avatar
DutchDaemon
Old Fart
 
Posts: 10466
Joined: 16 Nov 2008, 20:17
Location: The Netherlands

Postby SirDice » 16 Apr 2009, 10:17

The only options I have in make.conf are:
Code: Select all
KERNCONF=MOLLY

OVERRIDE_LINUX_BASE_PORT=f8
OVERRIDE_LINUX_NONBASE_PORTS=f8

WITH_GECKO=libxul
User avatar
SirDice
Old Fart
 
Posts: 16194
Joined: 17 Nov 2008, 16:50
Location: Rotterdam, Netherlands

Postby Mel_Flynn » 16 Apr 2009, 13:37

DutchDaemon wrote:src.conf:
Code: Select all
The only purpose of src.conf is to control the compilation of the FreeBSD
     source code, which is usually located in /usr/src.  As a rule, the system
     administrator creates src.conf when the values of certain control vari-
     ables need to be changed from their defaults.


If you're looking for a way not to build stuff with the base system (e.g. WITHOUT_INET6), use src.conf.


Actually, src.conf is turned off by ports, but anyone using /usr/share/mk/* files other then *.ports.* is subject to src.conf and everything built by make(1) is subject to make.conf. This can create surprises for example when you set WITH_OPENLDAP=yes in /etc/make.conf, as krb5 (in /usr/src) will then be built with ldap support as well.
It's therefore best to wrap port specific settings like so:
Code: Select all
.if !empty(.CURDIR:M/usr/ports/*)
# settings go here
.endif

Especially CFLAGS and related.
The core concept of freedom is the lack of rules, even those made to "protect freedom".
Mel_Flynn
Member
 
Posts: 379
Joined: 18 Nov 2008, 18:02
Location: Drachten, Netherlands


Return to General

Who is online

Users browsing this forum: Bing [Bot] and 1 guest