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