xref: /freebsd/libexec/rc/rc.d/Makefile (revision f126d349810fdb512c0b01e101342d430b947488)
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	machine_id \
56	mixer \
57	motd \
58	mountcritlocal \
59	mountcritremote \
60	mountlate \
61	mdconfig \
62	mdconfig2 \
63	mountd \
64	msgs \
65	natd \
66	netif \
67	netoptions \
68	netwait \
69	newsyslog \
70	nfsclient \
71	nfscbd \
72	nfsd \
73	nfsuserd \
74	nisdomain \
75	${_nscd} \
76	ntpdate \
77	${_opensm} \
78	os-release \
79	pf \
80	pflog \
81	pfsync \
82	powerd \
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	statd \
102	static_arp \
103	static_ndp \
104	stf \
105	swap \
106	swaplate \
107	sysctl \
108	sysctl_lastload \
109	syslogd \
110	sysvipc \
111	tmp \
112	ugidfw \
113	${_utx} \
114	var \
115	var_run \
116	watchdogd
117
118.if ${MK_NIS} != "no"
119CONFS+=	ypbind \
120	ypldap \
121	yppasswdd \
122	ypserv \
123	ypset \
124	ypupdated \
125	ypxfrd
126.endif
127
128.if ${MK_ACCT} != "no"
129CONFGROUPS+=	ACCT
130ACCT+=		accounting
131ACCTPACKAGE=	acct
132.endif
133
134.if ${MK_ACPI} != "no"
135CONFGROUPS+=	ACPI
136ACPI=		power_profile
137ACPIPACKAGE=	acpi
138.endif
139
140.if ${MK_APM} != "no"
141CONFGROUPS+=	APM
142APM+=		apm
143.if ${MACHINE} == "i386"
144APM+=		apmd
145.endif
146APMPACKAGE=	apm
147.endif
148
149.if ${MK_AUDIT} != "no"
150CONFGROUPS+=	AUDIT
151AUDIT+=		auditd
152AUDIT+=		auditdistd
153AUDITPACKAGE=	rc
154.endif
155
156.if ${MK_AUTOFS} != "no"
157CONFS+=		automount
158CONFS+=		automountd
159CONFS+=		autounmountd
160.endif
161
162.if ${MK_BLACKLIST} != "no"
163_blacklistd+=	blacklistd
164.endif
165
166.if ${MK_BLUETOOTH} != "no"
167CONFGROUPS+=	BLUETOOTH
168BLUETOOTH+=	bluetooth \
169		bthidd \
170		hcsecd \
171		rfcomm_pppd_server \
172		sdpd \
173		ubthidhci
174BLUETOOTHPACKAGE=	bluetooth
175.endif
176
177.if ${MK_BOOTPARAMD} != "no"
178CONFS+=		bootparams
179.endif
180
181.if ${MK_BSNMP} != "no"
182CONFGROUPS+=	BSNMP
183BSNMP+=		bsnmpd
184BSNMPPACKAGE=	bsnmp
185.endif
186
187.if ${MK_CCD} != "no"
188CONFS+=		ccd
189.endif
190
191.if ${MK_FTP} != "no"
192CONFS+=		ftpd
193.endif
194
195.if ${MK_GSSAPI} != "no"
196CONFGROUPS+=	GSSD
197GSSD=		gssd
198GSSDPACKAGE=	kerberos
199.endif
200
201.if ${MK_HAST} != "no"
202CONFGROUPS+=	HAST
203HAST=		hastd
204HASTPACKAGE=	hast
205.endif
206
207.if ${MK_INETD} != "no"
208CONFS+=		inetd
209.endif
210
211.if ${MK_IPFILTER} != "no"
212CONFS+=	ipfilter \
213	ipfs \
214	ipmon \
215	ipnat \
216	ippool
217.endif
218
219.if ${MK_IPFW} != "no"
220CONFS+=		ipfw \
221		dnctl
222.if ${MK_NETGRAPH} != "no"
223CONFS+=		ipfw_netflow
224.endif
225.endif
226
227.if ${MK_ISCSI} != "no"
228CONFS+=		iscsictl
229CONFS+=		iscsid
230.endif
231
232.if ${MK_JAIL} != "no"
233CONFGROUPS+=	JAIL
234JAIL+=		jail
235JAILPACKAGE=	jail
236.endif
237
238.if ${MK_LEGACY_CONSOLE} != "no"
239CONFS+=		moused
240CONFS+=		syscons
241.endif
242
243.if ${MK_LPR} != "no"
244CONFS+=		lpd
245.endif
246
247.if ${MK_KERBEROS} != "no"
248CONFS+=		ipropd_master
249CONFS+=		ipropd_slave
250_kadmind=	kadmind
251_kdc=		kdc
252_kfd=		kfd
253_kpasswdd=	kpasswdd
254
255DIRS+=	VAR_HEMIDAL
256VAR_HEMIDAL=	/var/heimdal
257VAR_HEMIDAL_MODE=	700
258.endif
259
260.if ${MK_NS_CACHING} != "no"
261_nscd=		nscd
262.endif
263
264.if ${MK_NTP} != "no"
265CONFS+=		ntpd
266.endif
267
268.if ${MK_OFED} != "no"
269_opensm=	opensm
270.endif
271
272.if ${MK_OPENSSL} != "no"
273CONFS+=		keyserv
274.if ${MK_OPENSSL_KTLS} != "no"
275CONFS+=		tlsclntd \
276		tlsservd
277.endif
278.endif
279
280.if ${MK_OPENSSH} != "no"
281CONFGROUPS+=	SSH
282SSH=		sshd
283SSHPACKAGE=	ssh
284.endif
285
286.if ${MK_PF} != "no"
287CONFS+=		ftp-proxy
288.endif
289
290.if ${MK_ROUTED} != "no"
291CONFS+=		routed
292.endif
293
294.if ${MK_SENDMAIL} != "no"
295CONFGROUPS+=	SMRCD
296SMRCD=		sendmail
297SMRCDPACKAGE=	sendmail
298.endif
299
300.if ${MK_UNBOUND} != "no"
301CONFGROUPS+=	UNBOUND
302UNBOUND+=	local_unbound
303UNBOUNDPACKAGE=	unbound
304.endif
305
306.if ${MK_UTMPX} != "no"
307_utx=		utx
308.endif
309
310.if ${MK_VI} != "no"
311CONFGROUPS+=	VI
312VI+=		virecover
313VIPACKAGE=	vi
314.endif
315
316.if ${MK_WIRELESS} != "no"
317CONFS+=		hostapd
318CONFS+=		wpa_supplicant
319.endif
320
321.if ${MK_ZFS} != "no"
322CONFGROUPS+=	ZFS
323ZFS+=		zfs
324ZFS+=		zfsbe
325ZFS+=		zfsd
326ZFS+=		zfskeys
327ZFS+=		zpool
328ZFS+=		zpoolreguid
329ZFS+=		zpoolupgrade
330ZFS+=		zvol
331ZFSPACKAGE=	rc
332.endif
333
334.for fg in ${CONFGROUPS}
335${fg}MODE?=	${BINMODE}
336.endfor
337
338.include <bsd.prog.mk>
339