xref: /freebsd/libexec/rc/rc.d/Makefile (revision eda14cbc264d6969b02f2b1994cef11148e914f1)
1# $FreeBSD$
2
3.include <src.opts.mk>
4
5CONFDIR=	/etc/rc.d
6CONFGROUPS=	CONFS
7CONFSPACKAGE=	rc
8
9CONFS=	DAEMON \
10	FILESYSTEMS \
11	LOGIN \
12	NETWORKING \
13	SERVERS \
14	addswap \
15	adjkerntz \
16	archdep \
17	bgfsck \
18	${_blacklistd} \
19	bridge \
20	cfumass \
21	cleanvar \
22	cleartmp \
23	cron \
24	ctld \
25	ddb \
26	defaultroute \
27	devd \
28	devfs \
29	devmatch \
30	dhclient \
31	dmesg \
32	dumpon \
33	fsck \
34	gbde \
35	geli \
36	geli2 \
37	gptboot \
38	growfs \
39	gssd \
40	hostid \
41	hostid_save \
42	hostname \
43	iovctl \
44	ip6addrctl \
45	ipsec \
46	${_kadmind} \
47	${_kdc} \
48	${_kfd} \
49	kld \
50	kldxref \
51	${_kpasswdd} \
52	ldconfig \
53	linux \
54	local \
55	localpkg \
56	lockd \
57	mixer \
58	motd \
59	mountcritlocal \
60	mountcritremote \
61	mountlate \
62	mdconfig \
63	mdconfig2 \
64	mountd \
65	msgs \
66	natd \
67	netif \
68	netoptions \
69	netwait \
70	newsyslog \
71	nfsclient \
72	nfscbd \
73	nfsd \
74	nfsuserd \
75	nisdomain \
76	${_nscd} \
77	ntpdate \
78	${_opensm} \
79	os-release \
80	pf \
81	pflog \
82	pfsync \
83	ppp \
84	pppoed \
85	pwcheck \
86	quota \
87	random \
88	rarpd \
89	rctl \
90	resolv \
91	root \
92	route6d \
93	routing \
94	rpcbind \
95	rtadvd \
96	rtsold \
97	rwho \
98	savecore \
99	securelevel \
100	serial \
101	sppp \
102	statd \
103	static_arp \
104	static_ndp \
105	stf \
106	swap \
107	swaplate \
108	sysctl \
109	syslogd \
110	sysvipc \
111	tmp \
112	ugidfw \
113	${_utx} \
114	var \
115	watchdogd
116
117.if ${MK_NIS} != "no"
118CONFS+=	ypbind \
119	ypldap \
120	yppasswdd \
121	ypserv \
122	ypset \
123	ypupdated \
124	ypxfrd
125.endif
126
127.if ${MK_ACCT} != "no"
128CONFGROUPS+=	ACCT
129ACCT+=		accounting
130ACCTPACKAGE=	acct
131.endif
132
133.if ${MK_ACPI} != "no"
134CONFGROUPS+=	ACPI
135ACPI=		power_profile
136ACPIPACKAGE=	acpi
137.endif
138
139.if ${MK_ACPI} != "no" || ${MK_APM} != "no"
140CONFS+=		powerd
141.endif
142
143.if ${MK_APM} != "no"
144CONFGROUPS+=	APM
145APM+=		apm
146.if ${MACHINE} == "i386"
147APM+=		apmd
148.endif
149APMPACKAGE=	apm
150.endif
151
152.if ${MK_AUDIT} != "no"
153CONFGROUPS+=	AUDIT
154AUDIT+=		auditd
155AUDIT+=		auditdistd
156.endif
157
158.if ${MK_AUTOFS} != "no"
159CONFS+=		automount
160CONFS+=		automountd
161CONFS+=		autounmountd
162.endif
163
164.if ${MK_BLACKLIST} != "no"
165_blacklistd+=	blacklistd
166.endif
167
168.if ${MK_BLUETOOTH} != "no"
169CONFGROUPS+=	BLUETOOTH
170BLUETOOTH+=	bluetooth \
171		bthidd \
172		hcsecd \
173		rfcomm_pppd_server \
174		sdpd \
175		ubthidhci
176BLUETOOTHPACKAGE=	bluetooth
177.endif
178
179.if ${MK_BOOTPARAMD} != "no"
180CONFS+=		bootparams
181.endif
182
183.if ${MK_BSNMP} != "no"
184CONFGROUPS+=	BSNMP
185BSNMP+=		bsnmpd
186BSNMPPACKAGE=	bsnmp
187.endif
188
189.if ${MK_CCD} != "no"
190CONFS+=		ccd
191.endif
192
193.if ${MK_FTP} != "no"
194CONFS+=		ftpd
195.endif
196
197.if ${MK_HAST} != "no"
198CONFGROUPS+=	HAST
199HAST=		hastd
200HASTPACKAGE=	hast
201.endif
202
203.if ${MK_INETD} != "no"
204CONFS+=		inetd
205.endif
206
207.if ${MK_IPFILTER} != "no"
208CONFS+=	ipfilter \
209	ipfs \
210	ipmon \
211	ipnat \
212	ippool
213.endif
214
215.if ${MK_IPFW} != "no"
216CONFS+=		ipfw
217.if ${MK_NETGRAPH} != "no"
218CONFS+=		ipfw_netflow
219.endif
220.endif
221
222.if ${MK_ISCSI} != "no"
223CONFS+=		iscsictl
224CONFS+=		iscsid
225.endif
226
227.if ${MK_JAIL} != "no"
228CONFGROUPS+=	JAIL
229JAIL+=		jail
230JAILPACKAGE=	jail
231.endif
232
233.if ${MK_LEGACY_CONSOLE} != "no"
234CONFS+=		moused
235CONFS+=		syscons
236.endif
237
238.if ${MK_LPR} != "no"
239CONFS+=		lpd
240.endif
241
242.if ${MK_KERBEROS} != "no"
243CONFS+=		ipropd_master
244CONFS+=		ipropd_slave
245_kadmind=	kadmind
246_kdc=		kdc
247_kfd=		kfd
248_kpasswdd=	kpasswdd
249
250DIRS+=	VAR_HEMIDAL
251VAR_HEMIDAL=	/var/heimdal
252VAR_HEMIDAL_MODE=	700
253.endif
254
255.if ${MK_MAIL} != "no"
256CONFS+=		othermta
257.endif
258
259.if ${MK_NS_CACHING} != "no"
260_nscd=		nscd
261.endif
262
263.if ${MK_NTP} != "no"
264CONFS+=		ntpd
265.endif
266
267.if ${MK_OFED} != "no"
268_opensm=	opensm
269.endif
270
271.if ${MK_OPENSSL} != "no"
272CONFS+=		keyserv
273.endif
274
275.if ${MK_OPENSSH} != "no"
276CONFGROUPS+=	SSH
277SSH=		sshd
278SSHPACKAGE=	ssh
279.endif
280
281.if ${MK_PF} != "no"
282CONFS+=		ftp-proxy
283.endif
284
285.if ${MK_ROUTED} != "no"
286CONFS+=		routed
287.endif
288
289.if ${MK_SENDMAIL} != "no"
290CONFGROUPS+=	SMRCD
291SMRCD=		sendmail
292SMRCDPACKAGE=	sendmail
293.endif
294
295.if ${MK_UNBOUND} != "no"
296CONFGROUPS+=	UNBOUND
297UNBOUND+=	local_unbound
298UNBOUNDPACKAGE=	unbound
299.endif
300
301.if ${MK_UTMPX} != "no"
302_utx=		utx
303.endif
304
305.if ${MK_VI} != "no"
306CONFGROUPS+=	VI
307VI+=		virecover
308VIPACKAGE=	vi
309.endif
310
311.if ${MK_WIRELESS} != "no"
312CONFS+=		hostapd
313CONFS+=		wpa_supplicant
314.endif
315
316.if ${MK_ZFS} != "no"
317CONFGROUPS+=	ZFS
318ZFS+=		zfs
319ZFS+=		zfsbe
320ZFS+=		zfsd
321ZFS+=		zvol
322.endif
323
324.for fg in ${CONFGROUPS}
325${fg}MODE?=	${BINMODE}
326.endfor
327
328.include <bsd.prog.mk>
329