xref: /freebsd/libexec/rc/rc.d/Makefile (revision 19261079b74319502c6ffa1249920079f0f69a72)
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	sppp \
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+=		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