2002-06-13 22:14:37 +00:00
|
|
|
# $FreeBSD$
|
2001-06-16 07:16:14 +00:00
|
|
|
|
2014-05-06 04:22:01 +00:00
|
|
|
.include <src.opts.mk>
|
2006-03-17 18:54:44 +00:00
|
|
|
|
2016-05-15 04:19:50 +00:00
|
|
|
BINDIR= /etc/rc.d
|
2015-03-05 12:40:59 +00:00
|
|
|
FILESGROUPS= FILES
|
|
|
|
|
2011-12-15 21:06:37 +00:00
|
|
|
FILES= DAEMON \
|
|
|
|
FILESYSTEMS \
|
|
|
|
LOGIN \
|
|
|
|
NETWORKING \
|
|
|
|
SERVERS \
|
|
|
|
abi \
|
|
|
|
addswap \
|
|
|
|
adjkerntz \
|
|
|
|
archdep \
|
|
|
|
auditd \
|
2012-12-01 15:11:46 +00:00
|
|
|
auditdistd \
|
2011-12-15 21:06:37 +00:00
|
|
|
bgfsck \
|
2016-06-02 19:06:04 +00:00
|
|
|
${_blacklistd} \
|
2013-10-03 15:19:16 +00:00
|
|
|
${_bluetooth} \
|
2011-12-15 21:06:37 +00:00
|
|
|
bridge \
|
2013-10-03 15:19:16 +00:00
|
|
|
${_bthidd} \
|
2011-12-15 21:06:37 +00:00
|
|
|
cleanvar \
|
|
|
|
cleartmp \
|
|
|
|
cron \
|
2013-09-14 15:29:06 +00:00
|
|
|
ctld \
|
2011-12-15 21:06:37 +00:00
|
|
|
ddb \
|
|
|
|
defaultroute \
|
|
|
|
devd \
|
|
|
|
devfs \
|
2018-02-12 04:52:25 +00:00
|
|
|
devmatch \
|
2011-12-15 21:06:37 +00:00
|
|
|
dhclient \
|
|
|
|
dmesg \
|
|
|
|
dumpon \
|
|
|
|
fsck \
|
|
|
|
gbde \
|
|
|
|
geli \
|
|
|
|
geli2 \
|
|
|
|
gptboot \
|
2014-11-02 00:11:25 +00:00
|
|
|
growfs \
|
2011-12-15 21:06:37 +00:00
|
|
|
gssd \
|
2013-10-03 15:19:16 +00:00
|
|
|
${_hcsecd} \
|
2011-12-15 21:06:37 +00:00
|
|
|
hostid \
|
|
|
|
hostid_save \
|
|
|
|
hostname \
|
2015-03-01 00:58:23 +00:00
|
|
|
iovctl \
|
2011-12-15 21:06:37 +00:00
|
|
|
ip6addrctl \
|
|
|
|
ipfilter \
|
|
|
|
ipfs \
|
|
|
|
ipmon \
|
|
|
|
ipnat \
|
|
|
|
ipsec \
|
2014-10-19 20:46:59 +00:00
|
|
|
${_kadmind} \
|
|
|
|
${_kdc} \
|
|
|
|
${_kfd} \
|
2011-12-15 21:06:37 +00:00
|
|
|
kld \
|
|
|
|
kldxref \
|
2014-10-19 20:46:59 +00:00
|
|
|
${_kpasswdd} \
|
2011-12-15 21:06:37 +00:00
|
|
|
ldconfig \
|
|
|
|
local \
|
|
|
|
localpkg \
|
|
|
|
lockd \
|
|
|
|
mixer \
|
|
|
|
motd \
|
|
|
|
mountcritlocal \
|
|
|
|
mountcritremote \
|
|
|
|
mountlate \
|
|
|
|
mdconfig \
|
|
|
|
mdconfig2 \
|
|
|
|
mountd \
|
|
|
|
msgs \
|
|
|
|
natd \
|
|
|
|
netif \
|
|
|
|
netoptions \
|
|
|
|
netwait \
|
|
|
|
newsyslog \
|
|
|
|
nfsclient \
|
|
|
|
nfscbd \
|
|
|
|
nfsd \
|
|
|
|
nfsuserd \
|
|
|
|
nisdomain \
|
|
|
|
${_nscd} \
|
|
|
|
nsswitch \
|
|
|
|
ntpdate \
|
|
|
|
${_opensm} \
|
|
|
|
pf \
|
|
|
|
pflog \
|
|
|
|
pfsync \
|
|
|
|
ppp \
|
|
|
|
pppoed \
|
|
|
|
pwcheck \
|
2003-07-30 20:05:20 +00:00
|
|
|
quota \
|
2011-12-15 21:06:37 +00:00
|
|
|
random \
|
|
|
|
rarpd \
|
|
|
|
rctl \
|
|
|
|
resolv \
|
|
|
|
root \
|
|
|
|
route6d \
|
|
|
|
routing \
|
|
|
|
rpcbind \
|
|
|
|
rtadvd \
|
|
|
|
rtsold \
|
2017-08-15 22:16:15 +00:00
|
|
|
rwho \
|
2011-12-15 21:06:37 +00:00
|
|
|
savecore \
|
|
|
|
securelevel \
|
|
|
|
serial \
|
|
|
|
sppp \
|
|
|
|
statd \
|
|
|
|
static_arp \
|
|
|
|
static_ndp \
|
|
|
|
stf \
|
2013-06-27 18:28:45 +00:00
|
|
|
swap \
|
|
|
|
swaplate \
|
2011-12-15 21:06:37 +00:00
|
|
|
sysctl \
|
|
|
|
syslogd \
|
|
|
|
tmp \
|
|
|
|
${_ubthidhci} \
|
2005-12-15 01:04:51 +00:00
|
|
|
ugidfw \
|
2012-02-11 20:47:16 +00:00
|
|
|
${_utx} \
|
2011-12-15 21:06:37 +00:00
|
|
|
var \
|
2016-10-22 19:51:32 +00:00
|
|
|
watchdogd
|
|
|
|
|
|
|
|
.if ${MK_NIS} != "no"
|
|
|
|
FILES+= ypbind \
|
2016-06-06 04:13:49 +00:00
|
|
|
ypldap \
|
2011-12-15 21:06:37 +00:00
|
|
|
yppasswdd \
|
|
|
|
ypserv \
|
|
|
|
ypset \
|
|
|
|
ypupdated \
|
zfsd(8), the ZFS fault management daemon
Add zfsd, which deals with hard drive faults in ZFS pools. It manages
hotspares and replements in drive slots that publish physical paths.
cddl/usr.sbin/zfsd
Add zfsd(8) and its unit tests
cddl/usr.sbin/Makefile
Add zfsd to the build
lib/libdevdctl
A C++ library that helps devd clients process events
lib/Makefile
share/mk/bsd.libnames.mk
share/mk/src.libnames.mk
Add libdevdctl to the build. It's a private library, unusable by
out-of-tree software.
etc/defaults/rc.conf
By default, set zfsd_enable to NO
etc/mtree/BSD.include.dist
Add a directory for libdevdctl's include files
etc/mtree/BSD.tests.dist
Add a directory for zfsd's unit tests
etc/mtree/BSD.var.dist
Add /var/db/zfsd/cases, where zfsd stores case files while it's shut
down.
etc/rc.d/Makefile
etc/rc.d/zfsd
Add zfsd's rc script
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev.c
Fix the resource.fs.zfs.statechange message. It had a number of
problems:
It was only being emitted on a transition to the HEALTHY state.
That made it impossible for zfsd to take actions based on drives
getting sicker.
It compared the new state to vdev_prevstate, which is the state that
the vdev had the last time it was opened. That doesn't make sense,
because a vdev can change state multiple times without being
reopened.
vdev_set_state contains logic that will change the device's new
state based on various conditions. However, the statechange event
was being posted _before_ that logic took effect. Now it's being
posted after.
Submitted by: gibbs, asomers, mav, allanjude
Reviewed by: mav, delphij
Relnotes: yes
Sponsored by: Spectra Logic Corp, iX Systems
Differential Revision: https://reviews.freebsd.org/D6564
2016-05-28 17:43:40 +00:00
|
|
|
ypxfrd
|
2016-10-22 19:51:32 +00:00
|
|
|
.endif
|
2005-09-23 16:54:09 +00:00
|
|
|
|
2015-01-26 08:46:26 +00:00
|
|
|
.if ${MK_ACCT} != "no"
|
2016-01-21 18:19:33 +00:00
|
|
|
FILESGROUPS+= ACCT
|
|
|
|
ACCT+= accounting
|
2016-01-29 21:35:24 +00:00
|
|
|
ACCTPACKAGE= acct
|
2016-05-15 04:19:50 +00:00
|
|
|
.endif
|
2015-01-26 08:46:26 +00:00
|
|
|
|
2015-01-26 08:04:38 +00:00
|
|
|
.if ${MK_ACPI} != "no"
|
2015-03-05 16:22:31 +00:00
|
|
|
FILESGROUPS+= ACPI
|
|
|
|
ACPI= power_profile
|
2016-01-29 21:35:24 +00:00
|
|
|
ACPIPACKAGE= acpi
|
2016-05-15 04:19:50 +00:00
|
|
|
.endif
|
2015-01-26 08:04:38 +00:00
|
|
|
|
2015-02-05 11:38:29 +00:00
|
|
|
.if ${MK_ACPI} != "no" || ${MK_APM} != "no"
|
|
|
|
FILES+= powerd
|
|
|
|
.endif
|
|
|
|
|
2015-01-26 08:28:51 +00:00
|
|
|
.if ${MK_AMD} != "no"
|
2016-01-21 18:19:33 +00:00
|
|
|
FILESGROUPS+= AMD
|
|
|
|
AMD+= amd
|
2016-01-29 21:35:24 +00:00
|
|
|
AMDPACKAGE= amd
|
2016-05-15 04:19:50 +00:00
|
|
|
.endif
|
2015-01-26 08:28:51 +00:00
|
|
|
|
2015-01-26 08:23:36 +00:00
|
|
|
.if ${MK_APM} != "no"
|
2016-01-21 18:41:55 +00:00
|
|
|
FILESGROUPS+= APM
|
|
|
|
APM+= apm
|
|
|
|
APM+= apmd
|
2016-01-29 21:35:24 +00:00
|
|
|
APMPACKAGE= apm
|
2016-05-15 04:19:50 +00:00
|
|
|
.endif
|
2015-01-26 08:23:36 +00:00
|
|
|
|
2015-01-26 07:15:49 +00:00
|
|
|
.if ${MK_AUTOFS} != "no"
|
|
|
|
FILES+= automount
|
|
|
|
FILES+= automountd
|
|
|
|
FILES+= autounmountd
|
|
|
|
.endif
|
2016-06-02 19:06:04 +00:00
|
|
|
|
2016-06-07 16:31:03 +00:00
|
|
|
.if ${MK_BLACKLIST} != "no"
|
2016-06-02 19:06:04 +00:00
|
|
|
_blacklistd+= blacklistd
|
|
|
|
.endif
|
2015-01-26 07:15:49 +00:00
|
|
|
|
2014-09-20 05:49:15 +00:00
|
|
|
.if ${MK_BLUETOOTH} != "no"
|
|
|
|
_bluetooth= bluetooth
|
|
|
|
_bthidd= bthidd
|
|
|
|
_hcsecd= hcsecd
|
2016-05-06 09:18:09 +00:00
|
|
|
FILES+= rfcomm_pppd_server
|
|
|
|
FILES+= sdpd
|
2014-09-20 05:49:15 +00:00
|
|
|
_ubthidhci= ubthidhci
|
2011-03-21 09:58:24 +00:00
|
|
|
.endif
|
|
|
|
|
2015-02-05 11:38:29 +00:00
|
|
|
.if ${MK_BOOTPARAMD} != "no"
|
|
|
|
FILES+= bootparams
|
|
|
|
.endif
|
|
|
|
|
2015-01-25 05:30:03 +00:00
|
|
|
.if ${MK_BSNMP} != "no"
|
2015-03-18 13:01:09 +00:00
|
|
|
FILESGROUPS+= BSNMP
|
|
|
|
BSNMP+= bsnmpd
|
2016-01-29 21:35:24 +00:00
|
|
|
BSNMPPACKAGE= bsnmp
|
2016-05-15 04:19:50 +00:00
|
|
|
.endif
|
2015-01-25 05:30:03 +00:00
|
|
|
|
2015-01-25 04:52:48 +00:00
|
|
|
.if ${MK_CCD} != "no"
|
|
|
|
FILES+= ccd
|
|
|
|
.endif
|
|
|
|
|
2015-02-05 11:38:29 +00:00
|
|
|
.if ${MK_FTP} != "no"
|
|
|
|
FILES+= ftpd
|
|
|
|
.endif
|
|
|
|
|
2015-01-26 06:27:07 +00:00
|
|
|
.if ${MK_HAST} != "no"
|
2016-02-08 21:15:07 +00:00
|
|
|
FILESGROUPS+= HAST
|
|
|
|
HAST= hastd
|
|
|
|
HASTPACKAGE= hast
|
2016-05-15 04:19:50 +00:00
|
|
|
.endif
|
2015-01-26 06:27:07 +00:00
|
|
|
|
2015-02-05 11:38:29 +00:00
|
|
|
.if ${MK_INETD} != "no"
|
2015-02-05 20:45:50 +00:00
|
|
|
FILES+= inetd
|
2015-02-05 11:38:29 +00:00
|
|
|
.endif
|
|
|
|
|
2017-07-15 09:04:23 +00:00
|
|
|
.if ${MK_IPFW} != "no"
|
|
|
|
FILES+= ipfw
|
|
|
|
.if ${MK_NETGRAPH} != "no"
|
|
|
|
FILES+= ipfw_netflow
|
|
|
|
.endif
|
|
|
|
.endif
|
|
|
|
|
2015-01-25 04:20:11 +00:00
|
|
|
.if ${MK_ISCSI} != "no"
|
|
|
|
FILES+= iscsictl
|
|
|
|
FILES+= iscsid
|
|
|
|
.endif
|
|
|
|
|
2015-01-26 09:37:14 +00:00
|
|
|
.if ${MK_JAIL} != "no"
|
2016-01-20 17:07:13 +00:00
|
|
|
FILESGROUPS+= JAIL
|
|
|
|
JAIL+= jail
|
2016-01-29 21:35:24 +00:00
|
|
|
JAILPACKAGE= jail
|
2016-05-15 04:19:50 +00:00
|
|
|
.endif
|
2015-01-26 09:37:14 +00:00
|
|
|
|
2015-02-05 11:38:29 +00:00
|
|
|
.if ${MK_LEGACY_CONSOLE} != "no"
|
|
|
|
FILES+= moused
|
|
|
|
FILES+= syscons
|
2015-01-26 08:20:51 +00:00
|
|
|
.endif
|
|
|
|
|
2015-02-05 11:38:29 +00:00
|
|
|
.if ${MK_LPR} != "no"
|
|
|
|
FILES+= lpd
|
2006-04-28 12:03:38 +00:00
|
|
|
.endif
|
|
|
|
|
2014-10-19 20:46:59 +00:00
|
|
|
.if ${MK_KERBEROS} != "no"
|
2015-01-26 09:51:21 +00:00
|
|
|
FILES+= ipropd_master
|
|
|
|
FILES+= ipropd_slave
|
2014-10-19 20:46:59 +00:00
|
|
|
_kadmind= kadmind
|
|
|
|
_kdc= kdc
|
|
|
|
_kfd= kfd
|
|
|
|
_kpasswdd= kpasswdd
|
|
|
|
.endif
|
|
|
|
|
2015-02-05 11:38:29 +00:00
|
|
|
.if ${MK_MAIL} != "no"
|
|
|
|
FILES+= othermta
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${MK_NS_CACHING} != "no"
|
|
|
|
_nscd= nscd
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${MK_NTP} != "no"
|
|
|
|
FILES+= ntpd
|
|
|
|
.endif
|
|
|
|
|
2014-09-20 05:49:15 +00:00
|
|
|
.if ${MK_OFED} != "no"
|
|
|
|
_opensm= opensm
|
2010-04-16 16:49:42 +00:00
|
|
|
.endif
|
|
|
|
|
2014-09-23 22:07:08 +00:00
|
|
|
.if ${MK_OPENSSL} != "no"
|
|
|
|
FILES+= keyserv
|
|
|
|
.endif
|
|
|
|
|
2014-09-20 05:49:15 +00:00
|
|
|
.if ${MK_OPENSSH} != "no"
|
2015-03-05 20:25:09 +00:00
|
|
|
FILESGROUPS+= SSH
|
|
|
|
SSH= sshd
|
2016-01-29 21:35:24 +00:00
|
|
|
SSHPACKAGE= ssh
|
2016-05-15 04:19:50 +00:00
|
|
|
.endif
|
2013-12-21 15:02:47 +00:00
|
|
|
|
2014-09-20 06:34:34 +00:00
|
|
|
.if ${MK_PF} != "no"
|
|
|
|
FILES+= ftp-proxy
|
|
|
|
.endif
|
|
|
|
|
2015-02-05 11:38:29 +00:00
|
|
|
.if ${MK_ROUTED} != "no"
|
|
|
|
FILES+= routed
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if ${MK_SENDMAIL} != "no"
|
2016-02-08 18:41:46 +00:00
|
|
|
FILESGROUPS+= SMRCD
|
|
|
|
SMRCD= sendmail
|
|
|
|
SMRCDPACKAGE= sendmail
|
2016-05-15 04:19:50 +00:00
|
|
|
.endif
|
2015-02-05 11:38:29 +00:00
|
|
|
|
|
|
|
.if ${MK_TIMED} != "no"
|
|
|
|
FILES+= timed
|
|
|
|
.endif
|
|
|
|
|
2013-09-23 04:36:51 +00:00
|
|
|
.if ${MK_UNBOUND} != "no"
|
2015-03-05 12:40:59 +00:00
|
|
|
FILESGROUPS+= UNBOUND
|
|
|
|
UNBOUND+= local_unbound
|
2016-01-29 21:35:24 +00:00
|
|
|
UNBOUNDPACKAGE= unbound
|
2016-05-15 04:19:50 +00:00
|
|
|
.endif
|
2013-09-23 04:36:51 +00:00
|
|
|
|
2012-02-11 20:47:16 +00:00
|
|
|
.if ${MK_UTMPX} != "no"
|
|
|
|
_utx= utx
|
|
|
|
.endif
|
|
|
|
|
2015-02-05 11:38:29 +00:00
|
|
|
.if ${MK_VI} != "no"
|
2016-02-02 21:06:09 +00:00
|
|
|
FILESGROUPS+= VI
|
|
|
|
VI+= virecover
|
|
|
|
VIPACKAGE= vi
|
2016-05-15 04:19:50 +00:00
|
|
|
.endif
|
2015-02-05 11:38:29 +00:00
|
|
|
|
2015-01-26 09:43:08 +00:00
|
|
|
.if ${MK_WIRELESS} != "no"
|
|
|
|
FILES+= hostapd
|
|
|
|
FILES+= wpa_supplicant
|
|
|
|
.endif
|
|
|
|
|
2016-05-15 04:39:36 +00:00
|
|
|
.if ${MK_ZFS} != "no"
|
|
|
|
FILESGROUPS+= ZFS
|
|
|
|
ZFS+= zfs
|
2016-10-13 07:10:27 +00:00
|
|
|
ZFS+= zfsbe
|
zfsd(8), the ZFS fault management daemon
Add zfsd, which deals with hard drive faults in ZFS pools. It manages
hotspares and replements in drive slots that publish physical paths.
cddl/usr.sbin/zfsd
Add zfsd(8) and its unit tests
cddl/usr.sbin/Makefile
Add zfsd to the build
lib/libdevdctl
A C++ library that helps devd clients process events
lib/Makefile
share/mk/bsd.libnames.mk
share/mk/src.libnames.mk
Add libdevdctl to the build. It's a private library, unusable by
out-of-tree software.
etc/defaults/rc.conf
By default, set zfsd_enable to NO
etc/mtree/BSD.include.dist
Add a directory for libdevdctl's include files
etc/mtree/BSD.tests.dist
Add a directory for zfsd's unit tests
etc/mtree/BSD.var.dist
Add /var/db/zfsd/cases, where zfsd stores case files while it's shut
down.
etc/rc.d/Makefile
etc/rc.d/zfsd
Add zfsd's rc script
sys/cddl/contrib/opensolaris/uts/common/fs/zfs/vdev.c
Fix the resource.fs.zfs.statechange message. It had a number of
problems:
It was only being emitted on a transition to the HEALTHY state.
That made it impossible for zfsd to take actions based on drives
getting sicker.
It compared the new state to vdev_prevstate, which is the state that
the vdev had the last time it was opened. That doesn't make sense,
because a vdev can change state multiple times without being
reopened.
vdev_set_state contains logic that will change the device's new
state based on various conditions. However, the statechange event
was being posted _before_ that logic took effect. Now it's being
posted after.
Submitted by: gibbs, asomers, mav, allanjude
Reviewed by: mav, delphij
Relnotes: yes
Sponsored by: Spectra Logic Corp, iX Systems
Differential Revision: https://reviews.freebsd.org/D6564
2016-05-28 17:43:40 +00:00
|
|
|
ZFS+= zfsd
|
2016-05-15 04:39:36 +00:00
|
|
|
ZFS+= zvol
|
|
|
|
ZFSPACKAGE= zfs
|
|
|
|
.endif
|
|
|
|
|
2016-05-15 04:19:50 +00:00
|
|
|
.for fg in ${FILESGROUPS}
|
|
|
|
${fg}MODE?= ${BINMODE}
|
|
|
|
.endfor
|
|
|
|
|
2001-06-16 07:16:14 +00:00
|
|
|
.include <bsd.prog.mk>
|