2005-05-03 10:56:01 +02:00
|
|
|
ETC=/etc/
|
2010-07-21 00:20:43 +02:00
|
|
|
USR=/usr/
|
2005-05-03 10:56:01 +02:00
|
|
|
USRETC=/usr/etc/
|
2007-08-15 14:56:35 +02:00
|
|
|
FILES1=fstab group hostname.file inet.conf motd.install mtab passwd profile \
|
|
|
|
protocols rc services termcap ttytab utmp rc.cd binary_sizes \
|
2010-01-05 20:39:27 +01:00
|
|
|
binary_sizes.big binary_sizes.xxl syslog.conf rc.daemons.dist \
|
2011-09-01 16:41:57 +02:00
|
|
|
rs.inet rs.single make.conf system.conf ttys resolv.conf rc.conf \
|
2011-11-03 17:08:37 +01:00
|
|
|
rc.subr man.conf fstab.local
|
2011-06-07 17:23:23 +02:00
|
|
|
|
2005-04-21 16:53:53 +02:00
|
|
|
FILES2=shadow
|
2010-07-21 00:20:43 +02:00
|
|
|
FILES3=daily dhcptags.conf rc
|
|
|
|
USRFILES=Makefile
|
2005-04-21 16:53:53 +02:00
|
|
|
|
|
|
|
clean::
|
|
|
|
|
|
|
|
install::
|
2011-07-01 15:57:43 +02:00
|
|
|
@echo "Installing /etc, /usr/etc and /usr/lib.."
|
|
|
|
mkdir -p $(ETC) $(USRLIB)
|
2005-05-03 17:41:02 +02:00
|
|
|
@for f in $(FILES1); do if [ -f $(ETC)/$$f ]; then :; else cp $$f $(ETC)/$$f; chmod 755 $(ETC)/$$f; fi; done
|
|
|
|
@for f in $(FILES2); do if [ -f $(ETC)/$$f ]; then :; else cp $$f $(ETC)/$$f; chmod 600 $(ETC)/$$f; fi; done
|
2010-07-21 00:20:43 +02:00
|
|
|
@for f in $(USRFILES); do cp usr/$$f $(USR)/$$f; chmod 644 $(USR)/$$f; done
|
2005-04-21 16:53:53 +02:00
|
|
|
@echo "Making hierarchy.."
|
2005-05-03 17:41:02 +02:00
|
|
|
sh mtree.sh mtree/minix.tree
|
|
|
|
@for f in $(FILES3); do if [ -f $(USRETC)/$$f ]; then :; else cp usr/$$f $(USRETC); chmod 755 $(USRETC)/$$f; fi; done
|
|
|
|
@echo "Making devices.."
|
2010-05-12 18:28:54 +02:00
|
|
|
p=`pwd` && cd /dev && sh $$p/../commands/MAKEDEV/MAKEDEV.sh null
|
|
|
|
p=`pwd` && cd /dev && sh $$p/../commands/MAKEDEV/MAKEDEV.sh std 2>/dev/null
|
|
|
|
install -o root -g operator -m 755 crontab /usr/lib
|
2005-05-03 17:41:02 +02:00
|
|
|
@echo "Making user homedirs.."
|
2006-12-22 16:48:27 +01:00
|
|
|
for u in /usr/ast ~root; do cp ast/.[aepv]* $$u ; done
|
2007-05-16 15:00:43 +02:00
|
|
|
@echo "Installing fonts.."
|
2010-05-12 18:28:54 +02:00
|
|
|
install -m 644 -o root -g operator fonts/*.fnt /usr/lib/fonts/
|
2011-07-01 15:57:43 +02:00
|
|
|
@echo "Installing /usr/lib/descr.."
|
|
|
|
install -m 644 -o root -g operator descr /usr/lib/
|
2010-08-27 12:09:06 +02:00
|
|
|
|
2010-11-23 12:12:06 +01:00
|
|
|
installforce:: $(ETC)/rc $(ETC)/rs.inet $(ETC)/rs.single $(ETC)/system.conf $(USRETC)/rc $(USR)/Makefile
|
2010-08-27 12:09:06 +02:00
|
|
|
|
|
|
|
$(ETC)/rc: rc
|
|
|
|
install -m 755 -o root -g operator $> $@
|
|
|
|
|
|
|
|
$(ETC)/rs.inet: rs.inet
|
|
|
|
install -m 755 -o root -g operator $> $@
|
|
|
|
|
|
|
|
$(ETC)/rs.single: rs.single
|
|
|
|
install -m 755 -o root -g operator $> $@
|
|
|
|
|
|
|
|
$(ETC)/system.conf: system.conf
|
|
|
|
install -m 644 -o root -g operator $> $@
|
|
|
|
|
|
|
|
$(USRETC)/rc: usr/rc
|
|
|
|
install -m 755 -o root -g operator $> $@
|
|
|
|
|
2010-11-23 12:12:06 +01:00
|
|
|
$(USR)/Makefile: usr/Makefile
|
|
|
|
install -m 644 -o root -g operator $> $@
|