xref: /netbsd/etc/rc.d/Makefile (revision 7247378c)
1# $NetBSD: Makefile,v 1.117 2023/02/03 13:53:40 mlelstv Exp $
2
3.include <bsd.own.mk>
4
5#
6# NOTE:
7#
8# If you're adding new scripts, don't forget to update following:
9#	src/distrib/sets/lists/etc/mi
10#	src/etc/mtree/special
11#	src/usr.sbin/postinstall/postinstall
12#
13# You can find a script to visualize the dependency graph in
14# src/sbin/rcorder.
15
16CONFIGFILES=\
17		CRITLOCALMOUNTED DAEMON DISKS LOGIN NETWORKING SERVERS \
18		accounting altqd amd apmd automount automountd autounmountd \
19		bluetooth bootconf.sh bootparams \
20		ccd cgd clearcritlocal cleartmp cron \
21		devpubd dhcpcd dhcpd dhcpd6 dhcrelay dmesg \
22		downinterfaces \
23		entropy envsys \
24		fsck fsck_root ftp_proxy ftpd \
25		gpio \
26		hostapd httpd \
27		identd ifwatchd inetd ip6addrctl ipfilter ipfs ipmon ipnat \
28		ipsec irdaattach iscsi_target iscsid iscsid_volumes isibootd \
29		kdc \
30		ldconfig ldpd lvmlockdir local lpd lvm \
31		makemandb mdnsd mixerctl modules mopd motd mountall \
32		mountcritlocal mountcritremote mountd moused mrouted \
33		named ndbootd network newsyslog nfsd nfslocking npf npf_boot \
34		npfd ntpd ntpdate \
35		perusertmp pf pf_boot pflogd postfix powerd ppp pwcheck \
36		quota \
37		racoon rpcbind raidframe raidframeparity random_seed rarpd \
38		rbootd resize_root rndctl root route6d routed rtadvd \
39		rtclocaltime rwho \
40		savecore screenblank securelevel smtoff sshd \
41		staticroute swap1 swap2 sysctl sysdb syslogd \
42		timed tpctl ttys \
43		veriexec virecover wdogctl wpa_supplicant wscons wsmoused
44FILESDIR=	/etc/rc.d
45FILESMODE=	${BINMODE}
46
47.if ${MKYP} != "no"
48CONFIGFILES+=	ypbind yppasswdd ypserv
49.endif
50
51.if ${MKX11} != "no"
52CONFIGFILES+=	xdm xfs fccache
53FILESBUILD_xdm=	yes
54FILESBUILD_xfs=	yes
55FILESBUILD_fccache= yes
56
57.SUFFIXES: .in
58.in:
59	${_MKTARGET_CREATE}
60	${TOOL_SED} -e 's,@X11ROOTDIR@,${X11ROOTDIR},g' < ${.IMPSRC} > ${.TARGET}
61.endif
62
63.if ${MKZFS} != "no"
64CONFIGFILES+=	zfs
65.endif
66
67.include <bsd.prog.mk>
68