source: trunk/minix/etc/Makefile@ 20

Last change on this file since 20 was 9, checked in by Mattia Monga, 14 years ago

Minix 3.1.2a

File size: 1.1 KB
Line 
1
2ETC=/etc/
3USRETC=/usr/etc/
4FILES1=fstab group hostname.file inet.conf motd.install mtab passwd profile protocols rc services termcap ttytab utmp rc.cd binary_sizes binary_sizes.big binary_sizes.xxl rc.rescue syslog.conf rc.daemons.dist
5FILES2=shadow
6FILES3=daily dhcptags.conf rc
7
8all::
9
10clean::
11
12install::
13 @echo "Installing /etc and /usr/etc.."
14 mkdir -p $(ETC)
15 @for f in $(FILES1); do if [ -f $(ETC)/$$f ]; then :; else cp $$f $(ETC)/$$f; chmod 755 $(ETC)/$$f; fi; done
16 @for f in $(FILES2); do if [ -f $(ETC)/$$f ]; then :; else cp $$f $(ETC)/$$f; chmod 600 $(ETC)/$$f; fi; done
17 @echo "Making hierarchy.."
18 sh mtree.sh mtree/minix.tree
19 @for f in $(FILES3); do if [ -f $(USRETC)/$$f ]; then :; else cp usr/$$f $(USRETC); chmod 755 $(USRETC)/$$f; fi; done
20 @echo "Making devices.."
21 p=`pwd` && cd /dev && sh $$p/../commands/scripts/MAKEDEV.sh null
22 p=`pwd` && cd /dev && sh $$p/../commands/scripts/MAKEDEV.sh std 2>/dev/null
23 @echo "Making user homedirs.."
24 for u in /usr/ast ~root; do (cd ast && tar cf - .[a-z]* ) | (cd $$u && tar xf - ); done
25
26postinstall:
27 binsizes normal
28
Note: See TracBrowser for help on using the repository browser.