xref: /freebsd/libexec/rc/rc.d/Makefile (revision cfd6422a5217410fbd66f7a7a8a64d9d85e61229)
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	addswap \
15	adjkerntz \
16	archdep \
17	bgfsck \
18	${_blacklistd} \
19	bridge \
20	cfumass \
21	cleanvar \
22	cleartmp \
23	cron \
24	ctld \
25	ddb \
26	defaultroute \
27	devd \
28	devfs \
29	devmatch \
30	dhclient \
31	dmesg \
32	dumpon \
33	fsck \
34	gbde \
35	geli \
36	geli2 \
37	gptboot \
38	growfs \
39	gssd \
40	hostid \
41	hostid_save \
42	hostname \
43	iovctl \
44	ip6addrctl \
45	ipsec \
46	${_kadmind} \
47	${_kdc} \
48	${_kfd} \
49	kld \
50	kldxref \
51	${_kpasswdd} \
52	ldconfig \
53	linux \
54	local \
55	localpkg \
56	lockd \
57	mixer \
58	motd \
59	mountcritlocal \
60	mountcritremote \
61	mountlate \
62	mdconfig \
63	mdconfig2 \
64	mountd \
65	msgs \
66	natd \
67	netif \
68	netoptions \
69	netwait \
70	newsyslog \
71	nfsclient \
72	nfscbd \
73	nfsd \
74	nfsuserd \
75	nisdomain \
76	${_nscd} \
77	ntpdate \
78	${_opensm} \
79	os-release \
80	pf \
81	pflog \
82	pfsync \
83	ppp \
84	pppoed \
85	pwcheck \
86	quota \
87	random \
88	rarpd \
89	rctl \
90	resolv \
91	root \
92	route6d \
93	routing \
94	rpcbind \
95	rtadvd \
96	rtsold \
97	rwho \
98	savecore \
99	securelevel \
100	serial \
101	sppp \
102	statd \
103	static_arp \
104	static_ndp \
105	stf \
106	swap \
107	swaplate \
108	sysctl \
109	syslogd \
110	sysvipc \
111	tmp \
112	ugidfw \
113	${_utx} \
114	var \
115	watchdogd
116
117.if ${MK_NIS} != "no"
118CONFS+=	ypbind \
119	ypldap \
120	yppasswdd \
121	ypserv \
122	ypset \
123	ypupdated \
124	ypxfrd
125.endif
126
127.if ${MK_ACCT} != "no"
128CONFGROUPS+=	ACCT
129ACCT+=		accounting
130ACCTPACKAGE=	acct
131.endif
132
133.if ${MK_ACPI} != "no"
134CONFGROUPS+=	ACPI
135ACPI=		power_profile
136ACPIPACKAGE=	acpi
137.endif
138
139.if ${MK_ACPI} != "no" || ${MK_APM} != "no"
140CONFS+=		powerd
141.endif
142
143.if ${MK_APM} != "no"
144CONFGROUPS+=	APM
145APM+=		apm
146.if ${MACHINE} == "i386"
147APM+=		apmd
148.endif
149APMPACKAGE=	apm
150.endif
151
152.if ${MK_AUDIT} != "no"
153CONFGROUPS+=	AUDIT
154AUDIT+=		auditd
155AUDIT+=		auditdistd
156AUDITPACKAGE=	rc
157.endif
158
159.if ${MK_AUTOFS} != "no"
160CONFS+=		automount
161CONFS+=		automountd
162CONFS+=		autounmountd
163.endif
164
165.if ${MK_BLACKLIST} != "no"
166_blacklistd+=	blacklistd
167.endif
168
169.if ${MK_BLUETOOTH} != "no"
170CONFGROUPS+=	BLUETOOTH
171BLUETOOTH+=	bluetooth \
172		bthidd \
173		hcsecd \
174		rfcomm_pppd_server \
175		sdpd \
176		ubthidhci
177BLUETOOTHPACKAGE=	bluetooth
178.endif
179
180.if ${MK_BOOTPARAMD} != "no"
181CONFS+=		bootparams
182.endif
183
184.if ${MK_BSNMP} != "no"
185CONFGROUPS+=	BSNMP
186BSNMP+=		bsnmpd
187BSNMPPACKAGE=	bsnmp
188.endif
189
190.if ${MK_CCD} != "no"
191CONFS+=		ccd
192.endif
193
194.if ${MK_FTP} != "no"
195CONFS+=		ftpd
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.endif
275
276.if ${MK_OPENSSH} != "no"
277CONFGROUPS+=	SSH
278SSH=		sshd
279SSHPACKAGE=	ssh
280.endif
281
282.if ${MK_PF} != "no"
283CONFS+=		ftp-proxy
284.endif
285
286.if ${MK_ROUTED} != "no"
287CONFS+=		routed
288.endif
289
290.if ${MK_SENDMAIL} != "no"
291CONFGROUPS+=	SMRCD
292SMRCD=		sendmail
293SMRCDPACKAGE=	sendmail
294.endif
295
296.if ${MK_UNBOUND} != "no"
297CONFGROUPS+=	UNBOUND
298UNBOUND+=	local_unbound
299UNBOUNDPACKAGE=	unbound
300.endif
301
302.if ${MK_UTMPX} != "no"
303_utx=		utx
304.endif
305
306.if ${MK_VI} != "no"
307CONFGROUPS+=	VI
308VI+=		virecover
309VIPACKAGE=	vi
310.endif
311
312.if ${MK_WIRELESS} != "no"
313CONFS+=		hostapd
314CONFS+=		wpa_supplicant
315.endif
316
317.if ${MK_ZFS} != "no"
318CONFGROUPS+=	ZFS
319ZFS+=		zfs
320ZFS+=		zfsbe
321ZFS+=		zfsd
322ZFS+=		zpool
323ZFS+=		zvol
324ZFSPACKAGE=	rc
325.endif
326
327.for fg in ${CONFGROUPS}
328${fg}MODE?=	${BINMODE}
329.endfor
330
331.include <bsd.prog.mk>
332