4 USRETC
=${DESTDIR}/usr
/etc
/
5 DEFAULTS
=${ETC}/defaults
8 # FILES1 are installed in /etc *before* the tree hierarchy is created
9 # and can therefore not rely on /etc/groups and /etc/passwd being
12 FILES1
=group hostname.file inet.conf motd.
install mtab profile \
13 protocols rc services termcap utmp rc.cd \
14 syslog.conf rc.daemons.
dist \
15 rs.inet rs.single make.conf system.conf ttys resolv.conf rc.conf \
16 rc.subr man.conf shells boot.cfg.default \
17 devmand
/scripts
/block devmand
/scripts
/singlechar
20 # PWFILES are installed in /etc with the 600 permission
25 # FILES3 are installed in /usr/etc 755
27 FILES3
=daily dhcptags.conf rc
28 DEFAULTFILES
=rc.conf minix.rc.conf
31 TOOL_PWD_MKDB?
= pwd_mkdb
35 install: installpw
# installpw needed to bootstrap pw db
36 @echo
"Installing /etc, /usr/etc and /usr/lib.."
38 ${INSTALL_DIR} $(ETC
)/devmand
/scripts
39 @echo
"Making hierarchy.."
40 sh mtree.sh mtree
/minix.tree
${TOOL_AWK} ${TOOL_STAT} ${MKUNPRIVED} ${DESTDIR}; # DESTDIR must be last; special case!
41 @for f in
$(FILES1
); do if
[ -f
$(ETC
)/$$f ]; then
:; else cp
$$f $(ETC
)/$$f; chmod
755 $(ETC
)/$$f; fi
; done
42 @for f in
$(USRFILES
); do cp usr
/$$f $(USR
)/$$f; chmod
644 $(USR
)/$$f; done
43 @for f in
$(FILES3
); do if
[ -f
$(USRETC
)/$$f ]; then
:; else cp usr
/$$f $(USRETC
); chmod
755 $(USRETC
)/$$f; fi
; done
44 for f in
$(DEFAULTFILES
); do cp defaults
/$$f $(DEFAULTS
)/; chmod
644 $(DEFAULTS
)/$$f; done
45 @echo
"Making devices.."
46 if
[ ${MKUNPRIVED} != yes
] ;then \
47 cd
${DESTDIR}/dev
&& sh
${NETBSDSRCDIR}/commands
/MAKEDEV
/MAKEDEV.sh null
;\
48 cd
${DESTDIR}/dev
&& sh
${NETBSDSRCDIR}/commands
/MAKEDEV
/MAKEDEV.sh std
2>/dev
/null
;\
50 ${INSTALL_FILE} -o root
-g operator
-m
755 crontab
${DESTDIR}/usr
/lib
51 @echo
"Making user homedirs.."
52 for u in
${DESTDIR}/usr
/ast
${DESTDIR}/root
; do
${INSTALL_DIR} $$u; cp ast
/.
[aepv
]* $$u ; done
53 @echo
"Installing fonts.."
54 ${INSTALL_FILE} -m
644 -o root
-g operator fonts
/*.fnt
${DESTDIR}/usr
/lib
/fonts
/
56 installforce
:: $(ETC
)/rc
$(ETC
)/rs.inet
$(ETC
)/rs.single
$(ETC
)/system.conf
$(USRETC
)/rc
$(USR
)/Makefile installpw
59 if
[ ! -d
$(ETC
) ]; then
${INSTALL_DIR} $(ETC
); chmod
755 $(ETC
); fi
60 @for f in
$(PWFILES
); do if
[ -f
$(ETC
)/$$f ]; then
:; else cp
$$f $(ETC
)/$$f; chmod
600 $(ETC
)/$$f; fi
; done
61 touch
${ETC}/pwd.db
; touch
${ETC}/spwd.db
; ${TOOL_PWD_MKDB} -d
${ETC}/..
-p
-V
0 ${ETC}/master.passwd
64 ${INSTALL_FILE} -m
755 -o root
-g operator
$> $@
66 $(ETC
)/rs.inet
: rs.inet .PHONY
67 ${INSTALL_FILE} -m
755 -o root
-g operator
$> $@
69 $(ETC
)/rs.single
: rs.single .PHONY
70 ${INSTALL_FILE} -m
755 -o root
-g operator
$> $@
72 $(ETC
)/system.conf
: system.conf .PHONY
73 ${INSTALL_FILE} -m
644 -o root
-g operator
$> $@
75 $(USRETC
)/rc
: usr
/rc .PHONY
76 ${INSTALL_FILE} -m
755 -o root
-g operator
$> $@
78 $(USR
)/Makefile
: usr
/Makefile .PHONY
79 ${INSTALL_FILE} -m
644 -o root
-g operator
$> $@