]> Zhao Yanbai Git Server - minix.git/commitdiff
Install default users directly 96/396/3
authorLionel Sambuc <lionel@minix3.org>
Fri, 8 Mar 2013 18:18:09 +0000 (19:18 +0100)
committerLionel Sambuc <lionel@minix3.org>
Wed, 13 Mar 2013 09:43:40 +0000 (10:43 +0100)
Install /home/ast and /home/bin as part of the system build procedure,
as the setup script is not ran on the arm image.

/home/bin is needed for successful completion of our test suite.

This patch does not change the setup script, as it is not bothered by
those files/directiories being already there, and may be useful during
reinstallation on intel systems.

Change-Id: I358c881df09223c343442673aa0822937f9ea33c

distrib/sets/lists/minix/mi
etc/Makefile
etc/mtree/NetBSD.dist.base

index 89c61c46da3e3eae0bde89fcde2b82651e6958dd..8fb7c768566d4447aeb9aa5a683a62cb6d71d7f9 100644 (file)
 ./etc/ttys                             minix-sys
 ./etc/utmp                             minix-sys
 ./home                                 minix-sys
+./home/ast                             minix-sys
+./home/ast/.ashrc                      minix-sys
+./home/ast/.exrc                       minix-sys
+./home/ast/.profile                    minix-sys
+./home/bin                             minix-sys
+./home/bin/.ashrc                      minix-sys
+./home/bin/.exrc                       minix-sys
+./home/bin/.profile                    minix-sys
 ./lib/cpp                              minix-sys
 ./libexec/ld-elf.so.1                  minix-sys
 ./libexec/ld.elf_so                    minix-sys
index 9e5d25fe411fbc00b52a4a8cc54a8c8bf7493782..530e5296a6a204a6609cea56bc37bf0a7dbd5c68 100644 (file)
@@ -423,28 +423,28 @@ install-etc-files-safe: .PHONY .MAKE check_DESTDIR MAKEDEV
        ${MAKEDIRTARGET} ${NETBSDSRCDIR}/external/bsd/atf/etc/atf configinstall
 .endif
 .else # LSC Minix Specific
-.for owner group mode sdir tdir file in \
+.for owner group mode sdir tdir files in \
                ${BINOWN} ${BINGRP}     ${BINMODE}      ${NETBSDSRCDIR}/etc/usr/ ${DESTDIR}/usr/etc/ daily \
                ${BINOWN} ${BINGRP}     ${BINMODE}      ${NETBSDSRCDIR}/etc/usr/ ${DESTDIR}/usr/etc/ dhcptags.conf \
                ${BINOWN} ${BINGRP}     ${BINMODE}      ${NETBSDSRCDIR}/etc/usr/ ${DESTDIR}/usr/etc/ rc \
                ${BINOWN} ${BINGRP}     ${BINMODE}      ${NETBSDSRCDIR}/etc/ ${DESTDIR}/usr/lib/ crontab \
                ${BINOWN} ${BINGRP}     ${NONBINMODE}   ${NETBSDSRCDIR}/etc/usr/ ${DESTDIR}/usr/ Makefile \
                ${BINOWN} ${BINGRP}     ${BINMODE}      ${NETBSDSRCDIR}/etc/devmand/scripts/ ${DESTDIR}/etc/devmand/scripts/ block  \
-               ${BINOWN} ${BINGRP}     ${BINMODE}      ${NETBSDSRCDIR}/etc/devmand/scripts/ ${DESTDIR}/etc/devmand/scripts/ singlechar
+               ${BINOWN} ${BINGRP}     ${BINMODE}      ${NETBSDSRCDIR}/etc/devmand/scripts/ ${DESTDIR}/etc/devmand/scripts/ singlechar \
+               ${BINOWN} ${BINGRP}     ${NONBINMODE}   ${NETBSDSRCDIR}/etc/ast/ ${DESTDIR}/usr/ast/ .[aepv]* \
+               ${BINOWN} ${BINGRP}     ${NONBINMODE}   ${NETBSDSRCDIR}/etc/ast/ ${DESTDIR}/root/ .[aepv]* \
+               ast       ${BINGRP}     ${NONBINMODE}   ${NETBSDSRCDIR}/etc/ast/ ${DESTDIR}/home/ast/ .[aepv]* \
+               bin       ${BINGRP}     ${NONBINMODE}   ${NETBSDSRCDIR}/etc/ast/ ${DESTDIR}/home/bin/ .[aepv]* \
+
        ${_MKMSG_INSTALL} ${DESTDIR}${_dir}${file}
        if [ ! -e ${tdir} ]; then \
-               mkdir -p ${tdir}; \
+               ${INSTALL_DIR} ${tdir}; \
        fi; \
-       if [ ! -e ${tdir}${file} -o -s ${tdir}${file} ]; then \
-               ${ETC_INSTALL_FILE} -o ${owner} -g ${group} -m ${mode} \
-                       ${sdir}${file} ${tdir}${file}; \
-       else true; fi
+       ${INSTALL_FILE} -o ${owner} -g ${group} -m ${mode} ${sdir}${files} ${tdir};
 .endfor
 .for subdir in . defaults mtree
        ${MAKEDIRTARGET} ${subdir} configinstall
 .endfor
-       ${_MKMSG_INSTALL} ${DESTDIR}/usr/ast and ${DESTDIR}/root
-       for u in ${DESTDIR}/usr/ast ${DESTDIR}/root; do  ${INSTALL_DIR} $$u; cp ${NETBSDSRCDIR}/etc/ast/.[aepv]* $$u; done
        ${_MKMSG_INSTALL} ${DESTDIR}/usr/lib/fonts
        ${INSTALL_DIR} ${DESTDIR}/usr/lib/fonts
        ${INSTALL_FILE} -m ${BINMODE} -o ${BINOWN} -g ${BINGRP} ${NETBSDSRCDIR}/etc/fonts/*.fnt ${DESTDIR}/usr/lib/fonts/
index 664be6ac040f56e1e9440025207fa85f72078b34..648b8c03bb52e5418deca286f31158b4701e68b1 100644 (file)
 ./usr/spool/mail
 ./usr/src
 ./usr/tests
-./usr/tests/minix-posix
 ./usr/var
 ./usr/var/db
 ./usr/var/db/pkg
 ./tmp
 ./usr/tmp
 
+/set type=dir uid=8 gid=0 mode=755
+./home/ast
+
+/set type=dir uid=2 gid=0 mode=755
+./home/bin
+
+/set type=dir uid=2 gid=0 mode=755
+./usr/tests/minix-posix
+
 # this one is for term(1)
 /set type=dir uid=0 gid=5 mode=775
 ./usr/spool/locks