prepare for netbsd libc/headers
. mtree entries for /usr/netbsd . install(1) fix for relative symlinks by Antoine Leca
This commit is contained in:
parent
230b7775fe
commit
d490669430
5 changed files with 82 additions and 3 deletions
|
@ -226,10 +226,21 @@ void copylink(char *source, char *dest, int mode, int owner, int group)
|
||||||
# define hdr ((struct exec *) buf)
|
# define hdr ((struct exec *) buf)
|
||||||
pid_t pid = 0;
|
pid_t pid = 0;
|
||||||
int status = 0;
|
int status = 0;
|
||||||
|
char *p;
|
||||||
|
|
||||||
/* Source must exist as a plain file, dest may exist as a plain file. */
|
/* Source must exist as a plain file, dest may exist as a plain file. */
|
||||||
|
if (make_symlink && source[0] != '/'
|
||||||
if (stat(source, &sst) < 0) { report(source); return; }
|
&& (p = strrchr(dest, '/')) != NULL ) {
|
||||||
|
/* creating a relative symlink; compute real target */
|
||||||
|
strlcpy(buf, dest, sizeof(buf));
|
||||||
|
if (p - dest + 1 >= (int)sizeof(buf))
|
||||||
|
p = dest + sizeof(buf) - 2;
|
||||||
|
buf[p - dest + 1] = '\0';
|
||||||
|
strlcat(buf, source, sizeof(buf));
|
||||||
|
r = stat(buf, &sst);
|
||||||
|
} else
|
||||||
|
r = stat(source, &sst);
|
||||||
|
if (r < 0) { report(source); return; }
|
||||||
|
|
||||||
if (mode == -1) {
|
if (mode == -1) {
|
||||||
mode= sst.st_mode & 07777;
|
mode= sst.st_mode & 07777;
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
|
||||||
20110228:
|
20110228:
|
||||||
(Next release bumped to MINIX 3.2.0.)
|
(Next release bumped to MINIX 3.2.0.)
|
||||||
ELF support in the base system. /usr/lib libraries
|
ELF support in the base system. /usr/lib libraries
|
||||||
|
@ -7,6 +8,12 @@
|
||||||
To start producing ELF, please see:
|
To start producing ELF, please see:
|
||||||
http://wiki.minix3.org/en/UsersGuide/ELFSwitch
|
http://wiki.minix3.org/en/UsersGuide/ELFSwitch
|
||||||
|
|
||||||
|
To create the /usr/netbsd hierarchy:
|
||||||
|
# cd /usr/src
|
||||||
|
# umount /proc
|
||||||
|
# make etcfiles
|
||||||
|
# mount -e -t procfs none /proc
|
||||||
|
|
||||||
20110225:
|
20110225:
|
||||||
Create ddekit include dirs:
|
Create ddekit include dirs:
|
||||||
mkdir -p /usr/include/ddekit/minix
|
mkdir -p /usr/include/ddekit/minix
|
||||||
|
|
|
@ -4,7 +4,8 @@ USRETC=/usr/etc/
|
||||||
FILES1=fstab group hostname.file inet.conf motd.install mtab passwd profile \
|
FILES1=fstab group hostname.file inet.conf motd.install mtab passwd profile \
|
||||||
protocols rc services termcap ttytab utmp rc.cd binary_sizes \
|
protocols rc services termcap ttytab utmp rc.cd binary_sizes \
|
||||||
binary_sizes.big binary_sizes.xxl syslog.conf rc.daemons.dist \
|
binary_sizes.big binary_sizes.xxl syslog.conf rc.daemons.dist \
|
||||||
rs.inet rs.single make.conf system.conf
|
rs.inet rs.single make.conf system.conf ttys
|
||||||
|
|
||||||
FILES2=shadow
|
FILES2=shadow
|
||||||
FILES3=daily dhcptags.conf rc
|
FILES3=daily dhcptags.conf rc
|
||||||
USRFILES=Makefile
|
USRFILES=Makefile
|
||||||
|
|
|
@ -54,6 +54,22 @@
|
||||||
755 root operator /usr/man/man8
|
755 root operator /usr/man/man8
|
||||||
755 root operator /usr/man/man9
|
755 root operator /usr/man/man9
|
||||||
755 root operator /usr/mdec
|
755 root operator /usr/mdec
|
||||||
|
755 root operator /usr/netbsd
|
||||||
|
755 root operator /usr/netbsd/include
|
||||||
|
755 root operator /usr/netbsd/include/i386
|
||||||
|
755 root operator /usr/netbsd/include/arpa
|
||||||
|
755 root operator /usr/netbsd/include/compat
|
||||||
|
755 root operator /usr/netbsd/include/compat/machine
|
||||||
|
755 root operator /usr/netbsd/include/ddekit
|
||||||
|
755 root operator /usr/netbsd/include/ddekit/minix
|
||||||
|
755 root operator /usr/netbsd/include/minix
|
||||||
|
755 root operator /usr/netbsd/include/net
|
||||||
|
755 root operator /usr/netbsd/include/net/gen
|
||||||
|
755 root operator /usr/netbsd/include/protocols
|
||||||
|
755 root operator /usr/netbsd/include/rpcsvc
|
||||||
|
755 root operator /usr/netbsd/include/ssp
|
||||||
|
755 root operator /usr/netbsd/include/sys
|
||||||
|
755 root operator /usr/netbsd/lib
|
||||||
700 root operator /usr/preserve
|
700 root operator /usr/preserve
|
||||||
755 root operator /usr/run
|
755 root operator /usr/run
|
||||||
755 root operator /usr/share
|
755 root operator /usr/share
|
||||||
|
|
44
etc/ttys
Executable file
44
etc/ttys
Executable file
|
@ -0,0 +1,44 @@
|
||||||
|
#
|
||||||
|
# from: @(#)ttys 5.1 (Berkeley) 4/17/89
|
||||||
|
#
|
||||||
|
# name getty type status comments
|
||||||
|
#
|
||||||
|
console getty minix on secure
|
||||||
|
ttyc1 getty minix on secure
|
||||||
|
ttyc2 getty minix on secure
|
||||||
|
ttyc3 getty minix on secure
|
||||||
|
tty00 "" unknown off secure
|
||||||
|
tty01 "" unknown off secure
|
||||||
|
|
||||||
|
ttyp0 "" network off
|
||||||
|
ttyp1 "" network off
|
||||||
|
ttyp2 "" network off
|
||||||
|
ttyp3 "" network off
|
||||||
|
ttyp4 "" network off
|
||||||
|
ttyp5 "" network off
|
||||||
|
ttyp6 "" network off
|
||||||
|
ttyp7 "" network off
|
||||||
|
ttyp8 "" network off
|
||||||
|
ttyp9 "" network off
|
||||||
|
ttypa "" network off
|
||||||
|
ttypb "" network off
|
||||||
|
ttypc "" network off
|
||||||
|
ttypd "" network off
|
||||||
|
ttype "" network off
|
||||||
|
ttypf "" network off
|
||||||
|
ttyq0 "" network off
|
||||||
|
ttyq1 "" network off
|
||||||
|
ttyq2 "" network off
|
||||||
|
ttyq3 "" network off
|
||||||
|
ttyq4 "" network off
|
||||||
|
ttyq5 "" network off
|
||||||
|
ttyq6 "" network off
|
||||||
|
ttyq7 "" network off
|
||||||
|
ttyq8 "" network off
|
||||||
|
ttyq9 "" network off
|
||||||
|
ttyqa "" network off
|
||||||
|
ttyqb "" network off
|
||||||
|
ttyqc "" network off
|
||||||
|
ttyqd "" network off
|
||||||
|
ttyqe "" network off
|
||||||
|
ttyqf "" network off
|
Loading…
Reference in a new issue