xref: /freebsd/libexec/rc/rc.d/Makefile (revision e9e8876a4d6afc1ad5315faaa191b25121a813d7)
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	gptboot \
36	growfs \
37	hostid \
38	hostid_save \
39	hostname \
40	iovctl \
41	ip6addrctl \
42	ipsec \
43	${_kadmind} \
44	${_kdc} \
45	${_kfd} \
46	kld \
47	kldxref \
48	${_kpasswdd} \
49	ldconfig \
50	linux \
51	local \
52	localpkg \
53	lockd \
54	mixer \
55	motd \
56	mountcritlocal \
57	mountcritremote \
58	mountlate \
59	mdconfig \
60	mdconfig2 \
61	mountd \
62	msgs \
63	natd \
64	netif \
65	netoptions \
66	netwait \
67	newsyslog \
68	nfsclient \
69	nfscbd \
70	nfsd \
71	nfsuserd \
72	nisdomain \
73	${_nscd} \
74	ntpdate \
75	${_opensm} \
76	os-release \
77	pf \
78	pflog \
79	pfsync \
80	powerd \
81	ppp \
82	pppoed \
83	pwcheck \
84	quota \
85	random \
86	rarpd \
87	rctl \
88	resolv \
89	root \
90	route6d \
91	routing \
92	rpcbind \
93	rtadvd \
94	rtsold \
95	rwho \
96	savecore \
97	securelevel \
98	serial \
99	statd \
100	static_arp \
101	static_ndp \
102	stf \
103	swap \
104	swaplate \
105	sysctl \
106	sysctl_lastload \
107	syslogd \
108	sysvipc \
109	tmp \
110	ugidfw \
111	${_utx} \
112	var \
113	watchdogd
114
115.if ${MK_NIS} != "no"
116CONFS+=	ypbind \
117	ypldap \
118	yppasswdd \
119	ypserv \
120	ypset \
121	ypupdated \
122	ypxfrd
123.endif
124
125.if ${MK_ACCT} != "no"
126CONFGROUPS+=	ACCT
127ACCT+=		accounting
128ACCTPACKAGE=	acct
129.endif
130
131.if ${MK_ACPI} != "no"
132CONFGROUPS+=	ACPI
133ACPI=		power_profile
134ACPIPACKAGE=	acpi
135.endif
136
137.if ${MK_APM} != "no"
138CONFGROUPS+=	APM
139APM+=		apm
140.if ${MACHINE} == "i386"
141APM+=		apmd
142.endif
143APMPACKAGE=	apm
144.endif
145
146.if ${MK_AUDIT} != "no"
147CONFGROUPS+=	AUDIT
148AUDIT+=		auditd
149AUDIT+=		auditdistd
150AUDITPACKAGE=	rc
151.endif
152
153.if ${MK_AUTOFS} != "no"
154CONFS+=		automount
155CONFS+=		automountd
156CONFS+=		autounmountd
157.endif
158
159.if ${MK_BLACKLIST} != "no"
160_blacklistd+=	blacklistd
161.endif
162
163.if ${MK_BLUETOOTH} != "no"
164CONFGROUPS+=	BLUETOOTH
165BLUETOOTH+=	bluetooth \
166		bthidd \
167		hcsecd \
168		rfcomm_pppd_server \
169		sdpd \
170		ubthidhci
171BLUETOOTHPACKAGE=	bluetooth
172.endif
173
174.if ${MK_BOOTPARAMD} != "no"
175CONFS+=		bootparams
176.endif
177
178.if ${MK_BSNMP} != "no"
179CONFGROUPS+=	BSNMP
180BSNMP+=		bsnmpd
181BSNMPPACKAGE=	bsnmp
182.endif
183
184.if ${MK_CCD} != "no"
185CONFS+=		ccd
186.endif
187
188.if ${MK_FTP} != "no"
189CONFS+=		ftpd
190.endif
191
192.if ${MK_GSSAPI} != "no"
193CONFGROUPS+=	GSSD
194GSSD=		gssd
195GSSDPACKAGE=	kerberos
196.endif
197
198.if ${MK_HAST} != "no"
199CONFGROUPS+=	HAST
200HAST=		hastd
201HASTPACKAGE=	hast
202.endif
203
204.if ${MK_INETD} != "no"
205CONFS+=		inetd
206.endif
207
208.if ${MK_IPFILTER} != "no"
209CONFS+=	ipfilter \
210	ipfs \
211	ipmon \
212	ipnat \
213	ippool
214.endif
215
216.if ${MK_IPFW} != "no"
217CONFS+=		ipfw
218.if ${MK_NETGRAPH} != "no"
219CONFS+=		ipfw_netflow
220.endif
221.endif
222
223.if ${MK_ISCSI} != "no"
224CONFS+=		iscsictl
225CONFS+=		iscsid
226.endif
227
228.if ${MK_JAIL} != "no"
229CONFGROUPS+=	JAIL
230JAIL+=		jail
231JAILPACKAGE=	jail
232.endif
233
234.if ${MK_LEGACY_CONSOLE} != "no"
235CONFS+=		moused
236CONFS+=		syscons
237.endif
238
239.if ${MK_LPR} != "no"
240CONFS+=		lpd
241.endif
242
243.if ${MK_KERBEROS} != "no"
244CONFS+=		ipropd_master
245CONFS+=		ipropd_slave
246_kadmind=	kadmind
247_kdc=		kdc
248_kfd=		kfd
249_kpasswdd=	kpasswdd
250
251DIRS+=	VAR_HEMIDAL
252VAR_HEMIDAL=	/var/heimdal
253VAR_HEMIDAL_MODE=	700
254.endif
255
256.if ${MK_MAIL} != "no"
257CONFS+=		othermta
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+=		zvol
329ZFSPACKAGE=	rc
330.endif
331
332.for fg in ${CONFGROUPS}
333${fg}MODE?=	${BINMODE}
334.endfor
335
336.include <bsd.prog.mk>
337