etc/services - sync with NetBSD-8
[minix.git] / etc / rc.d / Makefile
blobf45fd12d41a86aaf78828a4925a01a619a8519b2
1 # $NetBSD: Makefile,v 1.93 2015/03/30 10:58:37 chopps Exp $
3 .include <bsd.own.mk>
6 # NOTE:
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
13 # You can find a script to visualize the dependency graph in
14 # src/sbin/rcorder.
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.
28 CONFIGFILES=\
29 DAEMON DISKS LOGIN NETWORKING SERVERS \
31 bootconf.sh \
33 dhclient dhcpcd dhcpd dhcrelay downinterfaces \
34 fsck ftpd \
37 inetd ipfilter ipsec \
40 local \
42 mountcritlocal mountcritremote \
43 named network npf \
45 pwcheck \
48 root rtadvd \
51 staticroute sysctl sysdb syslogd \
52 ttys \
53 wscons \
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.
59 CONFIGFILES+= minixrc
60 .endif
62 FILESDIR= /etc/rc.d
63 FILESMODE= ${BINMODE}
65 .if !defined(__MINIX) # XXX needs testing first
66 .if ${MKX11} != "no"
67 CONFIGFILES+= xdm xfs fccache
68 FILESBUILD_xdm= yes
69 FILESBUILD_xfs= yes
70 FILESBUILD_fccache= yes
71 .endif # !defined(__MINIX)
73 .SUFFIXES: .in
74 .in:
75 ${_MKTARGET_CREATE}
76 ${TOOL_SED} -e 's,@X11ROOTDIR@,${X11ROOTDIR},g' < ${.IMPSRC} > ${.TARGET}
77 .endif
79 .include <bsd.prog.mk>