diff --git a/etc/Makefile b/etc/Makefile index c94460f0d3ea..4dc612f169bc 100644 --- a/etc/Makefile +++ b/etc/Makefile @@ -1,213 +1,210 @@ # from: @(#)Makefile 5.11 (Berkeley) 5/21/91 # $FreeBSD$ .if !defined(NO_SENDMAIL) SUBDIR= sendmail .endif BIN1= amd.map apmd.conf auth.conf \ crontab csh.cshrc csh.login csh.logout \ dhclient.conf dm.conf fbtab ftpusers gettytab group \ hosts hosts.allow hosts.equiv hosts.lpd \ inetd.conf login.access login.conf \ motd modems netconfig networks newsyslog.conf \ pam.conf phones printcap profile protocols \ rc rc.atm rc.devfs rc.diskless1 rc.diskless2 rc.firewall rc.firewall6 \ rc.network rc.network6 rc.pccard rc.serial rc.shutdown \ rc.syscons rc.sysctl remote rpc security services shells sysctl.conf \ syslog.conf usbd.conf \ etc.${MACHINE_ARCH}/disktab \ etc.${MACHINE_ARCH}/rc.${MACHINE_ARCH} \ etc.${MACHINE_ARCH}/ttys \ ${.CURDIR}/../gnu/usr.bin/man/manpath/manpath.config \ ${.CURDIR}/../usr.bin/mail/misc/mail.rc \ ${.CURDIR}/../usr.bin/locate/locate/locate.rc .if !defined(NO_I4B) BIN1+= rc.isdn .endif .if exists(${.CURDIR}/../crypto) && !defined(NO_OPENSSH) SSH= ${.CURDIR}/../crypto/openssh/ssh_config \ ${.CURDIR}/../crypto/openssh/sshd_config \ primes .endif .if exists(${.CURDIR}/../crypto) && !defined(NO_OPENSSL) SSL= ${.CURDIR}/../crypto/openssl/apps/openssl.cnf .endif # -rwxr-xr-x root:wheel, for the new cron root:wheel BIN2= netstart pccard_ether rc.suspend rc.resume MTREE= BSD.include.dist BSD.local.dist BSD.root.dist BSD.usr.dist \ BSD.var.dist BSD.x11.dist BSD.x11-4.dist NAMEDB= PROTO.localhost.rev named.conf named.root make-localhost PPPCNF= ppp.deny ppp.shells.sample PPPCF2= ppp.conf ETCMAIL=Makefile README mailer.conf access.sample virtusertable.sample \ mailertable.sample aliases # Special top level files for FreeBSD COPYRIGHT= COPYRIGHT FREEBSD= FREEBSD+= ${COPYRIGHT} etc: distribute: cd ${.CURDIR} ; ${MAKE} distribution DESTDIR=${DISTDIR}/bin .if defined(OBJFORMAT) echo OBJFORMAT=${OBJFORMAT} > ${DISTDIR}/bin/etc/objformat .endif @echo distribution: (cd ${.CURDIR}; \ ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${BIN1} ${DESTDIR}/etc; \ ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 755 ${BIN2} ${DESTDIR}/etc; \ ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 defaults/rc.conf ${DESTDIR}/etc/defaults/; \ - ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 defaults/make.conf ${DESTDIR}/etc/defaults/; \ ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 defaults/pccard.conf ${DESTDIR}/etc/defaults/; \ ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 defaults/periodic.conf ${DESTDIR}/etc/defaults/; \ ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ ${DESTDIR}/var/log/cron; \ ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 \ opieaccess master.passwd ${DESTDIR}/etc; \ ( cd ${.CURDIR}/periodic; ${MAKE} install ); \ ( cd ${.CURDIR}/../gnu/usr.bin/send-pr; ${MAKE} etc-gnats-freefall ); \ ( cd ${.CURDIR}/../share/termcap; ${MAKE} etc-termcap ); \ ( cd ${.CURDIR}/../usr.sbin/rmt; ${MAKE} etc-rmt ); \ pwd_mkdb -p -d ${DESTDIR}/etc ${DESTDIR}/etc/master.passwd; ) .if !defined(NO_I4B) ( cd ${.CURDIR}/isdn; ${MAKE} install ) .endif .if !defined(NO_SENDMAIL) ( cd ${.CURDIR}/sendmail; ${MAKE} distribution ); .endif .if !defined(NOUUCP) ( cd ${.CURDIR}/../gnu/libexec/uucp/sample; ${MAKE} install ) .endif .if exists(${.CURDIR}/../crypto) && !defined(NO_OPENSSH) (cd ${.CURDIR}; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${SSH} \ ${DESTDIR}/etc/ssh ) .endif .if exists(${.CURDIR}/../crypto) && !defined(NO_OPENSSL) (cd ${.CURDIR}; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${SSL} \ ${DESTDIR}/etc/ssl ) .endif .if !defined(NO_MAKEDEV_INSTALL) ( cd ${.CURDIR}; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 555 \ MAKEDEV.local MAKEDEV ${DESTDIR}/dev ) .if !defined(NO_MAKEDEV_RUN) (cd ${DESTDIR}/dev; sh MAKEDEV all) .endif .endif (cd ${.CURDIR}/root; \ ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.cshrc \ ${DESTDIR}/root/.cshrc; \ ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.klogin \ ${DESTDIR}/root/.klogin; \ ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.login \ ${DESTDIR}/root/.login; \ ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 dot.profile \ ${DESTDIR}/root/.profile; \ rm -f ${DESTDIR}/.cshrc ${DESTDIR}/.profile; \ ln ${DESTDIR}/root/.cshrc ${DESTDIR}/.cshrc; \ ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile) cd ${.CURDIR}/mtree; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 \ ${MTREE} ${DESTDIR}/etc/mtree cd ${.CURDIR}/namedb; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \ ${NAMEDB} ${DESTDIR}/etc/namedb cd ${.CURDIR}/ppp; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \ ${PPPCNF} ${DESTDIR}/etc/ppp cd ${.CURDIR}/ppp; ${INSTALL} -c -o root -g ${BINGRP} -m 600 \ ${PPPCF2} ${DESTDIR}/etc/ppp cd ${.CURDIR}/mail; ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 \ ${ETCMAIL} ${DESTDIR}/etc/mail @if [ -d ${DESTDIR}/etc/mail -a -f ${DESTDIR}/etc/mail/aliases -a \ ! -f ${DESTDIR}/etc/aliases ]; then \ set -x; \ ln -s mail/aliases ${DESTDIR}/etc/aliases; \ fi ${INSTALL} -c -o ${BINOWN} -g operator -m 664 /dev/null \ ${DESTDIR}/etc/dumpdates ${INSTALL} -c -o nobody -g ${BINGRP} -m 644 /dev/null \ ${DESTDIR}/var/db/locate.database ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ ${DESTDIR}/var/log/lpd-errs ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ ${DESTDIR}/var/log/maillog ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ ${DESTDIR}/var/log/lastlog ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ ${DESTDIR}/var/log/messages ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ ${DESTDIR}/var/log/security ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ ${DESTDIR}/var/log/slip.log ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 600 /dev/null \ ${DESTDIR}/var/log/ppp.log ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ ${DESTDIR}/var/log/wtmp ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 /dev/null \ ${DESTDIR}/var/run/utmp ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 644 ${.CURDIR}/minfree \ ${DESTDIR}/var/crash (cd ${.CURDIR}/..; \ ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${FREEBSD} \ ${DESTDIR}/) .if !defined(NOMAN) (cd ${.CURDIR}/../share/man; ${MAKE} makedb; ) .endif distrib-dirs: mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.root.dist -p ${DESTDIR}/ mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.var.dist -p ${DESTDIR}/var mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.usr.dist -p ${DESTDIR}/usr mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.include.dist \ -p ${DESTDIR}/usr/include mtree -deU ${MTREE_FOLLOWS_SYMLINKS} -f ${.CURDIR}/mtree/BSD.include.dist \ -p ${DESTDIR}/usr/libdata/perl/5.6.0/mach cd ${DESTDIR}/; rm -f ${DESTDIR}/sys; ln -s usr/src/sys sys cd ${DESTDIR}/usr/share/man/en.ISO8859-1; ln -sf ../man* . cd ${DESTDIR}/usr/share/man; \ set - `grep "^[a-zA-Z]" ${.CURDIR}/man.alias`; \ while [ $$# -gt 0 ] ; \ do \ rm -rf "$$1"; \ ln -s "$$2" "$$1"; \ shift; shift; \ done cd ${DESTDIR}/usr/share/locale; \ set - `grep "^[a-zA-Z]" ${.CURDIR}/locale.alias`; \ while [ $$# -gt 0 ] ; \ do \ rm -rf "$$1"; \ ln -s "$$2" "$$1"; \ shift; shift; \ done cd ${DESTDIR}/usr/share/nls; \ set - `grep "^[a-zA-Z]" ${.CURDIR}/nls.alias`; \ while [ $$# -gt 0 ] ; \ do \ rm -rf "$$1"; \ ln -s "$$2" "$$1"; \ shift; shift; \ done etc-examples: (cd ${.CURDIR}; \ ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${BIN1} ${BIN2} \ opieaccess ${DESTDIR}/usr/share/examples/etc; \ ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 defaults/rc.conf \ ${DESTDIR}/usr/share/examples/etc/defaults; \ - ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 defaults/make.conf \ - ${DESTDIR}/usr/share/examples/etc/defaults; \ ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 defaults/pccard.conf \ ${DESTDIR}/usr/share/examples/etc/defaults; \ ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 defaults/periodic.conf \ ${DESTDIR}/usr/share/examples/etc/defaults) .include diff --git a/etc/defaults/make.conf b/etc/defaults/make.conf deleted file mode 100644 index 69bd12dd2931..000000000000 --- a/etc/defaults/make.conf +++ /dev/null @@ -1,280 +0,0 @@ -# $FreeBSD$ -# -# NOTE: Please would any committer updating this file also update the -# make.conf(5) manual page, if necessary, which is located in -# src/share/man/man5/make.conf.5. -# -# This file, if present, will be read by make (see /usr/share/mk/sys.mk). -# It allows you to override macro definitions to make without changing -# your source tree, or anything the source tree installs. -# -# This file must be in valid Makefile syntax. -# -# You have to find the things you can put here in the Makefiles and -# documentation of the source tree. -# -# -# The CPUTYPE variable controls which processor should be targetted for -# generated code. This controls processor-specific optimizations in -# certain code (currently only OpenSSL) as well as modifying the value -# of CFLAGS to contain the appropriate optimization directive to gcc. -# The automatic setting of CFLAGS may be overridden using the -# NO_CPU_CFLAGS variable below. -# Currently the following CPU types are recognised: -# Intel x86 architecture: -# (AMD CPUs) k7 k6-2 k6 k5 -# (Intel CPUs) p4 p3 p2 i686 i586/mmx i586 i486 i386 -# Alpha/AXP architecture: ev6 pca56 ev56 ev5 ev45 ev4 -# Intel ia64 architecture: itanium -# -#CPUTYPE=i686 -#NO_CPU_CFLAGS= true # Don't add -march= to CFLAGS automatically -#NO_CPU_COPTFLAGS=true # Don't add -march= to COPTFLAGS automatically -# -# CFLAGS controls the compiler settings used when compiling C code. -# Note that optimization settings above -O (-O2, ...) are not recommended -# or supported for compiling the world or the kernel - please revert any -# nonstandard optimization settings to "-O" before submitting bug reports -# to the developers. -# Note also that at this time the -O2 setting is known to produce BROKEN -# CODE on the Alpha platform. -# -#CFLAGS= -O -pipe -# -# CXXFLAGS controls the compiler settings used when compiling C++ code. -# Note that CXXFLAGS is initially set to the value of CFLAGS. If you wish -# to add to CXXFLAGS value, "+=" must be used rather than "=". Using "=" -# alone will remove the often needed contents of CFLAGS from CXXFLAGS. -# -#CXXFLAGS+= -fmemoize-lookups -fsave-memoized -# -# BDECFLAGS are a set of gcc warning settings that Bruce Evans has suggested -# for use in developing FreeBSD and testing changes. They can be used by -# putting "CFLAGS+=${BDECFLAGS}" in /etc/make.conf. -Wconversion is not -# included here due to compiler bugs, eg: mkdir()'s mode_t argument. -# -BDECFLAGS= -W -Wall -ansi -pedantic -Wbad-function-cast -Wcast-align \ - -Wcast-qual -Wchar-subscripts -Winline \ - -Wmissing-prototypes -Wnested-externs -Wpointer-arith \ - -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings -# -# To compile just the kernel with special optimizations, you should use -# this instead of CFLAGS (which is not applicable to kernel builds anyway). -# There is very little to gain by using higher optimization levels, and doing -# so can cause problems. -# -#COPTFLAGS= -O -pipe -# -# To build the system compiler such that it forces high optimization levels to -# a lower one. GCC -O2+ is known to trigger known optimizer bugs at various -# times -- this is worse on the Alpha platform. The value assigned here will -# be the highest optimization value used. -#WANT_FORCE_OPTIMIZATION_DOWNGRADE=1 -# -# Compare before install -#INSTALL=install -C -# -# Mtree will follow symlinks -#MTREE_FOLLOWS_SYMLINKS= -L -# -# To enable installing suidperl with the setuid bit turned on -#ENABLE_SUIDPERL= true -# -# To build ppp with normal permissions -#PPP_NOSUID= true -# -# To enable installing ssh(1) with the setuid bit turned on -#ENABLE_SUID_SSH= true -# -# To avoid building various parts of the base system: -#NO_CVS= true # do not build CVS -#NO_BIND= true # do not build BIND -#NO_FORTRAN= true # do not build g77 and related libraries -#NO_I4B= true # do not build isdn4bsd package -#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_OBJC= true # do not build Objective C support -#NO_OPENSSH= true # do not build OpenSSH -#NO_OPENSSL= true # do not build OpenSSL (implies NO_OPENSSH) -#NO_SENDMAIL= true # do not build sendmail and related programs -#NO_SHAREDOCS= true # do not build the 4.4BSD legacy docs -#NO_TCSH= true # do not build and install /bin/csh (which is tcsh) -#NO_X= true # do not compile in XWindows support (e.g. doscmd) -#NOCRYPT= true # do not build any crypto code -#NOGAMES= true # do not build games (games/ subdir) -#NOINFO= true # do not make or install info files -#NOLIBC_R= true # do not build libc_r (re-entrant version of libc) -#NOPERL= true # do not build perl. Disables OpenSSL optimizations -#NOPROFILE= true # Avoid compiling profiled libraries -#NOSECURE= true # do not build crypto code in secure/ subdir -#NOSHARE= true # do not go into the share subdir -#NOUUCP= true # do not build uucp related programs -# -# To build the OpenSSL manpages, uncomment the following. These are not -# built by default because they clobber a number of system manpages with -# manpages describing parts of the OpenSSL toolkit, including passwd(1), -# err(3), md5(3), and others. -# -#WANT_OPENSSL_MANPAGES= true -# -# To build sys/modules when building the world (our old way of doing things) -#MODULES_WITH_WORLD=true # do not build modules when building kernel -# -# -# The following controls building optional IDEA code in libcrypto and -# certain ports. Patents are involved - you must not use this unless -# you either have a license or fall within patent 'fair use' -# provisions. -# -# *** It is YOUR RESPONSIBILITY to determine if you can use this! *** -# -# IDEA is patented in the USA and many european countries - thought to -# be OK to use for any non-commercial use. This is optional. -#MAKE_IDEA= YES # IDEA (128 bit symmetric encryption) -# -# To avoid running MAKEDEV all on /dev during install set NO_MAKEDEV_RUN. -# If you don't want to install MAKEDEV set NO_MAKEDEV_INSTALL, this implies -# NO_MAKEDEV_RUN. -#NO_MAKEDEV_INSTALL= true -#NO_MAKEDEV_RUN= true -# -# If you do not want unformatted manual pages to be compressed -# when they are installed: -# -#NOMANCOMPRESS= true -# -# -# If you want the "compat" shared libraries installed as part of your normal -# builds, uncomment these: -# -#COMPAT1X= yes -#COMPAT20= yes -#COMPAT21= yes -#COMPAT22= yes -#COMPAT3X= yes -#COMPAT4X= yes -# -# -# Default format for system documentation, depends on your printer. -# Set this to "ascii" for simple printers or screen -# -#PRINTERDEVICE= ps -# -# -# How long to wait for a console keypress before booting the default kernel. -# This value is approximately in milliseconds. Keypresses are accepted by the -# BIOS before booting from disk, making it possible to give custom boot -# parameters even when this is set to 0. -# -#BOOTWAIT=0 -#BOOTWAIT=30000 -# -# By default, the system will always use the keyboard/video card as system -# console. However, the boot blocks may be dynamically configured to use a -# serial port in addition to or instead of the keyboard/video console. -# -# By default we use COM1 as our serial console port *if* we're going to use -# a serial port as our console at all. Alter as necessary. -# -# COM1: = 0x3F8, COM2: = 0x2F8, COM3: = 0x3E8, COM4: = 0x2E8 -# -#BOOT_COMCONSOLE_PORT= 0x3F8 -# -# The default serial console speed is 9600. Set the speed to a larger value -# for better interactive response. -# -#BOOT_COMCONSOLE_SPEED= 115200 -# -# By default the 'pxeboot' loader retrieves the kernel via NFS. Defining -# this and recompiling /usr/src/sys/boot will cause it to retrieve the kernel -# via TFTP. This allows pxeboot to load a custom BOOTP diskless kernel yet -# still mount the server's '/' (i.e. rather then load the server's kernel). -# -#LOADER_TFTP_SUPPORT= YES -# -# -# Kerberos IV -# If you want KerberosIV (KTH eBones), define this: -# -#MAKE_KERBEROS4= yes -# -# -# Kerberos 5 -# If you want Kerberos 5 (KTH Heimdal), define this: -# -#MAKE_KERBEROS5= yes -# -# -# Kerberos5 -# If you want to install MIT Kerberos5 port somewhere other than /usr/local, -# define this (this is also used to tell ssh1 that kerberos is needed): -# -#KRB5_HOME= /usr/local -# -# -# CVSup update flags. Edit SUPFILE settings to reflect whichever distribution -# file(s) you use on your site (see /usr/share/examples/cvsup/README for more -# information on CVSup and these files). To use, do "make update" in /usr/src. -# -#SUP_UPDATE= yes -# -#SUP= /usr/local/bin/cvsup -#SUPFLAGS= -g -L 2 -#SUPHOST= cvsup.uk.FreeBSD.org -#SUPFILE= /usr/share/examples/cvsup/standard-supfile -#PORTSSUPFILE= /usr/share/examples/cvsup/ports-supfile -#DOCSUPFILE= /usr/share/examples/cvsup/doc-supfile -# -# top(1) uses a hash table for the user names. The size of this hash -# can be tuned to match the number of local users. The table size should -# be a prime number approximately twice as large as the number of lines in -# /etc/passwd. The default number is 20011. -# -#TOP_TABLE_SIZE= 101 -# -# Documentation -# -# The list of languages and encodings to build and install -# -#DOC_LANG= en_US.ISO8859-1 ru_RU.KOI8-R -# -# -# sendmail -# -# The following sets the default m4 configuration file to use at -# install time. Use with caution as a make install will overwrite -# any existing /etc/mail/sendmail.cf. Note that SENDMAIL_CF is now -# deprecated. The value should be a fully qualified path name. -# -#SENDMAIL_MC=/etc/mail/myconfig.mc -# -# If you need to build additional .cf files during a make buildworld, -# include the full paths to the .mc files in SENDMAIL_ADDITIONAL_MC. -# -#SENDMAIL_ADDITIONAL_MC=/etc/mail/foo.mc /etc/mail/bar.mc -# -# Setting the following variable modifies the flags passed to m4 when -# building a .cf file from a .mc file. It can be used to enable -# features disabled by default. -# -#SENDMAIL_M4_FLAGS= -# -# Setting the following variables modifies the build environment for -# sendmail and its related utilities. For example, SASL support can be -# added with settings such as: -# -# SENDMAIL_CFLAGS=-I/usr/local/include/sasl -DSASL -# SENDMAIL_LDFLAGS=-L/usr/local/lib -# SENDMAIL_LDADD=-lsasl -# -# Note: If you are using Cyrus SASL with other applications which require -# access to the sasldb file, you should add '-D_FFR_UNSAFE_SASL' to -# SENDMAIL_CFLAGS. Also, add the following to your sendmail.mc file: -# -# define(`confDONT_BLAME_SENDMAIL',`GroupReadableSASLFile') -# -#SENDMAIL_CFLAGS= -#SENDMAIL_LDFLAGS= -#SENDMAIL_LDADD= -#SENDMAIL_DPADD= diff --git a/games/fortune/datfiles/freebsd-tips b/games/fortune/datfiles/freebsd-tips index 391fb508f5f4..3e16e34b77ba 100644 --- a/games/fortune/datfiles/freebsd-tips +++ b/games/fortune/datfiles/freebsd-tips @@ -1,485 +1,485 @@ This fortune brought to you by: $FreeBSD$ % Having trouble using FTP through a firewall? Try setting the environment variable FTP_PASSIVE_MODE to yes, and see ftp(1) for more details. % By pressing "Scroll Lock" you can use the arrow keys to scroll backward through the console output. Press "Scroll Lock" again to turn it off. % Want colour in your directory listings? Use "ls -G". "ls -F" is also useful, and they can be combined as "ls -FG". % If you need to ask a question on the FreeBSD-questions mailing list then http://www.freebsd.org/doc/en_US.ISO8859-1/articles/\ freebsd-questions/index.html contains lots of useful advice to help you get the best results. % If you'd like to keep track of applications in the FreeBSD ports tree, take a look at FreshPorts; http://www.freshports.org/ % To search for files that match a particular name, use find(1); for example find / -name "*GENERIC*" -ls will search '/', and all subdirectories, for files with 'GENERIC' in the name. -- Stephen Hilton % In tcsh, you can `set autolist' to have the shell automatically show all the possible matches when doing filename/directory expansion. -- Giorgos Keramidas % You can `set autologout = 30' to have tcsh log you off automatically if you leave the shell idle for more than 30 seconds. -- Giorgos Keramidas % If you `set filec' (file completion) in tcsh and write a part of the filename, pressing TAB will show you the available choices when there is more than one, or complete the filename if there's only one match. -- Giorgos Keramidas % You can press up-arrow or down-arrow to walk through a list of previous commands in tcsh. -- Giorgos Keramidas % You can disable tcsh's terminal beep if you `set nobeep'. -- Giorgos Keramidas % If you `set watch (0 any any)' in tcsh, you will be notified when someone logs in or out of your system. -- Giorgos Keramidas % Nice tcsh prompt: set prompt = '%m %# ' -- Giorgos Keramidas % Nice tcsh prompt: set prompt = '%n@%m%# ' -- Giorgos Keramidas % Nice tcsh prompt: set prompt = '%n@%m:%~%# ' -- Giorgos Keramidas % Nice tcsh prompt: set prompt = '%n@%m:%/%# ' -- Giorgos Keramidas % Nice tcsh prompt: set prompt = '[%B%m%b] %B%~%b%# ' % Simple tcsh prompt: set prompt = '%# ' -- Giorgos Keramidas % If you want df(1) and other commands to display disk sizes in kilobytes instead of 512-byte blocks, set BLOCKSIZE in your environment to 'K'. -- Giorgos Keramidas % To change an environment variable in tcsh you use: setenv NAME "value" where NAME is the name of the variable and "value" its new value. -- Giorgos Keramidas % To change an environment variable in /bin/sh use: $ VARIABLE="value" $ export VARIABLE -- Giorgos Keramidas % -/etc/make.conf contains overrides to /etc/defaults/make.conf, which -controls the options used to compile software on this system. +You can use /etc/make.conf to control the options used to compile software +on this system. Example entries are in /usr/share/examples/etc/make.conf. % To do a fast search for a file, try locate filename locate uses a database that is updated every Saturday (assuming your computer is running FreeBSD at the time) to quickly find files based on name only. % In order to search for a string in some files, use 'grep' like this: grep "string" filename1 [filename2 filename3 ...] This will print out the lines in the files that contain the string. grep can also do a lot more advanced searches - type 'man grep' for details. % You can use the 'fetch' command to retrieve files over ftp or http. fetch http://www.freebsd.org/index.html will download the front page of the FreeBSD web site. % In order to make fetch (the FreeBSD downloading tool) ask for username/password when it encounter a password-protected web page, you can set the environment variable HTTP_AUTH to 'basic:*'. % You can permanently set environment variables for your shell by putting them in a startup file for the shell. The name of the startup file varies depending on the shell - csh and tcsh uses .login, bash, sh, ksh and zsh use .profile. When using bash, sh, ksh or zsh, don't forget to export the variable. % If you are running xterm, the default TERM variable will be 'xterm'. If you set this environment variable to 'xterm-color' instead, a lot of programs will use colors. You can do this by TERM=xterm-color; export TERM in Bourne-derived shells, and setenv TERM xterm-color in csh-derived shells. % If you do not want to get beeps in X11 (X Windows), you can turn them off with xset b off % You can look through a file in a nice text-based interface by typing less filename % The default editor in FreeBSD is vi, which is efficient to use when you have learned it, but somewhat user-unfriendly. To use ee (an easier but less powerful editor) instead, set the environment variable EDITOR to /usr/bin/ee % If you accidently end up inside vi, you can quit it by pressing Escape, colon (:), q (q), bang (!) and pressing return. % You can use aliases to decrease the amount of typing you need to do to get commands you commonly use. Examples of fairly popular aliases include (in bourne shell style, as in /bin/sh, bash, ksh, and zsh): alias lf="ls -FA" alias ll="ls -lA" alias su="su -m" In csh or tcsh, these would be alias lf ls -FA alias ll ls -lA alias su su -m To remove an alias, you can usually use 'unalias aliasname'. To list all aliases, you can usually type just 'alias'. % In order to support national characters for european languages in tools like less without creating other nationalisation aspects, set the environment variable LC_ALL to 'en_US.ISO8859-1'. % You can search for documentation on a keyword by typing apropos keyword % Man pages are divided into section depending on topic. There are 9 different sections numbered from 1 (General Commands) to 9 (Kernel Developer's Manual). You can get an introduction to each topic by typing man intro In other words, to get the intro to general commands, type man 1 intro % FreeBSD is started up by the program 'init'. The first thing init does when starting multiuser mode (ie, starting the computer up for normal use) is to run the shell script /etc/rc. By reading /etc/rc, you can learn a lot about how the system is put together, which again will make you more confident about what happens when you do something with it. % If you want to play CDs with FreeBSD, a utility for this is already included. Type 'cdcontrol' then 'help' to learn more. (You may need to set the CDROM environment variable in order to make cdcontrol want to start.) % If you have a CD-ROM drive in your machine, you can make the CD-ROM that is presently inserted available by typing 'mount /cdrom' as root. The CD-ROM will be available under /cdrom/. Remember to do 'umount /cdrom' before removing the CD-ROM (it will usually not be possible to remove the CD-ROM without doing this.) Note: This tip may not work in all configurations. % You can install extra packages for FreeBSD by using the ports system. If you have installed it, you can download, compile, and install software by just typing # cd /usr/ports// # make install && make clean as root. The ports infrastructure will download the software, change it so it works on FreeBSD, compile it, install it, register the installation so it will be possible to automatically uninstall it, and clean out the temporary working space it used. You can remove an installed port you decide you do not want after all by typing # cd /usr/ports// # make deinstall as root. % Nice bash prompt: PS1='(\[$(tput md)\]\t <\w>\[$(tput me)\]) $(echo $?) \$ ' -- Mathieu % To see the output from when your computer started, run dmesg(8). If it has been replaced with other messages, look at /var/run/dmesg.boot. -- Francisco Reyes % You can use "whereis" to locate standard binary, manual page and source directories for the specified programs. This can be particularly handy when you are trying to find where in the ports tree an application is. Try "whereis netscape" and "whereis whereis". -- Konstantinos Konstantinidis % You can press Ctrl-D to quickly exit from a shell, or logout from a login shell. -- Konstantinos Konstantinidis % You can use "pkg_info" to see a list of packages you have installed. -- Konstantinos Konstantinidis % You can change the video mode on all consoles by adding something like the following to /etc/rc.conf: allscreens="80x30" You can use "vidcontrol -i mode | grep T" for a list of supported text modes. -- Konstantinos Konstantinidis % Any user that is a member of the wheel group can use "su -" to simulate a root login. You can add a user to the wheel group by editing /etc/group. -- Konstantinos Konstantinidis % Over quota? "du -s * | sort -n " will give you a sorted list of your directory sizes. -- David Scheidt % Handy bash(1) prompt: PS1="\u@\h \w \!$ " -- David Scheidt % Ever wonder what those numbers after command names were, as in cat(1)? It's the section of the manual the man page is in. "man man" will tell you more. -- David Scheidt % "man hier" will explain the way FreeBSD filesystems are normally laid out. -- David Scheidt % "man tuning" gives some tips how to tune performance of your FreeBSD system. -- David Scheidt % "man firewall" will give advice for building a FreeBSD firewall -- David Scheidt % You can often get answers to your questions about FreeBSD by searching in the FreeBSD mailing list archives at http://www.freebsd.org/search.html % You can adjust the volume of various parts of the sound system in your computer by typing 'mixer '. To get a list of what you can adjust, just type 'mixer'. % You can automatically download and install binary packages by doing pkg_add -r where you replace with the URL to the package. This will also automatically install the packages the package you download is dependent on (ie, the packages it needs in order to work.) % You can get a good standard workstation install by using the instant-workstation port/package. If you have ports installed, you can install it by doing # cd /usr/ports/misc/instant-workstation # make install && make clean as root. This will install a collection of packages that is convenient to have on a workstation. % You can get a good generic server install by using the instant-server port/package. If you have ports installed, you can install it by doing # cd /usr/ports/misc/instant-server # make install && make clean as root. This will install a collection of packages that is appropriate for running a "generic" server. % You can make a log of your terminal session with script(1). % "man ports" gives many useful hints about installing FreeBSD ports. % ports/net/netcat port is useful not only for redirecting input/output to TCP or UDP connections, but also for proxying them. See inetd(8) for details. % If other operating systems have damaged your Master Boot Record, you can reinstall it either with /stand/sysinstall or with boot0cfg(8). See "man boot0cfg" for details. % Need to see the calendar for this month? Simply type "cal". To see the whole year, type "cal 2001". -- Dru % Need to quickly return to your home directory? Type "cd". -- Dru % To see the last time that you logged in, use lastlogin(8). -- Dru % To clear the screen, use "clear". To re-display your screen buffer, press the scroll lock key and use your page up button. When you're finished, press the scroll lock key again to get your prompt back. -- Dru % To save disk space in your home directory, can compress files you rarely use with "gzip filename". -- Dru % To read a compressed file without having to first uncompress it, use "zcat" or "zmore" to view it. -- Dru % To see how much disk space is left on your partitions, use df -h -- Dru % To see the 10 largest files on a directory or partition, use du /partition_or_directory_name | sort -rn | head -- Dru % To determine whether a file is a text file, executable, or some other type of file, use file filename -- Dru % Time to change your password? Type "passwd" and follow the prompts. -- Dru % Want to know how many words, lines, or bytes are contained in a file? Type "wc filename". -- Dru % Need to print a manpage? Use man name_of_manpage | col -bx | lpr -- Dru % Need to remove all those ^M characters from a DOS file? Try col -bx < dosfile > newfile -- Dru % Forget what directory you are in? Type "pwd". -- Dru % If you are in the C shell and have just installed a new program, you won't be able to run it unless you first type "rehash". -- Dru % Need to leave your terminal for a few minutes and don't want to logout? Use "lock -p". When you return, use your password as the key to unlock the terminal. -- Dru % Need to find the location of a program? Use "locate program_name". -- Dru % Forget how to spell a word or a variation of a word? Use look portion_of_word_you_know -- Dru % To see the last 10 lines of a long file, use "tail filename". To see the first 10 lines, use "head filename". -- Dru % To see how long it takes a command to run, type the word "time" before the command name. -- Dru % To quickly create an empty file, use "touch filename". -- Dru % To find out the hostname associated with an IP address, use dig -x IP_address -- Dru % If you use the C shell, add the following line to the .cshrc file in your home directory to prevent core files from being written to disk: limit coredumpsize 0 -- Dru % If you need a reminder to leave your terminal, type "leave hhmm" where "hhmm" represents in how many hours and minutes you need to leave. -- Dru % Need to do a search in a manpage or in a file you've sent to a pager? Use "/search_word". To repeat the same search, type "n" for next. -- Dru % Forget when Easter is? Try "ncal -e". If you need the date for Orthodox Easter, use "ncal -o" instead. -- Dru % Need to see your routing table? Type "netstat -rn". The entry with the G flag is your gateway. -- Dru % Need to see which daemons are listening for connection requests? Use "sockstat -4l" for IPv4, and "sockstat -l" for IPv4 and IPv6. -- Dru % Can't remember is you've installed a certain port or not? Try "pkg_info | grep port_name". -- Dru % Got some time to kill? Try typing "hangman". -- Dru % To erase a line you've written at the command prompt, use "Ctrl u". -- Dru % To repeat the last command in the C shell, type "!!". -- Dru % Need to quickly empty a file? Use "echo > filename". -- Dru % To see all of the directories on your FreeBSD system, type ls -R / | more -- Dru % To see the IP addresses currently set on your active interfaces, type "ifconfig -u". -- Dru % To see the MAC addresses of the NICs on your system, type ifconfig -a -- Dru % You can save your kernel startup configuration with kget(8). The Configuration can be edited at boot time with 'boot -c' command in loader. See boot(8), loader(8) for details. % You can open up a new split-screen window in (n)vi with :N or :E and then use ^w to switch between the two. % sh (the default bourne shell in FreeBSD) supports command-line editing. Just ``set -o emacs'' or ``set -o vi'' to enable it. % When you've made modifications to a file in vi(1) and then find that you can't write it, type ``!rm -f %'' then ``:w!'' to force the write This won't work if you don't have write permissions to the directory and probably won't be suitable if you're editing through a symbolic link. diff --git a/release/doc/en_US.ISO8859-1/relnotes/article.sgml b/release/doc/en_US.ISO8859-1/relnotes/article.sgml index c9c7f7b52d2c..59de202bae73 100644 --- a/release/doc/en_US.ISO8859-1/relnotes/article.sgml +++ b/release/doc/en_US.ISO8859-1/relnotes/article.sgml @@ -1,2149 +1,2149 @@ $FreeBSD$ What's New This section describes the most user-visible new or changed features in &os; since &release.prev;. All changes described here are unique to the &release.branch; branch unless specifically marked as &merged; features. Many additional changes were made to &os; that are not listed here for lack of space. For example, documentation was corrected and improved, minor bugs were fixed, insecure coding practices were audited and corrected, and source code was cleaned up. The release notes items are organized into three different sections. lists recent changes to the &os; kernel. Security fixes, including those pertaining to security advisories, are listed in . Finally, covers changes to &os; userland applications included in the base system. Kernel Changes The &man.kqueue.2; event notification facility was added to the &os; kernel. This is a new interface which is able to replace &man.poll.2;/&man.select.2;, offering improved performance, as well as the ability to report many different types of events. Support for monitoring changes in sockets, pipes, fifos, and files are present, as well as for signals and processes. &merged; Support for Intel's Wired for Management 2.0 (PXE) was added to the &os; boot loader. Due to API differences, the older PXE versions are not supported. This allow network booting using DHCP. &merged; The &os; boot loader now contains a workaround to support CDROM booting on certain IBM BIOSs that expect the first sector of the emulated floppy to contain a valid MS-DOS BPB that they can modify. &merged; Support for USB devices was added to the GENERIC kernel and to the installation programs to support USB devices out of the box. Note that SRM does not support USB devices at the moment, so you must still use an AT keyboard if you are not using a serial console. &merged; POSIX.1b Shared Memory Objects are now supported. The implementation uses regular files, but automatically enables the MAP_NOSYNC flag when they are &man.mmap.2;-ed. &merged; A driver for AGP hardware has been added. &merged; The kernel and modules have been moved to the directory /boot/kernel, so they can be easily manipulated together. The boot loader has been updated to make this change as seamless as possible. The i386 boot loader now has support for a nullconsole console type, for use on systems with neither a video console nor a serial port. &merged; Replaced the PQ_*CACHE options with a single PQ_CACHESIZE option to be set to the cache size in kilobytes. The old options are still supported for backwards compatibility. &merged; The NCPU, NAPIC, NBUS, and NINTR kernel configuration options, for configuring SMP kernels, have been removed. NCPU is now set to a maximum of 16, and the other, aforementioned options are now dynamic. &merged; &man.devfs.5;, which allows entries in the /dev directory to be built automatically and supports more flexible attachment of devices, has been largely reworked. &man.devfs.5; is now enabled by default and can be disabled by the NODEVFS kernel option. Preliminary Cardbus support under NEWCARD has been added. This code supports the TI113X, TI12XX, TI125X, Ricoh 5C46/5C47, Topic 95/97/100 and Cirrus Logic PD683X bridges. 16-bit PC Card support is not yet functional. Write combining for crashdumps has been implemented. This feature is useful when write caching is disabled on both SCSI and IDE disks, where large memory dumps could take up to an hour to complete. &merged; Extremely large swap areas (>67 GB) no longer panic the system. The &man.ichsmb.4; driver for the Intel 82801AA (ICH) SMBus controller and compatibles has been added. &merged; The &man.uscanner.4; driver for basic USB scanner support using SANE has been added. See the SANE home page for supported scanners. The HP ScanJet 4100C, 5200C and 6300C are known to be working. The umodem driver for USB modems has been added. Support is provided for the 3Com 5605 and Metricom Ricochet GS wireless USB modems. Support for threads under Linux emulation has been added. The pccard driver and &man.pccardc.8; now support multiple beep types upon card insertion and removal. &merged; A number of cleanups and enhancements have been applied to the PCI subsystem. /usr/share/misc/pci_vendors now contains a vendor/device database, which can be used by &man.pciconf.8;. The &man.spic.4; driver, which provides access to the jog dial device on some Sony laptops, has been added. PECOFF (Win32 Execution file format) support has been added. A VESA S3 linear framebuffer driver has been added. The buildkernel target now gets the name of the configuration(s) to build from the KERNCONF variable, not KERNEL. It is no longer required, in some cases, for a buildworld to precede a buildkernel. (The buildworld is still required when upgrading across major releases, across binutil updates and when &man.config.8; changes version.) &merged; The &man.random.4; device has been rewritten to use the Yarrow algorithm. It harvests entropy from a variety of interrupt sources, including the console devices, Ethernet and point-to-point network interfaces, and mass-storage devices. Entropy from the &man.random.4; device is now periodically saved to files in /var/db/entropy, as well as at shutdown time. The semantics of /dev/random have changed; it never blocks waiting for entropy bits but generates a stream of pseudo-random data and now behaves exactly as /dev/urandom. The &man.syscons.4; driver now supports keyboard-controlled pasting, by default bound to Shift-Insert. The &man.labpc.4; driver has been removed due to bitrot. A new kernel option, options REGRESSION, enables interfaces and functionality intended for use during correctness and regression testing. The USER_LDT kernel option is now activated by default. A new &man.ddb.4; command show pcpu lists some of the per-CPU data. A new digi driver has been added to support PCI Xr-based and ISA Xem Digiboard cards. A new &man.digictl.8; program is (mainly) used to re-initialise cards that have external port modules attached such as the PC/Xem. The dgm driver has been removed in favor of the digi driver. The O_DIRECT flag has been added to &man.open.2; and &man.fcntl.2;. Specifying this flag for open files will attempt to minimize the cache effects of reading and writing. &merged; OLDCARD and &man.pccardd.8; now support PCI cards. An &man.orm.4; device has been added to claim the option ROMs in the ISA memory I/O space, to prevent other drivers from mistakenly assigning addresses that conflict with these ROMs. &merged; The out-of-swap process termination code now begins killing processes earlier to avoid deadlocks; it now also takes into account the swap space used by processes when computing the process sizes. &merged; Linker sets are now self-contained; &man.gensetdefs.8; is unnecessary and has been removed. Numerous SMP-friendly changes have been made to the kernel's mbuf allocator. Network device cloning has been implemented, and the &man.gif.4; device has been modified to take advantage of it. Thus, instead of specifying how many &man.gif.4; interfaces are available in kernel configuration files, &man.ifconfig.8;'s option should be used when another device instance is desired. &merged; The kernel message buffer is now accessible by the (machine-independent) kern.msgbuf sysctl variable; &man.dmesg.8; no longer needs to be SGID kmem. Two new &man.ddb.4; commands, hwatch and dhwatch, have been introduced. Analogous to watch and dwatch, they install hardware watchpoints (as opposed to software watchpoints) if supported by the architecture. &merged; A &man.nmdm.4; null-modem terminal driver has been added. &merged; The maxusers kernel configuration parameter is now a boot-time tunable variable. The kernel parameters derived from maxusers are now also tunables and can be overridden at boot-time. The hz parameter is also now a tunable. &merged; It is now possible to hardwire kernel environment variables (such as tuneables) at compile-time using &man.config.8;'s ENV directive. Processor/Motherboard Support SMP support has been largely reworked, incorporating code from BSD/OS 5.0. One of the main features of SMPng (SMP Next Generation) is to allow more processes to run in kernel, without the need for spin locks that can dramatically reduce the efficiency of multiple processors. Interrupt handlers now have contexts associated with them that allow them to be blocked, which reduces the need to lock out interrupts. Support for the 80386 processor has been removed from the GENERIC kernel, as this code seriously pessimizes performance on other IA32 processors. The I386_CPU kernel option to support the 80386 processor is now mutually exclusive with support for other IA32 processors; this should slightly improve performance on the 80386 due to the elimination of runtime processor type checks. Custom kernels that will run on the 80386 can still be built by changing the cpu options in the kernel configuration file to only include I386_CPU. AlphaServer 1200 (Tincup) has been tested and works OK. Currently it does not want to boot from CD or floppy but a transplanted disk that was installed on another Alpha works well. &merged; The API UP1100 mainboard has been verified to work. The API CS20 1U high server has been verified to work. The DEC3000 series support has been removed from the mfsroot floppy image so that it fits on a 1.44 Mbyte floppy again. As the DEC3000 is currently only usable diskless this should not cause any problems. Support for AlphaServer 2100A (Lynx) has been added. Kernel code has been added that allows older generation Alpha CPUs (EV4 and EV5) to emulate instructions of the newer Alpha CPU generations. This enables the use of binary-only programs like Adobe Acrobat 4 on EV4 and EV5. SMP support for the Alpha is now operational. Detection for new processors, such as the FC-PGA2 Pentium III (Tualatin), Transmeta Crusoe, and Transmeta Crusoe LongRun, has been added. &merged; Support for the following hardware has been removed from the installation kernel to make it fit on a 1.44MB floppy again: Multia, NoName, PC64, EB64, Aspen Alpine, sa (SCSI tape), amr, parallel port support, vx (3c590, 3c595), pcn (AMD Am79C97x PCI 10/100), sf (Adaptec AIC-6915), sis (SiS 900/SiS 7016), ste (Sundance ST201 (D-Link DFE-550TX)), wb (Winbond W89C840F). Support for Streaming SIMD Extensions (SSE) has been introduced. The CPU_ENABLE_SSE kernel option controls whether support is compiled into the kernel. &merged; Network Interface Support Added support for PCI Ethernet adapters based on the National Semiconductor DP83815 chipset, including the NetGear FA311-TX and FA312-TX, in the form of the &man.sis.4; driver. The &man.tap.4; driver, a virtual Ethernet device driver for bridged configurations, has been added. &merged; The &man.ti.4; driver now supports the Alteon AceNIC 1000baseT Gigabit Ethernet and Netgear GA620T 1000baseT Gigabit cards. &merged; The &man.xl.4; driver now supports the 3Com 3C556 and 3C556B MiniPCI adapters used on some laptops. &merged; The &man.ed.4; driver is now supported. The &man.pcn.4; driver, which supports the AMD PCnet/FAST, PCnet/FAST+, PCnet/FAST III, PCnet/PRO, PCnet/Home, and HomePNA adapters, has been added. Although these cards are already supported by the &man.lnc.4; driver, the &man.pcn.4; driver runs these chips in 32-bit mode and uses the RX alignment feature to achieve zero-copy receive. This driver is also machine-independent, so it will work on both the i386 and Alpha platforms. The &man.lnc.4; driver is still needed to support non-PCI cards. &merged; Support for Fujitsu MB86960A/MB86965A based Ethernet PC-Cards is back. &merged; The snc driver for the National Semiconductor DP8393X (SONIC) Ethernet controller has been added. Currently, this driver is only used on the PC-98 architecture. &merged; The &man.an.4; driver for Cisco Aironet cards now supports Wired Equivalent Privacy (WEP) encryption, settable via &man.ancontrol.8;. &merged; The &man.an.4; driver now supports the Cisco Aironet 350 series of adaptors. &merged; The &man.el.4; driver can now be loaded as a module. The &man.ray.4; driver, which supports the Webgear Aviator wireless network cards, has been committed. The operation of &man.ray.4; interfaces can be modified by &man.raycontrol.8;. &merged; The &man.fpa.4; driver now supports Digital's DEFPA FDDI adaptors on the Alpha. Linksys Fast Ethernet PCCARD cards supported by the &man.ed.4; driver now require the addition of flag 0x80000 to their config line in &man.pccard.conf.5;. This flag is not optional. These Linksys cards will not be recognized without it. &merged; A bug in the &man.ed.4; driver that could cause panics with very short packets and BPF or bridging active has been fixed. &merged; The &man.ed.4; driver now has support for D-Link DL10022 chips, necessary for the NetGear FA-410TX and other cards. As a result, device miibus is required in kernel configurations using the &man.ed.4; driver. &merged; The &man.fxp.4; driver now requires a device miibus entry in the kernel configuration file. &merged; The &man.wx.4; driver now supports the Intel PRO1000-F and PRO1000-T (10/100/1000) adapters. &merged; Added the &man.nge.4; driver, which supports PCI Gigabit Ethernet adapters based on the National Semiconductor DP83820 and DP83821 Gigabit Ethernet controller chips, including the D-Link DGE-500T, SMC EZ Card 1000 (SMC9462TX), Asante FriendlyNet GigaNIC 1000TA and 1000TPC and Addtron AEG320T. This driver supports transmit and receive checksum offloading. &merged; The &man.lge.4; driver has been added to support the Level 1 LXT1001 NetCellerator Gigabit Ethernet controller chip. This device is used on some fiber optic GigE cards from SMC, D-Link and Addtron. Jumbograms and TCP/IP checksum offload on receive are supported, although hardware VLAN filtering is not. &merged; The &man.xl.4; driver now supports reception of VLAN tagged frames (on the Cyclone or newer chipsets). &merged; The &man.ti.4; driver correctly masks VLAN tags. &merged; The &man.txp.4; driver has been added to support NICs based on the 3Com 3XP Typhoon/Sidewinder (3CR990) chipset. &merged; Network Protocols &man.accept.filter.9;, a kernel feature to reduce overheads when accepting and reading new connections on listening sockets, has been added. &merged; The &man.ng.mppc.4; and &man.ng.bridge.4; node types have been added to the &man.netgraph.4; subsystem. The &man.ng.ether.4; node is now dynamically loadable. Miscellaneous bug fixes and enhancements have also been made. &merged; &man.netgraph.4; has received some updates and bugfixes. A new netgraph node type &man.ng.one2many.4; for multiplexing and demultiplexing packets over multiple links has been added. &merged; SLIP has been removed from the mfsroot floppy image. ICMP ECHO and TSTAMP replies are now rate limited. TCP RSTs generated due to packets sent to open and unopen ports are now limited by separate counters. Each rate limiting queue now has its own description. ICMP UNREACH_FILTER_PROHIB messages can now RST TCP connections in the SYN_SENT state if the correct sequence numbers are sent back, as controlled by the net.inet.tcp.icmp_may_rst sysctl. TCP has received some bug fixes for its delayed ACK behavior. &merged; TCP now supports the NewReno modification to the TCP Fast Recovery algorithm. This behavior can be controlled via the net.inet.tcp.newreno sysctl variable. &merged; TCP now uses a more aggressive timeout for initial SYN segments; this allows initial connection attempts to be dropped much faster. &merged; The TCP_COMPAT_42 kernel option has been removed. The TCP_RESTRICT_RST kernel option has been removed. Similar functionality can be achieved with the net.inet.tcp.blackhole sysctl variable. &merged; TCP now has RFC 1323 extensions enabled by default in &man.rc.conf.5;. &merged; RFC 1323 and RFC 1644 TCP extensions are now disabled for a connection in progress if no response has been received by the third SYN segment sent. This behavior tries to work around (very old) terminal servers with buggy VJ header compression implementations. &merged; The TCP implementation no longer requires the allocation of a TCP template structure for each connection; this should reduce the buffer usage on large systems handling many connections. &merged; TCP's default buffer sizes, controlled by the net.inet.tcp.sendspace and net.inet.tcp.recvspace sysctl variables, have been increased to 32K and 64K respectively. TCP now supports RFC 1948 (Defending Against Sequence Number Attacks). This functionality is controlled by the net.inet.tcp.strict_rfc1948 and net.inet.tcp.isn_reseed_interval sysctl variables. &merged; A new sysctl net.inet.ip.check_interface, which is on by default, causes IP to verify that an incoming packet arrives on an interface that has an address matching the packet's destination address. &merged; A new sysctl net.link.ether.inet.log_arp_wrong_iface has been added to control the suppression of logging when ARP replies arrive on the wrong interface. &merged; The proxy modifier to &man.arp.8;'s option has been renamed to pub, for consistency with the option. The only keyword has been added to the and flags, to be used in creating proxy-only published entries. &man.ipfw.4; now filters correctly in the presence of ECN bits in TCP segments. &merged; &man.ipfw.8; will now avoid the display of dynamic firewall rules unless the flag is passed to it. The lists expired dynamic rules. &man.bridge.4; and &man.dummynet.4; have received some enhancements and bug fixes. &man.ipfw.8; has a new feature (me) that allows for packet matching on interfaces with dynamically-changing IP addresses. &merged; &man.ip6fw.8; now has the ability to use a preprocessor and use the (quiet) flag when reading from a file. &merged; A new options RANDOM_IP_ID kernel option causes the ID field of IP packets to be randomized. This closes a minor information leak which allows a remote observer to determine the rate at which the machine is generating packets, since the default behavior is to increment a counter for each packet sent. &merged; IP multicast now works on VLAN devices. Several other bugs in the VLAN code have also been fixed. Disks and Storage The &man.asr.4; driver now supports the Adaptec 2000S and 2005S Zero-Channel RAID controllers. &merged; The &man.aac.4; driver now supports the Adaptec SCSI RAID 5400S controller. &merged; The &man.twe.4; 3ware ATA RAID driver has added. &merged; The &man.ata.4; driver now has support for ATA100 controllers. In addition, it now supports the ServerWorks ROSB4 ATA33 chipset, the CMD 648 ATA66 and CMD 649 ATA100 chipsets, and the Cyrix 5530. &merged; To provide more flexible configuration, the various options for the &man.ata.4; driver are now boot loader tunables, rather than kernel configure-time options. &merged; The &man.ata.4; driver now has support for tagged queuing, which is enabled by the hw.ata.tags loader tunable. &merged; The &man.ata.4; driver now has support for ATA pseudo RAID controllers as the Promise Fasttrak and HighPoint HPT370 controllers. &merged; The &man.wd.4; compatibility devices were removed from the &man.ata.4; driver. &merged; The &man.mly.4; driver, for Mylex PCI to SCSI AccelRAID and eXtremeRAID controllers with firmware 6.X and later, has been added. &merged; The &man.asr.4; driver, which provides support for the Adaptec SCSI RAID controller family, as well as the DPT SmartRAID V and VI families, has been added. &merged; Support for the Adaptec FSA family of PCI-SCSI RAID controllers has been added, in the form of the &man.aac.4; driver. &merged; The &man.ahc.4; driver has received numerous updates, bugfixes, and enhancements. Among various improvements are improved compatibility with chips in RAID Port mode and systems with AAA and/or ARO cards installed, as well as performance improvements. Some bugs were also fixed, including a rare hang on Ultra2/U160 controllers. &merged; The ncv, nsp, and stg drivers have been ported from NetBSD/pc98. They support the NCR 53C50 / Workbit Ninja SCSI-3 / TMC 18C30, 18C50 based PC-Card/ISA SCSI controllers. &merged; The &man.cd.4; driver now has support for write operations. This allows writing to DVD-RAM, PD and similar drives that probe as CD devices. Note that change affects only random-access writeable devices, not sequential-only writeable devices such as CD-R drives, which are supported by &man.cdrecord.1; (a part of sysutils/cdrtools in the Ports Collection. &merged; The &man.vinum.4; volume manager has received some bug fixes and enhancements. &man.md.4;, the memory disk device, has had the functionality of &man.vn.4; incorporated into it. &man.md.4; devices can now be configured by &man.mdconfig.8;. &man.vn.4; has been removed. The Memory Filesystem (MFS) has also been removed. The BurnProof(TM) feature, for applicable ATAPI CD-ROM burners, is now supported. &merged; A bug that made certain CDROM drives fail to attach when connected to a SCSI card driven by &man.isp.4; has been fixed. &merged; The &man.isp.4; driver is now proactive about discovering Fibre Channel topology changes. The &man.isp.4; driver now supports target mode for Qlogic SCSI cards, including Ultra2 and Ultra3 and dual bus cards. The ida disk driver now has crashdump support. &merged; The CAM error recovery code has been updated. Some problems in &man.sa.4; error handling have been fixed, including the tape drive spinning indefinitely upon &man.mt.1; problem. Filesystems Support for named extended attributes was added to the &os; kernel. This allows the kernel, and appropriately privileged userland processes, to tag files and directories with attribute data. Extended attributes were added to support the TrustedBSD Project, in particular ACLs, capability data, and mandatory access control labels (see /usr/src/sys/ufs/ufs/README.extattr for details). Due to a licensing change, softupdates have been integrated into the main portion of the kernel source tree. As a consequence, softupdates are now available with the GENERIC kernel. &merged; A filesystem snapshot capability has been added to FFS. Details can be found in /usr/src/sys/ufs/ffs/README.snapshot. Softupdates for FFS have received some bug fixes and enhancements. When running with softupdates, &man.statfs.2; and &man.df.1; will track the number of blocks and files that are committed to being freed. A bug in FFS that could cause superblock corruption on very large filesystems has been corrected. &merged; The Inode Filesystem (IFS) has been added; more information can be found in /usr/src/sys/ufs/ifs/README. The ISO-9660 filesystem now has a hook that supports a loadable character conversion routine. The sysutils/cd9660_unicode port contains a set of common conversions. &man.kernfs.5; is obsolete and has been retired. A bug in the NFS client that caused bogus access times with O_EXCL|O_CREAT opens was fixed. &merged; A new NFS hash function (based on the Fowler/Noll/Vo hash algorithm) has been implemented to improve NFS performance by increasing the efficiency of the nfsnode hash tables. &merged; Client-side NFS locks have been implemented. Support for file system Access Control Lists (ACLs) has been introduced, allowing more fine-grained control of discretionary access control on files and directories. This support was integrated from the TrustedBSD Project. More details can be found in /usr/src/sys/ufs/ufs/README.acls. The directory layout preference algorithm for FFS has been changed to improve its speed on large filesystems. smbfs (CIFS) support in kernel has been added. The corresponding userland filesystem mount utility can be found in the net/smbfs port in the &os; Ports Collection. &merged; For consistency, the fdesc, fifo, null, msdos, portal, umap, and union filesystems have been renamed to fdescfs, fifofs, msdosfs, nullfs, portalfs, umapfs, and unionfs. Where applicable, modules and mount_* programs have been renamed. Compatibility glue has been added to &man.mount.8; so that msdos filesystem entries in &man.fstab.5; will work without changes. pseudofs, a pseudo-filesystem framework, has been added. &man.linprocfs.5; has been modified to use pseudofs. A simple hash-based lookup optimization for large directories called dirhash has been added. Conditional on the UFS_DIRHASH kernel option, it improves the speed of operations on very large directories at the expense of some memory. &merged; Multimedia Support The &man.pcm.4; driver now supports the ESS Solo 1, Maestro-1, Maestro-2, and Maestro-2e; Forte Media fm801, ESS Maestro-2e, and VIA Technologies VT82C686A sound card/chipsets, and has received some other updates. Separate drivers for the SoundBlaster 8 and SoundBlaster 16 now replace an older, unified driver. A driver for the CMedia CMI8338/CMI8738 sound chips has been added. A driver for the CS4281 sound chip has been added. A driver for the S3 SonicVibes chipset has been added. &merged; A driver for the Advance Logic ALS4000 has been added. &merged; A driver for the ESS Maestro-3/Allegro has been added, however due to licensing restrictions, it cannot be compiled into the kernel. &merged; To use this driver, add the following line to /boot/loader.conf: snd_maestro3_load="YES" The &man.bktr.4; driver has been updated to 2.18. This update provides a number of new features. New tuner types have been added, and improvements to the KLD module and to memory allocation have been made. Bugs in &man.devfs.5; when unloading and reloading have been fixed. Support for new Hauppauge Model 44xxx WinTV Cards (the ones with no audio mux) has been added. When sound modules are built, one can now load all the drivers and infrastructure by kldload snd. A new API has been added for sound cards with hardware volume control. A driver for the Intel 443MX, 810, 815, and 815E integrated sound devices has been added. Contributed Software IPFilter has been updated to 3.4.20. &merged; The Forth Inspired Command Language (FICL) used in the boot loader has been updated to 2.05. ACPI support has been merged in from the Intel ACPI project, and updated to the ACPI CA 20010816 release. isdn4bsd isdn4bsd has been updated to version 1.0.1. As a result of this update, users of the &man.i4bisppp.4; (kernel PPP over ISDN) driver must now use &man.ispppcontrol.8; instead of &man.spppcontrol.8; to configure and control these network interfaces. &merged; The &man.ihfc.4; driver for supporting Cologne Chip Designs HFC devices under isdn4bsd has been added. &merged; The &man.itjc.4; driver for supporting NETjet-S / Teles PCI-TJ devices under isdn4bsd has been added. &merged; Experimental support for the Eicon.Diehl DIVA 2.0 and 2.02 ISA PnP ISDN cards has been added to the &man.isic.4; isdn4bsd driver. &merged; Active CAPI-based ISDN cards manufacured by AVM are now supported using the &man.i4bcapi.4; and the &man.iavc.4; driver. The supported cards are the AVM B1 PCI and AVM B1 ISA Basic Rate cards and the AVM T1 Primary Rate cards. &merged; A new maxconnecttime keyword is now accepted in &man.isdnd.rc.5; files to limit the time a connection may remain open. &merged; KAME The IPv6 stack is now based on a snapshot based on the KAME Project's IPv6 snapshot as of 28 May, 2001. Most of the items listed in this section are a result of this import. lists userland updates to the KAME IPv6 stack. &merged; &man.gif.4; is now based on RFC 2893, rather than RFC 1933. The IFF_LINK2 interface flag can be used to control ingress filtering. &merged; IPSec has received some enhancements, including the ability to use the Rijndael and SHA2 algorithms. IPSec RC5 support has been removed due to patent issues. &merged; &man.stf.4; now conforms to RFC 3056; the IFF_LINK2 interface flag can be used to control ingress filtering. &merged; IPv6 has better checking of illegal addresses (such as loopback addresses) on physical networks. &merged; The IPV6_V6ONLY socket option is now completely supported. The kernel's default behavior with respect to this option is controlled by the net.inet6.ip6.v6only sysctl variable. &merged; RFC 3041 (Privacy Extensions for Stateless Address Autoconfiguration) is now supported. It can be enabled via the net.inet6.ip6.use_tempaddr sysctl variable. &merged; Security-Related Changes &man.sysinstall.8; now allows the user to select one of two security profiles at install-time. These profiles enable different levels of system security by enabling or disabling various system services in &man.rc.conf.5; on new installs. &merged; A bug in which malformed ELF executable images can hang the system has been fixed (see security advisory FreeBSD-SA-00:41). &merged; A security hole in Linux emulation was fixed (see security advisory FreeBSD-SA-00:42). &merged; String-handling library calls in many programs were fixed to reduce the possibility of buffer overflow-related exploits. &merged; TCP now uses stronger randomness in choosing its initial sequence numbers (see security advisory FreeBSD-SA-00:52). &merged; Several buffer overflows in &man.tcpdump.1; were corrected (see security advisory FreeBSD-SA-00:61). &merged; A security hole in &man.top.1; was corrected (see security advisory FreeBSD-SA-00:62). &merged; A potential security hole caused by an off-by-one-error in &man.gethostbyname.3; has been fixed (see security advisory FreeBSD-SA-00:63). &merged; A potential buffer overflow in the &man.ncurses.3; library, which could cause arbitrary code to be run from within &man.systat.1;, has been corrected (see security advisory FreeBSD-SA-00:68). &merged; A vulnerability in &man.telnetd.8; that could cause it to consume large amounts of server resources has been fixed (see security advisory FreeBSD-SA-00:69). &merged; The nat deny_incoming command in &man.ppp.8; now works correctly (see security advisory FreeBSD-SA-00:70). &merged; A vulnerability in &man.csh.1;/&man.tcsh.1; temporary files that could allow overwriting of arbitrary user-writable files has been closed (see security advisory FreeBSD-SA-00:76). &merged; The &man.ssh.1; binary is no longer SUID root by default. &merged; Some fixes were applied to the Kerberos IV implementation related to environment variables, a possible buffer overrun, and overwriting ticket files. &merged; &man.telnet.1; now does a better job of sanitizing its environment. &merged; Several vulnerabilities in &man.procfs.5; were fixed (see security advisory FreeBSD-SA-00:77). &merged; A bug in OpenSSH in which a server was unable to disable &man.ssh-agent.1; or X11Forwarding was fixed (see security advisory FreeBSD-SA-01:01). &merged; A bug in &man.ipfw.8; and &man.ip6fw.8; in which inbound TCP segments could incorrectly be treated as being part of an established connection has been fixed (see security advisory FreeBSD-SA-01:08). &merged; A bug in &man.crontab.1; that could allow users to read any file on the system in valid &man.crontab.5; syntax has been fixed (see security advisory FreeBSD-SA-01:09). &merged; A vulnerability in &man.inetd.8; that could allow read-access to the initial 16 bytes of wheel-accessible files has been fixed (see security advisory FreeBSD-SA-01:11). &merged; A bug in &man.periodic.8; that used insecure temporary files has been corrected (see security advisory FreeBSD-SA-01:12). &merged; A bug in &man.sort.1; in which an attacker might be able to cause it to abort processing has been fixed (see security advisory FreeBSD-SA-01:13). &merged; OpenSSH now has code to prevent (instead of just mitigating through connection limits) an attack that can lead to guessing the server key (not host key) by regenerating the server key when an RSA failure is detected (see security advisory FreeBSD-SA-01:24). &merged; A number of programs have had output formatting strings corrected so as to reduce the risk of vulnerabilities. &merged; A number of programs that use temporary files now do so more securely. &merged; A bug in ICMP that could cause an attacker to disrupt TCP and UDP sessions has been corrected. &merged; A bug in &man.timed.8;, which caused it to crash if send certain malformed packets, has been corrected (see security advisory FreeBSD-SA-01:28). &merged; A bug in &man.rwhod.8;, which caused it to crash if send certain malformed packets, has been corrected (see security advisory FreeBSD-SA-01:29). &merged; A security hole in &os;'s FFS and EXT2FS implementations, which allowed a race condition that could cause users to have unauthorized access to data, has been fixed (see security advisory FreeBSD-SA-01:30). &merged; A remotely-exploitable vulnerability in &man.ntpd.8; has been closed (see security advisory FreeBSD-SA-01:31). &merged; A security hole in IPFilter's fragment cache has been closed (see security advisory FreeBSD-SA-01:32). &merged; Buffer overflows in &man.glob.3;, which could cause arbitrary code to be run on an FTP server, have been closed. In addition, to prevent some forms of DOS attacks, &man.glob.3; allows specification of a limit on the number of pathname matches it will return. &man.ftpd.8; now uses this feature (see security advisory FreeBSD-SA-01:33). &merged; Initial sequence numbers in TCP are more thoroughly randomized (see security advisory FreeBSD-SA-01:39). Due to some possible compatibility issues, the behavior of this security fix can be enabled or disabled via the net.inet.tcp.tcp_seq_genscheme sysctl variable.&merged; A vulnerability in the &man.fts.3; routines (used by applications for recursively traversing a filesystem) could allow a program to operate on files outside the intended directory hierarchy. This bug has been fixed (see security advisory FreeBSD-SA-01:40). &merged; &os;'s TCP implementation has been made more resistant to SYN floods, by eliminating the RST segment normally sent when removing a connection from the listen queue. OpenSSH now switches to the user's UID before attempting to unlink the authentication forwarding file, nullifying the effects of a race. A flaw allowed some signal handlers to remain in effect in a child process after being exec-ed from its parent. This allowed an attacker to execute arbitrary code in the context of a setuid binary. This flaw has been corrected (see security advisory FreeBSD-SA-01:42). &merged; A remote buffer overflow in &man.tcpdump.1; has been fixed (see security advisory FreeBSD-SA-01:48). &merged; A remote buffer overflow in &man.telnetd.8; has been fixed (see security advisory FreeBSD-SA-01:49). &merged; The new net.inet.ip.maxfragpackets and net.inet.ip6.maxfragpackets sysctl variables limit the amount of memory that can be consumed by IPv4 and IPv6 packet fragments, which defends against some denial of service attacks (see security advisory FreeBSD-SA-01:52). &merged; All services in inetd.conf are now disabled by default for new installations. &man.sysinstall.8; gives the option of enabling or disabling &man.inetd.8; on new installations, as well as editing inetd.conf. &merged; A flaw in the implementation of the &man.ipfw.8; me rules on point-to-point links has been corrected. Formerly, me filter rules would match the remote IP address of a point-to-point interface in addition to the intended local IP address (see security advisory FreeBSD-SA-01:53). &merged; A vulnerability in &man.procfs.5;, which could allow a process to read sensitive information from another process's memory space, has been closed (see security advisory FreeBSD-SA-01:55). &merged; The PARANOID hostname checking in tcp_wrappers now works as advertised (see security advisory FreeBSD-SA-01:56). &merged; A local root exploit in &man.sendmail.8; has been closed (see security advisory FreeBSD-SA-01:57). &merged; A remote root vulnerability in &man.lpd.8; has been closed (see security advisory FreeBSD-SA-01:58). &merged; Userland Changes &man.cdcontrol.1; now supports a cdid command, which calculates and displays the CD serial number, using the same algorithm used by the CDDB database. &merged; &man.mtree.8; now includes support for a file that lists pathnames to be excluded when creating and verifying prototypes. This makes it easier to use &man.mtree.8; as a part of an intrusion-detection system. &merged; &man.ls.1; can produce colorized listings with the flag (and appropriate terminal support). The CLICOLOR environment variable can be set to enable colorized listings by default. &merged; &man.sysinstall.8; now properly preserves /etc/mail during a binary upgrade. &merged; The &man.truncate.1; utility, which truncates or extends the length of files, has been added. &merged; &man.syslogd.8; can take a option to disable DNS queries for every request. &merged; &man.kenv.1;, a command to dump the kernel environment, has been added. &merged; The behavior of &man.periodic.8; is now controlled by /etc/defaults/periodic.conf and /etc/periodic.conf. &merged; &man.boot98cfg.8;, a PC-98 boot manager installation and configuration utility, has been added. &merged; &man.logger.1; can now send messages directly to a remote syslog. &merged; &man.gdb.1; now supports hardware watchpoints (using the kernel's debug register + support that has been introduced in &os; 4.0). &merged; &man.which.1; is now a C program, rather than a Perl script. &man.killall.1; is now a C program, rather than a Perl script. As a result, its option now uses the regular expression syntax of &man.regex.3;, rather than that of &man.perl.1;. &merged; &man.killall.1; now allows non-root users to kill SUID root processes that they started, the same as the Perl version did. &man.finger.1; now has the ability to support fingering aliases, via the &man.finger.conf.5; file. &merged; &man.finger.1; now has support for a .pubkey file. nsswitch support has been merged from NetBSD. By creating an &man.nsswitch.conf.5; file, &os; can be configured so that various databases such as &man.passwd.5; and &man.group.5; can be looked up using flat files, NIS, or Hesiod. The old hosts.conf file is no longer used. RSA Security has waived all patent rights to the RSA algorithm. As a result, the native OpenSSL implementation of the RSA algorithm is now activated by default, and the security/rsaref port and the librsaUSA and librsaINTL libraries are no longer required for USA and non-USA residents respectively. &merged; &man.ifconfig.8; command can set the link-layer address of an interface using the parameter. &merged; &man.ifconfig.8; can now accept addresses in slash/CIDR notation. &merged; &man.ifconfig.8; now has support for setting parameters for IEEE 802.11 wireless network devices. &man.wi.4; and &man.an.4; devices are supported, and partial support is provided for &man.awi.4; devices. &merged; &man.ifconfig.8; no longer displays the list of supported media by default. Instead it displays it when the is given. &merged; &man.setproctitle.3; has been moved from libutil to libc. &merged; &man.chio.1; now has the ability to specify elements by volume tag instead of by their physical location as well as the ability to return an element to its previous location. &merged; &man.sed.1; now takes a option for extended regular expression support. &merged; &man.ln.1; now takes an option to request user confirmation before overwriting an existing file. &merged; &man.ln.1; now takes a flag to avoid following a target that is a link, with a flag for compatibility with other implementations. &merged; Userland &man.ppp.8; has received a number of updates and bug fixes. &merged; &man.make.1; has gained the :C/// (regular expression substitution), :L (lowercase), and :U (uppercase) variable modifiers. These were added to reduce the differences between the &os; and OpenBSD/NetBSD &man.make.1; programs. &merged; Bugs in &man.make.1;, among which include broken null suffix behavior, bad assumptions about current directory permissions, and potential buffer overflows, have been fixed. &merged; The &os; Makefile infrastructure now supports the WARNS directive from NetBSD. This directive controls the addition of compiler warning flags to CFLAGS in a relatively compiler-neutral manner. &merged; &man.fsck.8; wrappers have been imported; this feature provides infrastructure for &man.fsck.8; to work on different types of filesystems (analogous to &man.mount.8;). The behavior of &man.fsck.8; when dealing with various passes (a la /etc/fstab) has been modified to accomodate multiple-disk filesystems. &man.style.perl.7;, a style guide for Perl code in the &os; base system, has been added. The in use percentage metric displayed by &man.netstat.1; now really reflects the percentage of network mbufs used. &merged; &man.netstat.1; now has a flag that tells it not to truncate addresses, even if they're too long for the column they're printed in. &merged; &man.netstat.1; now keeps track of input and output packets on a per-address basis for each interface. &merged; &man.netstat.1; now has a flag to reset statistics. &man.sockstat.1; now has and flags for listing connected and listening sockets, respectively. &merged; &man.mergemaster.8; has gained some new features, has been cleaned up somewhat, and is now more cross-platform friendly. &man.mergemaster.8; now sources an /etc/mergemaster.rc file and also prompts the user to run recommended commands (such as newaliases) as needed. &merged; The compiler chain now uses the FSF-supplied C/C++ runtime initialization code. This change brings about better compatibility with code generated from the various egcs and gcc ports, as well as the stock public FSF source. &merged; The threads library has gained some signal handling changes, bug fixes, and performance enhancements (including zero system call thread switching). &man.gdb.1; thread support has been updated to match these changes. &merged; &man.chflags.1; has moved from /usr/bin to /bin. Use of the CSMG_* macros no longer require inclusion of <sys/param.h> IP Filter is now supported by the &man.rc.conf.5; boot-time configuration and initialization. &merged; The &man.lastlogin.8; utility, which prints the last login time of each user, has been imported from NetBSD. &merged; &man.last.1; now implements a that provides a snapshot of who was logged in at a particular date and time. &merged; &man.newfs.8; now implements write combining, which can make creation of new filesystems up to seven times faster. &merged; &man.newfs.8; now takes a option to enable softupdates on a new filesystem. &merged; The default number of cylinders per group in &man.newfs.8; is now 22, up from 16. A number of buffer overflows in &man.config.8; have been fixed. &merged; &man.pwd.1; can now double as &man.realpath.1;, a program to resolve pathnames to their underlying physical paths. &merged; &man.stty.1; now has support for an erase2 control character, so that, for example, both the Delete and Backspace keys can be used to erase characters. &merged; The &man.ibcs2.8;, &man.linux.8;, &man.osf1.8;, and &man.svr4.8; scripts, whose sole purpose was to load emulation kernel modules, have been removed. The kernel module system will automatically load them as needed to fulfill dependencies. &man.top.1; will now use the full width of its tty. &man.growfs.8;, a utility for growing FFS filesystems, has been added. &man.ffsinfo.8;, a utility for dump all the meta-information of an existing filesystem, has also been added. &merged; &man.indent.1; has gained some new formatting options. &merged; &man.sysinstall.8; now uses some more intuitive defaults thanks to some new dialog support functions. &merged; The default root partition in &man.sysinstall.8; is now 100MB on the i386 and 120MB on the Alpha. Shortly after the receipt of a SIGINFO signal (normally control-T from the controlling tty), &man.fsck.ffs.8; will now output a line indicating the current phase number and progress information relevant to the current phase. &merged; &man.fsck.ffs.8; now supports background filesystem checks to mounted FFS filesystems with the option (softupdates must be enabled on these filesystems). The flag now determines whether a specified filesystem needs foreground checking. &man.fsck.8; now has support for foreground () and background () checks. Traditionally, &man.fsck.8; is invoked before the filesystems are mounted and all checks are done to completion at that time. If background checking is available, &man.fsck.8; is invoked twice. It is first invoked at the traditional time, before the filesystems are mounted, with the flag to do checking on all the filesystems that cannot do background checking. It is then invoked a second time, after the system has completed going multiuser, with the flag to do checking on all the filesystems that can do background checking. Unlike the foreground checking, the background checking is started asynchronously so that other system activity can proceed even on the filesystems that are being checked. Boot-time enabling of this feature is controlled by the background_fsck option in &man.rc.conf.5;. A new &man.fsck.msdosfs.8; utility has been added to check the consistency of MS-DOS filesystems. &merged; Catching up with most other network utilities in the base system, &man.lpr.1;, &man.lpd.8;, &man.syslogd.8;, and &man.logger.1; are now all IPv6-capable. &merged; libdisk can now do install-time configuration of the &arch; boot0 boot loader. &merged; The option to &man.rm.1; now displays the entire pathname of a file being removed. &man.lpr.1;, &man.lpq.1;, and &man.lpd.8; have received a few minor enhancements. &merged; &man.lpd.8; now takes two new options: will log all connection errors to &man.syslogd.8;, while will allow connections from non-reserved ports. &merged; &man.lpc.8; has been improved; lpc clean is now somewhat safer, and a new lpc tclean command has been added to check to see what files would be removed by lpc clean. &merged; If the first argument to &man.ancontrol.8; or &man.wicontrol.8; doesn't start with a -, it is assumed to be an interface. &man.rdist.1; has been retired from the base system, but is still available from &os; Ports Collection as net/44bsd-rdist. &man.ppp.8; has gained the tcpmssfixup option, which adjusts outgoing and incoming TCP SYN packets so that the maximum receive segment size is no larger than allowed by the interface MTU. &merged; &man.ppp.8; now supports IPv6. libcrypt and libdescrypt have been unified to provide a configurable password authentication hash library. Both the md5 and des hash methods are provided unless the des hash is specifically compiled out. &merged; &man.passwd.1; and &man.pw.8; now select the password hash algorithm at run time. See the passwd_format attribute in /etc/login.conf. &merged; In preparation for meeting SUSv2/POSIX <sys/select.h> requirements, struct selinfo and related functions have been moved to <sys/selinfo.h>. &man.syslogd.8; now supports a LOG_CONSOLE facility (disabled by default), which can be used to log /dev/console output. &merged; &man.rpcgen.1; now uses /usr/bin/cpp (as on NetBSD), not /usr/libexec/cpp. Boot-time &man.syscons.4; configuration was moved to a machine-independent /etc/rc.syscons. &merged; &man.burncd.8; now supports a option for multisession mode (the default behavior now is to close disks as single-session). A option to take a list of image files from a filename was also added; - can be used as a filename for stdin. &merged; &man.dmesg.8; now has a option to show the entire message buffer, including &man.syslogd.8; records and /dev/console output. &merged; &man.cdcontrol.1; now uses the CDROM environment variable to pick a default device. &merged; &man.cdcontrol.1; now supports next and prev commands to skip forwards or backwards a specified number of tracks while playing an audio CD. &merged; &man.sysctl.8; now supports a option to print out variable names only. &merged; &man.sysctl.8; has replaced the and options with and respectively; the former options are now deprecated. The option is deprecated as well; it is not needed to determine the user's intentions. &merged; &man.sysinstall.8; now lives in /usr/sbin, which simplifies the installation process. The &man.sysinstall.8; manpage is also installed in a more consistent fashion now. &man.config.8; is now better about converting various warnings that should have been errors into actual fatal errors with an exit code. This ensures that make buildkernel doesn't quietly ignore them and build a bogus kernel without a human to read the errors. &merged; libc is now thread-safe by default; libc_r contains only thread functions. &man.find.1; now takes the flag, which returns true if a file or directory is empty. &merged; &man.find.1; now takes the and primaries for case-insensitive matches, and the and primaries for regular-expression matches. The flag now enables extended regular expressions. &merged; &man.find.1; now has the , , , , and primaries for comparisons of file timestamps. &merged; &man.tftpd.8; now takes the and options, which allow the server to &man.chroot.2; based on the IP address of the connecting client. &man.tftp.1; and &man.tftpd.8; can now transfer files larger than 65535 blocks. &merged; &man.vidcontrol.1; now accepts a parameter to select custom text geometry in the VESA_800x600 raster text mode. &merged; &man.ldconfig.8; now checks directory ownerships and permissions for greater security; these checks can be disabled with the flag. &merged; The &man.rfork.thread.3; library call has been added as a helper function to &man.rfork.2;. Using this function should avoid the need to implement complex stack swap code. &merged; Significant additions have been made to internationalization support; &os; now has complete locale support for the LC_MONETARY, LC_NUMERIC, and LC_MESSAGES categories. A number of applications have been updated to take advantage of this support. Locale names have been changed to improve compatibility with the names used by X11R6, as well as a number of other UNIX versions. As an example, the en_US.ISO_8859-1 locale name has been changed to en_US.ISO8859-1. Entries in /etc/locale.alias provide backward compatibility. A compat4x distribution has been added for compatibility with &os; 4-STABLE. The compat3x distribution has been updated to include libraries present in &os; 3.5.1-RELEASE. &merged; &man.savecore.8; now supports a option to prevent clearing a crash dump after saving it. It also attempts to avoid writing large stretches of zeros to crash dump files to save space and time. &merged; &man.savecore.8; now works correctly on machines with 2 GB or more of RAM. &merged; &man.tar.1; now supports the TAR_RSH variable, principally to enable the use of &man.ssh.1; as a transport. &merged; &man.disklabel.8; now supports partition sizes expressed in kilobytes, megabytes, or gigabytes, in addition to sectors. &merged; The pseudo-random number generator implemented by &man.rand.3; has been improved to provide less biased results. &man.login.1; now exports environment variables set by PAM modules. &merged; PAM support has been added for account management and sessions. &man.su.1; now uses PAM for authentication. &man.wall.1; now supports a flag to write a message to all users of a given group. The new CPUTYPE make.conf variable controls the compilation of processor-specific optimizations in various pieces of code such as OpenSSL. &merged; The default value for &man.cvs.1;'s CVS_RSH variable is now ssh, rather than rsh. &merged; &man.ipfstat.8; now supports the option to turn on a &man.top.1;-like display. &merged; /usr/src/share/examples/BSD_daemon/ now contains a scalable Beastie graphic. &merged; &man.dump.8; now supports inheritance of the nodump flag down a hierarchy. &merged; The to &man.dump.8; no longer swallows an extra argument. &merged; &man.dump.8; has a new option, allowing the path to the /etc/dumpdates file to be changed. &merged; &man.split.1; now has the ability to split a file longer than 2GB. &merged; &man.tail.1; now has the ability to work on files longer than 2GB. &merged; &man.units.1; has received some updates and bugfixes. &merged; As part of an ongoing process, many manual pages were improved, both in terms of their formatting markup and in their content. &merged; lprm - now works for remote printer queues. &merged; &man.ftpd.8; now supports a flag for read-only mode and a flag to disable EPSV. It also has some fixes to reduce information leakage and the ability to specify compile-time port ranges. &merged; &man.ping.8; now supports a option to set the TTL of outgoing packets. &merged; &man.ping.8; now supports a option to beep when packets are lost. A version of Transport Independent RPC (TI-RPC) has been imported. &man.rpcbind.8; has replaced &man.portmap.8;. NFS now works over IPv6. &man.rpc.lockd.8; has been imported from NetBSD. This daemon enables locking on NFS filesystems. &man.rc.8; now has an framework for handling dependencies between &man.rc.conf.5; variables. &merged; &man.rc.8; now deletes all non-directory files in /var/run and /var/spool/lock at boot time. &merged; The &man.setfacl.1; and &man.getfacl.1; commands have been added to manage file system Access Control Lists. The default TCP port range used by libfetch for passive FTP retrievals has changed; this affects the behavior of &man.fetch.1;, which has gained the option to restore the old behavior. &merged; libfetch now has support for an authentication callback. libfetch now has support for a HTTP_USER_AGENT environment variable. &merged; &man.atacontrol.8; has been added to control various aspects of the &man.ata.4; driver. libcrypt now has support for Blowfish password hashing. &merged; The functions from libposix1e have been integrated into libc. &man.vidcontrol.1; now allows the user to omit the font size specification when loading a font, and has some better error-handling. &merged; &man.vidcontrol.1; now supports a option to take a snapshot of a &man.syscons.4; video buffer. These snapshots can be manipulated by the graphics/scr2png utility in the Ports Collection. &merged; &man.vidcontrol.1; now supports a option to clear the history buffer for a given tty, as well as a to set the size of the history buffer. &merged; devinfo, a simple tool to print the device tree and resource usage by devices, has been added. &man.fmtcheck.3;, a function for checking consistency of format string arguments, has been added. &merged; &man.nl.1;, a line numbering filter program, has been added. &man.c89.1; has been converted from a shell script to a binary executable, fixing some minor bugs. &merged; &man.pax.1; has received a number of enhancements, including &man.cpio.1; functionality, &man.tar.1; compatibility enhancements, and flags for &man.gzip.1; and &man.compress.1; functionality, and a number of bug fixes. Ukrainian language support has been added to the &os; console. &merged; The performance of the ELF dynamic linker &man.rtld.1; has been improved. &merged; &man.fdread.1;, a program to read data from floppy disks, has been added. It is a counterpart to &man.fdwrite.1; and is designed to provide a means of recovering at least some data from bad media, and to obviate for a complex invocation of &man.dd.1;. &man.xargs.1; now supports a replstr option that allows the user to tell &man.xargs.1; to insert the data read from standard input at a specific point in the command line arguments rather than at the end. &merged; &man.apmd.8; now has the ability to monitor battery levels and execute commands based on percentage or minutes of battery life remaining via the apm_battery configuration directive. See the commented out examples in /etc/apmd.conf for the syntax. &merged; &man.telnet.1; now does autologin and encryption by default; a new option turns off encryption. &man.telnet.1; now supports a flag to allow connections to UNIX-domain (AF_UNIX) sockets. &merged; The default stripe size in &man.vinum.8; has been changed from 256KB to 279KB, to spread out superblocks more evenly between stripes. &man.chown.8; now correctly follows symbolic links named as command line arguments if run without . &man.chown.8; no longer takes . as a user/group delimeter. This change was made to support usernames containing a .. &man.chmod.1; now supports a for changing the mode of a symbolic link. &man.install.1; has a number of new features, including the and options for backing up existing target files and the option for safe (atomic copy) operation. The (copy) flag is now the default, and the (debugging) flag has been withdrawn. &man.install.1; now issues a warning if (create directories) and (copy changed files only) are used together. &merged; &man.whois.1; now directs queries for IP addresses to ARIN. If a query to ARIN references APNIC or RIPE, the appropriate server will also be queried, provided that the option is not specified. &merged; A new utility &man.diskcheckd.8; has been added; it is a daemon which runs in the background, reading entire disks to find any read errors on those disks. Its behavior at startup time can be controlled by the diskcheckd_enable variable in &man.rc.conf.5;. &man.fmt.1; has been rewritten; the rewrite fixes a number of bugs compared to its prior behavior. &man.df.1; now takes a option to only display information about locally-mounted filesystems. &merged; The syntax of &man.inetd.8;'s support for &man.faithd.8; is now compatible with that of other BSDs. &merged; The ident protocol support in &man.inetd.8; has been cleaned up and updated. &merged; &man.inetd.8; now has the ability to manage UNIX-domain sockets. &merged; &man.du.1; now takes a command-line flag to ignore/skip files and subdirectories matching a specified shell-glob mask. &merged; The &man.resolver.3; in &os; now implements EDNS0 support, which will be necessary when working with IPv6 transport-ready resolvers/DNS servers. &merged; &man.col.1; now takes a to force unknown control sequences to be passed through unchanged. &merged; The &man.mdmfs.8; command has been added; it is a wrapper around &man.mdconfig.8;, &man.disklabel.8;, &man.newfs.8;, and &man.mount.8; that mimics the command line option set of the deprecated &man.mount.mfs.8;. The &man.getprogname.3; and &man.setprogname.3; library functions have been added to manipulate the name of the current program. They are used by error-reporting routines to produce consistent output. &merged; The &man.kldconfig.8; utility has been added to make it easier to manipulate the kernel module search path. &merged; &man.moused.8; now takes a option to control mouse acceleration. &merged; &man.fdisk.8; no longer attempts to search for a device if none has been specified on the command line, but instead tries to figure out the default device name from the root device. &man.mail.1; now takes a flag to avoid sending messages with empty bodies. &merged; &man.route.8; is now more verbose when changing indirect routes, in the case of a gateway route that is the same route as the one being modified. &man.route.8; now uses host/bits syntax instead of net/bits syntax, for compatibility with &man.netstat.1;. &man.route.8; can now create proxy only published ARP entries. &man.tmpnam.3; will now use the TMPDIR environment variable, if set, to specify the location of temporary files. &merged; &man.pppd.8; (the control program for kernel-level PPP) is now installed mode 4550 and root:dialer, rather than mode 4555 (in other words, it is no longer world-executable). Users of &man.pppd.8; may need to change their group settings. &merged; &man.ftpd.8; now supports an option to disable the RETR command. Coupled with and appropriate file permissions, this allows one to create a relatively safe anonymous FTP drop box for others to upload to. The &man.daemon.8; program, a command-line interface to &man.daemon.3;, has been added. It detaches itself from its controlling terminal and executes a program specified on the command line. This allows the user to run an arbitrary program as if it were written to be a daemon. Contributed Software bc has been updated from 1.04 to 1.06. &merged; The ISC library from the BIND distribution is now built as libisc. &merged; BIND is now built with the NOADDITIONAL flag, which causes &man.named.8; to operate in a more consistent fashion for certain common misconfigurations. &merged; BIND has been updated to 8.2.4-REL. &merged; Binutils have been updated to 2.11.2. &merged; bzip2 1.0.1 has been imported; this brings the &man.bzip2.1; program and the libbz2 library to the base system. &merged; cvs has been updated to 1.11.1p1. &merged; The &man.ee.1; Easy Editor has been updated to 1.4.2. &merged; file has been updated to 3.36. &merged; &man.awk.1;, in the form of gawk, has been updated from 3.0.4 to 3.0.6. This fixes a number of non-critical bugs and includes a few performance tweaks. &merged; gcc has been updated to 2.95.3. &merged; &man.gcc.1; now uses a unified libgcc rather than a separate one for threaded and non-threaded programs. /usr/lib/libgcc_r.a can be removed. &merged; &man.gcc.1; now supports the environment variable GCC_OPTIONS, which can hold a set of default options for GCC. &merged; GNATS has been updated to 3.113. &merged; gperf has been updated to 2.7.2. groff and its related utilities have been updated to FSF version 1.17.2. This import brings in a new &man.mdoc.7; macro package (sometimes referred to as mdocNG), which removes many of the limitations of its predecessor. &merged; Heimdal has been updated to 0.3f. The ISC DHCP client has been updated to 2.0pl5. &merged; Kerberos IV has been updated to 1.0.5. &merged; The &man.more.1; command has been replaced by &man.less.1;, although it can still be run as more. less has been imported at 3.5.8. &merged; libpcap has been updated to 0.6.2. &merged; libreadline has been updated to 4.2. Linux-PAM has been updated to 0.75. &merged; A number of new Linux-PAM modules have been added, including: pam_ftp, pam_krb5, pam_nologin, pam_rootok, pam_securetty, pam_wheel. ncurses has been updated to 5.2-20010512. The NTP suite of programs has been updated to 4.1.0. The OPIE one-time-password suite has been updated to 2.32. &merged; It has completely replaced the functionality of S/Key. Perl has been updated to version 5.6.0. &man.routed.8; has been updated to version 2.22. &merged; tcpdump has been updated to 3.6.3. &merged; The &man.csh.1; shell has been replaced by &man.tcsh.1;, although it can still be run as csh. tcsh has been updated to version 6.10. &merged; &man.traceroute.8; now takes its default maximum TTL value from the net.inet.ip.ttl sysctl variable. &merged; KAME The IPv6 stack is now based on a snapshot based on the KAME Project's IPv6 snapshot as of 28 May, 2001. Most of the items listed in this section are a result of this import. lists kernel updates to the KAME IPv6 stack. &merged; &man.faithd.8; now supports a configuration file for access control. &merged; &man.ifconfig.8; can now perform the functions of &man.gifconfig.8;. &merged; &man.ifconfig.8; can now perform the functions of &man.prefix.8;. &man.prefix.8; is now a shell script for partial backwards compatibility. &merged; &man.ndp.8; now implements garbage collection for stale NDP entries, as described in RFC 2461 (Neighbor Discovery for IP Version 6 (IPv6)). &merged; &man.pim6dd.8; and &man.pim6sd.8; have been removed due to restrictive licensing conditions. These programs are available in the ports collection as net/pim6dd and net/pim6sd. &merged; &man.route6d.8; now supports an flag to avoid updating the kernel forwarding table. &merged; The (router renumbering) option to &man.rtadvd.8; is currently ignored. &merged; OpenSSH OpenSSH has been updated to 2.1.0, which provides support for the SSH2 protocol, including DSA keys. Therefore, OpenSSH users in the US no longer need to rely on the restrictively-licensed RSAREF toolkit which is required to handle RSA keys. OpenSSH 2.1 interoperates well with other SSH2 clients and servers, including the ssh2 port. See the OpenSSH Web site for more details. &merged; OpenSSH can now authenticate using OPIE passwords in SSH1 mode. Support is not yet available in SSH2 mode. &merged; OpenSSH has been updated to 2.2.0. &man.ssh-add.1; and &man.ssh-agent.1; can now handle DSA keys. A server for sftp, interoperable with ssh.com clients and others has been added. &man.scp.1; can now handle files larger than 2 GBytes. Interoperability with other SSH2 clients/servers has been improved. A new feature to limit the number of outstanding unauthenticated ssh connections in &man.sshd.8; has been added. &merged; OpenSSH has been updated to 2.3.0. This version adds support for the Rijndael encryption algorithm. &merged; PAM support for OpenSSH has been added. A long-standing bug in OpenSSH, which sometimes resulted in a dropped session when an X11-forwarded client was closed, was fixed. Kerberos compatibility has been added to OpenSSH. &merged; OpenSSH has been modified to be more resistant to traffic analysis by requiring that non-echoed characters are still echoed back in a null packet, as well as by padding passwords sent so as not to hint at password lengths. &merged; &man.sshd.8; is now enabled by default on new installs. &merged; &man.sshd.8; X11Forwarding is now turned on by default on the server (any risk is to the client, where it is already disabled by default). &merged; In /etc/ssh/sshd_config, the ConnectionsPerPeriod parameter has been deprecated in favor of MaxStartups. &merged; OpenSSH now has a VersionAddendum configuration setting for &man.sshd.8; to allow changing the part of the OpenSSH version string after the main version number. OpenSSH has been updated to version 2.9, which adds two new programs, &man.sftp.1; and &man.ssh-keyscan.1;. Among the various enhancements: The default protocol is now v2, rekeying of existing SSH sessions is now supported, and an experimental SOCKS4 proxy has been added to &man.ssh.1;. OpenSSL OpenSSL has been updated to 0.9.6b. OpenSSL now has support for machine-dependent ASM optimizations, activated by the new MACHINE_CPU and/or CPUTYPE make.conf variables. &merged; sendmail sendmail has been updated from version 8.9.3 to version 8.11.6. Important changes include: new default file locations (see /usr/src/contrib/sendmail/cf/README); &man.newaliases.1; is limited to root and trusted users; STARTTLS encryption; and the MSA port (587) is turned on by default. See /usr/src/contrib/sendmail/RELEASE_NOTES for more information. &merged; &man.mail.local.8; is no longer installed as a SUID binary. If you are using a /etc/mail/sendmail.cf from the default sendmail.cf included with &os; any time after 3.1.0, you are fine. If you are using a hand-configured sendmail.cf and mail.local for delivery, check to make sure the F=S flag is set on the Mlocal line. Those with .mc files who need to add the flag can do so by adding the following line to their .mc file and regenerating the sendmail.cf file: MODIFY_MAILER_FLAGS(`LOCAL',`+S')dnl Note that FEATURE(`local_lmtp') already does this. &merged; The default /etc/mail/sendmail.cf disables the SMTP EXPN and VRFY commands. &merged; &man.vacation.1; has been updated to use the version included with sendmail. &merged; The sendmail configuration building tools are installed in /usr/share/sendmail/cf/. &merged; New make.conf options: SENDMAIL_MC and SENDMAIL_ADDITIONAL_MC. See - /etc/defaults/make.conf for more + /usr/share/examples/etc/make.conf for more information. &merged; /etc/mail/Makefile now supports: the new SENDMAIL_MC make.conf option; the ability to build .cf files from .mc files; generalized map rebuilding; rebuilding the aliases file; and the ability to stop, start, and restart sendmail. &merged; Ports/Packages Collection Version numbers of installed packages have a new (backward-compatible) syntax, which supports the PORTREVISION and PORTEPOCH variables in Ports Collection Makefiles. These changes help keep track of changes in the ports collection entries such as security patches or &os;-specific updates, which aren't reflected in the original, third-party software distributions. &man.pkg.version.1; can now compare these new-style version numbers. &merged; To improve performance and disk utilization, the ports skeletons in the &os; Ports Collection have been restructured. Installed ports and packages should not be affected. &merged; All packages and ports now contain an origin directive, which makes it easier for programs such as &man.pkg.version.1; to determine the directory from which a package was built. &merged; &man.pkg.update.1;, a utility to update installed packages and update their dependencies, has been added. &merged; &man.pkg.info.1; now supports globbing against names of installed packages. The option disables this behavior, and the option causes regular expression matching instead of shell globbing. &merged; &man.pkg.info.1; can now accept a flag for verifying an installed package against its recorded checksums (to see if it's been modified post-installation). Naturally, this mechanism is only as secure as the contents of /var/db/pkg if it's to be used for auditing purposes. &merged; &man.pkg.create.1; and &man.pkg.add.1; can now work with packages that have been compressed using &man.bzip2.1;. &man.pkg.add.1; will use the PACKAGEROOT environment variable to determine a mirror site for new packages. &merged; &man.pkg.create.1; now records dependencies in dependency order rather than in the order specified on the command line. This improves the functioning of pkg_add -r. &merged; &man.pkg.version.1; now has a version number comparison routine that corresponds to the Porters Handbook. It also has a option for testing address comparisons. &merged; &man.pkg.version.1; now takes a flag to limit its operation to ports/packages matching a given string. &merged; When requested to delete multiple packages, &man.pkg.delete.1; will now attempt to remove them in dependency order rather than the order specified on the command line. &merged; &man.pkg.delete.1; now can perform glob/regexp matching of package names. In addition, it supports a option for removing all packages and a option for &man.rm.1;-style interactive confirmation. &merged; &man.pkg.sign.1; and &man.pkg.check.1; have been added to digitally sign and verify the signatures on binary package files. &merged; BSDPAN, a collection of modules that provides tighter integration of Perl into the &os; Ports Collection, has been added. diff --git a/release/doc/en_US.ISO8859-1/relnotes/common/new.sgml b/release/doc/en_US.ISO8859-1/relnotes/common/new.sgml index c9c7f7b52d2c..59de202bae73 100644 --- a/release/doc/en_US.ISO8859-1/relnotes/common/new.sgml +++ b/release/doc/en_US.ISO8859-1/relnotes/common/new.sgml @@ -1,2149 +1,2149 @@ $FreeBSD$ What's New This section describes the most user-visible new or changed features in &os; since &release.prev;. All changes described here are unique to the &release.branch; branch unless specifically marked as &merged; features. Many additional changes were made to &os; that are not listed here for lack of space. For example, documentation was corrected and improved, minor bugs were fixed, insecure coding practices were audited and corrected, and source code was cleaned up. The release notes items are organized into three different sections. lists recent changes to the &os; kernel. Security fixes, including those pertaining to security advisories, are listed in . Finally, covers changes to &os; userland applications included in the base system. Kernel Changes The &man.kqueue.2; event notification facility was added to the &os; kernel. This is a new interface which is able to replace &man.poll.2;/&man.select.2;, offering improved performance, as well as the ability to report many different types of events. Support for monitoring changes in sockets, pipes, fifos, and files are present, as well as for signals and processes. &merged; Support for Intel's Wired for Management 2.0 (PXE) was added to the &os; boot loader. Due to API differences, the older PXE versions are not supported. This allow network booting using DHCP. &merged; The &os; boot loader now contains a workaround to support CDROM booting on certain IBM BIOSs that expect the first sector of the emulated floppy to contain a valid MS-DOS BPB that they can modify. &merged; Support for USB devices was added to the GENERIC kernel and to the installation programs to support USB devices out of the box. Note that SRM does not support USB devices at the moment, so you must still use an AT keyboard if you are not using a serial console. &merged; POSIX.1b Shared Memory Objects are now supported. The implementation uses regular files, but automatically enables the MAP_NOSYNC flag when they are &man.mmap.2;-ed. &merged; A driver for AGP hardware has been added. &merged; The kernel and modules have been moved to the directory /boot/kernel, so they can be easily manipulated together. The boot loader has been updated to make this change as seamless as possible. The i386 boot loader now has support for a nullconsole console type, for use on systems with neither a video console nor a serial port. &merged; Replaced the PQ_*CACHE options with a single PQ_CACHESIZE option to be set to the cache size in kilobytes. The old options are still supported for backwards compatibility. &merged; The NCPU, NAPIC, NBUS, and NINTR kernel configuration options, for configuring SMP kernels, have been removed. NCPU is now set to a maximum of 16, and the other, aforementioned options are now dynamic. &merged; &man.devfs.5;, which allows entries in the /dev directory to be built automatically and supports more flexible attachment of devices, has been largely reworked. &man.devfs.5; is now enabled by default and can be disabled by the NODEVFS kernel option. Preliminary Cardbus support under NEWCARD has been added. This code supports the TI113X, TI12XX, TI125X, Ricoh 5C46/5C47, Topic 95/97/100 and Cirrus Logic PD683X bridges. 16-bit PC Card support is not yet functional. Write combining for crashdumps has been implemented. This feature is useful when write caching is disabled on both SCSI and IDE disks, where large memory dumps could take up to an hour to complete. &merged; Extremely large swap areas (>67 GB) no longer panic the system. The &man.ichsmb.4; driver for the Intel 82801AA (ICH) SMBus controller and compatibles has been added. &merged; The &man.uscanner.4; driver for basic USB scanner support using SANE has been added. See the SANE home page for supported scanners. The HP ScanJet 4100C, 5200C and 6300C are known to be working. The umodem driver for USB modems has been added. Support is provided for the 3Com 5605 and Metricom Ricochet GS wireless USB modems. Support for threads under Linux emulation has been added. The pccard driver and &man.pccardc.8; now support multiple beep types upon card insertion and removal. &merged; A number of cleanups and enhancements have been applied to the PCI subsystem. /usr/share/misc/pci_vendors now contains a vendor/device database, which can be used by &man.pciconf.8;. The &man.spic.4; driver, which provides access to the jog dial device on some Sony laptops, has been added. PECOFF (Win32 Execution file format) support has been added. A VESA S3 linear framebuffer driver has been added. The buildkernel target now gets the name of the configuration(s) to build from the KERNCONF variable, not KERNEL. It is no longer required, in some cases, for a buildworld to precede a buildkernel. (The buildworld is still required when upgrading across major releases, across binutil updates and when &man.config.8; changes version.) &merged; The &man.random.4; device has been rewritten to use the Yarrow algorithm. It harvests entropy from a variety of interrupt sources, including the console devices, Ethernet and point-to-point network interfaces, and mass-storage devices. Entropy from the &man.random.4; device is now periodically saved to files in /var/db/entropy, as well as at shutdown time. The semantics of /dev/random have changed; it never blocks waiting for entropy bits but generates a stream of pseudo-random data and now behaves exactly as /dev/urandom. The &man.syscons.4; driver now supports keyboard-controlled pasting, by default bound to Shift-Insert. The &man.labpc.4; driver has been removed due to bitrot. A new kernel option, options REGRESSION, enables interfaces and functionality intended for use during correctness and regression testing. The USER_LDT kernel option is now activated by default. A new &man.ddb.4; command show pcpu lists some of the per-CPU data. A new digi driver has been added to support PCI Xr-based and ISA Xem Digiboard cards. A new &man.digictl.8; program is (mainly) used to re-initialise cards that have external port modules attached such as the PC/Xem. The dgm driver has been removed in favor of the digi driver. The O_DIRECT flag has been added to &man.open.2; and &man.fcntl.2;. Specifying this flag for open files will attempt to minimize the cache effects of reading and writing. &merged; OLDCARD and &man.pccardd.8; now support PCI cards. An &man.orm.4; device has been added to claim the option ROMs in the ISA memory I/O space, to prevent other drivers from mistakenly assigning addresses that conflict with these ROMs. &merged; The out-of-swap process termination code now begins killing processes earlier to avoid deadlocks; it now also takes into account the swap space used by processes when computing the process sizes. &merged; Linker sets are now self-contained; &man.gensetdefs.8; is unnecessary and has been removed. Numerous SMP-friendly changes have been made to the kernel's mbuf allocator. Network device cloning has been implemented, and the &man.gif.4; device has been modified to take advantage of it. Thus, instead of specifying how many &man.gif.4; interfaces are available in kernel configuration files, &man.ifconfig.8;'s option should be used when another device instance is desired. &merged; The kernel message buffer is now accessible by the (machine-independent) kern.msgbuf sysctl variable; &man.dmesg.8; no longer needs to be SGID kmem. Two new &man.ddb.4; commands, hwatch and dhwatch, have been introduced. Analogous to watch and dwatch, they install hardware watchpoints (as opposed to software watchpoints) if supported by the architecture. &merged; A &man.nmdm.4; null-modem terminal driver has been added. &merged; The maxusers kernel configuration parameter is now a boot-time tunable variable. The kernel parameters derived from maxusers are now also tunables and can be overridden at boot-time. The hz parameter is also now a tunable. &merged; It is now possible to hardwire kernel environment variables (such as tuneables) at compile-time using &man.config.8;'s ENV directive. Processor/Motherboard Support SMP support has been largely reworked, incorporating code from BSD/OS 5.0. One of the main features of SMPng (SMP Next Generation) is to allow more processes to run in kernel, without the need for spin locks that can dramatically reduce the efficiency of multiple processors. Interrupt handlers now have contexts associated with them that allow them to be blocked, which reduces the need to lock out interrupts. Support for the 80386 processor has been removed from the GENERIC kernel, as this code seriously pessimizes performance on other IA32 processors. The I386_CPU kernel option to support the 80386 processor is now mutually exclusive with support for other IA32 processors; this should slightly improve performance on the 80386 due to the elimination of runtime processor type checks. Custom kernels that will run on the 80386 can still be built by changing the cpu options in the kernel configuration file to only include I386_CPU. AlphaServer 1200 (Tincup) has been tested and works OK. Currently it does not want to boot from CD or floppy but a transplanted disk that was installed on another Alpha works well. &merged; The API UP1100 mainboard has been verified to work. The API CS20 1U high server has been verified to work. The DEC3000 series support has been removed from the mfsroot floppy image so that it fits on a 1.44 Mbyte floppy again. As the DEC3000 is currently only usable diskless this should not cause any problems. Support for AlphaServer 2100A (Lynx) has been added. Kernel code has been added that allows older generation Alpha CPUs (EV4 and EV5) to emulate instructions of the newer Alpha CPU generations. This enables the use of binary-only programs like Adobe Acrobat 4 on EV4 and EV5. SMP support for the Alpha is now operational. Detection for new processors, such as the FC-PGA2 Pentium III (Tualatin), Transmeta Crusoe, and Transmeta Crusoe LongRun, has been added. &merged; Support for the following hardware has been removed from the installation kernel to make it fit on a 1.44MB floppy again: Multia, NoName, PC64, EB64, Aspen Alpine, sa (SCSI tape), amr, parallel port support, vx (3c590, 3c595), pcn (AMD Am79C97x PCI 10/100), sf (Adaptec AIC-6915), sis (SiS 900/SiS 7016), ste (Sundance ST201 (D-Link DFE-550TX)), wb (Winbond W89C840F). Support for Streaming SIMD Extensions (SSE) has been introduced. The CPU_ENABLE_SSE kernel option controls whether support is compiled into the kernel. &merged; Network Interface Support Added support for PCI Ethernet adapters based on the National Semiconductor DP83815 chipset, including the NetGear FA311-TX and FA312-TX, in the form of the &man.sis.4; driver. The &man.tap.4; driver, a virtual Ethernet device driver for bridged configurations, has been added. &merged; The &man.ti.4; driver now supports the Alteon AceNIC 1000baseT Gigabit Ethernet and Netgear GA620T 1000baseT Gigabit cards. &merged; The &man.xl.4; driver now supports the 3Com 3C556 and 3C556B MiniPCI adapters used on some laptops. &merged; The &man.ed.4; driver is now supported. The &man.pcn.4; driver, which supports the AMD PCnet/FAST, PCnet/FAST+, PCnet/FAST III, PCnet/PRO, PCnet/Home, and HomePNA adapters, has been added. Although these cards are already supported by the &man.lnc.4; driver, the &man.pcn.4; driver runs these chips in 32-bit mode and uses the RX alignment feature to achieve zero-copy receive. This driver is also machine-independent, so it will work on both the i386 and Alpha platforms. The &man.lnc.4; driver is still needed to support non-PCI cards. &merged; Support for Fujitsu MB86960A/MB86965A based Ethernet PC-Cards is back. &merged; The snc driver for the National Semiconductor DP8393X (SONIC) Ethernet controller has been added. Currently, this driver is only used on the PC-98 architecture. &merged; The &man.an.4; driver for Cisco Aironet cards now supports Wired Equivalent Privacy (WEP) encryption, settable via &man.ancontrol.8;. &merged; The &man.an.4; driver now supports the Cisco Aironet 350 series of adaptors. &merged; The &man.el.4; driver can now be loaded as a module. The &man.ray.4; driver, which supports the Webgear Aviator wireless network cards, has been committed. The operation of &man.ray.4; interfaces can be modified by &man.raycontrol.8;. &merged; The &man.fpa.4; driver now supports Digital's DEFPA FDDI adaptors on the Alpha. Linksys Fast Ethernet PCCARD cards supported by the &man.ed.4; driver now require the addition of flag 0x80000 to their config line in &man.pccard.conf.5;. This flag is not optional. These Linksys cards will not be recognized without it. &merged; A bug in the &man.ed.4; driver that could cause panics with very short packets and BPF or bridging active has been fixed. &merged; The &man.ed.4; driver now has support for D-Link DL10022 chips, necessary for the NetGear FA-410TX and other cards. As a result, device miibus is required in kernel configurations using the &man.ed.4; driver. &merged; The &man.fxp.4; driver now requires a device miibus entry in the kernel configuration file. &merged; The &man.wx.4; driver now supports the Intel PRO1000-F and PRO1000-T (10/100/1000) adapters. &merged; Added the &man.nge.4; driver, which supports PCI Gigabit Ethernet adapters based on the National Semiconductor DP83820 and DP83821 Gigabit Ethernet controller chips, including the D-Link DGE-500T, SMC EZ Card 1000 (SMC9462TX), Asante FriendlyNet GigaNIC 1000TA and 1000TPC and Addtron AEG320T. This driver supports transmit and receive checksum offloading. &merged; The &man.lge.4; driver has been added to support the Level 1 LXT1001 NetCellerator Gigabit Ethernet controller chip. This device is used on some fiber optic GigE cards from SMC, D-Link and Addtron. Jumbograms and TCP/IP checksum offload on receive are supported, although hardware VLAN filtering is not. &merged; The &man.xl.4; driver now supports reception of VLAN tagged frames (on the Cyclone or newer chipsets). &merged; The &man.ti.4; driver correctly masks VLAN tags. &merged; The &man.txp.4; driver has been added to support NICs based on the 3Com 3XP Typhoon/Sidewinder (3CR990) chipset. &merged; Network Protocols &man.accept.filter.9;, a kernel feature to reduce overheads when accepting and reading new connections on listening sockets, has been added. &merged; The &man.ng.mppc.4; and &man.ng.bridge.4; node types have been added to the &man.netgraph.4; subsystem. The &man.ng.ether.4; node is now dynamically loadable. Miscellaneous bug fixes and enhancements have also been made. &merged; &man.netgraph.4; has received some updates and bugfixes. A new netgraph node type &man.ng.one2many.4; for multiplexing and demultiplexing packets over multiple links has been added. &merged; SLIP has been removed from the mfsroot floppy image. ICMP ECHO and TSTAMP replies are now rate limited. TCP RSTs generated due to packets sent to open and unopen ports are now limited by separate counters. Each rate limiting queue now has its own description. ICMP UNREACH_FILTER_PROHIB messages can now RST TCP connections in the SYN_SENT state if the correct sequence numbers are sent back, as controlled by the net.inet.tcp.icmp_may_rst sysctl. TCP has received some bug fixes for its delayed ACK behavior. &merged; TCP now supports the NewReno modification to the TCP Fast Recovery algorithm. This behavior can be controlled via the net.inet.tcp.newreno sysctl variable. &merged; TCP now uses a more aggressive timeout for initial SYN segments; this allows initial connection attempts to be dropped much faster. &merged; The TCP_COMPAT_42 kernel option has been removed. The TCP_RESTRICT_RST kernel option has been removed. Similar functionality can be achieved with the net.inet.tcp.blackhole sysctl variable. &merged; TCP now has RFC 1323 extensions enabled by default in &man.rc.conf.5;. &merged; RFC 1323 and RFC 1644 TCP extensions are now disabled for a connection in progress if no response has been received by the third SYN segment sent. This behavior tries to work around (very old) terminal servers with buggy VJ header compression implementations. &merged; The TCP implementation no longer requires the allocation of a TCP template structure for each connection; this should reduce the buffer usage on large systems handling many connections. &merged; TCP's default buffer sizes, controlled by the net.inet.tcp.sendspace and net.inet.tcp.recvspace sysctl variables, have been increased to 32K and 64K respectively. TCP now supports RFC 1948 (Defending Against Sequence Number Attacks). This functionality is controlled by the net.inet.tcp.strict_rfc1948 and net.inet.tcp.isn_reseed_interval sysctl variables. &merged; A new sysctl net.inet.ip.check_interface, which is on by default, causes IP to verify that an incoming packet arrives on an interface that has an address matching the packet's destination address. &merged; A new sysctl net.link.ether.inet.log_arp_wrong_iface has been added to control the suppression of logging when ARP replies arrive on the wrong interface. &merged; The proxy modifier to &man.arp.8;'s option has been renamed to pub, for consistency with the option. The only keyword has been added to the and flags, to be used in creating proxy-only published entries. &man.ipfw.4; now filters correctly in the presence of ECN bits in TCP segments. &merged; &man.ipfw.8; will now avoid the display of dynamic firewall rules unless the flag is passed to it. The lists expired dynamic rules. &man.bridge.4; and &man.dummynet.4; have received some enhancements and bug fixes. &man.ipfw.8; has a new feature (me) that allows for packet matching on interfaces with dynamically-changing IP addresses. &merged; &man.ip6fw.8; now has the ability to use a preprocessor and use the (quiet) flag when reading from a file. &merged; A new options RANDOM_IP_ID kernel option causes the ID field of IP packets to be randomized. This closes a minor information leak which allows a remote observer to determine the rate at which the machine is generating packets, since the default behavior is to increment a counter for each packet sent. &merged; IP multicast now works on VLAN devices. Several other bugs in the VLAN code have also been fixed. Disks and Storage The &man.asr.4; driver now supports the Adaptec 2000S and 2005S Zero-Channel RAID controllers. &merged; The &man.aac.4; driver now supports the Adaptec SCSI RAID 5400S controller. &merged; The &man.twe.4; 3ware ATA RAID driver has added. &merged; The &man.ata.4; driver now has support for ATA100 controllers. In addition, it now supports the ServerWorks ROSB4 ATA33 chipset, the CMD 648 ATA66 and CMD 649 ATA100 chipsets, and the Cyrix 5530. &merged; To provide more flexible configuration, the various options for the &man.ata.4; driver are now boot loader tunables, rather than kernel configure-time options. &merged; The &man.ata.4; driver now has support for tagged queuing, which is enabled by the hw.ata.tags loader tunable. &merged; The &man.ata.4; driver now has support for ATA pseudo RAID controllers as the Promise Fasttrak and HighPoint HPT370 controllers. &merged; The &man.wd.4; compatibility devices were removed from the &man.ata.4; driver. &merged; The &man.mly.4; driver, for Mylex PCI to SCSI AccelRAID and eXtremeRAID controllers with firmware 6.X and later, has been added. &merged; The &man.asr.4; driver, which provides support for the Adaptec SCSI RAID controller family, as well as the DPT SmartRAID V and VI families, has been added. &merged; Support for the Adaptec FSA family of PCI-SCSI RAID controllers has been added, in the form of the &man.aac.4; driver. &merged; The &man.ahc.4; driver has received numerous updates, bugfixes, and enhancements. Among various improvements are improved compatibility with chips in RAID Port mode and systems with AAA and/or ARO cards installed, as well as performance improvements. Some bugs were also fixed, including a rare hang on Ultra2/U160 controllers. &merged; The ncv, nsp, and stg drivers have been ported from NetBSD/pc98. They support the NCR 53C50 / Workbit Ninja SCSI-3 / TMC 18C30, 18C50 based PC-Card/ISA SCSI controllers. &merged; The &man.cd.4; driver now has support for write operations. This allows writing to DVD-RAM, PD and similar drives that probe as CD devices. Note that change affects only random-access writeable devices, not sequential-only writeable devices such as CD-R drives, which are supported by &man.cdrecord.1; (a part of sysutils/cdrtools in the Ports Collection. &merged; The &man.vinum.4; volume manager has received some bug fixes and enhancements. &man.md.4;, the memory disk device, has had the functionality of &man.vn.4; incorporated into it. &man.md.4; devices can now be configured by &man.mdconfig.8;. &man.vn.4; has been removed. The Memory Filesystem (MFS) has also been removed. The BurnProof(TM) feature, for applicable ATAPI CD-ROM burners, is now supported. &merged; A bug that made certain CDROM drives fail to attach when connected to a SCSI card driven by &man.isp.4; has been fixed. &merged; The &man.isp.4; driver is now proactive about discovering Fibre Channel topology changes. The &man.isp.4; driver now supports target mode for Qlogic SCSI cards, including Ultra2 and Ultra3 and dual bus cards. The ida disk driver now has crashdump support. &merged; The CAM error recovery code has been updated. Some problems in &man.sa.4; error handling have been fixed, including the tape drive spinning indefinitely upon &man.mt.1; problem. Filesystems Support for named extended attributes was added to the &os; kernel. This allows the kernel, and appropriately privileged userland processes, to tag files and directories with attribute data. Extended attributes were added to support the TrustedBSD Project, in particular ACLs, capability data, and mandatory access control labels (see /usr/src/sys/ufs/ufs/README.extattr for details). Due to a licensing change, softupdates have been integrated into the main portion of the kernel source tree. As a consequence, softupdates are now available with the GENERIC kernel. &merged; A filesystem snapshot capability has been added to FFS. Details can be found in /usr/src/sys/ufs/ffs/README.snapshot. Softupdates for FFS have received some bug fixes and enhancements. When running with softupdates, &man.statfs.2; and &man.df.1; will track the number of blocks and files that are committed to being freed. A bug in FFS that could cause superblock corruption on very large filesystems has been corrected. &merged; The Inode Filesystem (IFS) has been added; more information can be found in /usr/src/sys/ufs/ifs/README. The ISO-9660 filesystem now has a hook that supports a loadable character conversion routine. The sysutils/cd9660_unicode port contains a set of common conversions. &man.kernfs.5; is obsolete and has been retired. A bug in the NFS client that caused bogus access times with O_EXCL|O_CREAT opens was fixed. &merged; A new NFS hash function (based on the Fowler/Noll/Vo hash algorithm) has been implemented to improve NFS performance by increasing the efficiency of the nfsnode hash tables. &merged; Client-side NFS locks have been implemented. Support for file system Access Control Lists (ACLs) has been introduced, allowing more fine-grained control of discretionary access control on files and directories. This support was integrated from the TrustedBSD Project. More details can be found in /usr/src/sys/ufs/ufs/README.acls. The directory layout preference algorithm for FFS has been changed to improve its speed on large filesystems. smbfs (CIFS) support in kernel has been added. The corresponding userland filesystem mount utility can be found in the net/smbfs port in the &os; Ports Collection. &merged; For consistency, the fdesc, fifo, null, msdos, portal, umap, and union filesystems have been renamed to fdescfs, fifofs, msdosfs, nullfs, portalfs, umapfs, and unionfs. Where applicable, modules and mount_* programs have been renamed. Compatibility glue has been added to &man.mount.8; so that msdos filesystem entries in &man.fstab.5; will work without changes. pseudofs, a pseudo-filesystem framework, has been added. &man.linprocfs.5; has been modified to use pseudofs. A simple hash-based lookup optimization for large directories called dirhash has been added. Conditional on the UFS_DIRHASH kernel option, it improves the speed of operations on very large directories at the expense of some memory. &merged; Multimedia Support The &man.pcm.4; driver now supports the ESS Solo 1, Maestro-1, Maestro-2, and Maestro-2e; Forte Media fm801, ESS Maestro-2e, and VIA Technologies VT82C686A sound card/chipsets, and has received some other updates. Separate drivers for the SoundBlaster 8 and SoundBlaster 16 now replace an older, unified driver. A driver for the CMedia CMI8338/CMI8738 sound chips has been added. A driver for the CS4281 sound chip has been added. A driver for the S3 SonicVibes chipset has been added. &merged; A driver for the Advance Logic ALS4000 has been added. &merged; A driver for the ESS Maestro-3/Allegro has been added, however due to licensing restrictions, it cannot be compiled into the kernel. &merged; To use this driver, add the following line to /boot/loader.conf: snd_maestro3_load="YES" The &man.bktr.4; driver has been updated to 2.18. This update provides a number of new features. New tuner types have been added, and improvements to the KLD module and to memory allocation have been made. Bugs in &man.devfs.5; when unloading and reloading have been fixed. Support for new Hauppauge Model 44xxx WinTV Cards (the ones with no audio mux) has been added. When sound modules are built, one can now load all the drivers and infrastructure by kldload snd. A new API has been added for sound cards with hardware volume control. A driver for the Intel 443MX, 810, 815, and 815E integrated sound devices has been added. Contributed Software IPFilter has been updated to 3.4.20. &merged; The Forth Inspired Command Language (FICL) used in the boot loader has been updated to 2.05. ACPI support has been merged in from the Intel ACPI project, and updated to the ACPI CA 20010816 release. isdn4bsd isdn4bsd has been updated to version 1.0.1. As a result of this update, users of the &man.i4bisppp.4; (kernel PPP over ISDN) driver must now use &man.ispppcontrol.8; instead of &man.spppcontrol.8; to configure and control these network interfaces. &merged; The &man.ihfc.4; driver for supporting Cologne Chip Designs HFC devices under isdn4bsd has been added. &merged; The &man.itjc.4; driver for supporting NETjet-S / Teles PCI-TJ devices under isdn4bsd has been added. &merged; Experimental support for the Eicon.Diehl DIVA 2.0 and 2.02 ISA PnP ISDN cards has been added to the &man.isic.4; isdn4bsd driver. &merged; Active CAPI-based ISDN cards manufacured by AVM are now supported using the &man.i4bcapi.4; and the &man.iavc.4; driver. The supported cards are the AVM B1 PCI and AVM B1 ISA Basic Rate cards and the AVM T1 Primary Rate cards. &merged; A new maxconnecttime keyword is now accepted in &man.isdnd.rc.5; files to limit the time a connection may remain open. &merged; KAME The IPv6 stack is now based on a snapshot based on the KAME Project's IPv6 snapshot as of 28 May, 2001. Most of the items listed in this section are a result of this import. lists userland updates to the KAME IPv6 stack. &merged; &man.gif.4; is now based on RFC 2893, rather than RFC 1933. The IFF_LINK2 interface flag can be used to control ingress filtering. &merged; IPSec has received some enhancements, including the ability to use the Rijndael and SHA2 algorithms. IPSec RC5 support has been removed due to patent issues. &merged; &man.stf.4; now conforms to RFC 3056; the IFF_LINK2 interface flag can be used to control ingress filtering. &merged; IPv6 has better checking of illegal addresses (such as loopback addresses) on physical networks. &merged; The IPV6_V6ONLY socket option is now completely supported. The kernel's default behavior with respect to this option is controlled by the net.inet6.ip6.v6only sysctl variable. &merged; RFC 3041 (Privacy Extensions for Stateless Address Autoconfiguration) is now supported. It can be enabled via the net.inet6.ip6.use_tempaddr sysctl variable. &merged; Security-Related Changes &man.sysinstall.8; now allows the user to select one of two security profiles at install-time. These profiles enable different levels of system security by enabling or disabling various system services in &man.rc.conf.5; on new installs. &merged; A bug in which malformed ELF executable images can hang the system has been fixed (see security advisory FreeBSD-SA-00:41). &merged; A security hole in Linux emulation was fixed (see security advisory FreeBSD-SA-00:42). &merged; String-handling library calls in many programs were fixed to reduce the possibility of buffer overflow-related exploits. &merged; TCP now uses stronger randomness in choosing its initial sequence numbers (see security advisory FreeBSD-SA-00:52). &merged; Several buffer overflows in &man.tcpdump.1; were corrected (see security advisory FreeBSD-SA-00:61). &merged; A security hole in &man.top.1; was corrected (see security advisory FreeBSD-SA-00:62). &merged; A potential security hole caused by an off-by-one-error in &man.gethostbyname.3; has been fixed (see security advisory FreeBSD-SA-00:63). &merged; A potential buffer overflow in the &man.ncurses.3; library, which could cause arbitrary code to be run from within &man.systat.1;, has been corrected (see security advisory FreeBSD-SA-00:68). &merged; A vulnerability in &man.telnetd.8; that could cause it to consume large amounts of server resources has been fixed (see security advisory FreeBSD-SA-00:69). &merged; The nat deny_incoming command in &man.ppp.8; now works correctly (see security advisory FreeBSD-SA-00:70). &merged; A vulnerability in &man.csh.1;/&man.tcsh.1; temporary files that could allow overwriting of arbitrary user-writable files has been closed (see security advisory FreeBSD-SA-00:76). &merged; The &man.ssh.1; binary is no longer SUID root by default. &merged; Some fixes were applied to the Kerberos IV implementation related to environment variables, a possible buffer overrun, and overwriting ticket files. &merged; &man.telnet.1; now does a better job of sanitizing its environment. &merged; Several vulnerabilities in &man.procfs.5; were fixed (see security advisory FreeBSD-SA-00:77). &merged; A bug in OpenSSH in which a server was unable to disable &man.ssh-agent.1; or X11Forwarding was fixed (see security advisory FreeBSD-SA-01:01). &merged; A bug in &man.ipfw.8; and &man.ip6fw.8; in which inbound TCP segments could incorrectly be treated as being part of an established connection has been fixed (see security advisory FreeBSD-SA-01:08). &merged; A bug in &man.crontab.1; that could allow users to read any file on the system in valid &man.crontab.5; syntax has been fixed (see security advisory FreeBSD-SA-01:09). &merged; A vulnerability in &man.inetd.8; that could allow read-access to the initial 16 bytes of wheel-accessible files has been fixed (see security advisory FreeBSD-SA-01:11). &merged; A bug in &man.periodic.8; that used insecure temporary files has been corrected (see security advisory FreeBSD-SA-01:12). &merged; A bug in &man.sort.1; in which an attacker might be able to cause it to abort processing has been fixed (see security advisory FreeBSD-SA-01:13). &merged; OpenSSH now has code to prevent (instead of just mitigating through connection limits) an attack that can lead to guessing the server key (not host key) by regenerating the server key when an RSA failure is detected (see security advisory FreeBSD-SA-01:24). &merged; A number of programs have had output formatting strings corrected so as to reduce the risk of vulnerabilities. &merged; A number of programs that use temporary files now do so more securely. &merged; A bug in ICMP that could cause an attacker to disrupt TCP and UDP sessions has been corrected. &merged; A bug in &man.timed.8;, which caused it to crash if send certain malformed packets, has been corrected (see security advisory FreeBSD-SA-01:28). &merged; A bug in &man.rwhod.8;, which caused it to crash if send certain malformed packets, has been corrected (see security advisory FreeBSD-SA-01:29). &merged; A security hole in &os;'s FFS and EXT2FS implementations, which allowed a race condition that could cause users to have unauthorized access to data, has been fixed (see security advisory FreeBSD-SA-01:30). &merged; A remotely-exploitable vulnerability in &man.ntpd.8; has been closed (see security advisory FreeBSD-SA-01:31). &merged; A security hole in IPFilter's fragment cache has been closed (see security advisory FreeBSD-SA-01:32). &merged; Buffer overflows in &man.glob.3;, which could cause arbitrary code to be run on an FTP server, have been closed. In addition, to prevent some forms of DOS attacks, &man.glob.3; allows specification of a limit on the number of pathname matches it will return. &man.ftpd.8; now uses this feature (see security advisory FreeBSD-SA-01:33). &merged; Initial sequence numbers in TCP are more thoroughly randomized (see security advisory FreeBSD-SA-01:39). Due to some possible compatibility issues, the behavior of this security fix can be enabled or disabled via the net.inet.tcp.tcp_seq_genscheme sysctl variable.&merged; A vulnerability in the &man.fts.3; routines (used by applications for recursively traversing a filesystem) could allow a program to operate on files outside the intended directory hierarchy. This bug has been fixed (see security advisory FreeBSD-SA-01:40). &merged; &os;'s TCP implementation has been made more resistant to SYN floods, by eliminating the RST segment normally sent when removing a connection from the listen queue. OpenSSH now switches to the user's UID before attempting to unlink the authentication forwarding file, nullifying the effects of a race. A flaw allowed some signal handlers to remain in effect in a child process after being exec-ed from its parent. This allowed an attacker to execute arbitrary code in the context of a setuid binary. This flaw has been corrected (see security advisory FreeBSD-SA-01:42). &merged; A remote buffer overflow in &man.tcpdump.1; has been fixed (see security advisory FreeBSD-SA-01:48). &merged; A remote buffer overflow in &man.telnetd.8; has been fixed (see security advisory FreeBSD-SA-01:49). &merged; The new net.inet.ip.maxfragpackets and net.inet.ip6.maxfragpackets sysctl variables limit the amount of memory that can be consumed by IPv4 and IPv6 packet fragments, which defends against some denial of service attacks (see security advisory FreeBSD-SA-01:52). &merged; All services in inetd.conf are now disabled by default for new installations. &man.sysinstall.8; gives the option of enabling or disabling &man.inetd.8; on new installations, as well as editing inetd.conf. &merged; A flaw in the implementation of the &man.ipfw.8; me rules on point-to-point links has been corrected. Formerly, me filter rules would match the remote IP address of a point-to-point interface in addition to the intended local IP address (see security advisory FreeBSD-SA-01:53). &merged; A vulnerability in &man.procfs.5;, which could allow a process to read sensitive information from another process's memory space, has been closed (see security advisory FreeBSD-SA-01:55). &merged; The PARANOID hostname checking in tcp_wrappers now works as advertised (see security advisory FreeBSD-SA-01:56). &merged; A local root exploit in &man.sendmail.8; has been closed (see security advisory FreeBSD-SA-01:57). &merged; A remote root vulnerability in &man.lpd.8; has been closed (see security advisory FreeBSD-SA-01:58). &merged; Userland Changes &man.cdcontrol.1; now supports a cdid command, which calculates and displays the CD serial number, using the same algorithm used by the CDDB database. &merged; &man.mtree.8; now includes support for a file that lists pathnames to be excluded when creating and verifying prototypes. This makes it easier to use &man.mtree.8; as a part of an intrusion-detection system. &merged; &man.ls.1; can produce colorized listings with the flag (and appropriate terminal support). The CLICOLOR environment variable can be set to enable colorized listings by default. &merged; &man.sysinstall.8; now properly preserves /etc/mail during a binary upgrade. &merged; The &man.truncate.1; utility, which truncates or extends the length of files, has been added. &merged; &man.syslogd.8; can take a option to disable DNS queries for every request. &merged; &man.kenv.1;, a command to dump the kernel environment, has been added. &merged; The behavior of &man.periodic.8; is now controlled by /etc/defaults/periodic.conf and /etc/periodic.conf. &merged; &man.boot98cfg.8;, a PC-98 boot manager installation and configuration utility, has been added. &merged; &man.logger.1; can now send messages directly to a remote syslog. &merged; &man.gdb.1; now supports hardware watchpoints (using the kernel's debug register + support that has been introduced in &os; 4.0). &merged; &man.which.1; is now a C program, rather than a Perl script. &man.killall.1; is now a C program, rather than a Perl script. As a result, its option now uses the regular expression syntax of &man.regex.3;, rather than that of &man.perl.1;. &merged; &man.killall.1; now allows non-root users to kill SUID root processes that they started, the same as the Perl version did. &man.finger.1; now has the ability to support fingering aliases, via the &man.finger.conf.5; file. &merged; &man.finger.1; now has support for a .pubkey file. nsswitch support has been merged from NetBSD. By creating an &man.nsswitch.conf.5; file, &os; can be configured so that various databases such as &man.passwd.5; and &man.group.5; can be looked up using flat files, NIS, or Hesiod. The old hosts.conf file is no longer used. RSA Security has waived all patent rights to the RSA algorithm. As a result, the native OpenSSL implementation of the RSA algorithm is now activated by default, and the security/rsaref port and the librsaUSA and librsaINTL libraries are no longer required for USA and non-USA residents respectively. &merged; &man.ifconfig.8; command can set the link-layer address of an interface using the parameter. &merged; &man.ifconfig.8; can now accept addresses in slash/CIDR notation. &merged; &man.ifconfig.8; now has support for setting parameters for IEEE 802.11 wireless network devices. &man.wi.4; and &man.an.4; devices are supported, and partial support is provided for &man.awi.4; devices. &merged; &man.ifconfig.8; no longer displays the list of supported media by default. Instead it displays it when the is given. &merged; &man.setproctitle.3; has been moved from libutil to libc. &merged; &man.chio.1; now has the ability to specify elements by volume tag instead of by their physical location as well as the ability to return an element to its previous location. &merged; &man.sed.1; now takes a option for extended regular expression support. &merged; &man.ln.1; now takes an option to request user confirmation before overwriting an existing file. &merged; &man.ln.1; now takes a flag to avoid following a target that is a link, with a flag for compatibility with other implementations. &merged; Userland &man.ppp.8; has received a number of updates and bug fixes. &merged; &man.make.1; has gained the :C/// (regular expression substitution), :L (lowercase), and :U (uppercase) variable modifiers. These were added to reduce the differences between the &os; and OpenBSD/NetBSD &man.make.1; programs. &merged; Bugs in &man.make.1;, among which include broken null suffix behavior, bad assumptions about current directory permissions, and potential buffer overflows, have been fixed. &merged; The &os; Makefile infrastructure now supports the WARNS directive from NetBSD. This directive controls the addition of compiler warning flags to CFLAGS in a relatively compiler-neutral manner. &merged; &man.fsck.8; wrappers have been imported; this feature provides infrastructure for &man.fsck.8; to work on different types of filesystems (analogous to &man.mount.8;). The behavior of &man.fsck.8; when dealing with various passes (a la /etc/fstab) has been modified to accomodate multiple-disk filesystems. &man.style.perl.7;, a style guide for Perl code in the &os; base system, has been added. The in use percentage metric displayed by &man.netstat.1; now really reflects the percentage of network mbufs used. &merged; &man.netstat.1; now has a flag that tells it not to truncate addresses, even if they're too long for the column they're printed in. &merged; &man.netstat.1; now keeps track of input and output packets on a per-address basis for each interface. &merged; &man.netstat.1; now has a flag to reset statistics. &man.sockstat.1; now has and flags for listing connected and listening sockets, respectively. &merged; &man.mergemaster.8; has gained some new features, has been cleaned up somewhat, and is now more cross-platform friendly. &man.mergemaster.8; now sources an /etc/mergemaster.rc file and also prompts the user to run recommended commands (such as newaliases) as needed. &merged; The compiler chain now uses the FSF-supplied C/C++ runtime initialization code. This change brings about better compatibility with code generated from the various egcs and gcc ports, as well as the stock public FSF source. &merged; The threads library has gained some signal handling changes, bug fixes, and performance enhancements (including zero system call thread switching). &man.gdb.1; thread support has been updated to match these changes. &merged; &man.chflags.1; has moved from /usr/bin to /bin. Use of the CSMG_* macros no longer require inclusion of <sys/param.h> IP Filter is now supported by the &man.rc.conf.5; boot-time configuration and initialization. &merged; The &man.lastlogin.8; utility, which prints the last login time of each user, has been imported from NetBSD. &merged; &man.last.1; now implements a that provides a snapshot of who was logged in at a particular date and time. &merged; &man.newfs.8; now implements write combining, which can make creation of new filesystems up to seven times faster. &merged; &man.newfs.8; now takes a option to enable softupdates on a new filesystem. &merged; The default number of cylinders per group in &man.newfs.8; is now 22, up from 16. A number of buffer overflows in &man.config.8; have been fixed. &merged; &man.pwd.1; can now double as &man.realpath.1;, a program to resolve pathnames to their underlying physical paths. &merged; &man.stty.1; now has support for an erase2 control character, so that, for example, both the Delete and Backspace keys can be used to erase characters. &merged; The &man.ibcs2.8;, &man.linux.8;, &man.osf1.8;, and &man.svr4.8; scripts, whose sole purpose was to load emulation kernel modules, have been removed. The kernel module system will automatically load them as needed to fulfill dependencies. &man.top.1; will now use the full width of its tty. &man.growfs.8;, a utility for growing FFS filesystems, has been added. &man.ffsinfo.8;, a utility for dump all the meta-information of an existing filesystem, has also been added. &merged; &man.indent.1; has gained some new formatting options. &merged; &man.sysinstall.8; now uses some more intuitive defaults thanks to some new dialog support functions. &merged; The default root partition in &man.sysinstall.8; is now 100MB on the i386 and 120MB on the Alpha. Shortly after the receipt of a SIGINFO signal (normally control-T from the controlling tty), &man.fsck.ffs.8; will now output a line indicating the current phase number and progress information relevant to the current phase. &merged; &man.fsck.ffs.8; now supports background filesystem checks to mounted FFS filesystems with the option (softupdates must be enabled on these filesystems). The flag now determines whether a specified filesystem needs foreground checking. &man.fsck.8; now has support for foreground () and background () checks. Traditionally, &man.fsck.8; is invoked before the filesystems are mounted and all checks are done to completion at that time. If background checking is available, &man.fsck.8; is invoked twice. It is first invoked at the traditional time, before the filesystems are mounted, with the flag to do checking on all the filesystems that cannot do background checking. It is then invoked a second time, after the system has completed going multiuser, with the flag to do checking on all the filesystems that can do background checking. Unlike the foreground checking, the background checking is started asynchronously so that other system activity can proceed even on the filesystems that are being checked. Boot-time enabling of this feature is controlled by the background_fsck option in &man.rc.conf.5;. A new &man.fsck.msdosfs.8; utility has been added to check the consistency of MS-DOS filesystems. &merged; Catching up with most other network utilities in the base system, &man.lpr.1;, &man.lpd.8;, &man.syslogd.8;, and &man.logger.1; are now all IPv6-capable. &merged; libdisk can now do install-time configuration of the &arch; boot0 boot loader. &merged; The option to &man.rm.1; now displays the entire pathname of a file being removed. &man.lpr.1;, &man.lpq.1;, and &man.lpd.8; have received a few minor enhancements. &merged; &man.lpd.8; now takes two new options: will log all connection errors to &man.syslogd.8;, while will allow connections from non-reserved ports. &merged; &man.lpc.8; has been improved; lpc clean is now somewhat safer, and a new lpc tclean command has been added to check to see what files would be removed by lpc clean. &merged; If the first argument to &man.ancontrol.8; or &man.wicontrol.8; doesn't start with a -, it is assumed to be an interface. &man.rdist.1; has been retired from the base system, but is still available from &os; Ports Collection as net/44bsd-rdist. &man.ppp.8; has gained the tcpmssfixup option, which adjusts outgoing and incoming TCP SYN packets so that the maximum receive segment size is no larger than allowed by the interface MTU. &merged; &man.ppp.8; now supports IPv6. libcrypt and libdescrypt have been unified to provide a configurable password authentication hash library. Both the md5 and des hash methods are provided unless the des hash is specifically compiled out. &merged; &man.passwd.1; and &man.pw.8; now select the password hash algorithm at run time. See the passwd_format attribute in /etc/login.conf. &merged; In preparation for meeting SUSv2/POSIX <sys/select.h> requirements, struct selinfo and related functions have been moved to <sys/selinfo.h>. &man.syslogd.8; now supports a LOG_CONSOLE facility (disabled by default), which can be used to log /dev/console output. &merged; &man.rpcgen.1; now uses /usr/bin/cpp (as on NetBSD), not /usr/libexec/cpp. Boot-time &man.syscons.4; configuration was moved to a machine-independent /etc/rc.syscons. &merged; &man.burncd.8; now supports a option for multisession mode (the default behavior now is to close disks as single-session). A option to take a list of image files from a filename was also added; - can be used as a filename for stdin. &merged; &man.dmesg.8; now has a option to show the entire message buffer, including &man.syslogd.8; records and /dev/console output. &merged; &man.cdcontrol.1; now uses the CDROM environment variable to pick a default device. &merged; &man.cdcontrol.1; now supports next and prev commands to skip forwards or backwards a specified number of tracks while playing an audio CD. &merged; &man.sysctl.8; now supports a option to print out variable names only. &merged; &man.sysctl.8; has replaced the and options with and respectively; the former options are now deprecated. The option is deprecated as well; it is not needed to determine the user's intentions. &merged; &man.sysinstall.8; now lives in /usr/sbin, which simplifies the installation process. The &man.sysinstall.8; manpage is also installed in a more consistent fashion now. &man.config.8; is now better about converting various warnings that should have been errors into actual fatal errors with an exit code. This ensures that make buildkernel doesn't quietly ignore them and build a bogus kernel without a human to read the errors. &merged; libc is now thread-safe by default; libc_r contains only thread functions. &man.find.1; now takes the flag, which returns true if a file or directory is empty. &merged; &man.find.1; now takes the and primaries for case-insensitive matches, and the and primaries for regular-expression matches. The flag now enables extended regular expressions. &merged; &man.find.1; now has the , , , , and primaries for comparisons of file timestamps. &merged; &man.tftpd.8; now takes the and options, which allow the server to &man.chroot.2; based on the IP address of the connecting client. &man.tftp.1; and &man.tftpd.8; can now transfer files larger than 65535 blocks. &merged; &man.vidcontrol.1; now accepts a parameter to select custom text geometry in the VESA_800x600 raster text mode. &merged; &man.ldconfig.8; now checks directory ownerships and permissions for greater security; these checks can be disabled with the flag. &merged; The &man.rfork.thread.3; library call has been added as a helper function to &man.rfork.2;. Using this function should avoid the need to implement complex stack swap code. &merged; Significant additions have been made to internationalization support; &os; now has complete locale support for the LC_MONETARY, LC_NUMERIC, and LC_MESSAGES categories. A number of applications have been updated to take advantage of this support. Locale names have been changed to improve compatibility with the names used by X11R6, as well as a number of other UNIX versions. As an example, the en_US.ISO_8859-1 locale name has been changed to en_US.ISO8859-1. Entries in /etc/locale.alias provide backward compatibility. A compat4x distribution has been added for compatibility with &os; 4-STABLE. The compat3x distribution has been updated to include libraries present in &os; 3.5.1-RELEASE. &merged; &man.savecore.8; now supports a option to prevent clearing a crash dump after saving it. It also attempts to avoid writing large stretches of zeros to crash dump files to save space and time. &merged; &man.savecore.8; now works correctly on machines with 2 GB or more of RAM. &merged; &man.tar.1; now supports the TAR_RSH variable, principally to enable the use of &man.ssh.1; as a transport. &merged; &man.disklabel.8; now supports partition sizes expressed in kilobytes, megabytes, or gigabytes, in addition to sectors. &merged; The pseudo-random number generator implemented by &man.rand.3; has been improved to provide less biased results. &man.login.1; now exports environment variables set by PAM modules. &merged; PAM support has been added for account management and sessions. &man.su.1; now uses PAM for authentication. &man.wall.1; now supports a flag to write a message to all users of a given group. The new CPUTYPE make.conf variable controls the compilation of processor-specific optimizations in various pieces of code such as OpenSSL. &merged; The default value for &man.cvs.1;'s CVS_RSH variable is now ssh, rather than rsh. &merged; &man.ipfstat.8; now supports the option to turn on a &man.top.1;-like display. &merged; /usr/src/share/examples/BSD_daemon/ now contains a scalable Beastie graphic. &merged; &man.dump.8; now supports inheritance of the nodump flag down a hierarchy. &merged; The to &man.dump.8; no longer swallows an extra argument. &merged; &man.dump.8; has a new option, allowing the path to the /etc/dumpdates file to be changed. &merged; &man.split.1; now has the ability to split a file longer than 2GB. &merged; &man.tail.1; now has the ability to work on files longer than 2GB. &merged; &man.units.1; has received some updates and bugfixes. &merged; As part of an ongoing process, many manual pages were improved, both in terms of their formatting markup and in their content. &merged; lprm - now works for remote printer queues. &merged; &man.ftpd.8; now supports a flag for read-only mode and a flag to disable EPSV. It also has some fixes to reduce information leakage and the ability to specify compile-time port ranges. &merged; &man.ping.8; now supports a option to set the TTL of outgoing packets. &merged; &man.ping.8; now supports a option to beep when packets are lost. A version of Transport Independent RPC (TI-RPC) has been imported. &man.rpcbind.8; has replaced &man.portmap.8;. NFS now works over IPv6. &man.rpc.lockd.8; has been imported from NetBSD. This daemon enables locking on NFS filesystems. &man.rc.8; now has an framework for handling dependencies between &man.rc.conf.5; variables. &merged; &man.rc.8; now deletes all non-directory files in /var/run and /var/spool/lock at boot time. &merged; The &man.setfacl.1; and &man.getfacl.1; commands have been added to manage file system Access Control Lists. The default TCP port range used by libfetch for passive FTP retrievals has changed; this affects the behavior of &man.fetch.1;, which has gained the option to restore the old behavior. &merged; libfetch now has support for an authentication callback. libfetch now has support for a HTTP_USER_AGENT environment variable. &merged; &man.atacontrol.8; has been added to control various aspects of the &man.ata.4; driver. libcrypt now has support for Blowfish password hashing. &merged; The functions from libposix1e have been integrated into libc. &man.vidcontrol.1; now allows the user to omit the font size specification when loading a font, and has some better error-handling. &merged; &man.vidcontrol.1; now supports a option to take a snapshot of a &man.syscons.4; video buffer. These snapshots can be manipulated by the graphics/scr2png utility in the Ports Collection. &merged; &man.vidcontrol.1; now supports a option to clear the history buffer for a given tty, as well as a to set the size of the history buffer. &merged; devinfo, a simple tool to print the device tree and resource usage by devices, has been added. &man.fmtcheck.3;, a function for checking consistency of format string arguments, has been added. &merged; &man.nl.1;, a line numbering filter program, has been added. &man.c89.1; has been converted from a shell script to a binary executable, fixing some minor bugs. &merged; &man.pax.1; has received a number of enhancements, including &man.cpio.1; functionality, &man.tar.1; compatibility enhancements, and flags for &man.gzip.1; and &man.compress.1; functionality, and a number of bug fixes. Ukrainian language support has been added to the &os; console. &merged; The performance of the ELF dynamic linker &man.rtld.1; has been improved. &merged; &man.fdread.1;, a program to read data from floppy disks, has been added. It is a counterpart to &man.fdwrite.1; and is designed to provide a means of recovering at least some data from bad media, and to obviate for a complex invocation of &man.dd.1;. &man.xargs.1; now supports a replstr option that allows the user to tell &man.xargs.1; to insert the data read from standard input at a specific point in the command line arguments rather than at the end. &merged; &man.apmd.8; now has the ability to monitor battery levels and execute commands based on percentage or minutes of battery life remaining via the apm_battery configuration directive. See the commented out examples in /etc/apmd.conf for the syntax. &merged; &man.telnet.1; now does autologin and encryption by default; a new option turns off encryption. &man.telnet.1; now supports a flag to allow connections to UNIX-domain (AF_UNIX) sockets. &merged; The default stripe size in &man.vinum.8; has been changed from 256KB to 279KB, to spread out superblocks more evenly between stripes. &man.chown.8; now correctly follows symbolic links named as command line arguments if run without . &man.chown.8; no longer takes . as a user/group delimeter. This change was made to support usernames containing a .. &man.chmod.1; now supports a for changing the mode of a symbolic link. &man.install.1; has a number of new features, including the and options for backing up existing target files and the option for safe (atomic copy) operation. The (copy) flag is now the default, and the (debugging) flag has been withdrawn. &man.install.1; now issues a warning if (create directories) and (copy changed files only) are used together. &merged; &man.whois.1; now directs queries for IP addresses to ARIN. If a query to ARIN references APNIC or RIPE, the appropriate server will also be queried, provided that the option is not specified. &merged; A new utility &man.diskcheckd.8; has been added; it is a daemon which runs in the background, reading entire disks to find any read errors on those disks. Its behavior at startup time can be controlled by the diskcheckd_enable variable in &man.rc.conf.5;. &man.fmt.1; has been rewritten; the rewrite fixes a number of bugs compared to its prior behavior. &man.df.1; now takes a option to only display information about locally-mounted filesystems. &merged; The syntax of &man.inetd.8;'s support for &man.faithd.8; is now compatible with that of other BSDs. &merged; The ident protocol support in &man.inetd.8; has been cleaned up and updated. &merged; &man.inetd.8; now has the ability to manage UNIX-domain sockets. &merged; &man.du.1; now takes a command-line flag to ignore/skip files and subdirectories matching a specified shell-glob mask. &merged; The &man.resolver.3; in &os; now implements EDNS0 support, which will be necessary when working with IPv6 transport-ready resolvers/DNS servers. &merged; &man.col.1; now takes a to force unknown control sequences to be passed through unchanged. &merged; The &man.mdmfs.8; command has been added; it is a wrapper around &man.mdconfig.8;, &man.disklabel.8;, &man.newfs.8;, and &man.mount.8; that mimics the command line option set of the deprecated &man.mount.mfs.8;. The &man.getprogname.3; and &man.setprogname.3; library functions have been added to manipulate the name of the current program. They are used by error-reporting routines to produce consistent output. &merged; The &man.kldconfig.8; utility has been added to make it easier to manipulate the kernel module search path. &merged; &man.moused.8; now takes a option to control mouse acceleration. &merged; &man.fdisk.8; no longer attempts to search for a device if none has been specified on the command line, but instead tries to figure out the default device name from the root device. &man.mail.1; now takes a flag to avoid sending messages with empty bodies. &merged; &man.route.8; is now more verbose when changing indirect routes, in the case of a gateway route that is the same route as the one being modified. &man.route.8; now uses host/bits syntax instead of net/bits syntax, for compatibility with &man.netstat.1;. &man.route.8; can now create proxy only published ARP entries. &man.tmpnam.3; will now use the TMPDIR environment variable, if set, to specify the location of temporary files. &merged; &man.pppd.8; (the control program for kernel-level PPP) is now installed mode 4550 and root:dialer, rather than mode 4555 (in other words, it is no longer world-executable). Users of &man.pppd.8; may need to change their group settings. &merged; &man.ftpd.8; now supports an option to disable the RETR command. Coupled with and appropriate file permissions, this allows one to create a relatively safe anonymous FTP drop box for others to upload to. The &man.daemon.8; program, a command-line interface to &man.daemon.3;, has been added. It detaches itself from its controlling terminal and executes a program specified on the command line. This allows the user to run an arbitrary program as if it were written to be a daemon. Contributed Software bc has been updated from 1.04 to 1.06. &merged; The ISC library from the BIND distribution is now built as libisc. &merged; BIND is now built with the NOADDITIONAL flag, which causes &man.named.8; to operate in a more consistent fashion for certain common misconfigurations. &merged; BIND has been updated to 8.2.4-REL. &merged; Binutils have been updated to 2.11.2. &merged; bzip2 1.0.1 has been imported; this brings the &man.bzip2.1; program and the libbz2 library to the base system. &merged; cvs has been updated to 1.11.1p1. &merged; The &man.ee.1; Easy Editor has been updated to 1.4.2. &merged; file has been updated to 3.36. &merged; &man.awk.1;, in the form of gawk, has been updated from 3.0.4 to 3.0.6. This fixes a number of non-critical bugs and includes a few performance tweaks. &merged; gcc has been updated to 2.95.3. &merged; &man.gcc.1; now uses a unified libgcc rather than a separate one for threaded and non-threaded programs. /usr/lib/libgcc_r.a can be removed. &merged; &man.gcc.1; now supports the environment variable GCC_OPTIONS, which can hold a set of default options for GCC. &merged; GNATS has been updated to 3.113. &merged; gperf has been updated to 2.7.2. groff and its related utilities have been updated to FSF version 1.17.2. This import brings in a new &man.mdoc.7; macro package (sometimes referred to as mdocNG), which removes many of the limitations of its predecessor. &merged; Heimdal has been updated to 0.3f. The ISC DHCP client has been updated to 2.0pl5. &merged; Kerberos IV has been updated to 1.0.5. &merged; The &man.more.1; command has been replaced by &man.less.1;, although it can still be run as more. less has been imported at 3.5.8. &merged; libpcap has been updated to 0.6.2. &merged; libreadline has been updated to 4.2. Linux-PAM has been updated to 0.75. &merged; A number of new Linux-PAM modules have been added, including: pam_ftp, pam_krb5, pam_nologin, pam_rootok, pam_securetty, pam_wheel. ncurses has been updated to 5.2-20010512. The NTP suite of programs has been updated to 4.1.0. The OPIE one-time-password suite has been updated to 2.32. &merged; It has completely replaced the functionality of S/Key. Perl has been updated to version 5.6.0. &man.routed.8; has been updated to version 2.22. &merged; tcpdump has been updated to 3.6.3. &merged; The &man.csh.1; shell has been replaced by &man.tcsh.1;, although it can still be run as csh. tcsh has been updated to version 6.10. &merged; &man.traceroute.8; now takes its default maximum TTL value from the net.inet.ip.ttl sysctl variable. &merged; KAME The IPv6 stack is now based on a snapshot based on the KAME Project's IPv6 snapshot as of 28 May, 2001. Most of the items listed in this section are a result of this import. lists kernel updates to the KAME IPv6 stack. &merged; &man.faithd.8; now supports a configuration file for access control. &merged; &man.ifconfig.8; can now perform the functions of &man.gifconfig.8;. &merged; &man.ifconfig.8; can now perform the functions of &man.prefix.8;. &man.prefix.8; is now a shell script for partial backwards compatibility. &merged; &man.ndp.8; now implements garbage collection for stale NDP entries, as described in RFC 2461 (Neighbor Discovery for IP Version 6 (IPv6)). &merged; &man.pim6dd.8; and &man.pim6sd.8; have been removed due to restrictive licensing conditions. These programs are available in the ports collection as net/pim6dd and net/pim6sd. &merged; &man.route6d.8; now supports an flag to avoid updating the kernel forwarding table. &merged; The (router renumbering) option to &man.rtadvd.8; is currently ignored. &merged; OpenSSH OpenSSH has been updated to 2.1.0, which provides support for the SSH2 protocol, including DSA keys. Therefore, OpenSSH users in the US no longer need to rely on the restrictively-licensed RSAREF toolkit which is required to handle RSA keys. OpenSSH 2.1 interoperates well with other SSH2 clients and servers, including the ssh2 port. See the OpenSSH Web site for more details. &merged; OpenSSH can now authenticate using OPIE passwords in SSH1 mode. Support is not yet available in SSH2 mode. &merged; OpenSSH has been updated to 2.2.0. &man.ssh-add.1; and &man.ssh-agent.1; can now handle DSA keys. A server for sftp, interoperable with ssh.com clients and others has been added. &man.scp.1; can now handle files larger than 2 GBytes. Interoperability with other SSH2 clients/servers has been improved. A new feature to limit the number of outstanding unauthenticated ssh connections in &man.sshd.8; has been added. &merged; OpenSSH has been updated to 2.3.0. This version adds support for the Rijndael encryption algorithm. &merged; PAM support for OpenSSH has been added. A long-standing bug in OpenSSH, which sometimes resulted in a dropped session when an X11-forwarded client was closed, was fixed. Kerberos compatibility has been added to OpenSSH. &merged; OpenSSH has been modified to be more resistant to traffic analysis by requiring that non-echoed characters are still echoed back in a null packet, as well as by padding passwords sent so as not to hint at password lengths. &merged; &man.sshd.8; is now enabled by default on new installs. &merged; &man.sshd.8; X11Forwarding is now turned on by default on the server (any risk is to the client, where it is already disabled by default). &merged; In /etc/ssh/sshd_config, the ConnectionsPerPeriod parameter has been deprecated in favor of MaxStartups. &merged; OpenSSH now has a VersionAddendum configuration setting for &man.sshd.8; to allow changing the part of the OpenSSH version string after the main version number. OpenSSH has been updated to version 2.9, which adds two new programs, &man.sftp.1; and &man.ssh-keyscan.1;. Among the various enhancements: The default protocol is now v2, rekeying of existing SSH sessions is now supported, and an experimental SOCKS4 proxy has been added to &man.ssh.1;. OpenSSL OpenSSL has been updated to 0.9.6b. OpenSSL now has support for machine-dependent ASM optimizations, activated by the new MACHINE_CPU and/or CPUTYPE make.conf variables. &merged; sendmail sendmail has been updated from version 8.9.3 to version 8.11.6. Important changes include: new default file locations (see /usr/src/contrib/sendmail/cf/README); &man.newaliases.1; is limited to root and trusted users; STARTTLS encryption; and the MSA port (587) is turned on by default. See /usr/src/contrib/sendmail/RELEASE_NOTES for more information. &merged; &man.mail.local.8; is no longer installed as a SUID binary. If you are using a /etc/mail/sendmail.cf from the default sendmail.cf included with &os; any time after 3.1.0, you are fine. If you are using a hand-configured sendmail.cf and mail.local for delivery, check to make sure the F=S flag is set on the Mlocal line. Those with .mc files who need to add the flag can do so by adding the following line to their .mc file and regenerating the sendmail.cf file: MODIFY_MAILER_FLAGS(`LOCAL',`+S')dnl Note that FEATURE(`local_lmtp') already does this. &merged; The default /etc/mail/sendmail.cf disables the SMTP EXPN and VRFY commands. &merged; &man.vacation.1; has been updated to use the version included with sendmail. &merged; The sendmail configuration building tools are installed in /usr/share/sendmail/cf/. &merged; New make.conf options: SENDMAIL_MC and SENDMAIL_ADDITIONAL_MC. See - /etc/defaults/make.conf for more + /usr/share/examples/etc/make.conf for more information. &merged; /etc/mail/Makefile now supports: the new SENDMAIL_MC make.conf option; the ability to build .cf files from .mc files; generalized map rebuilding; rebuilding the aliases file; and the ability to stop, start, and restart sendmail. &merged; Ports/Packages Collection Version numbers of installed packages have a new (backward-compatible) syntax, which supports the PORTREVISION and PORTEPOCH variables in Ports Collection Makefiles. These changes help keep track of changes in the ports collection entries such as security patches or &os;-specific updates, which aren't reflected in the original, third-party software distributions. &man.pkg.version.1; can now compare these new-style version numbers. &merged; To improve performance and disk utilization, the ports skeletons in the &os; Ports Collection have been restructured. Installed ports and packages should not be affected. &merged; All packages and ports now contain an origin directive, which makes it easier for programs such as &man.pkg.version.1; to determine the directory from which a package was built. &merged; &man.pkg.update.1;, a utility to update installed packages and update their dependencies, has been added. &merged; &man.pkg.info.1; now supports globbing against names of installed packages. The option disables this behavior, and the option causes regular expression matching instead of shell globbing. &merged; &man.pkg.info.1; can now accept a flag for verifying an installed package against its recorded checksums (to see if it's been modified post-installation). Naturally, this mechanism is only as secure as the contents of /var/db/pkg if it's to be used for auditing purposes. &merged; &man.pkg.create.1; and &man.pkg.add.1; can now work with packages that have been compressed using &man.bzip2.1;. &man.pkg.add.1; will use the PACKAGEROOT environment variable to determine a mirror site for new packages. &merged; &man.pkg.create.1; now records dependencies in dependency order rather than in the order specified on the command line. This improves the functioning of pkg_add -r. &merged; &man.pkg.version.1; now has a version number comparison routine that corresponds to the Porters Handbook. It also has a option for testing address comparisons. &merged; &man.pkg.version.1; now takes a flag to limit its operation to ports/packages matching a given string. &merged; When requested to delete multiple packages, &man.pkg.delete.1; will now attempt to remove them in dependency order rather than the order specified on the command line. &merged; &man.pkg.delete.1; now can perform glob/regexp matching of package names. In addition, it supports a option for removing all packages and a option for &man.rm.1;-style interactive confirmation. &merged; &man.pkg.sign.1; and &man.pkg.check.1; have been added to digitally sign and verify the signatures on binary package files. &merged; BSDPAN, a collection of modules that provides tighter integration of Perl into the &os; Ports Collection, has been added. diff --git a/share/examples/etc/README.examples b/share/examples/etc/README.examples index 4b27f668a691..b902723879f4 100644 --- a/share/examples/etc/README.examples +++ b/share/examples/etc/README.examples @@ -1,67 +1,67 @@ $FreeBSD$ The /usr/share/examples/etc directory contains the original distribution versions of the files which are shipped in /etc. This is intended to make it easy to recover when the /etc versions are accidentally deleted or broken beyond repair. This directory contains the following files: aliases - sendmail aliases file (see aliases(5)) amd.map - filesystem automounter lookup resolution map (see amd(8)) auth.conf - authentication capability database (see auth.conf(5)) crontab - system scheduled command table (see crontab(5)) csh.cshrc - sample .cshrc (see csh(1)) csh.login - sample .login csh.logout - sample .logout disktab - disk description file (see disktab(5)) dm.conf - configuration file for games (see dm(6)) fbtab - configuration file for login(1) ftpusers - user restriction file for ftpd(8) gettytab - defines port configuration for getty(8) group - group permissions file (see group(5)) hosts - see hosts(5) hosts.equiv - defines system-wide trusted hosts (see ruserok(3)) hosts.lpd - defines trusted hosts for lpd(8) inetd.conf - configuration file for inetd(8) locate.rc - confiuration file for locate(1) login.access - configuration file for login(8) (see login.access(5)) login.conf - login class capabilities database (see login.conf(5)) mail.rc - systemwide initialization files for mail(1) -make.conf - defines configuration variables for system builds +make.conf - example configuration variables for system builds manpath.config - configuration file for man(1) modems - modem configuration database (see modems(5)) motd - sample Message of the Day netstart - network startup script run from /etc/rc networks - see networks(5) newsyslog.conf - configuration for system log file rotator newsyslog(8) nsswitch.conf - name-service switch config file (see nsswitch.conf(5)) pam.conf - configuration file for pam(8) pccard_ether - confiuration script for ethernet pccards (see pccardd(8)) phones - phone number database for tip(1) printcap - configuration file for lpr(1) protocols - see protocols(5) profile - system-wide .profile for sh(1) rc - system startup script (see init(8)) rc.atm - networking startup script for atm(8) rc.devfs - startup script for devfs(5) rc.diskless1 - general BOOTP startup script rc.diskless2 - rc.firewall - setup system for ipfw(8) rc.i386 - startup script for i386-specific processing rc.alpha - startup script for axp-specific processing rc.isdn - startup script for isdnd(8) rc.network - network startup script rc.pccard - startup script for PC-cards rc.serial - sample local startup script fragments rc.shutdown - system shutdown script (see init(8)) remote - configuration file for tip(1) rpc - see rpc(5) security - script run from crontab to do nightly security checks services - see services(5) shells - list of configurable shells (see shells(5)) syslog.conf - configuration file for syslogd(8) ttys - defines port configuration for init(8) defaults/rc.conf - default system configuration info (see rc.conf(5)) defaults/pccard.conf - default configuration file for pccardd(8) defaults/periodic.conf - default configuration file for periodic(8) diff --git a/share/examples/etc/make.conf b/share/examples/etc/make.conf index 69bd12dd2931..959979f60f57 100644 --- a/share/examples/etc/make.conf +++ b/share/examples/etc/make.conf @@ -1,280 +1,282 @@ # $FreeBSD$ # # NOTE: Please would any committer updating this file also update the # make.conf(5) manual page, if necessary, which is located in # src/share/man/man5/make.conf.5. # -# This file, if present, will be read by make (see /usr/share/mk/sys.mk). -# It allows you to override macro definitions to make without changing -# your source tree, or anything the source tree installs. +# /etc/make.conf, if present, will be read by make (see +# /usr/share/mk/sys.mk). It allows you to override macro definitions +# to make without changing your source tree, or anything the source +# tree installs. # # This file must be in valid Makefile syntax. # -# You have to find the things you can put here in the Makefiles and -# documentation of the source tree. +# There are additional things you can put into /etc/make.conf. +# You have to find those in the Makefiles and documentation of +# the source tree. # # # The CPUTYPE variable controls which processor should be targetted for # generated code. This controls processor-specific optimizations in # certain code (currently only OpenSSL) as well as modifying the value # of CFLAGS to contain the appropriate optimization directive to gcc. # The automatic setting of CFLAGS may be overridden using the # NO_CPU_CFLAGS variable below. # Currently the following CPU types are recognised: # Intel x86 architecture: # (AMD CPUs) k7 k6-2 k6 k5 # (Intel CPUs) p4 p3 p2 i686 i586/mmx i586 i486 i386 # Alpha/AXP architecture: ev6 pca56 ev56 ev5 ev45 ev4 # Intel ia64 architecture: itanium # #CPUTYPE=i686 #NO_CPU_CFLAGS= true # Don't add -march= to CFLAGS automatically #NO_CPU_COPTFLAGS=true # Don't add -march= to COPTFLAGS automatically # # CFLAGS controls the compiler settings used when compiling C code. # Note that optimization settings above -O (-O2, ...) are not recommended # or supported for compiling the world or the kernel - please revert any # nonstandard optimization settings to "-O" before submitting bug reports # to the developers. # Note also that at this time the -O2 setting is known to produce BROKEN # CODE on the Alpha platform. # #CFLAGS= -O -pipe # # CXXFLAGS controls the compiler settings used when compiling C++ code. # Note that CXXFLAGS is initially set to the value of CFLAGS. If you wish # to add to CXXFLAGS value, "+=" must be used rather than "=". Using "=" # alone will remove the often needed contents of CFLAGS from CXXFLAGS. # #CXXFLAGS+= -fmemoize-lookups -fsave-memoized # # BDECFLAGS are a set of gcc warning settings that Bruce Evans has suggested # for use in developing FreeBSD and testing changes. They can be used by # putting "CFLAGS+=${BDECFLAGS}" in /etc/make.conf. -Wconversion is not # included here due to compiler bugs, eg: mkdir()'s mode_t argument. # -BDECFLAGS= -W -Wall -ansi -pedantic -Wbad-function-cast -Wcast-align \ - -Wcast-qual -Wchar-subscripts -Winline \ - -Wmissing-prototypes -Wnested-externs -Wpointer-arith \ - -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings +#BDECFLAGS= -W -Wall -ansi -pedantic -Wbad-function-cast -Wcast-align \ +# -Wcast-qual -Wchar-subscripts -Winline \ +# -Wmissing-prototypes -Wnested-externs -Wpointer-arith \ +# -Wredundant-decls -Wshadow -Wstrict-prototypes -Wwrite-strings # # To compile just the kernel with special optimizations, you should use # this instead of CFLAGS (which is not applicable to kernel builds anyway). # There is very little to gain by using higher optimization levels, and doing # so can cause problems. # #COPTFLAGS= -O -pipe # # To build the system compiler such that it forces high optimization levels to # a lower one. GCC -O2+ is known to trigger known optimizer bugs at various # times -- this is worse on the Alpha platform. The value assigned here will # be the highest optimization value used. #WANT_FORCE_OPTIMIZATION_DOWNGRADE=1 # # Compare before install #INSTALL=install -C # # Mtree will follow symlinks #MTREE_FOLLOWS_SYMLINKS= -L # # To enable installing suidperl with the setuid bit turned on #ENABLE_SUIDPERL= true # # To build ppp with normal permissions #PPP_NOSUID= true # # To enable installing ssh(1) with the setuid bit turned on #ENABLE_SUID_SSH= true # # To avoid building various parts of the base system: #NO_CVS= true # do not build CVS #NO_BIND= true # do not build BIND #NO_FORTRAN= true # do not build g77 and related libraries #NO_I4B= true # do not build isdn4bsd package #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_OBJC= true # do not build Objective C support #NO_OPENSSH= true # do not build OpenSSH #NO_OPENSSL= true # do not build OpenSSL (implies NO_OPENSSH) #NO_SENDMAIL= true # do not build sendmail and related programs #NO_SHAREDOCS= true # do not build the 4.4BSD legacy docs #NO_TCSH= true # do not build and install /bin/csh (which is tcsh) #NO_X= true # do not compile in XWindows support (e.g. doscmd) #NOCRYPT= true # do not build any crypto code #NOGAMES= true # do not build games (games/ subdir) #NOINFO= true # do not make or install info files #NOLIBC_R= true # do not build libc_r (re-entrant version of libc) #NOPERL= true # do not build perl. Disables OpenSSL optimizations #NOPROFILE= true # Avoid compiling profiled libraries #NOSECURE= true # do not build crypto code in secure/ subdir #NOSHARE= true # do not go into the share subdir #NOUUCP= true # do not build uucp related programs # # To build the OpenSSL manpages, uncomment the following. These are not # built by default because they clobber a number of system manpages with # manpages describing parts of the OpenSSL toolkit, including passwd(1), # err(3), md5(3), and others. # #WANT_OPENSSL_MANPAGES= true # # To build sys/modules when building the world (our old way of doing things) #MODULES_WITH_WORLD=true # do not build modules when building kernel # # # The following controls building optional IDEA code in libcrypto and # certain ports. Patents are involved - you must not use this unless # you either have a license or fall within patent 'fair use' # provisions. # # *** It is YOUR RESPONSIBILITY to determine if you can use this! *** # # IDEA is patented in the USA and many european countries - thought to # be OK to use for any non-commercial use. This is optional. #MAKE_IDEA= YES # IDEA (128 bit symmetric encryption) # # To avoid running MAKEDEV all on /dev during install set NO_MAKEDEV_RUN. # If you don't want to install MAKEDEV set NO_MAKEDEV_INSTALL, this implies # NO_MAKEDEV_RUN. #NO_MAKEDEV_INSTALL= true #NO_MAKEDEV_RUN= true # # If you do not want unformatted manual pages to be compressed # when they are installed: # #NOMANCOMPRESS= true # # # If you want the "compat" shared libraries installed as part of your normal # builds, uncomment these: # #COMPAT1X= yes #COMPAT20= yes #COMPAT21= yes #COMPAT22= yes #COMPAT3X= yes #COMPAT4X= yes # # # Default format for system documentation, depends on your printer. # Set this to "ascii" for simple printers or screen # #PRINTERDEVICE= ps # # # How long to wait for a console keypress before booting the default kernel. # This value is approximately in milliseconds. Keypresses are accepted by the # BIOS before booting from disk, making it possible to give custom boot # parameters even when this is set to 0. # #BOOTWAIT=0 #BOOTWAIT=30000 # # By default, the system will always use the keyboard/video card as system # console. However, the boot blocks may be dynamically configured to use a # serial port in addition to or instead of the keyboard/video console. # # By default we use COM1 as our serial console port *if* we're going to use # a serial port as our console at all. Alter as necessary. # # COM1: = 0x3F8, COM2: = 0x2F8, COM3: = 0x3E8, COM4: = 0x2E8 # #BOOT_COMCONSOLE_PORT= 0x3F8 # # The default serial console speed is 9600. Set the speed to a larger value # for better interactive response. # #BOOT_COMCONSOLE_SPEED= 115200 # # By default the 'pxeboot' loader retrieves the kernel via NFS. Defining # this and recompiling /usr/src/sys/boot will cause it to retrieve the kernel # via TFTP. This allows pxeboot to load a custom BOOTP diskless kernel yet # still mount the server's '/' (i.e. rather then load the server's kernel). # #LOADER_TFTP_SUPPORT= YES # # # Kerberos IV # If you want KerberosIV (KTH eBones), define this: # #MAKE_KERBEROS4= yes # # # Kerberos 5 # If you want Kerberos 5 (KTH Heimdal), define this: # #MAKE_KERBEROS5= yes # # # Kerberos5 # If you want to install MIT Kerberos5 port somewhere other than /usr/local, # define this (this is also used to tell ssh1 that kerberos is needed): # #KRB5_HOME= /usr/local # # # CVSup update flags. Edit SUPFILE settings to reflect whichever distribution # file(s) you use on your site (see /usr/share/examples/cvsup/README for more # information on CVSup and these files). To use, do "make update" in /usr/src. # #SUP_UPDATE= yes # #SUP= /usr/local/bin/cvsup #SUPFLAGS= -g -L 2 #SUPHOST= cvsup.uk.FreeBSD.org #SUPFILE= /usr/share/examples/cvsup/standard-supfile #PORTSSUPFILE= /usr/share/examples/cvsup/ports-supfile #DOCSUPFILE= /usr/share/examples/cvsup/doc-supfile # # top(1) uses a hash table for the user names. The size of this hash # can be tuned to match the number of local users. The table size should # be a prime number approximately twice as large as the number of lines in # /etc/passwd. The default number is 20011. # #TOP_TABLE_SIZE= 101 # # Documentation # # The list of languages and encodings to build and install # #DOC_LANG= en_US.ISO8859-1 ru_RU.KOI8-R # # # sendmail # # The following sets the default m4 configuration file to use at # install time. Use with caution as a make install will overwrite # any existing /etc/mail/sendmail.cf. Note that SENDMAIL_CF is now # deprecated. The value should be a fully qualified path name. # #SENDMAIL_MC=/etc/mail/myconfig.mc # # If you need to build additional .cf files during a make buildworld, # include the full paths to the .mc files in SENDMAIL_ADDITIONAL_MC. # #SENDMAIL_ADDITIONAL_MC=/etc/mail/foo.mc /etc/mail/bar.mc # # Setting the following variable modifies the flags passed to m4 when # building a .cf file from a .mc file. It can be used to enable # features disabled by default. # #SENDMAIL_M4_FLAGS= # # Setting the following variables modifies the build environment for # sendmail and its related utilities. For example, SASL support can be # added with settings such as: # # SENDMAIL_CFLAGS=-I/usr/local/include/sasl -DSASL # SENDMAIL_LDFLAGS=-L/usr/local/lib # SENDMAIL_LDADD=-lsasl # # Note: If you are using Cyrus SASL with other applications which require # access to the sasldb file, you should add '-D_FFR_UNSAFE_SASL' to # SENDMAIL_CFLAGS. Also, add the following to your sendmail.mc file: # # define(`confDONT_BLAME_SENDMAIL',`GroupReadableSASLFile') # #SENDMAIL_CFLAGS= #SENDMAIL_LDFLAGS= #SENDMAIL_LDADD= #SENDMAIL_DPADD= diff --git a/share/man/man5/make.conf.5 b/share/man/man5/make.conf.5 index 7375a3cd0af3..77eb1dd1b54c 100644 --- a/share/man/man5/make.conf.5 +++ b/share/man/man5/make.conf.5 @@ -1,607 +1,607 @@ .\" Copyright (c) 2000 .\" Mike W. Meyer .\" .\" Redistribution and use in source and binary forms, with or without .\" modification, are permitted provided that the following conditions .\" are met: .\" 1. Redistributions of source code must retain the above copyright .\" notice, this list of conditions and the following disclaimer. .\" 2. Redistributions in binary form must reproduce the above copyright .\" notice, this list of conditions and the following disclaimer in the .\" documentation and/or other materials provided with the distribution. .\" .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" .\" $FreeBSD$ .\" .Dd November 3, 2000 .Dt MAKE.CONF 5 .Os .Sh NAME .Nm make.conf .Nd system build information .Sh DESCRIPTION The file .Nm contains settings that control the compilation of the .Fx sources and ported applications. The file .Nm is generally created by the system administrator when the values need to be changed from their defaults. .Pp The purpose of .Nm is not to run commands or perform compilation actions directly. Instead, it is included by the various makefiles in .Pa /usr/src , .Pa /usr/ports and .Pa /usr/doc which conditionalize their internal actions according to the settings found there. .Pp The .Pa /etc/make.conf file is included from the appropriate .Pa Makefile which specifies the default settings for all the available options. Options need only be specified in .Pa /etc/make.conf when the system administrator wishes to override these defaults. .Pp The build procedures occur in four broad areas: the world, the kernel, documentations and ports. Variables set in .Nm may be applicable during builds in one, two, or all four of these areas. They may be specified for a particular build via the .Fl D option of .Xr make 1 . .Pp The following lists provide a name and short description for each variable you can use during the indicated builds. The values of variables flagged as .Vt bool are ignored; the variable being set at all (even to .Dq Li FALSE or .Dq Li NO ) cause it to be treated as if it were set. .Pp The following list provides a name and short description for variables that are used for all builds, or are used by the .Pa makefiles for things other than builds. .Bl -tag -width Ar .It Va CFLAGS .Pq Vt str Controls the compiler setting when compiling C code. Optimization levels above .Fl O .Pq Fl O2 , No ... are not supported. .Va BDECFLAGS is provided as a set of .Xr gcc 1 settings suggested by .An "Bruce Evans" Aq bde@FreeBSD.org for developing and testing changes. -They can be used by: +They can be used, if set, by: .Pp .Bd -literal -offset indent CXFLAGS+=${BDECFLAGS} .Ed .It Va CVS_UPDATE .Pq Vt bool Set this to use .Xr cvs 1 to update your ports with .Dq Li "make update" . .It Va CXXFLAGS .Pq Vt str Controls the compiler settings when compiling C++ code. .Va CXXFLAGS is initially set to the value of .Va CFLAGS . If you want to add to the .Va CXXFLAGS value, use .Dq Li += instead of .Dq Li = . .It Va INSTALL .Pq Vt str the default install command. To have commands compared before doing the install, use .Bd -literal -offset indent INSTALL="install -C" .Ed .It Va LOCAL_DIRS .Pq Vt str List any directories that should be entered when doing make's in .Pa /usr/src in this variable. .It Va MTREE_FOLLOWS_SYMLINKS .Pq Vt str Set this to .Dq Fl L to cause .Xr mtree 8 to follow symlinks. .It Va NO_DOCUPDATE .Pq Vt bool Set this to not update the doc tree during .Dq Li "make update" . .It Va NO_PORTSUPDATE .Pq Vt bool Set this to not update the ports tree during .Dq Li "make update" . .It Va SUP_UPDATE .Pq Vt bool Set this to use .Xr cvsup 1 to update your ports with .Dq Li "make update" . .It Va SUP .Pq Vt str The location of the .Xr cvsup 1 command for .Dq Li "make update" . .It Va SUPFLAGS .Pq Vt str The flag for the .Xr sup 1 command when doing .Dq Li "make update" . This defaults to .Op Fl g L Ar 2 . .It Va SUPHOST .Pq Vt str The hostname of the sup server to use when doing .Dq Li "make update" . .It Va SUPFILE .Pq Vt str The first .Ar supfile to use when doing a .Dq Li "make update" . This defaults to .Pa /usr/share/examples/cvsup/standard\-supfile . .It Va SUPFILE1 .Pq Vt str The second .Ar supfile to use when doing a .Dq Li "make update" . This defaults to .Pa /usr/share/examples/cvsup/secure\-supfile . .It Va SUPFILE2 .Pq Vt str The third .Ar supfile to use when doing a .Dq Li "make update" . This defaults to .Pa /usr/share/examples/cvsup/secure\-supfile . .It Va PORTSSUPFILE .Pq Vt str The ports .Ar supfile to use when doing a .Dq Li "make update" . This defaults to .Pa /usr/share/examples/cvsup/ports\-supfile . .It Va DOCSUPFILE .Pq Vt str The documentation .Ar supfile to use when doing a .Dq Li "make update" . This defaults to .Pa /usr/share/examples/cvsup/doc\-supfile . .El .Pp The following list provides a name and short description for variables that are only used doing a kernel build: .Bl -tag -width Ar .It Va BOOT_COMCONSOLE_PORT .Pq Vt str The port address to use for the console if the boot blocks have been configured to use a serial console instead of the keyboard/video card. .It Va BOOT_COMCONSOLE_SPEED .Pq Vt int The baud rate to use for the console if the boot blocks have been configured to use a serial console instead of the keyboard/video card. .It Va BOOTWAIT .Pq Vt int Controls the amount of time the kernel waits for a console keypress before booting the default kernel. The value is approximately milliseconds. Keypresses are accepted by the BIOS before booting from disk, making it possible to give custom boot parameters even when this is set to 0. .It Va COPTFLAGS .Pq Vt str Controls the compiler settings when building the kernel. Optimization levels above .Oo Fl O ( O2 , No ...\& ) Oc are not guaranteed to work. .It Va KERNCONF .Pq Vt str Controls which kernel configurations will be built by .Dq Li "${MAKE} buildkernel" and installed by .Dq Li "${MAKE} installkernel" . For example, .Bd -literal -offset indent KERNCONF=MINE DEBUG GENERIC OTHERMACHINE .Ed .Pp will build the kernels specified by the config files .Pa MINE , DEBUG , GENERIC , and .Pa OTHERMACHINE , and install the kernel specified by the config file .Pa MINE . It defaults to .Pa GENERIC . .It Va NO_KERNELCONFIG .Pq Vt bool Set this to skip running .Xr config 8 during .Dq Li "${MAKE} buildkernel" . .It Va NO_KERNELDEPEND .Pq Vt bool Set this to skip running .Dq Li "${MAKE} depend" during .Dq Li "${MAKE} buildkernel" . .It Va NO_MODULES .Pq Vt bool Set to not build modules with the kernel. .El .Pp The following list provides a name and short description for variables that are used during the world build: .Bl -tag -width Ar .It Va COMPAT1X .Pq Vt bool Set to install the .Fx 1 compatibility libraries. .It Va COMPAT20 .Pq Vt bool Set to install the .Fx 2.0 compatibility libraries. .It Va COMPAT21 .Pq Vt bool Set to install the .Fx 2.1 compatibility libraries. .It Va COMPAT22 .Pq Vt bool Set to install the .Fx 2.2 compatibility libraries. .It Va COMPAT3X .Pq Vt bool Set to install the .Fx 3 compatibility libraries. .It Va ENABLE_SUIDPERL .Pq Vt bool Set to enable the installation of an suid .Xr perl 1 binary. .It Va FETCH_CMD .Pq Vt str Command to use to fetch files. Normally .Xr fetch 1 . .It Va MAKE_IDEA .Pq Vt bool Set to build the IDEA encryption code. This code is patented in the USA and many European countries. It is .Em "YOUR RESPONSIBILITY" to determine if you can legally use IDEA. .It Va MAKE_KERBEROS4 .Pq Vt bool Set this to build KerberosIV (KTH eBones). .It Va MAKE_KERBEROS5 .Pq Vt bool Set this to build Kerberos5 (KTH Heimdal). .Em WARNING ! This is still experimental code. If you need stable Kerberos5, use the port(s). .It Va MODULES_WITH_WORLD .Pq Vt bool Set to build modules with the system instead of the kernel. .It Va NO_CVS .Pq Vt bool Set to not build CVS. .It Va NO_BIND .Pq Vt bool Set to not build BIND. .It Va NO_FORTRAN .Pq Vt bool Set to not build .Xr g77 1 and related libraries. .It Va NO_I4B .Pq Vt bool Set to not build isdn4bsd package. .It Va NO_LPR .Pq Vt bool Set to not build .Xr lpr 1 and related programs. .It Va NO_MAILWRAPPER .Pq Vt bool Set to not build the .Xr mailwrapper 8 MTA selector. .It Va NO_MAKEDEV_INSTALL .Pq Vt bool Set to avoid installing .Pa MAKEDEV in .Pa /dev . This implies the .Va NO_MAKEDEV_RUN variable. .It Va NO_MAKEDEV_RUN .Pq Vt bool Set to avoid running .Dq Li "MAKEDEV all" on .Pa /dev during install. .It Va NO_OBJC .Pq Vt bool Set to not build Objective C support. .It Va NO_OPENSSH .Pq Vt bool Set to not build OpenSSH. .It Va NO_OPENSSL .Pq Vt bool Set to not build OpenSSL (implies .Va NO_OPENSSH ) . .It Va NO_SENDMAIL .Pq Vt bool Set to not build .Xr sendmail 8 and related programs. .It Va NO_SHAREDOCS .Pq Vt bool Set to not build the .Bx 4.4 legacy docs. .It Va NO_TCSH .Pq Vt bool Set to not build and install .Pa /bin/csh (which is .Xr tcsh 1 ) . .It Va NO_X .Pq Vt bool Set to not compile in X\-Windows support (e.g.\& .Xr doscmd 1 ) . .It Va NOCLEAN .Pq Vt bool Set this to disable cleaning during .Dq Li "make buildworld" . This should not be set unless you know what you are doing. .It Va NOCLEANDIR .Pq Vt bool Set this to run .Dq Li "${MAKE} clean" instead of .Dq Li "${MAKE} cleandir" . .It Va NOCRYPT .Pq Vt bool Set to not build any crypto code. .It Va NOGAMES .Pq Vt bool Set to not build games. .It Va NOINFO .Pq Vt bool Set to not make or install .Xr info 5 files. .It Va NOLIBC_R .Pq Vt bool Set to not build .Nm libc_r (reentrant version of .Nm libc ) . .It Va NOMANCOMPRESS .Pq Vt bool Set to install man pages uncompressed. .It Va NOPERL .Pq Vt bool Set to avoid building .Xr perl 1 . .It Va NOPROFILE .Pq Vt bool Set to avoid compiling profiled libraries. .It Va NOSECURE .Pq Vt bool set to not build crypto code in .Pa secure subdir. .It Va NOSHARE .Pq Vt bool Set to not build in the .Pa share subdir. .It Va NOUUCP .Pq Vt bool Set to not build .Xr uucp 1 related programs. .It Va PERL_THREADED .Pq Vt bool Set to enable the building and installation of .Xr perl 1 with thread support. .It Va PPP_NOSUID .Pq Vt bool Set to disable the installation of .Xr ppp 8 as an suid root program. .It Va SENDMAIL_MC .Pq Vt str The default m4 configuration file to use at install time. The value should include the full path to the .Pa .mc file, e.g., .Pa /etc/mail/myconfig.mc . Use with caution as a make install will overwrite any existing .Pa /etc/mail/sendmail.cf . Note that .Va SENDMAIL_CF is now deprecated. .It Va SENDMAIL_ADDITIONAL_MC .Pq Vt str Additional .Pa .mc files which should be built into .Pa .cf files at build time. The value should include the full path to the .Pa .mc file(s), e.g., .Pa /etc/mail/foo.mc .Pa /etc/mail/bar.mc . .It Va SENDMAIL_M4_FLAGS .Pq Vt str Flags passed to m4 when building a .Pa .cf file from a .Pa .mc file. .It Va SENDMAIL_CFLAGS .Pq Vt str Flags to pass to the compile command when building .Xr sendmail 8 . The .Va SENDMAIL_* flags can be used to provide SASL support with setting such as: .Bd -literal -offset indent SENDMAIL_CFLAGS=-I/usr/local/include -DSASL SENDMAIL_LDFLAGS=-L/usr/local/lib SENDMAIL_LDADD=-lsasl .Ed .It Va SENDMAIL_LDFLAGS .Pq Vt str Flags to pass to the .Xr ld 1 command when building .Xr sendmail 8 . .It Va SENDMAIL_LDADD .Pq Vt str Flags to add to the end of the .Xr ld 1 command when building .Xr sendmail 8 . .It Va SENDMAIL_DPADD .Pq Vt str This variable is undocumented. .It Va WANT_FORCE_OPTIMIZATION_DOWNGRADE .Pq Vt int Causes the system compiler to be built such that it forces high optimization levels to a lower one. .Xr gcc 1 .Fl O2 and above is known to trigger known optimizer bugs at various times \(em this is worse on the Alpha platform. The value assigned is the highest optimization value used. .El .Pp The following list provides a name and short description for variables that are used when building documentation. .Bl -tag -width Ar .It Va DISTDIR .Pq Vt str Where distfiles are kept. Normally, this is .Pa distfiles in .Va PORTSDIR . .It Va DOC_LANG .Pq Vt str The list of languages and encodings to build and install. .It Va PRINTERDEVICE .Pq Vt str The default format for system documentation, depends on your printer. This can be set to .Dq Li ascii for simple printers or .Dq Li ps for postscript or graphics printers with a ghostscript filter. .El .Sh FILES -.Bl -tag -width /etc/defaults/make.conf -compact -.It Pa /etc/defaults/make.conf +.Bl -tag -width /usr/share/examples/etc/make.conf -compact .It Pa /etc/make.conf +.It Pa /usr/share/examples/etc/make.conf .It Pa /usr/doc/Makefile .It Pa /usr/src/Makefile .It Pa /usr/src/Makefile.inc1 .El .Sh SEE ALSO .Xr gcc 1 , .Xr install 1 , .Xr make 1 , .Xr ports 7 , .Xr lpd 8 , .Xr sendmail 8 .Sh HISTORY The .Nm file appeared sometime before .Fx 4.0 . .Sh AUTHORS This manual page was written by .An Mike W. Meyer Aq mwm@mired.org . .Sh BUGS This manual page may occasionally be out of date with respect to the options currently available for use in .Nm . Please check the -.Pa /etc/defaults/make.conf +.Pa /usr/share/examples/etc/make.conf file for the latest options which are available. diff --git a/share/man/man7/build.7 b/share/man/man7/build.7 index 811d1d80194a..6c5971dff4ca 100644 --- a/share/man/man7/build.7 +++ b/share/man/man7/build.7 @@ -1,166 +1,166 @@ .\" Copyright (c) 2000 .\" Mike W. Meyer .\" .\" Redistribution and use in source and binary forms, with or without .\" modification, are permitted provided that the following conditions .\" are met: .\" 1. Redistributions of source code must retain the above copyright .\" notice, this list of conditions and the following disclaimer. .\" 2. Redistributions in binary form must reproduce the above copyright .\" notice, this list of conditions and the following disclaimer in the .\" documentation and/or other materials provided with the distribution. .\" .\" THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND .\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE .\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE .\" ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE .\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL .\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS .\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) .\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT .\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" SUCH DAMAGE. .\" .\" $FreeBSD$ .\" .Dd November 4, 2000 .Dt BUILD 7 .Os .Sh NAME .Nm build .Nd information on how to build the system .Sh DESCRIPTION The source for the .Fx system and applications are contained in three different directories, normally .Pa /usr/src , .Pa /usr/doc , and .Pa /usr/ports . .Pa /usr/src contains the .Dq "base system" sources, which is loosely defined as the things required to rebuild the system to a useful state. .Pa /usr/doc contains the source for the system documentation, excluding the manual pages. .Pa /usr/ports is a tree that provides a consistent interface for building and installing third party applications. .Pp The .Xr make 1 command is used in each of these directories to build and install the things in that directory. Issuing the make command in any directory or subdirectory of those directories has the same effect as issuing the same command in all subdirectories of that directory. With no target specified, the things in that directory are just built. The following list provides the names and actions for other targets: .Bl -tag -width Ar .It Ar clean Removes any files created during the build process. .It Ar install Installs the results of the build for this directory. .It Ar update Gets updated sources as configured in .Pa /etc/make.conf . .El .Pp The other .Pa /usr/src make targets are: .Bl -tag -width Ar .It Ar buildworld Rebuild everything but the kernel, configure files in .Pa /etc , and release. .It Ar installworld Install everything built by .Dq buildworld . .It Ar world buildworld + installworld. .It Ar buildkernel Rebuild the kernel and the kernel-modules. .It Ar installkernel Install the kernel and the kernel-modules. .It Ar reinstallkernel Reinstall the kernel and the kernel-modules. .It Ar upgrade Upgrade a.out (2.2.x/3.0) system to the new ELF way .It Ar most Build user commands, no libraries or include files. .It Ar installmost Install user commands, no libraries or include files. .It Ar aout-to-elf Upgrade an system from a.out to elf format. .It Ar aout-to-elf-build Build everything required to upgrade a system from a.out to elf format. .It Ar aout-to-elf-install Install everything built by aout-to-elf-build. .It Ar move-aout-libs Move the a.out libraries into an aout sub-directory of each elf library sub-directory. .El .Pp For more information about the ports build process, see .Xr ports 7 . .Sh FILES -.Bl -tag -width /etc/defaults/make.conf -compact -.It Pa /etc/defaults/make.conf +.Bl -tag -width /usr/share/examples/etc/make.conf -compact .It Pa /etc/make.conf +.It Pa /usr/share/examples/etc//make.conf .It Pa /usr/doc/Makefile .It Pa /usr/doc/share/mk/doc.project.mk .It Pa /usr/src/Makefile .It Pa /usr/src/Makefile.inc1 .It Pa /usr/ports/Mk/bsd.port.mk .It Pa /usr/ports/Mk/bsd.sites.mk .El .Sh EXAMPLES The .Dq approved method of updating your system from the latest sources is: .Bd -literal -offset indent make buildworld make buildkernel KERNCONF=FOO make installkernel KERNCONF=FOO make installworld mergemaster .Ed .Pp .Dq FOO must be replaced with the name of the kernel configuration file from which the kernel should be built. Alternatively, the .Va KERNCONF variable in .Pa /etc/make.conf can be set to the name of the kernel to build; in this case the .Dq KERNCONF=FOO part of the .Dq buildkernel and .Dq installkernel commands can be omitted. .Pp After running these commands a system reboot is required, otherwise many programs which have been rebuilt (such as .Nm ps , .Nm top , etc) may not work with the old kernel which is still running. .Sh SEE ALSO .Xr cc 1 , .Xr install 1 , .Xr make 1 , .Xr make.conf 5 , .Xr ports 7 , .Xr mergemaster 8 , .Xr reboot 8 , .Xr shutdown 8 .Sh AUTHORS .An Mike W. Meyer Aq mwm@mired.org . diff --git a/share/mk/sys.mk b/share/mk/sys.mk index fa7a680795b2..dec766c08f99 100644 --- a/share/mk/sys.mk +++ b/share/mk/sys.mk @@ -1,263 +1,264 @@ # from: @(#)sys.mk 8.2 (Berkeley) 3/21/94 # $FreeBSD$ unix ?= We run FreeBSD, not UNIX. .FreeBSD ?= true # If the special target .POSIX appears (without prerequisites or # commands) before the first noncomment line in the makefile, make shall # process the makefile as specified by the Posix 1003.2 specification. # make(1) sets the special macro %POSIX in this case (to the actual # value "1003.2", for what it's worth). # # The rules below use this macro to distinguish between Posix-compliant # and default behaviour. .if defined(%POSIX) .SUFFIXES: .o .c .y .l .a .sh .f .else .SUFFIXES: .out .a .ln .o .c .cc .cpp .cxx .C .m .F .f .e .r .y .l .S .s .cl .p .h .sh .endif .LIBS: .a X11BASE ?= /usr/X11R6 AR ?= ar .if defined(%POSIX) ARFLAGS ?= -rv .else ARFLAGS ?= rl .endif RANLIB ?= ranlib AS ?= as AFLAGS ?= .if defined(%POSIX) CC ?= c89 .else CC ?= cc .endif CFLAGS ?= -O -pipe CXX ?= c++ CXXFLAGS ?= ${CXXINCLUDES} ${CFLAGS} CPP ?= cpp .if ${.MAKEFLAGS:M-s} == "" ECHO ?= echo ECHODIR ?= echo .else ECHO ?= true .if ${.MAKEFLAGS:M-s} == "-s" ECHODIR ?= echo .else ECHODIR ?= true .endif .endif .if defined(%POSIX) FC ?= fort77 FFLAGS ?= -O 1 .else FC ?= f77 FFLAGS ?= -O .endif EFLAGS ?= INSTALL ?= install LEX ?= lex LFLAGS ?= LD ?= ld LDFLAGS ?= LINT ?= lint LINTFLAGS ?= -chapbx MAKE ?= make OBJC ?= cc OBJCFLAGS ?= ${OBJCINCLUDES} ${CFLAGS} -Wno-import PC ?= pc PFLAGS ?= RC ?= f77 RFLAGS ?= SHELL ?= sh YACC ?= yacc .if defined(%POSIX) YFLAGS ?= .else YFLAGS ?= -d .endif # FreeBSD/i386 has traditionally been built with a version of make # which knows MACHINE, but not MACHINE_ARCH. When building on other # architectures, assume that the version of make being used has an # explicit MACHINE_ARCH setting and treat a missing MACHINE_ARCH # as an i386 architecture. MACHINE_ARCH ?= i386 # For tags rule. GTAGSFLAGS= -o HTAGSFLAGS= .if defined(%POSIX) # Posix 1003.2 mandated rules # # Quoted directly from the Posix 1003.2 draft, only the macros # $@, $< and $* have been replaced by ${.TARGET}, ${.IMPSRC}, and # ${.PREFIX}, resp. # SINGLE SUFFIX RULES .c: ${CC} ${CFLAGS} ${LDFLAGS} -o ${.TARGET} ${.IMPSRC} .f: ${FC} ${FFLAGS} ${LDFLAGS} -o ${.TARGET} ${.IMPSRC} .sh: cp ${.IMPSRC} ${.TARGET} chmod a+x ${.TARGET} # DOUBLE SUFFIX RULES .c.o: ${CC} ${CFLAGS} -c ${.IMPSRC} .f.o: ${FC} ${FFLAGS} -c ${.IMPSRC} .y.o: ${YACC} ${YFLAGS} ${.IMPSRC} ${CC} ${CFLAGS} -c y.tab.c rm -f y.tab.c mv y.tab.o ${.TARGET} .l.o: ${LEX} ${LFLAGS} ${.IMPSRC} ${CC} ${CFLAGS} -c lex.yy.c rm -f lex.yy.c mv lex.yy.o ${.TARGET} .y.c: ${YACC} ${YFLAGS} ${.IMPSRC} mv y.tab.c ${.TARGET} .l.c: ${LEX} ${LFLAGS} ${.IMPSRC} mv lex.yy.c ${.TARGET} .c.a: ${CC} ${CFLAGS} -c ${.IMPSRC} ${AR} ${ARFLAGS} ${.TARGET} ${.PREFIX}.o rm -f ${.PREFIX}.o .f.a: ${FC} ${FFLAGS} -c ${.IMPSRC} ${AR} ${ARFLAGS} ${.TARGET} ${.PREFIX}.o rm -f ${.PREFIX}.o .else # non-Posix rule set .sh: cp -p ${.IMPSRC} ${.TARGET} chmod a+x ${.TARGET} .c: ${CC} ${CFLAGS} ${LDFLAGS} ${.IMPSRC} ${LDLIBS} -o ${.TARGET} .c.o: ${CC} ${CFLAGS} -c ${.IMPSRC} .cc .cpp .cxx .C: ${CXX} ${CXXFLAGS} ${LDFLAGS} ${.IMPSRC} ${LDLIBS} -o ${.TARGET} .cc.o .cpp.o .cxx.o .C.o: ${CXX} ${CXXFLAGS} -c ${.IMPSRC} .m.o: ${OBJC} ${OBJCFLAGS} -c ${.IMPSRC} .p.o: ${PC} ${PFLAGS} -c ${.IMPSRC} .e .r .F .f: ${FC} ${RFLAGS} ${EFLAGS} ${FFLAGS} ${LDFLAGS} ${.IMPSRC} ${LDLIBS} \ -o ${.TARGET} .e.o .r.o .F.o .f.o: ${FC} ${RFLAGS} ${EFLAGS} ${FFLAGS} -c ${.IMPSRC} .S.o: ${CC} ${CFLAGS} -c ${.IMPSRC} .s.o: ${AS} ${AFLAGS} -o ${.TARGET} ${.IMPSRC} # XXX not -j safe .y.o: ${YACC} ${YFLAGS} ${.IMPSRC} ${CC} ${CFLAGS} -c y.tab.c -o ${.TARGET} rm -f y.tab.c .l.o: ${LEX} -t ${LFLAGS} ${.IMPSRC} > ${.PREFIX}.tmp.c ${CC} ${CFLAGS} -c ${.PREFIX}.tmp.c -o ${.TARGET} rm -f ${.PREFIX}.tmp.c # XXX not -j safe .y.c: ${YACC} ${YFLAGS} ${.IMPSRC} mv y.tab.c ${.TARGET} .l.c: ${LEX} -t ${LFLAGS} ${.IMPSRC} > ${.TARGET} .s.out .c.out .o.out: ${CC} ${CFLAGS} ${LDFLAGS} ${.IMPSRC} ${LDLIBS} -o ${.TARGET} .f.out .F.out .r.out .e.out: ${FC} ${EFLAGS} ${RFLAGS} ${FFLAGS} ${LDFLAGS} ${.IMPSRC} \ ${LDLIBS} -o ${.TARGET} rm -f ${.PREFIX}.o # XXX not -j safe .y.out: ${YACC} ${YFLAGS} ${.IMPSRC} ${CC} ${CFLAGS} ${LDFLAGS} y.tab.c ${LDLIBS} -ly -o ${.TARGET} rm -f y.tab.c .l.out: ${LEX} -t ${LFLAGS} ${.IMPSRC} > ${.PREFIX}.tmp.c ${CC} ${CFLAGS} ${LDFLAGS} ${.PREFIX}.tmp.c ${LDLIBS} -ll -o ${.TARGET} rm -f ${.PREFIX}.tmp.c .endif .if exists(/etc/defaults/make.conf) +.error Error, /etc/defaults/make.conf has been moved to /usr/share/examples/etc/make.conf and is not included any more. .include .endif .if exists(/etc/make.conf) .include .endif .include .if exists(/etc/make.conf.local) -.error Error, original /etc/make.conf should be moved to the /etc/defaults/ directory and /etc/make.conf.local should be renamed to /etc/make.conf. +.error Error, /etc/make.conf.local should be renamed to /etc/make.conf. .include .endif .include