summaryrefslogtreecommitdiff
path: root/etc/rc.d/Makefile
blob: f45fd12d41a86aaf78828a4925a01a619a8519b2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# $NetBSD: Makefile,v 1.93 2015/03/30 10:58:37 chopps Exp $

.include <bsd.own.mk>

#
# NOTE:
#
# If you're adding new scripts, don't forget to update following:
#	src/distrib/sets/lists/etc/mi
#	src/etc/mtree/special
#	src/usr.sbin/postinstall/postinstall
#
# You can find a script to visualize the dependency graph in
# src/sbin/rcorder.

# MINIX: the idea for importing rc.d scripts is basically:
# - in principle, import only the scripts for functionality that we support;
# - do not change dependencies ("REQUIRE", "BEFORE") in such scripts; rather,
#   satisfy the dependencies, recursively, with the following rules;
# - for each such dependency, if it can be disabled (= it has a "rcvar"), then
#   import its script as is, even if we do not support its functionality;
# - if such an unsupported dependency is enabled by default as per
#   etc/defaults/rc.conf, then disable it by overriding it explicitly in
#   etc/defaults/minix.rc.conf;
# - for unsupported dependencies that can not be disabled, create a stub for it
#   (examples: fsck, root, mountcritlocal) but whenever relevant do try to keep
#   its dependency listing intact so as not to disturb the regular ordering.
CONFIGFILES=\
		DAEMON DISKS LOGIN NETWORKING SERVERS \
		\
		bootconf.sh \
		\
		dhclient dhcpcd dhcpd dhcrelay downinterfaces \
		fsck ftpd \
		\
		\
		inetd ipfilter ipsec \
		\
		\
		local \
		\
		mountcritlocal mountcritremote \
		named network npf \
		\
		pwcheck \
		\
		\
		root rtadvd \
		\
		\
		staticroute sysctl sysdb syslogd \
		ttys \
		wscons \
		

.if defined(__MINIX)
# MINIX: we will gradually switch over to the NetBSD rc system.  For conflict
# avoidance, all MINIX-specific scripts should have "minix" in their name.
CONFIGFILES+=	minixrc
.endif

FILESDIR=	/etc/rc.d
FILESMODE=	${BINMODE}

.if !defined(__MINIX) # XXX needs testing first
.if ${MKX11} != "no"
CONFIGFILES+=	xdm xfs fccache
FILESBUILD_xdm=	yes
FILESBUILD_xfs=	yes
FILESBUILD_fccache= yes
.endif # !defined(__MINIX)

.SUFFIXES: .in
.in:
	${_MKTARGET_CREATE}
	${TOOL_SED} -e 's,@X11ROOTDIR@,${X11ROOTDIR},g' < ${.IMPSRC} > ${.TARGET}
.endif

.include <bsd.prog.mk>