freebsd-src/usr.sbin/Makefile

499 lines
7.4 KiB
Makefile
Raw Normal View History

# From: @(#)Makefile 5.20 (Berkeley) 6/12/93
1999-08-28 01:35:59 +00:00
# $FreeBSD$
1994-05-26 05:23:31 +00:00
.include <bsd.own.mk>
1994-09-26 22:20:19 +00:00
# XXX MISSING: mkproto
SUBDIR= ${_ac} \
${_accton} \
${_acpi} \
1998-08-30 20:58:16 +00:00
adduser \
${_amd} \
${_ancontrol} \
${_apm} \
${_apmd} \
1998-08-30 20:58:16 +00:00
arp \
2006-10-05 12:18:15 +00:00
${_asf} \
${_atm} \
${_audit} \
${_auditd} \
${_auditreduce} \
${_authpf} \
${_bluetooth} \
${_boot0cfg} \
${_boot98cfg} \
1998-08-30 20:58:16 +00:00
bootparamd \
${_bsnmpd} \
${_btxld} \
burncd \
1998-08-30 20:58:16 +00:00
cdcontrol \
chkgrp \
chown \
chroot \
ckdist \
Add the new kernel-mode NFS Lock Manager. To use it instead of the user-mode lock manager, build a kernel with the NFSLOCKD option and add '-k' to 'rpc_lockd_flags' in rc.conf. Highlights include: * Thread-safe kernel RPC client - many threads can use the same RPC client handle safely with replies being de-multiplexed at the socket upcall (typically driven directly by the NIC interrupt) and handed off to whichever thread matches the reply. For UDP sockets, many RPC clients can share the same socket. This allows the use of a single privileged UDP port number to talk to an arbitrary number of remote hosts. * Single-threaded kernel RPC server. Adding support for multi-threaded server would be relatively straightforward and would follow approximately the Solaris KPI. A single thread should be sufficient for the NLM since it should rarely block in normal operation. * Kernel mode NLM server supporting cancel requests and granted callbacks. I've tested the NLM server reasonably extensively - it passes both my own tests and the NFS Connectathon locking tests running on Solaris, Mac OS X and Ubuntu Linux. * Userland NLM client supported. While the NLM server doesn't have support for the local NFS client's locking needs, it does have to field async replies and granted callbacks from remote NLMs that the local client has contacted. We relay these replies to the userland rpc.lockd over a local domain RPC socket. * Robust deadlock detection for the local lock manager. In particular it will detect deadlocks caused by a lock request that covers more than one blocking request. As required by the NLM protocol, all deadlock detection happens synchronously - a user is guaranteed that if a lock request isn't rejected immediately, the lock will eventually be granted. The old system allowed for a 'deferred deadlock' condition where a blocked lock request could wake up and find that some other deadlock-causing lock owner had beaten them to the lock. * Since both local and remote locks are managed by the same kernel locking code, local and remote processes can safely use file locks for mutual exclusion. Local processes have no fairness advantage compared to remote processes when contending to lock a region that has just been unlocked - the local lock manager enforces a strict first-come first-served model for both local and remote lockers. Sponsored by: Isilon Systems PR: 95247 107555 115524 116679 MFC after: 2 weeks
2008-03-26 15:23:12 +00:00
clear_locks \
${_config} \
${_cpucontrol} \
crashinfo \
1998-08-30 20:58:16 +00:00
cron \
${_crunch} \
${_ctm} \
daemon \
dconschat \
2001-04-21 00:13:57 +00:00
devinfo \
digictl \
diskinfo \
${_dnssec-keygen} \
${_dnssec-signzone} \
${_editmap} \
${_edquota} \
${_eeprom} \
extattr \
extattrctl \
${_faithd} \
${_fdcontrol} \
${_fdformat} \
${_fdread} \
${_fdwrite} \
fifolog \
${_flowctl} \
${_freebsd-update} \
${_ftp-proxy} \
2002-12-30 10:13:16 +00:00
fwcontrol \
getfmac \
getpmac \
gstat \
ifmcstat \
1998-08-30 20:58:16 +00:00
inetd \
1998-11-09 23:39:02 +00:00
iostat \
${_ip6addrctl} \
${_ipfwpcap} \
${_IPXrouted} \
${_jail} \
${_jexec} \
${_jls} \
${_kbdcontrol} \
${_kbdmap} \
${_keyserv} \
${_kgmon} \
${_kgzip} \
kldxref \
lastlogin \
${_lmcconfig} \
${_lpr} \
${_lptcontrol} \
${_mailstats} \
mailwrapper \
${_makemap} \
1998-08-30 20:58:16 +00:00
manctl \
1999-04-07 04:12:02 +00:00
memcontrol \
1999-10-20 07:33:09 +00:00
mergemaster \
1999-11-13 18:34:22 +00:00
mixer \
${_mld6query} \
2000-04-11 03:02:37 +00:00
mlxcontrol \
mountd \
${_mount_nwfs} \
mount_portalfs \
${_mount_smbfs} \
${_moused} \
${_mptable} \
1998-08-30 20:58:16 +00:00
mtest \
mtree \
${_named} \
${_named-checkconf} \
${_named-checkzone} \
2005-09-28 07:20:46 +00:00
${_named.reload} \
${_ndiscvt} \
${_ndp} \
1998-08-30 20:58:16 +00:00
newsyslog \
nfsd \
${_ngctl} \
${_nghook} \
nologin \
${_nscd} \
${_ntp} \
${_nvram} \
${_ofwdump} \
pccard \
1998-08-30 20:58:16 +00:00
pciconf \
periodic \
${_pkg_install} \
${_pmccontrol} \
${_pmcstat} \
${_pnpinfo} \
${_portsnap} \
2005-02-26 21:18:20 +00:00
powerd \
${_ppp} \
${_pppctl} \
${_pppd} \
${_pppstats} \
${_praliases} \
${_praudit} \
1998-08-30 20:58:16 +00:00
procctl \
pstat \
pw \
pwd_mkdb \
quot \
${_quotaon} \
1998-08-30 20:58:16 +00:00
rarpd \
${_raycontrol} \
${_repquota} \
${_rip6query} \
1998-08-30 20:58:16 +00:00
rmt \
${_rndc} \
${_rndc-confgen} \
${_route6d} \
Bring in a hybrid of SunSoft's transport-independent RPC (TI-RPC) and associated changes that had to happen to make this possible as well as bugs fixed along the way. Bring in required TLI library routines to support this. Since we don't support TLI we've essentially copied what NetBSD has done, adding a thin layer to emulate direct the TLI calls into BSD socket calls. This is mostly from Sun's tirpc release that was made in 1994, however some fixes were backported from the 1999 release (supposedly only made available after this porting effort was underway). The submitter has agreed to continue on and bring us up to the 1999 release. Several key features are introduced with this update: Client calls are thread safe. (1999 code has server side thread safe) Updated, a more modern interface. Many userland updates were done to bring the code up to par with the recent RPC API. There is an update to the pthreads library, a function pthread_main_np() was added to emulate a function of Sun's threads library. While we're at it, bring in NetBSD's lockd, it's been far too long of a wait. New rpcbind(8) replaces portmap(8) (supporting communication over an authenticated Unix-domain socket, and by default only allowing set and unset requests over that channel). It's much more secure than the old portmapper. Umount(8), mountd(8), mount_nfs(8), nfsd(8) have also been upgraded to support TI-RPC and to support IPV6. Umount(8) is also fixed to unmount pathnames longer than 80 chars, which are currently truncated by the Kernel statfs structure. Submitted by: Martin Blapp <mb@imp.ch> Manpage review: ru Secure RPC implemented by: wpaul
2001-03-19 12:50:13 +00:00
rpcbind \
1998-08-30 20:58:16 +00:00
rpc.lockd \
rpc.statd \
rpc.umntall \
${_rpc.yppasswdd} \
${_rpc.ypupdated} \
${_rpc.ypxfrd} \
${_rrenumd} \
${_rtadvd} \
1998-11-09 23:39:02 +00:00
rtprio \
${_rtsold} \
${_rwhod} \
${_sa} \
${_sade} \
${_sendmail} \
2008-05-10 00:43:13 +00:00
setfib \
setfmac \
setpmac \
${_sicontrol} \
${_sliplogin} \
${_slstat} \
2004-05-17 10:57:03 +00:00
smbmsg \
2005-07-20 22:53:57 +00:00
snapinfo \
${_spkrtest} \
1998-08-30 20:58:16 +00:00
spray \
${_sysinstall} \
1998-08-30 20:58:16 +00:00
syslogd \
tcpdchk \
tcpdmatch \
tcpdrop \
tcpdump \
1998-08-30 20:58:16 +00:00
timed \
traceroute \
${_traceroute6} \
1998-08-30 20:58:16 +00:00
trpt \
tzsetup \
ugidfw \
${_usbdevs} \
${_vidcontrol} \
1998-08-30 20:58:16 +00:00
vipw \
watch \
watchdogd \
${_wlandebug} \
${_wlconfig} \
${_wpa} \
${_ypbind} \
${_yp_mkdb} \
${_yppoll} \
${_yppush} \
${_ypserv} \
${_ypset} \
zic \
${_zzz}
# NB: keep these sorted by MK_* knobs
.if ${MK_ACCT} != "no"
_ac= ac
_accton= accton
_sa= sa
.endif
.if ${MK_AMD} != "no"
_amd= amd
.endif
.if ${MK_AUDIT} != "no"
_audit= audit
_auditd= auditd
_auditreduce= auditreduce
_praudit= praudit
.endif
.if ${MK_AUTHPF} != "no"
_authpf= authpf
.endif
.if ${MK_BIND_DNSSEC} != "no" && ${MK_OPENSSL} != "no"
_dnssec-keygen= dnssec-keygen
_dnssec-signzone= dnssec-signzone
.endif
.if ${MK_BIND_NAMED} != "no"
_named= named
_named-checkconf= named-checkconf
_named-checkzone= named-checkzone
2005-09-28 07:20:46 +00:00
_named.reload= named.reload
_rndc= rndc
_rndc-confgen= rndc-confgen
.endif
.if ${MK_BLUETOOTH} != "no"
_bluetooth= bluetooth
.endif
.if ${MK_BSNMP} != "no"
_bsnmpd= bsnmpd
.endif
.if ${MK_CTM} != "no"
_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
.if ${MK_INET6} != "no"
_faithd= faithd
_ip6addrctl= ip6addrctl
_mld6query= mld6query
_ndp= ndp
_rip6query= rip6query
_route6d= route6d
_rrenumd= rrenumd
_rtadvd= rtadvd
_rtsold= rtsold
_traceroute6= traceroute6
.endif
.if ${MK_IPFW} != "no"
_ipfwpcap= ipfwpcap
.endif
.if ${MK_IPX} != "no"
_IPXrouted= IPXrouted
.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"
_rpc.yppasswdd= rpc.yppasswdd
_rpc.ypupdated= rpc.ypupdated
_rpc.ypxfrd= rpc.ypxfrd
_ypbind= ypbind
_yp_mkdb= yp_mkdb
_yppoll= yppoll
_yppush= yppush
_ypserv= ypserv
_ypset= ypset
.endif
.if ${MK_NTP} != "no"
_ntp= ntp
.endif
.if ${MK_OPENSSL} != "no"
_keyserv= keyserv
.endif
.if ${MK_PF} != "no"
_ftp-proxy= ftp-proxy
.endif
.if ${MK_PKGTOOLS} != "no"
_pkg_install= pkg_install
.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
.if ${MK_SENDMAIL} != "no"
_editmap= editmap
_mailstats= mailstats
_makemap= makemap
_praliases= praliases
_sendmail= sendmail
.endif
.if ${MK_SLIP} != "no"
_sliplogin = sliplogin
_slstats = slstats
.endif
.if ${MK_SYSINSTALL} != "no"
.if ${MACHINE_ARCH} == "amd64" || ${MACHINE_ARCH} == "i386"
_sade= sade
.endif
.if ${MACHINE_ARCH} != "arm" && ${MACHINE_ARCH} != "mips"
_sysinstall= sysinstall
.endif
.endif
.if ${MK_TOOLCHAIN} != "no"
_config= config
_crunch= crunch
.endif
.if ${MK_USB} != "no"
_usbdevs= usbdevs
.endif
.if ${MK_WIRELESS} != "no"
_ancontrol= ancontrol
_raycontrol= raycontrol
_wlandebug= wlandebug
_wpa= wpa
.endif
.if ${MACHINE_ARCH} == "arm"
_kgmon= kgmon
.endif
.if ${MACHINE_ARCH} == "i386"
.if ${MK_APM} != "no"
_apm= apm
_apmd= apmd
.endif
_asf= asf
.if ${MK_TOOLCHAIN} != "no"
_btxld= btxld
.endif
_cpucontrol= cpucontrol
_kgmon= kgmon
_kgzip= kgzip
_lptcontrol= lptcontrol
.if ${MK_NCP} != "no"
_mount_nwfs= mount_nwfs
.endif
_mount_smbfs= mount_smbfs
_mptable= mptable
.if ${MK_NDIS} != "no"
_ndiscvt= ndiscvt
.endif
_pnpinfo= pnpinfo
_sicontrol= sicontrol
_spkrtest= spkrtest
_zzz= zzz
.if ${MACHINE} == "i386"
.if ${MK_ACPI} != "no"
_acpi= acpi
.endif
_boot0cfg= boot0cfg
.if ${MK_WIRELESS} != "no"
_wlconfig= wlconfig
.endif
.elif ${MACHINE} == "pc98"
_boot98cfg= boot98cfg
.endif
1998-09-16 09:33:23 +00:00
.endif
# kgzip: builds, but missing support files
# mptable: broken (not 64 bit clean)
# pnpinfo: crashes (not really useful anyway)
2003-06-03 01:38:16 +00:00
.if ${MACHINE_ARCH} == "amd64"
.if ${MK_ACPI} != "no"
_acpi= acpi
2003-06-03 01:38:16 +00:00
.endif
_asf= asf
_boot0cfg= boot0cfg
.if ${MK_TOOLCHAIN} != "no"
_btxld= btxld
.endif
_cpucontrol= cpucontrol
2004-05-23 18:30:08 +00:00
_kgmon= kgmon
_lptcontrol= lptcontrol
.if ${MK_NCP} != "no"
_mount_nwfs= mount_nwfs
.endif
_mount_smbfs= mount_smbfs
_mptable= mptable
.if ${MK_NDIS} != "no"
2005-03-30 02:44:46 +00:00
_ndiscvt= ndiscvt
.endif
_sicontrol= sicontrol
_spkrtest= spkrtest
_zzz= zzz
.endif
.if ${MACHINE_ARCH} == "ia64"
.if ${MK_ACPI} != "no"
_acpi= acpi
.endif
2004-08-30 02:59:11 +00:00
_kgmon= kgmon
2006-08-22 03:31:24 +00:00
_mount_smbfs= mount_smbfs
_zzz= zzz
2002-10-18 15:38:39 +00:00
.endif
2005-09-19 08:13:43 +00:00
.if ${MACHINE_ARCH} == "powerpc"
_mount_smbfs= mount_smbfs
_nvram= nvram
_ofwdump= ofwdump
2005-09-19 08:13:43 +00:00
.endif
.if ${MACHINE_ARCH} == "sparc64"
_eeprom= eeprom
_ofwdump= ofwdump
.endif
1994-05-26 05:23:31 +00:00
.include <bsd.subdir.mk>