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