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