add new build knobs and jigger some existing controls to improve

control over the result of buildworld and installworld; this especially
helps packaging systems such as nanobsd

Reviewed by:	various (posted to arch)
MFC after:	1 month
This commit is contained in:
Sam Leffler
2008-09-21 22:02:26 +00:00
parent eba1dd2124
commit 690f477d75
42 changed files with 669 additions and 188 deletions
+55 -14
View File
@@ -7,22 +7,19 @@
SUBDIR= sendmail SUBDIR= sendmail
.endif .endif
BIN1= amd.map apmd.conf auth.conf \ BIN1= auth.conf \
crontab csh.cshrc csh.login csh.logout devd.conf devfs.conf \ crontab csh.cshrc csh.login csh.logout devd.conf devfs.conf \
ddb.conf dhclient.conf disktab fbtab freebsd-update.conf \ ddb.conf dhclient.conf disktab fbtab \
ftpusers gettytab group \ ftpusers gettytab group \
hosts hosts.allow hosts.equiv hosts.lpd \ hosts hosts.allow hosts.equiv \
inetd.conf libalias.conf login.access login.conf mac.conf motd \ inetd.conf libalias.conf login.access login.conf mac.conf motd \
netconfig network.subr networks newsyslog.conf nsswitch.conf \ netconfig network.subr networks newsyslog.conf nsswitch.conf \
portsnap.conf pf.os phones profile protocols \ phones profile protocols \
rc rc.bsdextended rc.firewall rc.firewall6 rc.initdiskless \ rc rc.bsdextended rc.firewall rc.firewall6 rc.initdiskless \
rc.sendmail rc.shutdown \ rc.sendmail rc.shutdown \
rc.subr regdomain.xml remote rpc services shells \ rc.subr remote rpc services shells \
snmpd.config sysctl.conf syslog.conf \ sysctl.conf syslog.conf \
etc.${MACHINE_ARCH}/ttys \ 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
OPENBSMDIR= ${.CURDIR}/../contrib/openbsm OPENBSMDIR= ${.CURDIR}/../contrib/openbsm
BSM_ETC_OPEN_FILES= ${OPENBSMDIR}/etc/audit_class \ BSM_ETC_OPEN_FILES= ${OPENBSMDIR}/etc/audit_class \
@@ -32,12 +29,38 @@ BSM_ETC_RESTRICTED_FILES= ${OPENBSMDIR}/etc/audit_control \
BSM_ETC_EXEC_FILES= ${OPENBSMDIR}/etc/audit_warn BSM_ETC_EXEC_FILES= ${OPENBSMDIR}/etc/audit_warn
BSM_ETC_DIR= ${DESTDIR}/etc/security BSM_ETC_DIR= ${DESTDIR}/etc/security
.if ${MK_LPR} != "no" # NB: keep these sorted by MK_* knobs
BIN1+= printcap
.if ${MK_AMD} != "no"
BIN1+= amd.map
.endif .endif
.if ${MK_NS_CACHING} != "no" .if ${MK_APM} != "no"
BIN1+= nscd.conf BIN1+= apmd.conf
.endif
.if ${MK_BSNMP} != "no"
BIN1+= snmpd.config
.endif
.if ${MK_FREEBSD_UPDATE} != "no"
BIN1+= freebsd-update.conf
.endif
.if ${MK_LOCATE} != "no"
BIN1+= ${.CURDIR}/../usr.bin/locate/locate/locate.rc
.endif
.if ${MK_LPR} != "no"
BIN1+= hosts.lpd printcap
.endif
.if ${MK_MAIL} != "no"
BIN1+= ${.CURDIR}/../usr.bin/mail/misc/mail.rc
.endif
.if ${MK_MAN} != "no"
BIN1+= ${.CURDIR}/../gnu/usr.bin/man/manpath/manpath.config
.endif .endif
.if ${MK_OPENSSH} != "no" .if ${MK_OPENSSH} != "no"
@@ -49,6 +72,18 @@ SSH= ${.CURDIR}/../crypto/openssh/ssh_config \
SSL= ${.CURDIR}/../crypto/openssl/apps/openssl.cnf SSL= ${.CURDIR}/../crypto/openssl/apps/openssl.cnf
.endif .endif
.if ${MK_NS_CACHING} != "no"
BIN1+= nscd.conf
.endif
.if ${MK_PORTSNAP} != "no"
BIN1+= portsnap.conf
.endif
.if ${MK_PF} != "no"
BIN1+= pf.os
.endif
# -rwxr-xr-x root:wheel, for the new cron root:wheel # -rwxr-xr-x root:wheel, for the new cron root:wheel
BIN2= netstart pccard_ether rc.suspend rc.resume BIN2= netstart pccard_ether rc.suspend rc.resume
@@ -112,7 +147,9 @@ distribution:
master.passwd nsmb.conf opieaccess ${DESTDIR}/etc; \ master.passwd nsmb.conf opieaccess ${DESTDIR}/etc; \
pwd_mkdb ${PWD_MKDB_ENDIAN} -i -p -d ${DESTDIR}/etc \ pwd_mkdb ${PWD_MKDB_ENDIAN} -i -p -d ${DESTDIR}/etc \
${DESTDIR}/etc/master.passwd ${DESTDIR}/etc/master.passwd
.if ${MK_BLUETOOTH} != "no"
${_+_}cd ${.CURDIR}/bluetooth; ${MAKE} install ${_+_}cd ${.CURDIR}/bluetooth; ${MAKE} install
.endif
${_+_}cd ${.CURDIR}/defaults; ${MAKE} install ${_+_}cd ${.CURDIR}/defaults; ${MAKE} install
${_+_}cd ${.CURDIR}/gss; ${MAKE} install ${_+_}cd ${.CURDIR}/gss; ${MAKE} install
${_+_}cd ${.CURDIR}/periodic; ${MAKE} install ${_+_}cd ${.CURDIR}/periodic; ${MAKE} install
@@ -164,8 +201,11 @@ distribution:
ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile ln ${DESTDIR}/root/.profile ${DESTDIR}/.profile
cd ${.CURDIR}/mtree; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \ cd ${.CURDIR}/mtree; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 444 \
${MTREE} ${DESTDIR}/etc/mtree ${MTREE} ${DESTDIR}/etc/mtree
.if ${MK_PPP} != "no"
cd ${.CURDIR}/ppp; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 \ cd ${.CURDIR}/ppp; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 600 \
${PPPCNF} ${DESTDIR}/etc/ppp ${PPPCNF} ${DESTDIR}/etc/ppp
.endif
.if ${MK_MAIL} != "no"
cd ${.CURDIR}/mail; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \ cd ${.CURDIR}/mail; ${INSTALL} -o ${BINOWN} -g ${BINGRP} -m 644 \
${ETCMAIL} ${DESTDIR}/etc/mail ${ETCMAIL} ${DESTDIR}/etc/mail
@if [ -d ${DESTDIR}/etc/mail -a -f ${DESTDIR}/etc/mail/aliases -a \ @if [ -d ${DESTDIR}/etc/mail -a -f ${DESTDIR}/etc/mail/aliases -a \
@@ -173,6 +213,7 @@ distribution:
set -x; \ set -x; \
ln -s mail/aliases ${DESTDIR}/etc/aliases; \ ln -s mail/aliases ${DESTDIR}/etc/aliases; \
fi fi
.endif
${INSTALL} -o ${BINOWN} -g operator -m 664 /dev/null \ ${INSTALL} -o ${BINOWN} -g operator -m 664 /dev/null \
${DESTDIR}/etc/dumpdates ${DESTDIR}/etc/dumpdates
${INSTALL} -o nobody -g ${BINGRP} -m 644 /dev/null \ ${INSTALL} -o nobody -g ${BINGRP} -m 644 /dev/null \
+37 -12
View File
@@ -1,15 +1,11 @@
# $FreeBSD$ # $FreeBSD$
.include <bsd.own.mk>
FILES= 100.clean-disks \ FILES= 100.clean-disks \
110.clean-tmps \ 110.clean-tmps \
120.clean-preserve \ 120.clean-preserve \
130.clean-msgs \
140.clean-rwho \
150.clean-hoststat \
200.backup-passwd \ 200.backup-passwd \
210.backup-aliases \
300.calendar \
310.accounting \
330.news \ 330.news \
400.status-disks \ 400.status-disks \
404.status-zfs \ 404.status-zfs \
@@ -19,13 +15,42 @@ FILES= 100.clean-disks \
408.status-gstripe \ 408.status-gstripe \
409.status-gconcat \ 409.status-gconcat \
420.status-network \ 420.status-network \
430.status-rwho \
440.status-mailq \
450.status-security \ 450.status-security \
460.status-mail-rejects \
470.status-named \
480.status-ntpd \
500.queuerun \
999.local 999.local
# NB: keep these sorted by MK_* knobs
.if ${MK_ACCT} != "no"
FILES+= 310.accounting
.endif
.if ${MK_BIND_NAMED} != "no"
FILES+= 470.status-named
.endif
.if ${MK_CALENDAR} != "no"
FILES+= 300.calendar
.endif
.if ${MK_MAIL} != "no"
FILES+= 130.clean-msgs
.endif
.if ${MK_NTP} != "no"
FILES+= 480.status-ntpd
.endif
.if ${MK_RCMDS} != "no"
FILES+= 140.clean-rwho \
430.status-rwho
.endif
.if ${MK_SENDMAIL} != "no"
FILES+= 150.clean-hoststat \
210.backup-aliases \
440.status-mailq \
460.status-mail-rejects \
500.queuerun
.endif
.include <bsd.prog.mk> .include <bsd.prog.mk>
+9 -2
View File
@@ -1,6 +1,13 @@
# $FreeBSD$ # $FreeBSD$
FILES= 200.accounting \ .include <bsd.own.mk>
999.local
FILES= 999.local
# NB: keep these sorted by MK_* knobs
.if ${MK_ACCT} != "no"
FILES+= 200.accounting
.endif
.include <bsd.prog.mk> .include <bsd.prog.mk>
+17 -4
View File
@@ -1,17 +1,30 @@
# $FreeBSD$ # $FreeBSD$
.include <bsd.own.mk>
FILES= 100.chksetuid \ FILES= 100.chksetuid \
200.chkmounts \ 200.chkmounts \
300.chkuid0 \ 300.chkuid0 \
400.passwdless \ 400.passwdless \
410.logincheck \ 410.logincheck \
500.ipfwdenied \
510.ipfdenied \
520.pfdenied \
550.ipfwlimit \
700.kernelmsg \ 700.kernelmsg \
800.loginfail \ 800.loginfail \
900.tcpwrap \ 900.tcpwrap \
security.functions security.functions
# NB: keep these sorted by MK_* knobs
.if ${MK_IPFILTER} != "no"
FILES+= 510.ipfdenied
.endif
.if ${MK_IPFW} != "no"
FILES+= 500.ipfwdenied \
550.ipfwlimit
.endif
.if ${MK_PF} != "no"
FILES+= 520.pfdenied
.endif
.include <bsd.prog.mk> .include <bsd.prog.mk>
+17 -5
View File
@@ -1,10 +1,22 @@
# $FreeBSD$ # $FreeBSD$
FILES= 310.locate \ .include <bsd.own.mk>
320.whatis \
330.catman \ FILES= 340.noid \
340.noid \
400.status-pkg \
999.local 999.local
# NB: keep these sorted by MK_* knobs
.if ${MK_LOCATE} != "no"
FILES+= 310.locate
.endif
.if ${MK_MAN} != "no"
FILES+= 320.whatis 330.catman
.endif
.if ${MK_PKGTOOLS} != "no"
FLES+= 400.status-pkg
.endif
.include <bsd.prog.mk> .include <bsd.prog.mk>
+6 -5
View File
@@ -46,12 +46,16 @@ _cvs= cvs
_grep= grep _grep= grep
.endif .endif
.if ${MK_INFO} != "no"
_texinfo= texinfo
.endif
.if ${MK_MAN} != "no" .if ${MK_MAN} != "no"
_man= man _man= man
.endif .endif
.if ${MK_INFO} != "no" .if ${MK_RCS} != "no"
_texinfo= texinfo _rcs= rcs
.endif .endif
.if ${MK_TOOLCHAIN} != "no" .if ${MK_TOOLCHAIN} != "no"
@@ -61,8 +65,5 @@ _cc= cc
_gdb= gdb _gdb= gdb
.endif .endif
.endif .endif
.if ${MK_RCS} != "no"
_rcs= rcs
.endif
.include <bsd.subdir.mk> .include <bsd.subdir.mk>
+44 -26
View File
@@ -27,17 +27,17 @@
# Otherwise, the SUBDIR list should be in alphabetical order. # Otherwise, the SUBDIR list should be in alphabetical order.
SUBDIR= ${_csu} libc libbsm libcom_err libcrypt libelf libkvm msun libmd \ SUBDIR= ${_csu} libc libbsm libcom_err libcrypt libelf libkvm msun libmd \
ncurses libnetgraph libradius librpcsvc libsbuf libtacplus libutil \ ncurses ${_libnetgraph} libradius librpcsvc libsbuf \
${_libypclnt} libalias libarchive ${_libatm} \ libtacplus libutil ${_libypclnt} libalias libarchive ${_libatm} \
libbegemot ${_libbluetooth} libbsnmp libbz2 \ libbegemot ${_libbluetooth} ${_libbsnmp} libbz2 \
libcalendar libcam libcompat libdevinfo libdevstat libdisk \ libcalendar libcam libcompat libdevinfo libdevstat libdisk \
libdwarf libedit libexpat libfetch libftpio libgeom ${_libgpib} \ libdwarf libedit libexpat libfetch libftpio libgeom ${_libgpib} \
${_libgssapi} ${_librpcsec_gss} libipsec \ ${_libgssapi} ${_librpcsec_gss} libipsec \
${_libipx} libkiconv libmagic libmemstat ${_libmilter} ${_libmp} \ ${_libipx} libkiconv libmagic libmemstat ${_libmilter} ${_libmp} \
${_libncp} ${_libngatm} libopie libpam libpcap \ ${_libncp} ${_libngatm} libopie libpam libpcap \
libpmc libproc librt ${_libsdp} ${_libsm} ${_libsmb} \ ${_libpmc} libproc librt ${_libsdp} ${_libsm} ${_libsmb} \
${_libsmdb} \ ${_libsmdb} \
${_libsmutil} libstand libtelnet ${_libthr} libthread_db libufs \ ${_libsmutil} libstand ${_libtelnet} ${_libthr} libthread_db libufs \
libugidfw ${_libusbhid} ${_libvgl} libwrap liby libz ${_bind} libugidfw ${_libusbhid} ${_libvgl} libwrap liby libz ${_bind}
.if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf) .if exists(${.CURDIR}/csu/${MACHINE_ARCH}-elf)
@@ -48,6 +48,8 @@ _csu=csu/${MACHINE_ARCH}
_csu=csu _csu=csu
.endif .endif
# NB: keep these sorted by MK_* knobs
.if ${MK_ATM} != "no" .if ${MK_ATM} != "no"
_libngatm= libngatm _libngatm= libngatm
.endif .endif
@@ -61,6 +63,14 @@ _libbluetooth= libbluetooth
_libsdp= libsdp _libsdp= libsdp
.endif .endif
.if ${MK_BSNMP} != "no"
_libbsnmp= libbsnmp
.endif
.if ${MK_GPIB} != "no"
_libgpib= libgpib
.endif
.if ${MK_GSSAPI} != "no" .if ${MK_GSSAPI} != "no"
_libgssapi= libgssapi _libgssapi= libgssapi
_librpcsec_gss= librpcsec_gss _librpcsec_gss= librpcsec_gss
@@ -70,6 +80,18 @@ _librpcsec_gss= librpcsec_gss
_libipx= libipx _libipx= libipx
.endif .endif
.if ${MK_LIBTHR} != "no"
_libthr= libthr
.endif
.if ${MK_NETGRAPH} != "no"
_libnetgraph= libnetgraph
.endif
.if ${MK_NIS} != "no"
_libypclnt= libypclnt
.endif
.if ${MACHINE_ARCH} == "i386" .if ${MACHINE_ARCH} == "i386"
.if ${MK_NCP} != "no" .if ${MK_NCP} != "no"
_libncp= libncp _libncp= libncp
@@ -82,17 +104,6 @@ _libvgl= libvgl
_libsmb= libsmb _libsmb= libsmb
.endif .endif
.if ${MK_SENDMAIL} != "no"
_libmilter= libmilter
_libsm= libsm
_libsmdb= libsmdb
_libsmutil= libsmutil
.endif
.if ${MK_OPENSSL} != "no"
_libmp= libmp
.endif
.if ${MACHINE_ARCH} == "amd64" .if ${MACHINE_ARCH} == "amd64"
.if ${MK_NCP} != "no" .if ${MK_NCP} != "no"
_libncp= libncp _libncp= libncp
@@ -104,20 +115,27 @@ _libsmb= libsmb
_libsmb= libsmb _libsmb= libsmb
.endif .endif
.if ${MK_LIBTHR} != "no" .if ${MK_OPENSSL} != "no"
_libthr= libthr _libmp= libmp
.endif
.if ${MK_PMC} != "no"
_libpmc= libpmc
.endif
.if ${MK_SENDMAIL} != "no"
_libmilter= libmilter
_libsm= libsm
_libsmdb= libsmdb
_libsmutil= libsmutil
.endif
.if ${MK_TELNET} != "no"
_libtelnet= libtelnet
.endif .endif
.if ${MK_USB} != "no" .if ${MK_USB} != "no"
_libusbhid= libusbhid _libusbhid= libusbhid
.endif .endif
.if ${MK_NIS} != "no"
_libypclnt= libypclnt
.endif
.if ${MK_GPIB} != "no"
_libgpib= libgpib
.endif
.include <bsd.subdir.mk> .include <bsd.subdir.mk>
+20 -4
View File
@@ -3,9 +3,9 @@
.include <bsd.own.mk> .include <bsd.own.mk>
SUBDIR= atrun \ SUBDIR= ${_atrun} \
bootpd \ bootpd \
comsat \ ${_comsat} \
fingerd \ fingerd \
ftpd \ ftpd \
getty \ getty \
@@ -13,7 +13,7 @@ SUBDIR= atrun \
${_mail.local} \ ${_mail.local} \
makekey \ makekey \
${_mknetid} \ ${_mknetid} \
pppoed \ ${_pppoed} \
rbootd \ rbootd \
revnetgroup \ revnetgroup \
${_rlogind} \ ${_rlogind} \
@@ -28,16 +28,28 @@ SUBDIR= atrun \
${_smrsh} \ ${_smrsh} \
talkd \ talkd \
tcpd \ tcpd \
telnetd \ ${_telnetd} \
tftpd \ tftpd \
${_tftp-proxy} \ ${_tftp-proxy} \
${_ypxfr} ${_ypxfr}
.if ${MK_AT} != "no"
_atrun= atrun
.endif
.if ${MK_MAIL} != "no"
_comsat= comsat
.endif
.if ${MK_NIS} != "no" .if ${MK_NIS} != "no"
_mknetid= mknetid _mknetid= mknetid
_ypxfr= ypxfr _ypxfr= ypxfr
.endif .endif
.if ${MK_NETGRAPH} != "no"
_pppoed= pppoed
.endif
.if ${MK_PF} != "no" .if ${MK_PF} != "no"
_tftp-proxy= tftp-proxy _tftp-proxy= tftp-proxy
.endif .endif
@@ -56,4 +68,8 @@ _mail.local= mail.local
_smrsh= smrsh _smrsh= smrsh
.endif .endif
.if ${MK_TELNET} != "no"
_telnetd= telnetd
.endif
.include <bsd.subdir.mk> .include <bsd.subdir.mk>
+22 -5
View File
@@ -40,7 +40,7 @@ SUBDIR= adjkerntz \
ifconfig \ ifconfig \
init \ init \
${_ipf} \ ${_ipf} \
ipfw \ ${_ipfw} \
iscontrol \ iscontrol \
kldconfig \ kldconfig \
kldload \ kldload \
@@ -61,7 +61,7 @@ SUBDIR= adjkerntz \
mount_nullfs \ mount_nullfs \
mount_udf \ mount_udf \
mount_unionfs \ mount_unionfs \
natd \ ${_natd} \
newfs \ newfs \
newfs_msdos \ newfs_msdos \
nfsiod \ nfsiod \
@@ -70,13 +70,13 @@ SUBDIR= adjkerntz \
${_pflogd} \ ${_pflogd} \
ping \ ping \
${_ping6} \ ${_ping6} \
quotacheck \ ${_quotacheck} \
rcorder \ rcorder \
reboot \ reboot \
recoverdisk \ recoverdisk \
restore \ restore \
route \ route \
routed \ ${_routed} \
${_rtsol} \ ${_rtsol} \
savecore \ savecore \
${_sconfig} \ ${_sconfig} \
@@ -84,7 +84,7 @@ SUBDIR= adjkerntz \
shutdown \ shutdown \
slattach \ slattach \
spppcontrol \ spppcontrol \
startslip \ ${_startslip} \
${_sunlabel} \ ${_sunlabel} \
swapon \ swapon \
sysctl \ sysctl \
@@ -103,6 +103,11 @@ _devd= devd
_ipf= ipf _ipf= ipf
.endif .endif
.if ${MK_IPFW} != "no"
_ipfw= ipfw
_natd= natd
.endif
.if ${MK_PF} != "no" .if ${MK_PF} != "no"
_pfctl= pfctl _pfctl= pfctl
_pflogd= pflogd _pflogd= pflogd
@@ -117,6 +122,18 @@ _rtsol= rtsol
_bsdlabel= bsdlabel _bsdlabel= bsdlabel
.endif .endif
.if ${MK_QUOTAS} != "no"
_quotacheck= quotacheck
.endif
.if ${MK_ROUTED} != "no"
_routed= routed
.endif
.if ${MK_SLIP} != "no"
_startslip= startslip
.endif
.if ${MACHINE_ARCH} == "i386" .if ${MACHINE_ARCH} == "i386"
.if ${MACHINE} == "i386" .if ${MACHINE} == "i386"
_fdisk= fdisk _fdisk= fdisk
+26 -16
View File
@@ -12,20 +12,38 @@ SUBDIR= ${_colldef} \
${_man} \ ${_man} \
${_me} \ ${_me} \
misc \ misc \
mk \ ${_mk} \
${_mklocale} \ ${_mklocale} \
${_monetdef} \ ${_monetdef} \
${_msgdef} \ ${_msgdef} \
${_numericdef} \ ${_numericdef} \
${_sendmail} \ ${_sendmail} \
skel \ skel \
snmp \ ${_snmp} \
${_syscons} \ ${_syscons} \
tabset \ tabset \
termcap \ termcap \
${_timedef} \ ${_timedef} \
${_zoneinfo} ${_zoneinfo}
# NB: keep these sorted by MK_* knobs
.if ${MK_BSNMP} != "no"
_snmp= snmp
.endif
.if ${MK_DICT} != "no"
_dict= dict
.endif
.if ${MK_EXAMPLES} != "no"
_examples= examples
.endif
.if ${MK_GROFF} != "no"
_me= me
.endif
.if ${MK_LOCALES} != "no" .if ${MK_LOCALES} != "no"
_colldef = colldef _colldef = colldef
_mklocale = mklocale _mklocale = mklocale
@@ -35,26 +53,14 @@ _numericdef = numericdef
_timedef = timedef _timedef = timedef
.endif .endif
.if ${MK_SYSCONS} != "no" .if ${MK_MAKE} != "no"
_syscons= syscons _mk= mk
.endif .endif
.if ${MK_MAN} != "no" .if ${MK_MAN} != "no"
_man= man _man= man
.endif .endif
.if ${MK_GROFF} != "no"
_me= me
.endif
.if ${MK_EXAMPLES} != "no"
_examples= examples
.endif
.if ${MK_DICT} != "no"
_dict= dict
.endif
.if ${MK_SENDMAIL} != "no" .if ${MK_SENDMAIL} != "no"
_sendmail= sendmail _sendmail= sendmail
.endif .endif
@@ -63,6 +69,10 @@ _sendmail= sendmail
_doc= doc _doc= doc
.endif .endif
.if ${MK_SYSCONS} != "no"
_syscons= syscons
.endif
.if ${MK_ZONEINFO} != "no" .if ${MK_ZONEINFO} != "no"
_zoneinfo= zoneinfo _zoneinfo= zoneinfo
.endif .endif
+40 -1
View File
@@ -282,8 +282,12 @@ WITH_IDEA=
# MK_* options which default to "yes". # MK_* options which default to "yes".
# #
.for var in \ .for var in \
ACCT \
ACPI \ ACPI \
AMD \
APM \
ASSERT_DEBUG \ ASSERT_DEBUG \
AT \
ATM \ ATM \
AUDIT \ AUDIT \
AUTHPF \ AUTHPF \
@@ -297,18 +301,22 @@ WITH_IDEA=
BLUETOOTH \ BLUETOOTH \
BOOT \ BOOT \
BSD_CPIO \ BSD_CPIO \
BSNMP \
BZIP2 \ BZIP2 \
CALENDAR \ CALENDAR \
CDDL \ CDDL \
CPP \ CPP \
CRYPT \ CRYPT \
CTM \
CVS \ CVS \
CXX \ CXX \
DICT \ DICT \
DYNAMICROOT \ DYNAMICROOT \
EXAMPLES \ EXAMPLES \
FLOPPY \
FORTH \ FORTH \
FP_LIBC \ FP_LIBC \
FREEBSD_UPDATE \
GAMES \ GAMES \
GCOV \ GCOV \
GDB \ GDB \
@@ -321,40 +329,60 @@ WITH_IDEA=
INFO \ INFO \
INSTALLLIB \ INSTALLLIB \
IPFILTER \ IPFILTER \
IPFW \
IPX \ IPX \
JAIL \
KERBEROS \ KERBEROS \
KVM \ KVM \
LEGACY_CONSOLE \
LIB32 \ LIB32 \
LIBPTHREAD \ LIBPTHREAD \
LIBTHR \ LIBTHR \
LOCALES \ LOCALES \
LOCATE \
LPR \ LPR \
MAIL \
MAILWRAPPER \ MAILWRAPPER \
MAKE \
MAN \ MAN \
NCP \ NCP \
NDIS \
NETCAT \ NETCAT \
NETGRAPH \
NIS \ NIS \
NLS \ NLS \
NLS_CATALOGS \ NLS_CATALOGS \
NS_CACHING \ NS_CACHING \
NTP \
OBJC \ OBJC \
OPENSSH \ OPENSSH \
OPENSSL \ OPENSSL \
PAM \ PAM \
PF \ PF \
PKGTOOLS \
PMC \
PORTSNAP \
PPP \
PROFILE \ PROFILE \
QUOTAS \
RCMDS \ RCMDS \
RCS \ RCS \
RESCUE \ RESCUE \
ROUTED \
SENDMAIL \ SENDMAIL \
SETUID_LOGIN \ SETUID_LOGIN \
SHAREDOCS \ SHAREDOCS \
SLIP \
SSP \ SSP \
SYSINSTALL \
SYMVER \ SYMVER \
SYSCONS \ SYSCONS \
TCSH \ TCSH \
TELNET \
TEXTPROC \
TOOLCHAIN \ TOOLCHAIN \
USB \ USB \
WIRELESS \
WPA_SUPPLICANT_EAPOL \ WPA_SUPPLICANT_EAPOL \
ZFS \ ZFS \
ZONEINFO ZONEINFO
@@ -432,6 +460,11 @@ MK_KERBEROS:= no
MK_NCP:= no MK_NCP:= no
.endif .endif
.if ${MK_MAIL} == "no"
MK_MAILWRAPPER:= no
MK_SENDMAIL:= no
.endif
.if ${MK_OPENSSL} == "no" .if ${MK_OPENSSL} == "no"
MK_OPENSSH:= no MK_OPENSSH:= no
MK_KERBEROS:= no MK_KERBEROS:= no
@@ -441,6 +474,10 @@ MK_KERBEROS:= no
MK_AUTHPF:= no MK_AUTHPF:= no
.endif .endif
.if ${MK_TEXTPROC} == "no"
MK_GROFF:= no
.endif
.if ${MK_TOOLCHAIN} == "no" .if ${MK_TOOLCHAIN} == "no"
MK_GDB:= no MK_GDB:= no
.endif .endif
@@ -460,7 +497,9 @@ MK_GDB:= no
IPX \ IPX \
KERBEROS \ KERBEROS \
KVM \ KVM \
PAM NETGRAPH \
PAM \
WIRELESS
.if defined(WITH_${var}_SUPPORT) && defined(WITHOUT_${var}_SUPPORT) .if defined(WITH_${var}_SUPPORT) && defined(WITHOUT_${var}_SUPPORT)
.error WITH_${var}_SUPPORT and WITHOUT_${var}_SUPPORT can't both be set. .error WITH_${var}_SUPPORT and WITHOUT_${var}_SUPPORT can't both be set.
.endif .endif
+5
View File
@@ -0,0 +1,5 @@
.\" $FreeBSD$
Set to not build process accounting tools such as
.Xr ac 8
and
.Xr accton 8 .
+4
View File
@@ -0,0 +1,4 @@
.\" $FreeBSD$
Set to not build
.Xr amd 8 ,
and related programs.
+5
View File
@@ -0,0 +1,5 @@
.\" $FreeBSD$
Set to not build
.Xr apm 8 ,
.Xr apmd 8
and related programs.
+4
View File
@@ -0,0 +1,4 @@
.\" $FreeBSD$
Set to not build
.Xr at 1
and related utilities.
+4
View File
@@ -0,0 +1,4 @@
.\" $FreeBSD$
Set to not build
.Xr ctm 1
and related utilities.
@@ -0,0 +1,3 @@
.\" $FreeBSD$
Set to not build
.Xr freebsd-update 8 .
+2
View File
@@ -0,0 +1,2 @@
.\" $FreeBSD$
Set to not build IPFW tools.
+3
View File
@@ -0,0 +1,3 @@
.\" $FreeBSD$
Set to not build tools for the support of jails; e.g.
.Xr jail 8 .
@@ -0,0 +1,5 @@
.\" $FreeBSD$
Set to not build programs that support a legacy PC console; e.g.
.Xr kbdcontrol 8
and
.Xr vidcontrol 8 .
+4
View File
@@ -0,0 +1,4 @@
.\" $FreeBSD$
Set to not build
.Xr locate 1
and related programs.
+2
View File
@@ -0,0 +1,2 @@
.\" $FreeBSD$
Set to not build any mail support (MUA or MTA).
+4
View File
@@ -0,0 +1,4 @@
.\" $FreeBSD$
Set to not install
.Xr make 1
and related support files.
+3
View File
@@ -0,0 +1,3 @@
.\" $FreeBSD$
Set to not build programs and libraries
related to NDIS emulation support.
+3
View File
@@ -0,0 +1,3 @@
.\" $FreeBSD$
Set to not build applications to support
.Xr netgraph 4 .
+4
View File
@@ -0,0 +1,4 @@
.\" $FreeBSD$
Set to not build
.Xr ntpd 8
and related programs.
+4
View File
@@ -0,0 +1,4 @@
.\" $FreeBSD$
Set to not build
.Xr pkg_add 8
and related programs.
+4
View File
@@ -0,0 +1,4 @@
.\" $FreeBSD$
Set to not build
.Xr pmccontrol 8
and related programs.
+4
View File
@@ -0,0 +1,4 @@
.\" $FreeBSD$
Set to not build or install
.Xr portsnap 8
and related files.
+4
View File
@@ -0,0 +1,4 @@
.\" $FreeBSD$
Set to not build
.Xr ppp 8
and related programs.
+4
View File
@@ -0,0 +1,4 @@
.\" $FreeBSD$
Set to not build
.Xr quota 8
and related programs.
+4
View File
@@ -0,0 +1,4 @@
.\" $FreeBSD$
Set to not build
.Xr routed 8
utility.
+4
View File
@@ -0,0 +1,4 @@
.\" $FreeBSD$
Set to not build
.Xr sliplogin 8
and related programs.
+4
View File
@@ -0,0 +1,4 @@
.\" $FreeBSD$
Set to not build
.Xr sysinstall 8
and related programs.
+4
View File
@@ -0,0 +1,4 @@
.\" $FreeBSD$
Set to not build
.Xr telnet 8
and related programs.
+3
View File
@@ -0,0 +1,3 @@
.\" $FreeBSD$
Set to not build
programs used for text processing.
+5
View File
@@ -0,0 +1,5 @@
.\" $FreeBSD$
Set to not build programs used for 802.11 wireless networks; especially
.Xr wpa_supplicant 8
and
.Xr hostapd 8 .
+75 -27
View File
@@ -13,12 +13,12 @@ SUBDIR= alias \
apply \ apply \
${_ar} \ ${_ar} \
asa \ asa \
at \ ${_at} \
${_atm} \ ${_atm} \
awk \ awk \
banner \ banner \
basename \ basename \
biff \ ${_biff} \
${_bluetooth} \ ${_bluetooth} \
brandelf \ brandelf \
bsdiff \ bsdiff \
@@ -30,24 +30,24 @@ SUBDIR= alias \
cap_mkdb \ cap_mkdb \
${_catman} \ ${_catman} \
chat \ chat \
checknr \ ${_checknr} \
${_chkey} \ ${_chkey} \
chpass \ chpass \
cksum \ cksum \
cmp \ cmp \
col \ col \
colcrt \ ${_colcrt} \
colldef \ colldef \
colrm \ colrm \
column \ column \
comm \ comm \
compile_et \ ${_compile_et} \
compress \ compress \
${_cpio} \ ${_cpio} \
cpuset \ cpuset \
csplit \ csplit \
${_csup} \ ${_csup} \
ctags \ ${_ctags} \
cut \ cut \
${_dig} \ ${_dig} \
dirname \ dirname \
@@ -61,12 +61,12 @@ SUBDIR= alias \
false \ false \
fetch \ fetch \
file \ file \
file2c \ ${_file2c} \
find \ find \
finger \ finger \
fmt \ ${_fmt} \
fold \ fold \
from \ ${_from} \
fstat \ fstat \
fsync \ fsync \
ftp \ ftp \
@@ -82,7 +82,7 @@ SUBDIR= alias \
hexdump \ hexdump \
${_host} \ ${_host} \
id \ id \
indent \ ${_indent} \
ipcrm \ ipcrm \
ipcs \ ipcs \
join \ join \
@@ -104,7 +104,7 @@ SUBDIR= alias \
${_lex} \ ${_lex} \
limits \ limits \
locale \ locale \
locate \ ${_locate} \
lock \ lock \
lockf \ lockf \
logger \ logger \
@@ -115,8 +115,8 @@ SUBDIR= alias \
lorder \ lorder \
lsvfs \ lsvfs \
m4 \ m4 \
mail \ ${_mail} \
make \ ${_make} \
makewhatis \ makewhatis \
mesg \ mesg \
minigzip \ minigzip \
@@ -124,10 +124,10 @@ SUBDIR= alias \
mkdep \ mkdep \
mkfifo \ mkfifo \
mklocale \ mklocale \
mkstr \ ${_mkstr} \
mktemp \ mktemp \
mkuzip \ mkuzip \
msgs \ ${_msgs} \
mt \ mt \
${_nc} \ ${_nc} \
ncal \ ncal \
@@ -153,19 +153,19 @@ SUBDIR= alias \
printenv \ printenv \
printf \ printf \
procstat \ procstat \
quota \ ${_quota} \
renice \ renice \
rev \ rev \
${_rlogin} \ ${_rlogin} \
rpcgen \ ${_rpcgen} \
rpcinfo \ rpcinfo \
rs \ rs \
${_rsh} \ ${_rsh} \
rup \ rup \
ruptime \ ${_ruptime} \
rusers \ rusers \
rwall \ rwall \
rwho \ ${_rwho} \
script \ script \
sed \ sed \
shar \ shar \
@@ -182,7 +182,7 @@ SUBDIR= alias \
tar \ tar \
tcopy \ tcopy \
tee \ tee \
telnet \ ${_telnet} \
tftp \ tftp \
time \ time \
tip \ tip \
@@ -196,10 +196,10 @@ SUBDIR= alias \
tset \ tset \
tsort \ tsort \
tty \ tty \
ul \ ${_ul} \
uname \ uname \
unexpand \ unexpand \
unifdef \ ${_unifdef} \
uniq \ uniq \
units \ units \
unvis \ unvis \
@@ -209,7 +209,7 @@ SUBDIR= alias \
uudecode \ uudecode \
uuencode \ uuencode \
${_vacation} \ ${_vacation} \
vgrind \ ${_vgrind} \
vi \ vi \
vis \ vis \
vmstat \ vmstat \
@@ -226,7 +226,7 @@ SUBDIR= alias \
xargs \ xargs \
xinstall \ xinstall \
${_xlint} \ ${_xlint} \
xstr \ ${_xstr} \
${_yacc} \ ${_yacc} \
yes \ yes \
${_ypcat} \ ${_ypcat} \
@@ -237,6 +237,12 @@ SUBDIR= alias \
_truss= truss _truss= truss
.endif .endif
# NB: keep these sorted by MK_* knobs
.if ${MK_AT} != "no"
_at= at
.endif
.if ${MK_ATM} != "no" .if ${MK_ATM} != "no"
_atm= atm _atm= atm
.endif .endif
@@ -264,6 +270,10 @@ _cpio= cpio
_calendar= calendar _calendar= calendar
.endif .endif
.if ${MK_HESIOD} != "no"
_hesinfo= hesinfo
.endif
.if ${MK_OPENSSL} != "no" .if ${MK_OPENSSL} != "no"
_chkey= chkey _chkey= chkey
_newkey= newkey _newkey= newkey
@@ -272,8 +282,21 @@ _csup= csup
.endif .endif
.endif .endif
.if ${MK_HESIOD} != "no" .if ${MK_LOCATE} != "no"
_hesinfo= hesinfo _locate= locate
.endif
# XXX msgs?
.if ${MK_MAIL} != "no"
_biff= biff
_fmt= fmt
_from= from
_mail= mail
_msgs= msgs
.endif
.if ${MK_MAKE} != "no"
_make= make
.endif .endif
.if ${MK_NETCAT} != "no" .if ${MK_NETCAT} != "no"
@@ -286,22 +309,47 @@ _ypmatch= ypmatch
_ypwhich= ypwhich _ypwhich= ypwhich
.endif .endif
.if ${MK_QUOTAS} != "no"
_quota= quota
.endif
.if ${MK_RCMDS} != "no" .if ${MK_RCMDS} != "no"
_rlogin= rlogin _rlogin= rlogin
_rsh= rsh _rsh= rsh
_ruptime= ruptime
_rwho= rwho
.endif .endif
.if ${MK_SENDMAIL} != "no" .if ${MK_SENDMAIL} != "no"
_vacation= vacation _vacation= vacation
.endif .endif
.if ${MK_TELNET} != "no"
_telnet= telnet
.endif
.if ${MK_TEXTPROC} != "no"
_checknr= checknr
_colcrt= colcrt
_ul= ul
.endif
.if ${MK_TOOLCHAIN} != "no" .if ${MK_TOOLCHAIN} != "no"
_ar= ar
_c89= c89 _c89= c89
_c99= c99 _c99= c99
_compile_et= compile_et
_ctags= ctags
_file2c= file2c
_gprof= gprof _gprof= gprof
_indent= indent
_lex= lex _lex= lex
_mkstr= mkstr
_rpcgen= rpcgen
_unifdef= unifdef
_xlint= xlint _xlint= xlint
_xstr= xstr
# XXX maybe under textproc?
_vgrind= vgrind
_yacc= yacc _yacc= yacc
.endif .endif
+10 -3
View File
@@ -5,7 +5,7 @@
PROG= netstat PROG= netstat
SRCS= if.c inet.c main.c mbuf.c mcast.c mroute.c route.c \ SRCS= if.c inet.c main.c mbuf.c mcast.c mroute.c route.c \
unix.c atalk.c netgraph.c mroute6.c ipsec.c bpf.c pfkey.c sctp.c unix.c atalk.c mroute6.c ipsec.c bpf.c pfkey.c sctp.c
WARNS?= 3 WARNS?= 3
CFLAGS+=-fno-strict-aliasing CFLAGS+=-fno-strict-aliasing
@@ -20,8 +20,15 @@ CFLAGS+=-DINET6
BINGRP= kmem BINGRP= kmem
BINMODE=2555 BINMODE=2555
DPADD= ${LIBKVM} ${LIBMEMSTAT} ${LIBNETGRAPH} ${LIBUTIL} DPADD= ${LIBKVM} ${LIBMEMSTAT} ${LIBUTIL}
LDADD= -lkvm -lmemstat -lnetgraph -lutil LDADD= -lkvm -lmemstat -lutil
.if ${MK_NETGRAPH_SUPPORT} != "no"
SRCS+= netgraph.c
DPADD+= ${LIBNETGRAPH}
LDADD+= -lnetgraph
CFLAGS+=-DNETGRAPH
.endif
.if ${MK_IPX_SUPPORT} != "no" .if ${MK_IPX_SUPPORT} != "no"
SRCS+= ipx.c SRCS+= ipx.c
+8 -2
View File
@@ -54,7 +54,9 @@ __FBSDID("$FreeBSD$");
#include <netinet/in.h> #include <netinet/in.h>
#ifdef NETGRAPH
#include <netgraph/ng_socket.h> #include <netgraph/ng_socket.h>
#endif
#include <ctype.h> #include <ctype.h>
#include <err.h> #include <err.h>
@@ -272,7 +274,7 @@ struct protox atalkprotox[] = {
{ -1, -1, 0, NULL, { -1, -1, 0, NULL,
NULL, NULL, NULL, 0, 0 } NULL, NULL, NULL, 0, 0 }
}; };
#ifdef NETGRAPH
struct protox netgraphprotox[] = { struct protox netgraphprotox[] = {
{ N_NGSOCKS, -1, 1, netgraphprotopr, { N_NGSOCKS, -1, 1, netgraphprotopr,
NULL, NULL, "ctrl", 0, 0 }, NULL, NULL, "ctrl", 0, 0 },
@@ -281,7 +283,7 @@ struct protox netgraphprotox[] = {
{ -1, -1, 0, NULL, { -1, -1, 0, NULL,
NULL, NULL, NULL, 0, 0 } NULL, NULL, NULL, 0, 0 }
}; };
#endif
#ifdef IPX #ifdef IPX
struct protox ipxprotox[] = { struct protox ipxprotox[] = {
{ N_IPX, N_IPXSTAT, 1, ipxprotopr, { N_IPX, N_IPXSTAT, 1, ipxprotopr,
@@ -384,9 +386,11 @@ main(int argc, char *argv[])
af = AF_UNIX; af = AF_UNIX;
else if (strcmp(optarg, "atalk") == 0) else if (strcmp(optarg, "atalk") == 0)
af = AF_APPLETALK; af = AF_APPLETALK;
#ifdef NETGRAPH
else if (strcmp(optarg, "ng") == 0 else if (strcmp(optarg, "ng") == 0
|| strcmp(optarg, "netgraph") == 0) || strcmp(optarg, "netgraph") == 0)
af = AF_NETGRAPH; af = AF_NETGRAPH;
#endif
else if (strcmp(optarg, "link") == 0) else if (strcmp(optarg, "link") == 0)
af = AF_LINK; af = AF_LINK;
else { else {
@@ -584,9 +588,11 @@ main(int argc, char *argv[])
if (af == AF_APPLETALK || af == AF_UNSPEC) if (af == AF_APPLETALK || af == AF_UNSPEC)
for (tp = atalkprotox; tp->pr_name; tp++) for (tp = atalkprotox; tp->pr_name; tp++)
printproto(tp, tp->pr_name); printproto(tp, tp->pr_name);
#ifdef NETGRAPH
if (af == AF_NETGRAPH || af == AF_UNSPEC) if (af == AF_NETGRAPH || af == AF_UNSPEC)
for (tp = netgraphprotox; tp->pr_name; tp++) for (tp = netgraphprotox; tp->pr_name; tp++)
printproto(tp, tp->pr_name); printproto(tp, tp->pr_name);
#endif /* NETGRAPH */
if ((af == AF_UNIX || af == AF_UNSPEC) && !Lflag && !sflag) if ((af == AF_UNIX || af == AF_UNSPEC) && !Lflag && !sflag)
unixpr(nl[N_UNP_COUNT].n_value, nl[N_UNP_GENCNT].n_value, unixpr(nl[N_UNP_COUNT].n_value, nl[N_UNP_GENCNT].n_value,
nl[N_UNP_DHEAD].n_value, nl[N_UNP_SHEAD].n_value); nl[N_UNP_DHEAD].n_value, nl[N_UNP_SHEAD].n_value);
+2
View File
@@ -145,7 +145,9 @@ void nserr_stats(u_long, const char *, int, int);
void atalkprotopr(u_long, const char *, int, int); void atalkprotopr(u_long, const char *, int, int);
void ddp_stats(u_long, const char *, int, int); void ddp_stats(u_long, const char *, int, int);
#ifdef NETGRAPH
void netgraphprotopr(u_long, const char *, int, int); void netgraphprotopr(u_long, const char *, int, int);
#endif
void unixpr(u_long, u_long, u_long, u_long); void unixpr(u_long, u_long, u_long, u_long);
+181 -61
View File
@@ -4,12 +4,12 @@
.include <bsd.own.mk> .include <bsd.own.mk>
# XXX MISSING: mkproto # XXX MISSING: mkproto
SUBDIR= ac \ SUBDIR= ${_ac} \
accton \ ${_accton} \
${_acpi} \ ${_acpi} \
adduser \ adduser \
amd \ ${_amd} \
ancontrol \ ${_ancontrol} \
${_apm} \ ${_apm} \
${_apmd} \ ${_apmd} \
arp \ arp \
@@ -23,7 +23,7 @@ SUBDIR= ac \
${_boot0cfg} \ ${_boot0cfg} \
${_boot98cfg} \ ${_boot98cfg} \
bootparamd \ bootparamd \
bsnmpd \ ${_bsnmpd} \
${_btxld} \ ${_btxld} \
burncd \ burncd \
cdcontrol \ cdcontrol \
@@ -32,12 +32,12 @@ SUBDIR= ac \
chroot \ chroot \
ckdist \ ckdist \
clear_locks \ clear_locks \
config \ ${_config} \
${_cpucontrol} \ ${_cpucontrol} \
crashinfo \ crashinfo \
cron \ cron \
crunch \ ${_crunch} \
ctm \ ${_ctm} \
daemon \ daemon \
dconschat \ dconschat \
devinfo \ devinfo \
@@ -46,18 +46,18 @@ SUBDIR= ac \
${_dnssec-keygen} \ ${_dnssec-keygen} \
${_dnssec-signzone} \ ${_dnssec-signzone} \
${_editmap} \ ${_editmap} \
edquota \ ${_edquota} \
${_eeprom} \ ${_eeprom} \
extattr \ extattr \
extattrctl \ extattrctl \
${_faithd} \ ${_faithd} \
fdcontrol \ ${_fdcontrol} \
fdformat \ ${_fdformat} \
fdread \ ${_fdread} \
fdwrite \ ${_fdwrite} \
fifolog \ fifolog \
flowctl \ ${_flowctl} \
freebsd-update \ ${_freebsd-update} \
${_ftp-proxy} \ ${_ftp-proxy} \
fwcontrol \ fwcontrol \
getfmac \ getfmac \
@@ -67,19 +67,19 @@ SUBDIR= ac \
inetd \ inetd \
iostat \ iostat \
${_ip6addrctl} \ ${_ip6addrctl} \
ipfwpcap \ ${_ipfwpcap} \
${_IPXrouted} \ ${_IPXrouted} \
jail \ ${_jail} \
jexec \ ${_jexec} \
jls \ ${_jls} \
kbdcontrol \ ${_kbdcontrol} \
kbdmap \ ${_kbdmap} \
${_keyserv} \ ${_keyserv} \
${_kgmon} \ ${_kgmon} \
${_kgzip} \ ${_kgzip} \
kldxref \ kldxref \
lastlogin \ lastlogin \
lmcconfig \ ${_lmcconfig} \
${_lpr} \ ${_lpr} \
${_lptcontrol} \ ${_lptcontrol} \
${_mailstats} \ ${_mailstats} \
@@ -95,7 +95,7 @@ SUBDIR= ac \
${_mount_nwfs} \ ${_mount_nwfs} \
mount_portalfs \ mount_portalfs \
${_mount_smbfs} \ ${_mount_smbfs} \
moused \ ${_moused} \
${_mptable} \ ${_mptable} \
mtest \ mtest \
mtree \ mtree \
@@ -107,26 +107,26 @@ SUBDIR= ac \
${_ndp} \ ${_ndp} \
newsyslog \ newsyslog \
nfsd \ nfsd \
ngctl \ ${_ngctl} \
nghook \ ${_nghook} \
nologin \ nologin \
${_nscd} \ ${_nscd} \
ntp \ ${_ntp} \
${_nvram} \ ${_nvram} \
${_ofwdump} \ ${_ofwdump} \
pccard \ pccard \
pciconf \ pciconf \
periodic \ periodic \
pkg_install \ ${_pkg_install} \
pmccontrol \ ${_pmccontrol} \
pmcstat \ ${_pmcstat} \
${_pnpinfo} \ ${_pnpinfo} \
portsnap \ ${_portsnap} \
powerd \ powerd \
ppp \ ${_ppp} \
${_pppctl} \ ${_pppctl} \
pppd \ ${_pppd} \
pppstats \ ${_pppstats} \
${_praliases} \ ${_praliases} \
${_praudit} \ ${_praudit} \
procctl \ procctl \
@@ -134,10 +134,10 @@ SUBDIR= ac \
pw \ pw \
pwd_mkdb \ pwd_mkdb \
quot \ quot \
quotaon \ ${_quotaon} \
rarpd \ rarpd \
raycontrol \ ${_raycontrol} \
repquota \ ${_repquota} \
${_rip6query} \ ${_rip6query} \
rmt \ rmt \
${_rndc} \ ${_rndc} \
@@ -154,16 +154,16 @@ SUBDIR= ac \
${_rtadvd} \ ${_rtadvd} \
rtprio \ rtprio \
${_rtsold} \ ${_rtsold} \
rwhod \ ${_rwhod} \
sa \ ${_sa} \
${_sade} \ ${_sade} \
${_sendmail} \ ${_sendmail} \
setfib \ setfib \
setfmac \ setfmac \
setpmac \ setpmac \
${_sicontrol} \ ${_sicontrol} \
sliplogin \ ${_sliplogin} \
slstat \ ${_slstat} \
smbmsg \ smbmsg \
snapinfo \ snapinfo \
${_spkrtest} \ ${_spkrtest} \
@@ -181,13 +181,13 @@ SUBDIR= ac \
tzsetup \ tzsetup \
ugidfw \ ugidfw \
${_usbdevs} \ ${_usbdevs} \
vidcontrol \ ${_vidcontrol} \
vipw \ vipw \
watch \ watch \
watchdogd \ watchdogd \
wlandebug \ ${_wlandebug} \
${_wlconfig} \ ${_wlconfig} \
wpa \ ${_wpa} \
${_ypbind} \ ${_ypbind} \
${_yp_mkdb} \ ${_yp_mkdb} \
${_yppoll} \ ${_yppoll} \
@@ -197,8 +197,16 @@ SUBDIR= ac \
zic \ zic \
${_zzz} ${_zzz}
.if ${MACHINE_ARCH} != "arm" && ${MACHINE_ARCH} != "mips" # NB: keep these sorted by MK_* knobs
_sysinstall= sysinstall
.if ${MK_ACCT} != "no"
_ac= ac
_accton= accton
_sa= sa
.endif
.if ${MK_AMD} != "no"
_amd= amd
.endif .endif
.if ${MK_AUDIT} != "no" .if ${MK_AUDIT} != "no"
@@ -208,6 +216,10 @@ _auditreduce= auditreduce
_praudit= praudit _praudit= praudit
.endif .endif
.if ${MK_AUTHPF} != "no"
_authpf= authpf
.endif
.if ${MK_BIND_DNSSEC} != "no" && ${MK_OPENSSL} != "no" .if ${MK_BIND_DNSSEC} != "no" && ${MK_OPENSSL} != "no"
_dnssec-keygen= dnssec-keygen _dnssec-keygen= dnssec-keygen
_dnssec-signzone= dnssec-signzone _dnssec-signzone= dnssec-signzone
@@ -225,12 +237,23 @@ _rndc-confgen= rndc-confgen
_bluetooth= bluetooth _bluetooth= bluetooth
.endif .endif
.if ${MK_OPENSSL} != "no" .if ${MK_BSNMP} != "no"
_keyserv= keyserv _bsnmpd= bsnmpd
.endif .endif
.if ${MK_PF} != "no" .if ${MK_CTM} != "no"
_ftp-proxy= ftp-proxy _ctm= ctm
.endif
.if ${MK_FLOPPY} != "no"
_fdcontrol= fdcontrol
_fdformat= fdformat
_fdread= fdread
_fdwrite= fdwrite
.endif
.if ${MK_FREEBSD_UPDATE} != "no"
_freebsd-update= freebsd-update
.endif .endif
.if ${MK_INET6} != "no" .if ${MK_INET6} != "no"
@@ -246,10 +269,49 @@ _rtsold= rtsold
_traceroute6= traceroute6 _traceroute6= traceroute6
.endif .endif
.if ${MK_IPFW} != "no"
_ipfwpcap= ipfwpcap
.endif
.if ${MK_IPX} != "no" .if ${MK_IPX} != "no"
_IPXrouted= IPXrouted _IPXrouted= IPXrouted
.endif .endif
.if ${MK_JAIL} != "no"
_jail= jail
_jexect= jexec
_jls= jls
.endif
# XXX MK_SYSCONS
# XXX is moused w/ usb useful?
.if ${MK_LEGACY_CONSOLE} != "no"
_kbdcontrol= kbdcontrol
_kbdmap= kbdmap
_moused= moused
_vidcontrol= vidcontrol
.endif
.if ${MK_LIBTHR} != "no" || ${MK_LIBKSE} != "no"
.if ${MK_PPP} != "no"
_pppctl= pppctl
.endif
.if ${MK_NS_CACHING} != "no"
_nscd= nscd
.endif
.endif
.if ${MK_LPR} != "no"
_lpr= lpr
.endif
.if ${MK_NETGRAPH} != "no"
_flowctl= flowctl
_lmcconfig= lmcconfig
_ngctl= ngctl
_nghook= nghook
.endif
.if ${MK_NIS} != "no" .if ${MK_NIS} != "no"
_rpc.yppasswdd= rpc.yppasswdd _rpc.yppasswdd= rpc.yppasswdd
_rpc.ypupdated= rpc.ypupdated _rpc.ypupdated= rpc.ypupdated
@@ -262,22 +324,47 @@ _ypserv= ypserv
_ypset= ypset _ypset= ypset
.endif .endif
.if ${MK_AUTHPF} != "no" .if ${MK_NTP} != "no"
_authpf= authpf _ntp= ntp
.endif .endif
.if ${MK_LIBTHR} != "no" .if ${MK_OPENSSL} != "no"
_pppctl= pppctl _keyserv= keyserv
.endif .endif
.if ${MK_LPR} != "no" .if ${MK_PF} != "no"
_lpr= lpr _ftp-proxy= ftp-proxy
.endif .endif
.if ${MK_NS_CACHING} != "no" .if ${MK_PKGTOOLS} != "no"
.if ${MK_LIBTHR} != "no" _pkg_install= pkg_install
_nscd= nscd
.endif .endif
# XXX MK_TOOLCHAIN?
.if ${MK_PMC} != "no"
_pmccontrol= pmccontrol
_pmcstat= pmcstat
.endif
.if ${MK_PORTSNAP} != "no"
_portsnap= portsnap
.endif
.if ${MK_PPP} != "no"
_ppp = ppp
#_pppctl handled below
_pppd = pppd
_pppstats = pppstats
.endif
.if ${MK_QUOTAS} != "no"
_edquota= edquota
_quotaon= quotaon
_repquota= repquota
.endif
.if ${MK_RCMDS} != "no"
_rwhod= rwhod
.endif .endif
.if ${MK_SENDMAIL} != "no" .if ${MK_SENDMAIL} != "no"
@@ -288,19 +375,47 @@ _praliases= praliases
_sendmail= sendmail _sendmail= sendmail
.endif .endif
.if ${MK_SLIP} != "no"
_sliplogin = sliplogin
_slstats = slstats
.endif
.if ${MK_SYSINSTALL} != "no"
_sade= sade
.if ${MACHINE_ARCH} != "arm" && ${MACHINE_ARCH} != "mips"
_sysinstall= sysinstall
.endif
.endif
.if ${MK_TOOLCHAIN} != "no"
_config= config
_crunch= crunch
.endif
.if ${MK_USB} != "no" .if ${MK_USB} != "no"
_usbdevs= usbdevs _usbdevs= usbdevs
.endif .endif
.if ${MK_WIRELESS} != "no"
_ancontrol= ancontrol
_raycontrol= raycontrol
_wlandebug= wlandebug
_wpa= wpa
.endif
.if ${MACHINE_ARCH} == "arm" .if ${MACHINE_ARCH} == "arm"
_kgmon= kgmon _kgmon= kgmon
.endif .endif
.if ${MACHINE_ARCH} == "i386" .if ${MACHINE_ARCH} == "i386"
.if ${MK_APM} != "no"
_apm= apm _apm= apm
_apmd= apmd _apmd= apmd
.endif
_asf= asf _asf= asf
.if ${MK_TOOLCHAIN} != "no"
_btxld= btxld _btxld= btxld
.endif
_cpucontrol= cpucontrol _cpucontrol= cpucontrol
_kgmon= kgmon _kgmon= kgmon
_kgzip= kgzip _kgzip= kgzip
@@ -310,9 +425,10 @@ _mount_nwfs= mount_nwfs
.endif .endif
_mount_smbfs= mount_smbfs _mount_smbfs= mount_smbfs
_mptable= mptable _mptable= mptable
.if ${MK_NDIS} != "no"
_ndiscvt= ndiscvt _ndiscvt= ndiscvt
.endif
_pnpinfo= pnpinfo _pnpinfo= pnpinfo
_sade= sade
_sicontrol= sicontrol _sicontrol= sicontrol
_spkrtest= spkrtest _spkrtest= spkrtest
_zzz= zzz _zzz= zzz
@@ -321,7 +437,9 @@ _zzz= zzz
_acpi= acpi _acpi= acpi
.endif .endif
_boot0cfg= boot0cfg _boot0cfg= boot0cfg
.if ${MK_WIRELESS} != "no"
_wlconfig= wlconfig _wlconfig= wlconfig
.endif
.elif ${MACHINE} == "pc98" .elif ${MACHINE} == "pc98"
_boot98cfg= boot98cfg _boot98cfg= boot98cfg
.endif .endif
@@ -336,7 +454,9 @@ _acpi= acpi
.endif .endif
_asf= asf _asf= asf
_boot0cfg= boot0cfg _boot0cfg= boot0cfg
.if ${MK_TOOLCHAIN} != "no"
_btxld= btxld _btxld= btxld
.endif
_cpucontrol= cpucontrol _cpucontrol= cpucontrol
_kgmon= kgmon _kgmon= kgmon
_lptcontrol= lptcontrol _lptcontrol= lptcontrol
@@ -345,8 +465,9 @@ _mount_nwfs= mount_nwfs
.endif .endif
_mount_smbfs= mount_smbfs _mount_smbfs= mount_smbfs
_mptable= mptable _mptable= mptable
.if ${MK_NDIS} != "no"
_ndiscvt= ndiscvt _ndiscvt= ndiscvt
_sade= sade .endif
_sicontrol= sicontrol _sicontrol= sicontrol
_spkrtest= spkrtest _spkrtest= spkrtest
_zzz= zzz _zzz= zzz
@@ -370,7 +491,6 @@ _ofwdump= ofwdump
.if ${MACHINE_ARCH} == "sparc64" .if ${MACHINE_ARCH} == "sparc64"
_eeprom= eeprom _eeprom= eeprom
_ofwdump= ofwdump _ofwdump= ofwdump
_sade= sade
.endif .endif
.include <bsd.subdir.mk> .include <bsd.subdir.mk>