Commit Graph

6891 Commits

Author SHA1 Message Date
dsl
144c38f82d Don't delete \r that aren't followed by '\n' when relaying program output.
Needed to get progress bar displayed correctly.
Kill a level of indent to get some coding space.
2003-08-09 19:26:38 +00:00
recht
b7414800d0 Add myself to the list of developers. 2003-08-09 11:53:26 +00:00
agc
74b7d6e9f2 Move UCB-licensed code from 4-clause to 3-clause licence.
Patches provided by Joel Baker in PR 22268, verified by myself.
2003-08-07 09:27:56 +00:00
itojun
4b276b6083 use bounded string op 2003-08-06 13:56:58 +00:00
itojun
ac9d94f21a use bounded string op and strdup 2003-08-06 13:43:31 +00:00
itojun
cad152ee49 use bounded string op 2003-08-06 13:36:53 +00:00
itojun
7f01f184d4 fix realpath vuln, just like SA2003-011. i do not think it attackable 2003-08-06 13:36:16 +00:00
dsl
117888d14f When writing /etc/fstab:
add support for setting mount options of async, noatime, nodevmtine and softdep.
add noauto if 'mount' was not requested.
add entry for /proc (with noauto)
Display fragment size and block size on the correct line.
Ask for numeric fragment size (not # fragments/block).
Show one unused partition when editing disklabel.
Zap all fields when a partition is made FS_UNSED.
Tweak some menu texts (a space at the end of a line causes a line break!).
Simplify code that displays output from commands - curses is requied to not DTRT
with CR/LF sequences, I need to revert libcurses :-(
2003-08-05 13:35:26 +00:00
skrll
0dcbb09c7a Put a quote in the right place. 2003-08-04 09:23:50 +00:00
mrg
9347d6de64 add initial support for gcc3 2003-08-04 05:53:20 +00:00
itojun
fc35b1fd89 /lib/libdes.so* must be removed due to des_xx -> DES_xx API change
(otherwise -ldes will not work)
2003-08-04 04:15:24 +00:00
lukem
61be5790f1 Un-obsolete kerberosIV/des.h, and make it a symlink to ../des.h.
It can't be obsoleted because that causes builds with an old
${DESTDIR}/usr/include/kerberosIV/des.h to fail in directories which
have CPPFLAGS+=-I${DESTDIR}/usr/include/kerberosIV so that their #include
of <krb.h> works (and any subsequent #include <foo.h> by <krb.h>).
(Note: gcc3 won't work with a hack such as prepending -I${DESTDIR}/usr/include
before -I${DESTDIR}/usr/include/kerberosIV.)

Affected directories include lib/libkafs, and any thirdparty source
which used a similar -I/usr/include/kerberosIV hack to use <krb.h>.
2003-08-02 18:49:10 +00:00
bjh21
aebe480082 Add boot32 bits. 2003-08-02 17:59:04 +00:00
lukem
980c535c83 the new world order is to use DPSRCS to add extra dependencies... 2003-08-02 05:16:56 +00:00
tsutsui
ad95b036f0 Add spc(4), and remove hp300 oscsi(4). 2003-08-01 02:46:57 +00:00
he
b066f88cea Bring into sync with current reality; add two gzboot images for SMDK2800. 2003-07-31 20:50:40 +00:00
hubertf
e13dec7b2a Making device files -> Making device nodes 2003-07-31 13:50:05 +00:00
bsh
8c0536d8f2 add SMDK2800 to supported platform. 2003-07-30 18:55:46 +00:00
itojun
a788826020 unifdefall is available. 2003-07-30 08:24:11 +00:00
dsl
11d928c5ee Fix display of localtime on timezone update screen.
(missing "." in "%.*s")
Reduce memory leak in setenv() by only calling it for changes.
2003-07-29 12:08:32 +00:00
dsl
02dbd70852 Remove extra process and pipe that relayed data from the master pty
to sysinst's main process when a command is run (eg the file list from pax).
Since the pty is in 'packet' mode, the boundaries of the pty reads would
need to be preserved in order to detect control records.
If the pipe became full the main process could treat part of a filename
as a control byte and then save the rest of the name as tty settings.
The effect of 'random' tty settings is unknown, but could be responsible
for core dumps while displaying the full file list from pax.
I suspect that the extra pipe was originally used because select wasn't
supported on the master side of a pty (not checked).

Also cd out of /targetroot if set installation is killed with ^C ^C.
2003-07-28 11:32:21 +00:00
dsl
b42a6fa21a Stop (attempted) coredump when ftp/nfs install attempted.
(incorrect empty strings check for active interfaces)
2003-07-27 21:09:57 +00:00
dsl
d0bba60fad Default boot blocks to those used to install the system.
Add 19200 baud and serial ports com1, com2 and com3.
Fixes PR install/21418
2003-07-27 20:25:07 +00:00
dsl
faefcd3805 Force localfs_dir to be an absolute path - fixes PR install/14130.
Put disklabel info into /tmp/disktab in case / isn't writable,
fixes PR 17347.  Note the /etc/disktab isn't the target /etc anyway...
2003-07-27 08:57:27 +00:00
dsl
96ace5d58c Remove 'menu_ent' parameter from action routines.
Add menu for all disklabel partition types.
Default 'partition type' and 'sizechoice' menus to current value.
Change 'standard/use existing' to 'set sizes/use existing'.
2003-07-27 07:45:08 +00:00
salo
8d1781e39d netbsd.org->NetBSD.org 2003-07-26 17:06:22 +00:00
he
faae8634e1 Add newly added crypto/cryptodev.h header. 2003-07-26 14:23:19 +00:00
he
92515d797d Include new g++/backward, g++/bits, and g++/ext directories. 2003-07-26 14:22:37 +00:00
dsl
e141360764 Obsolete i386/amd64 /usr/mdec/biosboot*.sym and /usr/mdec/installboot 2003-07-26 08:43:02 +00:00
dsl
7ea6661b7f Fix serial boot floppy (sync with i386) 2003-07-26 08:32:18 +00:00
dsl
ebaaf5a296 Use ${TOOL_INSTALLBOOT} - it does work on ustarfs filesytems.
Pass correct option to installboot for bootfloppy-com (serial bootfloppy).
2003-07-26 08:26:07 +00:00
dsl
34f6042f4f Remove dependency on biosboot-com0.sym 2003-07-26 07:52:03 +00:00
wiz
7455c20783 Perry added openssl_CA.pl.1 to man/mi, which looks like a better place.
Remove the lines for it here.
2003-07-25 22:22:44 +00:00
perry
507b7df779 add entries for openssl_CA.pl.1 man page.
Maybe I'll finally be able to build the world now.
2003-07-25 21:48:36 +00:00
dsl
18d1abfb17 Put in boot files that sysinst needs - matches i386 2003-07-25 21:31:17 +00:00
dsl
1d61f8f341 Update amd64 to match latest i386 2003-07-25 21:24:37 +00:00
dsl
6c8c94d8a7 Switch boot floppies to 'new' i386 bootcode. 2003-07-25 21:19:48 +00:00
he
4db75bc189 My mistake; openssl/rsaref.h wasn't supposed to be there. 2003-07-25 15:23:11 +00:00
he
f275d4828e Sync with current reality: openssl/rsaref.h, {man,cat}1/openssl_CA.pl.{0,1}. 2003-07-25 15:11:39 +00:00
hannken
ba886242fe Typo: cat1/openssl_ocsp.1 -> cat1/openssl_ocsp.0 2003-07-25 09:18:21 +00:00
dsl
7f5beafa6b Sprinkle a load of consts, and change a few variable names.
Now compiles with WARNS=3.
2003-07-25 08:26:21 +00:00
itojun
f4401cd869 upgrade openssl to 0.9.7b. (AES is now supported)
alter des.h to be friendly with openssl/des.h (you can include both in the
same file)
make libkrb to depend on libdes.  bump major.
massage various portioin of heimdal to be friendly with openssl 0.9.7b.
2003-07-24 14:16:30 +00:00
itojun
de65f66923 sort 2003-07-24 13:04:19 +00:00
dsl
dddd3e09c5 Remove /lib/libdes.so, /lib/libdes.so.7.0 and /lib/libdes.so.7
have already been removed by itojun.
2003-07-24 10:42:40 +00:00
wiz
75dfbc138b Add pthread(3). 2003-07-24 07:51:01 +00:00
itojun
6040fd8db9 no /lib/libdes any more. from Havard 2003-07-23 22:44:27 +00:00
itojun
d18a2f47e0 kafs.h moved from kerberosIV to krb5 2003-07-23 21:57:19 +00:00
itojun
cc129b0c9b need lint entry for libdes 2003-07-23 21:56:35 +00:00
itojun
4e1706e9af kerberosIV/des.h is not needed, Love says 2003-07-23 20:30:34 +00:00
itojun
9f89c3577c split libdes from libcrypto. libdes bumps shlib major.
(no dependency in libraries)

libdes provides des_xx functions based on openssl 0.9.6j.
2003-07-23 05:20:17 +00:00
dsl
f8beccb8d0 Ask for sets when doing 'install more sets' 2003-07-22 12:18:39 +00:00
mrg
84813a0362 note SMP & xfree4 update. 2003-07-22 11:59:49 +00:00
mrg
11569a7f9b support XF4 on sparc. had to move parts of x{base,comp}4/mi into the
relevant ports as they do not apply to sparc (or other non-"hw/xfree86"
ports.)
2003-07-22 11:46:52 +00:00
dsl
92c7597c91 Specify username+password to ftp even when username is 'ftp'.
Only use 'ftp -a ...' when the username is ftp and the password is null.
Fixed PR install/13656
2003-07-22 11:45:16 +00:00
dsl
bdd53bdf93 Output a messge before the 5 second delay while the network comes up.
Ask user before deleting set files (fixes PR/7190).
2003-07-22 08:30:10 +00:00
tshiozak
8506e58599 add new locales - bg_BG.CP1251 el_GR.ISO8859-7 hy_AM.ARMSCII-8 lt_LT.ISO8859-13 2003-07-21 17:45:50 +00:00
tshiozak
6c85e3334a add KOI8-U encoding support for iconv. 2003-07-20 19:26:55 +00:00
abs
ef8e75ce98 Make net_namesvr6 extern again to fix compilation if INET6 is defined. 2003-07-19 22:07:36 +00:00
tshiozak
173e5850f7 - add converter for EUC-JP-MS.
- apply MS conversion rule to JISX0208 part of CP932.
c.f.:
  http://www.opengroup.or.jp/jvc/cde/ucs-conv-e.html
2003-07-19 20:20:39 +00:00
mbw
df3fae3530 pk posted that a longstanding MMU problem with sun4c systems has been
fixed.  Benefits primarily stability and SS1, SS1+, and IPC system speed.
2003-07-18 17:56:48 +00:00
dsl
195bdd51af Tested version of code to get local directory (I'd got waylaid by etc.old)
Messages for net.c changes.
2003-07-18 10:29:36 +00:00
dsl
0bf9a036c9 Remember which sets we sucessfully installed (so we know when to
restore /etc).
Improve handling of absent directories in get_via_localdir.
distname[] isn't needed (twice)
2003-07-18 09:49:18 +00:00
dsl
da36837548 Copy /etc.old back to /etc if it was saved, but we didn't actually
install the ETC set.
2003-07-18 09:46:11 +00:00
dsl
6e575ea980 Network info has gone to net.c and is now static.
Stuff to put /etc back in upgrade aborted.
2003-07-18 09:44:20 +00:00
dsl
9a9b340a64 Pull local data here and make it static.
Remove one or two fixed length strings (use malloc etc instead).
Change a lot of 'if (strlen(x) == 0)' to 'if (x[0] === 0)'.
Let user skip network config if any non-loopback interfaces are UP.
Always free() buffer allocated by collect(), could be a massive leak.
Whitespace changes.
2003-07-18 09:42:59 +00:00
dsl
6684cadd5e Remove some fixed length strings.
Do limited filename globbing.
2003-07-18 09:34:42 +00:00
lukem
f134f3dc38 Add MKUNPRIVED; if not no has the same semantics as if UNPRIVED was defined.
Replace defined(UNPRIVED) tests with ${MKUNPRIVED} != "no"

Add MKUPDATE; if not no has the same semantics as if UPDATE was defined.
Replace defined(UPDATE) tests with ${MKUPDATE} != "no"

Improve documentation for these and other make flags.
2003-07-18 08:26:01 +00:00
tron
c658ee6379 NetBSD-sparc supports SMP for a while now. 2003-07-18 06:33:45 +00:00
lukem
be22974820 deprecate; i replaced this with distrib/common/sunbootcd.sh a while ago 2003-07-18 00:37:35 +00:00
dsl
9c3018b9f2 Remove the endwin() and refresh() pair which caused the screen to flash
whenever a command was run.  Maybe a screen redraw is required if the
command is able to corrupt the screen - but the refresh was happening
much too early to fix that, and it would be better to collect/discard
the commands output anyway.
2003-07-17 19:44:53 +00:00
matt
e648c959cb No need for libtelnet.ln anymore 2003-07-17 02:26:18 +00:00
itojun
8fece4c5f9 libtelnet no longer installed (redo) 2003-07-16 19:39:05 +00:00
he
d003f425a8 Despite claims of the contrary, libtelnet in its various forms
is still being installed, so make the set lists match reality for now.
2003-07-16 19:03:11 +00:00
itojun
1463d5f4f4 add libtelnet non-shared portion 2003-07-16 16:23:21 +00:00
dsl
118b95f75d Add old location of mbr(8) and bootselect(8) pages. 2003-07-16 11:57:15 +00:00
dsl
c0bc37d706 Move mbr(8) and bootselect(8) into i386 subdir (source moved from sbin/fdisk
to src/share/man/man8/man8.i386)
2003-07-16 11:21:33 +00:00
itojun
71f683ba4a oops, too early (PF) 2003-07-16 08:53:42 +00:00
itojun
128a9bd8d5 add X11 CTEXT encoding
XXX add more charsets
2003-07-16 08:25:17 +00:00
itojun
2074f56f8d no longer install libtelnet 2003-07-16 06:18:32 +00:00
he
b1597d221a Cobalt installs a boot loader now, so list it here. 2003-07-15 14:00:20 +00:00
itojun
427af575fe use bounded string op. bump shlib major for libtelnet due to API change. 2003-07-15 10:14:54 +00:00
dsl
6445d05466 Add explicit msg_string() call to MSG_hidden to stop core dump
when the password is set and the usename not ftp.
Whitespace changes.
2003-07-14 10:53:42 +00:00
dsl
a2d5357066 Fix code that guesses bios geometry from mbr info.
When asking for bios geometry, ask for sectors per track and heads
then calculate cylinders from volume size.
Write MBR_MAGIC into correct place when writing extened partitions.
2003-07-14 09:59:00 +00:00
dsl
e64fcd4452 Use a menu when asking for the install disk (fixes PR install/20121).
Make disk_desc[], disk and numdisks local to get_disks (instead of globals).
Fix a little fallout from the above.
A bit of mbr.c was missing #ifdef BOOTSEL...
2003-07-11 15:28:58 +00:00
dsl
8e56a9f2a2 Delete code that did nothing!
The disk parameters it fetched were overwritten by those obtained (from
the default label) in get_disks.
2003-07-11 14:48:42 +00:00
pk
edb01b1198 Pass explicit device to eject(1), since it doesn't know about the floppy
driver's "partition" scheme..
2003-07-11 12:16:56 +00:00
he
e0e6a115ce Adapt to the new layout of files under /usr/mdec, so that this
builds again.  However, the install program most probably needs
adaptation for this to work as intended.
2003-07-11 11:54:10 +00:00
dsl
0f636f6d49 Ensure correct curses tty settings are restored after a program runs.
Remove the abberant call to endwin() in i386 md_update() that caused
echo to be left on. I've not removed the endwin from the other ports.
Only run MAKEDEV if etc.tgz installed.
Some extra sanity checks on an 'rm -rf %s'.
2003-07-10 13:36:48 +00:00
wiz
69807edb27 Add old milter includes. 2003-07-10 13:27:27 +00:00
atatat
ccf314363b Move the libmilter headers to where they belong. 2003-07-10 13:07:24 +00:00
lukem
eec954fd77 explicitly pull in <bsd.own.mk> for NETBSDSRCDIR (to be safe) 2003-07-10 11:23:53 +00:00
lukem
94830d866e revert previous accidental commit (just whitespace tyop in this case) 2003-07-10 10:36:03 +00:00
lukem
001c68bd94 Rename a large chunk of the make(1) variables which refer to a
program/tool from "FOO" to "TOOL_FOO".  The new variables are:
	TOOL_ASN1_COMPILE  TOOL_CAP_MKDB  TOOL_CAT  TOOL_CKSUM  TOOL_COMPILE_ET
	TOOL_CONFIG  TOOL_CRUNCHGEN  TOOL_CTAGS  TOOL_DB  TOOL_EQN  TOOL_FGEN
	TOOL_GENCAT  TOOL_GROFF  TOOL_HEXDUMP  TOOL_INDXBIB  TOOL_INSTALLBOOT
	TOOL_INSTALL_INFO  TOOL_M4  TOOL_MAKEFS  TOOL_MAKEINFO  TOOL_MAKEWHATIS
	TOOL_MDSETIMAGE  TOOL_MENUC  TOOL_MKCSMAPPER  TOOL_MKESDB
	TOOL_MKLOCALE  TOOL_MKMAGIC  TOOL_MKTEMP  TOOL_MSGC  TOOL_MTREE
	TOOL_PAX  TOOL_PIC  TOOL_PREPMKBOOTIMAGE  TOOL_PWD_MKDB  TOOL_REFER
	TOOL_ROFF_ASCII  TOOL_ROFF_DVI  TOOL_ROFF_HTML  TOOL_ROFF_PS
	TOOL_ROFF_RAW  TOOL_RPCGEN  TOOL_SOELIM  TOOL_SUNLABEL  TOOL_TBL
	TOOL_UUDECODE  TOOL_VGRIND  TOOL_ZIC

For each, provide default in <bsd.sys.mk> of the form:
	TOOL_FOO?=	foo
and for the ${USETOOLS}=="yes" case in <bsd.own.mk>, provide override:
	TOOL_FOO=	${TOOLDIR}/bin/${_TOOL_PREFIX}foo

Document all of these in bsd.README.

This cleans up a chunk of potential (and actual) namespace collision
within our build infrastructure, as well as improves consistency in
the share/mk documentation and provision of appropriate defaults for
each of these variables.
2003-07-10 10:33:58 +00:00
lukem
aedc125774 change test to skip metalog to be a case,
to easily allow other entries to skip to be added.
2003-07-10 03:19:15 +00:00
dsl
5a411fd464 Create mount point used for target system. 2003-07-09 20:02:35 +00:00
wiz
68cbd06b9e Remove installboot/i386(8) man page too, and add it and the catted version
to the obsolete list.
2003-07-09 09:38:05 +00:00
dsl
f496a8be1b Remove i386/installboot(8) 2003-07-09 09:35:42 +00:00
dsl
6da321c1aa Sort out (and remember) the disk partition we will install into.
This should stop the i386 code splatting all over the start of the disk
during upgrade.
Upgrade will still use partition 'a' (unless you loop through the install
far enough first!)
2003-07-08 17:38:54 +00:00
dsl
a72609cec0 Only save and merge /etc if the /etc set is being installed.
Actually this needs changing to use /usr/sbin/etcupdate (or similar),
but the script needs fixing first.
Might be better for sysinst to have its own copy, gets to be fun to run
because you have to pull the commands from the target FS.
2003-07-08 16:12:18 +00:00
dsl
294dd49644 Stop timezone submenu exploding (strcmp of MSG_xxxx).
Allow mbr partition type to be changed without losing disklabel info
for same area of disk (allows type to be changed from 165 to 169).
2003-07-08 11:58:57 +00:00