xref: /minix/etc/rc.d/Makefile (revision 9f20bfa6)
1# $NetBSD: Makefile,v 1.93 2015/03/30 10:58:37 chopps 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
16# MINIX: the idea for importing rc.d scripts is basically:
17# - in principle, import only the scripts for functionality that we support;
18# - do not change dependencies ("REQUIRE", "BEFORE") in such scripts; rather,
19#   satisfy the dependencies, recursively, with the following rules;
20# - for each such dependency, if it can be disabled (= it has a "rcvar"), then
21#   import its script as is, even if we do not support its functionality;
22# - if such an unsupported dependency is enabled by default as per
23#   etc/defaults/rc.conf, then disable it by overriding it explicitly in
24#   etc/defaults/minix.rc.conf;
25# - for unsupported dependencies that can not be disabled, create a stub for it
26#   (examples: fsck, root, mountcritlocal) but whenever relevant do try to keep
27#   its dependency listing intact so as not to disturb the regular ordering.
28CONFIGFILES=\
29		DAEMON DISKS LOGIN NETWORKING SERVERS \
30		\
31		bootconf.sh \
32		\
33		dhcpcd \
34		fsck ftpd \
35		\
36		\
37		inetd ipfilter ipsec \
38		\
39		\
40		local \
41		\
42		mountcritlocal mountcritremote \
43		network npf \
44		\
45		pwcheck \
46		\
47		\
48		root \
49		\
50		\
51		sysctl sysdb syslogd \
52		ttys \
53		wscons \
54
55
56.if defined(__MINIX)
57# MINIX: we will gradually switch over to the NetBSD rc system.  For conflict
58# avoidance, all MINIX-specific scripts should have "minix" in their name.
59CONFIGFILES+=	minixrc
60.endif
61
62FILESDIR=	/etc/rc.d
63FILESMODE=	${BINMODE}
64
65.if !defined(__MINIX) # XXX needs testing first
66.if ${MKX11} != "no"
67CONFIGFILES+=	xdm xfs fccache
68FILESBUILD_xdm=	yes
69FILESBUILD_xfs=	yes
70FILESBUILD_fccache= yes
71.endif # !defined(__MINIX)
72
73.SUFFIXES: .in
74.in:
75	${_MKTARGET_CREATE}
76	${TOOL_SED} -e 's,@X11ROOTDIR@,${X11ROOTDIR},g' < ${.IMPSRC} > ${.TARGET}
77.endif
78
79.include <bsd.prog.mk>
80