xref: /freebsd/libexec/rc/rc.d/Makefile (revision 207ab5f4f1ebcbfd6f3f2ab619baf08862d0d08d)
1.include <src.opts.mk>
2
3CONFDIR=	/etc/rc.d
4CONFGROUPS=	CONFS
5CONFSPACKAGE=	rc
6
7CONFS=	DAEMON \
8	FILESYSTEMS \
9	LOGIN \
10	NETWORKING \
11	SERVERS \
12	adjkerntz \
13	bgfsck \
14	${_blacklistd} \
15	bridge \
16	cfumass \
17	cleanvar \
18	cleartmp \
19	ctld \
20	ddb \
21	defaultroute \
22	devfs \
23	dmesg \
24	dumpon \
25	fsck \
26	geli \
27	geli2 \
28	gptboot \
29	growfs \
30	growfs_fstab \
31	hostid \
32	hostid_save \
33	hostname \
34	iovctl \
35	ip6addrctl \
36	ipsec \
37	${_kadmind} \
38	${_kdc} \
39	${_kfd} \
40	kld \
41	kldxref \
42	${_kpasswdd} \
43	ldconfig \
44	linux \
45	local \
46	localpkg \
47	lockd \
48	mixer \
49	motd \
50	mountcritlocal \
51	mountcritremote \
52	mountlate \
53	mdconfig \
54	mdconfig2 \
55	mountd \
56	msgs \
57	natd \
58	netif \
59	netoptions \
60	netwait \
61	newsyslog \
62	nfsclient \
63	nfscbd \
64	nfsd \
65	nfsuserd \
66	nisdomain \
67	${_nscd} \
68	${_opensm} \
69	os-release \
70	pf \
71	pflog \
72	pfsync \
73	powerd \
74	ppp \
75	pppoed \
76	pwcheck \
77	quota \
78	random \
79	rarpd \
80	rctl \
81	root \
82	route6d \
83	routing \
84	rpcbind \
85	rtadvd \
86	rtsold \
87	rwho \
88	savecore \
89	securelevel \
90	serial \
91	statd \
92	static_arp \
93	static_ndp \
94	stf \
95	swap \
96	swaplate \
97	sysctl \
98	sysctl_lastload \
99	syslogd \
100	sysvipc \
101	tmp \
102	ugidfw \
103	${_utx} \
104	var \
105	var_run \
106	watchdogd
107
108CONFGROUPS+=		DEVD
109DEVD=			devd
110DEVDPACKAGE=		devd
111
112CONFGROUPS+=		DEVMATCH
113DEVMATCH=		devmatch
114DEVMATCHPACKAGE=	devmatch
115
116CONFGROUPS+=		DHCLIENT
117DHCLIENT=		dhclient
118DHCLIENTPACKAGE=	dhclient
119
120CONFGROUPS+=		GGATED
121GGATED=			ggated
122GGATEDPACKAGE=		ggate
123
124CONFGROUPS+=		RESOLVCONF
125RESOLVCONF=		resolv
126RESOLVCONFPACKAGE=	resolvconf
127
128CONFGROUPS+=		CRON
129CRON+=			cron
130CRONPACKAGE=		cron
131
132.if ${MK_NIS} != "no"
133CONFS+=	ypbind \
134	ypldap \
135	yppasswdd \
136	ypserv \
137	ypset \
138	ypupdated \
139	ypxfrd
140.endif
141
142.if ${MK_ACCT} != "no"
143CONFGROUPS+=	ACCT
144ACCT+=		accounting
145ACCTPACKAGE=	acct
146.endif
147
148.if ${MK_ACPI} != "no"
149CONFGROUPS+=	ACPI
150ACPI=		power_profile
151ACPIPACKAGE=	acpi
152.endif
153
154.if ${MK_APM} != "no"
155CONFGROUPS+=	APM
156APM+=		apm
157.if ${MACHINE} == "i386"
158APM+=		apmd
159.endif
160APMPACKAGE=	apm
161.endif
162
163.if ${MK_AUDIT} != "no"
164CONFGROUPS+=	AUDIT
165AUDIT+=		auditd
166AUDIT+=		auditdistd
167AUDITPACKAGE=	audit
168.endif
169
170.if ${MK_AUTOFS} != "no"
171CONFS+=		automount
172CONFS+=		automountd
173CONFS+=		autounmountd
174.endif
175
176.if ${MK_BLACKLIST} != "no"
177_blacklistd+=	blacklistd
178.endif
179
180.if ${MK_BLUETOOTH} != "no"
181CONFGROUPS+=	BLUETOOTH
182BLUETOOTH+=	bluetooth \
183		bthidd \
184		hcsecd \
185		rfcomm_pppd_server \
186		sdpd \
187		ubthidhci
188BLUETOOTHPACKAGE=	bluetooth
189.endif
190
191.if ${MK_BOOTPARAMD} != "no"
192CONFS+=		bootparams
193.endif
194
195.if ${MK_BSNMP} != "no"
196CONFGROUPS+=	BSNMP
197BSNMP+=		bsnmpd
198BSNMPPACKAGE=	bsnmp
199.endif
200
201.if ${MK_CCD} != "no"
202CONFS+=		ccd
203.endif
204
205.if ${MK_FTP} != "no"
206CONFS+=		ftpd
207.endif
208
209.if ${MK_GSSAPI} != "no"
210CONFGROUPS+=	GSSD
211GSSD=		gssd
212GSSDPACKAGE=	kerberos
213.endif
214
215.if ${MK_HAST} != "no"
216CONFGROUPS+=	HAST
217HAST=		hastd
218HASTPACKAGE=	hast
219.endif
220
221.if ${MK_INETD} != "no"
222CONFS+=		inetd
223.endif
224
225.if ${MK_IPFILTER} != "no"
226CONFS+=	ipfilter \
227	ipfs \
228	ipmon \
229	ipnat \
230	ippool
231.endif
232
233.if ${MK_IPFW} != "no"
234CONFS+=		ipfw \
235		dnctl
236.if ${MK_NETGRAPH} != "no"
237CONFS+=		ipfw_netflow
238.endif
239.endif
240
241.if ${MK_ISCSI} != "no"
242CONFS+=		iscsictl
243CONFS+=		iscsid
244.endif
245
246.if ${MK_JAIL} != "no"
247CONFGROUPS+=	JAIL
248JAIL+=		jail
249JAILPACKAGE=	jail
250.endif
251
252.if ${MK_LEGACY_CONSOLE} != "no"
253CONFGROUPS+=	CONSOLE
254CONSOLE+=	moused
255CONSOLE+=	syscons
256CONSOLEPACKAGE=	console-tools
257.endif
258
259.if ${MK_LPR} != "no"
260CONFGROUPS+=	LP
261LP+=		lpd
262LPPACKAGE=	lp
263.endif
264
265.if ${MK_KERBEROS} != "no"
266CONFS+=		ipropd_master
267CONFS+=		ipropd_slave
268_kadmind=	kadmind
269_kdc=		kdc
270_kfd=		kfd
271_kpasswdd=	kpasswdd
272
273DIRS+=	VAR_HEMIDAL
274VAR_HEMIDAL=	/var/heimdal
275VAR_HEMIDAL_MODE=	700
276.endif
277
278.if ${MK_NS_CACHING} != "no"
279_nscd=		nscd
280.endif
281
282.if ${MK_NTP} != "no"
283CONFGROUPS+=	NTP
284NTP+=		ntpd \
285		ntpdate
286NTPPACKAGE=	ntp
287.endif
288
289.if ${MK_OFED_EXTRA} != "no"
290_opensm=	opensm
291.endif
292
293.if ${MK_OPENSSL} != "no"
294CONFS+=		keyserv
295.if ${MK_OPENSSL_KTLS} != "no"
296CONFS+=		tlsclntd \
297		tlsservd
298.endif
299.endif
300
301.if ${MK_OPENSSH} != "no"
302CONFGROUPS+=	SSH
303SSH=		sshd
304SSHPACKAGE=	ssh
305.endif
306
307.if ${MK_PF} != "no"
308CONFS+=		ftp-proxy
309.endif
310
311.if ${MK_ROUTED} != "no"
312CONFS+=		routed
313.endif
314
315.if ${MK_SENDMAIL} != "no"
316CONFGROUPS+=	SMRCD
317SMRCD=		sendmail
318SMRCDPACKAGE=	sendmail
319.endif
320
321.if ${MK_NUAGEINIT} != "no"
322CONFGROUPS+=	NIUAGEINIT
323NIUAGEINIT=		nuageinit
324NIUAGEINITPACKAGE=	nuageinit
325.endif
326
327.if ${MK_UNBOUND} != "no"
328CONFGROUPS+=	UNBOUND
329UNBOUND+=	local_unbound
330UNBOUNDPACKAGE=	unbound
331.endif
332
333.if ${MK_UTMPX} != "no"
334_utx=		utx
335.endif
336
337.if ${MK_VI} != "no"
338CONFGROUPS+=	VI
339VI+=		virecover
340VIPACKAGE=	vi
341.endif
342
343.if ${MK_WIRELESS} != "no"
344CONFS+=		hostapd
345CONFS+=		wpa_supplicant
346.endif
347
348.if ${MK_ZFS} != "no"
349CONFGROUPS+=	ZFS
350ZFS+=		zfs
351ZFS+=		zfsbe
352ZFS+=		zfsd
353ZFS+=		zfskeys
354ZFS+=		zpool
355ZFS+=		zpoolreguid
356ZFS+=		zpoolupgrade
357ZFS+=		zvol
358ZFSPACKAGE=	rc
359.endif
360
361.for fg in ${CONFGROUPS}
362${fg}MODE?=	${BINMODE}
363.endfor
364
365.include <bsd.prog.mk>
366