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