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