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