Commit Graph

3523 Commits

Author SHA1 Message Date
tron 66db1620b2 Fix this so that "make install" will actually work. 2005-01-10 11:20:01 +00:00
lukem da9dede24f add MKINET6 to etc/release 2005-01-10 02:49:46 +00:00
lukem 2ec73172c7 don't bother linking ftp -> ftpd 2005-01-10 01:51:13 +00:00
lukem 8516a4eb2a install-etc-files: also descend into "pam.d" for configinstall 2005-01-10 01:17:25 +00:00
lukem 50da6bf581 NetBSD Is Not FreeBSD:
* use CONFIGFILES instead of FILES
* use CONFIGLINKS instead of LINKS
2005-01-10 01:15:44 +00:00
tsutsui 14a351eefe Create wscons devices. 2005-01-09 15:50:53 +00:00
sketch 715473130b Quote MAILTO properly so that more descriptive names can be used. 2005-01-09 13:07:14 +00:00
christos 2cfa477387 Install pam configuration files. 2005-01-09 07:27:14 +00:00
manu c6d0cd4217 Remove pam_ssh for system config, it's not always used. 2005-01-08 22:42:22 +00:00
cube 9dc874ea69 Create tap (cloning), tap0 .. tap3 in /dev by default. 2005-01-08 22:31:28 +00:00
joff d17ffac202 Add tslcd 2005-01-08 20:32:10 +00:00
christos 247ec215ec add ssh and krb5 now that they compile 2005-01-08 08:43:03 +00:00
lukem 7812888715 add MKPAM 2005-01-06 00:47:34 +00:00
manu 99a658efd4 Fix bpf/bpf0 swap 2005-01-04 15:06:24 +00:00
manu 9fba78b0b3 Link /dev/bpf to /dev/bpf0. dhclient looks for /dev/bpf now... 2005-01-03 22:45:34 +00:00
dsainty 7e7f191f7d Add a missing space in a comment 2004-12-30 09:32:13 +00:00
joff 38cddbe010 Add epcom serial UART char device found on Cirrus Logic EP93xx ARM9 SoC's 2004-12-29 06:36:46 +00:00
thorpej 9c276b19a0 Add /usr/lib/security 2004-12-28 23:59:22 +00:00
thorpej 186e7464e2 Add /usr/include/security 2004-12-28 22:00:36 +00:00
joff db2d37d14e Add TS7200 2004-12-28 16:51:15 +00:00
lukem eca6f3c39f * Conditionalize flushing of IPv4 vs IPv6 rules based on the existance
of the appropriate configuration file.
  Based on PR 28757 from Jason White.

* Add comments explaining why we flush separately from the reload
  (backwards compat with older ipf(8) binaries).
2004-12-23 03:31:54 +00:00
jmc a837ad61c2 Make sure miniroot subdir gets created 2004-12-15 15:03:14 +00:00
christos 6b367bf779 - Add NetBSD RCSID's
- comment out opie since we don't have it.
2004-12-12 08:54:34 +00:00
christos cad237d3f4 Pam configuration files from FreeBSD; perl script not imported. 2004-12-12 08:48:21 +00:00
jmc fa6a23da15 Check and report if authpf isn't in group file 2004-12-09 04:42:54 +00:00
kleink c17d5db72f Add the `shutdown' keyword, giving racoon a chance to flush the SAD
upon termination.
2004-12-07 17:37:15 +00:00
christos 9e47818662 Only make bpf, not bpfN 2004-12-02 16:44:28 +00:00
christos 0b731a56a1 Marry tun and joy. 2004-12-01 23:09:04 +00:00
christos 98baff9ba7 Create /dev/bpf not /dev/bpfN 2004-12-01 23:06:57 +00:00
jwise 5b40cd9b6b With the recent fixes to cpp(1) and calendar(1), it is now safe to turn
on run_calendar by default.  Include a note advising users who replace
/usr/bin/cpp with a non-basesrc version to turn this off.
2004-11-30 02:03:57 +00:00
perry 87352ee9ba add ./var/chroot and subdirectories 2004-11-25 01:33:31 +00:00
jmc 2a2d87d1db Remove all references to vnd usage here now that sgivol works correctly on file
images
2004-11-24 22:01:42 +00:00
soren c43d1a68db Print interface packet counters as strings to prevent integer overflow in awk. 2004-11-22 04:53:46 +00:00
is e61255615c Ensure ISDN kernels can be built for future releases. 2004-11-21 21:07:15 +00:00
kim f7dc8a9650 When checking /etc/exports, account for "-network=XXX" as restricting
the mount (i.e. it is not considered globally exported).

Fixes PR: 26890
2004-11-21 19:00:12 +00:00
christos 13b48b2499 Add ${.CURDIR}. 2004-11-16 03:51:30 +00:00
christos d6ecb79b20 Use the ttys file from etc.${MACHINE} directly. 2004-11-16 02:33:21 +00:00
he 52bd3adde5 Don't leave the stray reference to etc.${MACHINE}/ behind in the ttys
file installation command.
2004-11-15 16:33:41 +00:00
christos 829bf2603d Don't append ptys to the ttys file. It is not needed anymore as ttyslot
will DTRT.
2004-11-15 00:28:16 +00:00
yamt ded5cfa88c install PF configs. 2004-11-14 20:28:28 +00:00
yamt 23c8222edb merge after importing pf from openbsd 3.6. (userland part)
some files were imported to the different places from the previous version.
v3_5:
	etc/pf.conf
	etc/pf.os
	etc/spamd.conf
	share/man/man4/pf.4
	share/man/man4/pflog.4
	share/man/man5/pf.conf.5
	share/man/man5/pf.os.5
	share/man/man5/spamd.conf.5
v3_6:
	dist/pf/etc/pf.conf
	dist/pf/etc/pf.os
	dist/pf/etc/spamd.conf
	dist/pf/share/man/man4/pf.4
	dist/pf/share/man/man4/pflog.4
	dist/pf/share/man/man5/pf.conf.5
	dist/pf/share/man/man5/pf.os.5
	dist/pf/share/man/man5/spamd.conf.5
2004-11-14 11:26:43 +00:00
sekiya c1d9edf7a4 Add the IP12 GENERIC kernel. 2004-11-13 10:27:14 +00:00
christos 573e338f96 Don't try to chmod ptys if we have none. 2004-11-10 05:04:51 +00:00
christos 440dc51bb7 Don't declare ptys in tty's. None of the other ports do this. 2004-11-08 19:59:07 +00:00
lukem 4ffd3a5be3 Redo previous (rev 1.12) in a manner that allows this rc.d script to operate
correctly on ipf(8) from prior to 4.1.3 (where -Fa flushes both protocols)
and 4.1.3 (where -Fa only flushes the current protocol).
Fix from Kimmo Suominen, per private discussion.
2004-11-08 02:09:01 +00:00
soren c41dd8b49a - .isc.netbsd.org aliases are gone
- zathras is gone, alias releng to www
2004-11-07 19:41:45 +00:00
peter 195fae85fa Remove the "(not in tree)" part in the comment for PF. 2004-10-22 14:08:22 +00:00
gavan 0560d8b947 Initial import of iyonix port.
The Iyonix is a desktop machine from Castle Technology, based on a 600MHz
XScale[tm] 80321 processor.

* Uses the bootloader from NetBSD/acorn32, which is now 32-bit compatible.
* Currently boots multiuser with a serial console.
* Device support is not yet complete.

With help from abs.
2004-10-13 23:28:34 +00:00
lukem 1ecb0d140f Use 'load_rc_config_var CMD VAR' to set VAR for "foreign" rc.conf(5)
variables that may be set in /etc/rc.conf.d/CMD instead of /etc/rc.conf.
Fixes PR 20768 from Pavel Cahyna.
2004-10-12 14:51:03 +00:00
lukem 3c81b28a9a * Implement
load_rc_config_var cmd var
  to load the rc.conf(5) configuration for cmd and set var in the
  current shell, using 'load_rc_config var' in a sub-shell to avoid
  unwanted side-effects.

* Improve required_vars warning message.
2004-10-12 14:45:29 +00:00
christos a22353007b PR/27235: Jukka Salmi: MAKEDEV regression because of printf -> zeropad change 2004-10-12 14:42:08 +00:00
lukem 573992ef57 Implement reload, using "amq -f".
Suggested by Hauke Fath in PR 26589.
2004-10-12 13:44:45 +00:00
lukem b9fbb3f21a manage tpctl with do_rc(). Fix from Jukka Salmi in PR 26754 2004-10-12 13:29:05 +00:00
lukem d65dca170c Fix for /bin/ksh, from Jukka Salmi in PR 27232. 2004-10-12 13:23:44 +00:00
christos 6e9a790e1f Use new style command substitution. 2004-10-11 15:00:51 +00:00
lukem c73be7a88d Explicitly REQUIRE: rpcbind since these services directly use RPC... 2004-10-11 14:11:43 +00:00
lukem 6ede50a341 Use load_rc_config `basename chrootdirscript` in a subshell to determine
the rc.conf(5) setting for chrootdirscript, incase the configuration
for that is in /etc/rc.conf.d/chrootdirscript.
Fixes PR 26478 from Jukka Salmi.
2004-10-11 13:29:52 +00:00
christos dc75bc2463 PR/27196: Jukka Salmi: missing amanda server ports in /etc/services 2004-10-09 17:04:41 +00:00
dsainty 3507ec273f Comment typos: unecessary->unnecessary, accidentaly->accidentally 2004-10-09 02:18:48 +00:00
erh 7da8bb106d PR misc/7716: add configuration options find_core_ignore_fstypes and
check_devices_ignore_fstypes to allow the filesystem types that are
ignored during the daily and security runs to be adjusted.
2004-09-28 15:03:58 +00:00
wiz d355f71bc3 Dig {cat,man,html}4/hp700. 2004-09-24 13:47:46 +00:00
ian 70f35b6f77 Remove support for ALIASES in share/locale/ctype/Makefile, which
created symlinks in the filesystem.  Put the one existing alias
(zh_TW.BIG5) into the newer locale.alias file.
2004-09-10 15:12:51 +00:00
lukem ac418f52f5 Explicitly flush (-Fa) rules when loading or reloading IPv4 and IPv6 rules,
rather than relying upon running "ipf -Fa" beforehand (which only flushes IPv4)
Should fix PR 26885 and PR 26857.
2004-09-09 00:33:03 +00:00
lukem 08c7699414 * Implement modify_file() to apply an awk program against a file and display
the diffs and possibly install the new version of file.
  (Based on sshd_config munging code in do_ssh())
* Use modify_file() in do_hosts() and do_ssh().
* Be more specific in do_x11() about what needs to occur.
  (This could still be improved).
* Minor sh cleanups.  ("sh is not C")
2004-08-30 04:57:39 +00:00
augustss 4d1e9e453b The hosts file is /etc/hosts not /hosts. 2004-08-30 02:46:07 +00:00
chs 85b920f8a2 add a dotted alias for localhost so that sendmail doesn't pause on startup
if a system's hostname is not set.  PR 26550.
2004-08-29 13:26:17 +00:00
drochner 93f4534edf add "drvctl" template 2004-08-27 17:50:57 +00:00
atatat c41b76304f Quieten stat(1) with the -q flag.
Addresses PR bin/26711.
2004-08-19 04:44:10 +00:00
mycroft 7d2e1537c5 Add an _rc_subr_loaded variable, set to ":" by rc.subr. Scripts can use this
for a speedup by doing:
$_rc_subr_loaded . /etc/rc.subr
2004-08-13 18:08:03 +00:00
lukem 5d87974ec4 Search /usr/lib/i18n and /usr/X11R6/lib for obsolete minor shared libraries. 2004-08-12 13:32:37 +00:00
lukem a5e99ebea6 * Implement obsolete_paths() to obsolete the paths provided on stdin.
(based on the guts of do_obsolete().
* Implement obsolete_libs() to print a list of obsolete minor/teeny
  shared libraries in the provided directory.
  The implementation supports removing old major libraries similar to
  src/lib/checkoldvers (except this correctly matches more stuff), but
  there's no way to enable that at this time.
* do_rc(): convert to obsolete_paths() to remove old rc.d scripts.
* do_obsolete(): convert to obsolete_paths().  add obsolete_libs() for
  /lib and /usr/lib to remove old minor/teeny shared libraries.
* Clean up the usage.
2004-08-12 02:30:23 +00:00
simonb c0760527d2 Add Multicast DNS on port 5353 (from the IANA list). 2004-08-09 05:24:38 +00:00
atatat 8fb0a9f1ca Switch the check to see if the corresponding db file needs to be
rebuilt from "newer than" to "not older than".  The latter check also
manages to take into account cases where the db file doesn't yet exist
because the source is "not older than" something that doesn't yet
exist.
2004-08-08 17:41:15 +00:00
bouyer dc32cbc366 Add atabus devices. 2004-08-01 21:52:09 +00:00
mrg 04f2810d39 add an entry for spif(4).
this uses a different name for the parallel ports than the openbsd
port otherwise they conflict with the magma parallel ports and you
would be unable to have both a spif and magma installed at the
same time.
2004-08-01 10:43:47 +00:00
he e92ef40b67 Now that one can choose boot image for i386 to produce a slightly
different cd-rom image (e.g. using the INSTALL_LAPTOP-derived boot
image), make it possible to add a string to the cd-rom image name
by setting the optional environment variable CDROM_NAME_ADD.
2004-07-28 11:35:44 +00:00
thorpej fa4f012f1e Add a: to the getopt string so that the -a option is actually recognized. 2004-07-25 01:37:14 +00:00
tron 8849562832 Add new kernel configuration for ACPI based SMP systems which can also be
used to utilize Hyper-Threading.
2004-07-23 17:57:41 +00:00
he 3d7c07bfa4 Allow the user to specify which file system image to use as the
boot image of the CD-ROM via the CDROM_BOOT_IMAGE variable.  The
user may want to create a bootable image with bootlap-big.fs which
uses the INSTALL_LAPTOP kernel configuration instead of the default
boot-big.fs image which uses the INSTALL kernel configuration.
2004-07-23 15:25:04 +00:00
lukem 610ee5bd6f Merge /etc/mtree/special & /etc/mtree/special.local using "mtree -M".
This allows users to override mtree/special entries in mtree/special.local,
which is useful if you've replaced a directory with a symlink (for example).
This effectively makes $check_mtree_follow_symlinks=YES pointless, but
I'm retaining that for compatibility reasons.

Fix bug in generation of $MPBYUID (used "/^+/" instead of "/^\+/" as a regex),
which has existed for a long time but only failed with our awk; GNU awk seems
to have permitted this.  (This meant that the duplicate UID check was broken
when using our awk.)

Rename some temp files to more accurately reflect their purpose, to
aid debugging.
2004-07-23 06:12:16 +00:00
mycroft ecb1a2e0ed There is really just no point in having every root login get spamming with
syslog crap.  Goodbye.
2004-07-23 03:45:42 +00:00
atatat d2dd73eec2 More better description of current state of sendmail stuff in more
places.  This is intended to make some people a tad happier.
2004-07-22 03:44:12 +00:00
atatat e0fb433b4f Add one more check to the sendmail auto-start heuristic: check the
value of MTAHost in the submit.cf.  If it doesn't indicate localhost,
we probably don't need the sendmail listener.

Addresses PR bin/26391.
2004-07-22 03:36:29 +00:00
atatat 89fc8be761 Change the default settings for sendmail.
(1) The stock sendmail.cf will only listen on the loopback interface.
(2) The stock submit.cf specifally connects to "localhost." which
    should be less susceptible to being confused or looking confused.
(3) The smtp listener starts by default, if needed.  The setting in
    /etc/default/rc.conf is still "no", but rc.d/sendmail detects the
    default setting and will change it to yes if need is determined.

Need is defined as "nothing else seems to have been changed about the
mail configuration but we'd like locally originated and locally
destined mail to be delivered".  If you change, eg, mailer.conf to
point to postfix or some other MTA, sendmail will not start.
2004-07-15 03:47:18 +00:00
atatat 5f89bdd921 Make the directory into which crash dumps are saved into something
that can be controlled via rc.conf.  The default is, of course,
/var/crash.
2004-07-15 03:29:55 +00:00
tsutsui c2e5d3b127 Make lpt devices. 2004-07-14 14:16:14 +00:00
wiz bad83f3d79 Add locale/nb for texinfo-4.7. 2004-07-12 23:55:33 +00:00
uch 8120bbbeda run getty on /dev/ttyE0 by default.
otherwise, user can't start X server.
2004-07-11 16:08:55 +00:00
fredb ee2f9a6e6f Add mention of Portuguese builtin keyboard map. 2004-07-06 04:02:05 +00:00
lukem 20fd132b8d * Add BEFORE: SERVERS, so state is restored much earlier in the boot sequence.
* REQUIRE: isdnd, so this will be shutdown before that, to prevent
  future problem if isdnd eve gets an explicit "shutdown" keyword.

Per discussion with Martin Husemann.
2004-07-05 08:21:15 +00:00
martin ebdc55a49e Make sure "downinterfaces" comes first - this means on shutdown this
script will run before downinterfaces destroys all state we try to
save here.
2004-07-05 07:53:03 +00:00
martin 81b4ff7c8b PR bin/26142: add defaults for $pf and $pflogd. 2004-07-04 13:59:34 +00:00
uch 17835aa16b add apm 2004-07-03 14:59:17 +00:00
tron 3112a70615 Check for "pf" and "pflogd". 2004-06-30 11:25:22 +00:00
tron 313b9c84ab Install "pf" and "pflogd". 2004-06-30 09:22:41 +00:00
itojun de1993c88e rc.d fragment for PF. Peter Postma 2004-06-29 04:48:28 +00:00
lukem 20526529b6 Overhaul install-etc-files so that
*	most files are installed with CONFIGFILES (from bsd.files.mk)
    *	empty files are created in a cleaner fashion
    *	MAKEVERBOSE is supported for the remaining custom items
2004-06-28 14:03:02 +00:00
lukem 6b00b0a32b Run the "su -m nobody -c locate.updatedb" in a subshell with cd / first.
"nobody" doesn't have perms to $WEEKLYDIR which was the cwd previously,
and this may cause a warning to be issued by root's shell as part of the su.
2004-06-27 13:51:55 +00:00
fredb 857732d328 Make the "iso-image" a hybrid HFS/Rockride image. The main benefit, is
that the Macbinary files in the "misc" directly are now directly executable
from within Mac OS. This solves a "chicken-and-egg" problem: you can't even
distribute a tool to unpack the archives on a plain ISO image, as the
executable code is all in the resource fork on mac68k. In other words, a
user can now begin the installation by simply double-clicking on the Booter
program on the CD-ROM.
2004-06-26 16:09:09 +00:00
itojun 3ed937d076 remove "auth" group mistakenly added 2004-06-25 15:56:42 +00:00
itojun 3b8461f315 let spamd use /var/chroot/spamd, not /var/empty 2004-06-25 15:54:31 +00:00
itojun 3c44aeac73 GID for authpf (72 was picked so that we can NFS-share with openbsd) 2004-06-25 00:14:50 +00:00
itojun fd8e4a5e98 ports used by spamd(8). 2004-06-23 11:58:48 +00:00
itojun 2a49c3efe7 install pf related files to /etc 2004-06-22 18:21:55 +00:00
itojun bd5c29bee3 add $NetBSD$ 2004-06-22 15:35:38 +00:00
itojun 779d0ec295 PF from openbsd 3.5 2004-06-22 15:34:26 +00:00
itojun 9e6c9caf46 PF from openbsd 3.5 2004-06-22 15:06:49 +00:00
christos 0553899e97 remove ad-hok list of pty's from port tty files, and auto-generate it so
that it is consistent, and in the proper order.
2004-06-20 21:30:26 +00:00
christos d649be27ff Rework the sequence that ptys get allocated so that we don't end up with
gaps in the sequence of minor numbers as we allocate ptys. Having gaps
has 2 bad side effects:
	- ptm does not like it
	- we allocate a lot of storage that we'll never use in the pty array
	  (the current scheme allocated 62 ptys 0-15,256-301, so we needed
	   302 entries to get 64).
Now we allocate ptys in groups of 16 or 14 instead of 64, and we follow
the minor number order.
We default to 64 pty's by building pty0-3, which is all using the old
traditional pty names. Of course to do this, the shell code is a bit
convoluted.
2004-06-19 05:31:50 +00:00
mhitch 1df32daa6d AmigaDOS tools moving to distrib/amiga/stand. 2004-06-16 02:02:29 +00:00
kleink 006b843d0e Update with the iana.org URL, as has been done with services. 2004-06-10 10:06:51 +00:00
christos d1fc28d7e3 don't depend on printf. 2004-06-08 19:03:14 +00:00
abs 050f98e610 Add quota=YES and ldconfig=YES 2004-06-03 16:30:44 +00:00
abs eb24f87047 add rcvar 2004-06-03 16:29:15 +00:00
abs d5fc55fa51 Add rcvar="quota" 2004-06-03 16:27:44 +00:00
mhitch 0f505bd97e Add a few logical disks (ld[0-3]) to the minimal configuration so installation
can be done to Mylex DAC960 raid drives.
2004-06-01 03:35:59 +00:00
mhitch c2074d37a2 Populate the installation/misc directory with the AmigaDOS tools. 2004-06-01 03:08:42 +00:00
martin 5a942efb7b If not doing full_netstat, use the -v option anyway to avoid truncating
interface names like bridge0 or pppoe0 - the awk post processing reserves
enough space for the column already.
2004-05-28 03:55:30 +00:00
christos 6dd05261cf add ptm device. 2004-05-27 02:57:42 +00:00
christos 367e1200da create /dev/random when chrooted. 2004-05-21 15:40:22 +00:00
he 7d4bf6c130 I suspect ${MAKESUMS} ... -all should be -a; my ${MAKESUMS} doesn't know what
the 'l' option means.
2004-05-21 15:32:29 +00:00
christos 52fe589e88 Example for named.conf is dead.
Section 10 doc for named is dead.
2004-05-18 05:39:27 +00:00
lukem b997a4053a Update the paths to the required_files configuration files for the
move from /usr/X11R6/lib/X11/<app> -> /etc/X11/<app>.
Resolves PR [misc/25613] from Jukka Salmi.
2004-05-17 23:41:27 +00:00
lukem fe7056555c Move '${MAKEDIRTARGET} x11 distribution' from Makefile::distribution to
etc/Makefile::distribution, and only perform if ${MKX11}!=no.
Should fix a problem experienced by Alistair whilst doing a "make release".
2004-05-17 07:00:16 +00:00
lukem f45be9fc4a Add x11 test to ask user to migrate from /usr/X11R6/lib/X11/<foo> to
/etc/X11/<foo>, where <foo> is one of:
	fs lbxproxy proxymngr rstart twm xdm xinit xserver xsm

(I haven't implemented automatic migration at this time; it's too fragile
given that /etc/X11 may already exist on some systems)
2004-05-16 11:19:28 +00:00
lukem 10cfcae8fc Radically overhaul X11 configuration:
*	End user modifiable configuration has moved from
		/usr/X11R6/lib/X11/<someprog>
	to
		/etc/X11/<someprog>
	This is consistent with our own policies as well as other projects.

	The files & directories that were moved have _NOT_ been marked
	`obsolete', as they contain user configuration and therefore we
	don't want the automatic "obsolete file removal" mechanism to
	remove them.

    *	The /etc/font/* and /etc/X11/* configuration files are installed
	with 'configinstall' (not 'install'), using CONFIGFILES and
	CONFIGSYMLINKS.
	This is so that a normal 'make build' in src/x11 will not
	trash your configuration.

    *	A 'distribution' target has been added to src/x11 to perform
	'make configinstall' in the appropriate subdirectories.
	(Should we consider making 'configinstall' a first-class target?)

    * 	The xdm pixmaps have have been moved to /usr/X11R6/include/X11/pixmaps
	where the other pixmaps are.
	(I don't consider these pictures end-user configuration).


IMPORTANT NOTE:

    *	These changes require an up to date xsrc, and 'make cleandir' should
	be performed in src/x11 before a build for the changes to fully take
	effect.
2004-05-16 10:25:13 +00:00
lukem ee04d88971 Consistently use CONFIGFILES & CONFIGLINKS (which enable the 'configinstall'
target) instead of using home-grown 'distribution' targets or using
FILES with the 'install' target.
Add some etc/ subdir Makefiles where appropriate.

XXX: some of etc/Makefile install-etc-files could be converted to CONFIGFILES.
2004-05-16 09:53:09 +00:00
cl 885c0b6fc9 ``build.sh -m xen-i386 release'' now builds a release for NetBSD/xen
for i386.  The resulting release consists of:
- NetBSD/xen for i386 kernel, loader and docuemntation
- NetBSD/i386 userland sets
2004-05-12 16:56:41 +00:00
lukem 7c51496531 Use /var/db/xdm (instead of /usr/X11R6/lib/X11/xdm) as the default authDir. 2004-05-12 03:58:47 +00:00
jonathan 85b3ba5bf1 Redo net.inet.* sysctl subtree for fast-ipsec from scratch.
Attach FAST-IPSEC statistics with 64-bit counters to new sysctl MIB.
Rework netstat to show FAST_IPSEC statistics, via sysctl,  for
netstat -p ipsec.

New kernel files:
	sys/netipsec/Makefile		(new file; install *_var.h includes)
	sys/netipsec/ipsec_var.h	(new 64-bit mib counter struct)

Changed kernel files:
	sys/Makefile			(recurse into sys/netipsec/)
	sys/netinet/in.h		(fake IP_PROTO name for fast_ipsec
					sysctl subtree.)
	sys/netipsec/ipsec.h		(minimal userspace inclusion)
	sys/netipsec/ipsec_osdep.h	(minimal userspace inclusion)
	sys/netipsec/ipsec_netbsd.c	(redo sysctl subtree from scratch)
	sys/netipsec/key*.c		(fix broken net.key subtree)

	sys/netipsec/ah_var.h		(increase all counters to 64 bits)
	sys/netipsec/esp_var.h		(increase all counters to 64 bits)
	sys/netipsec/ipip_var.h		(increase all counters to 64 bits)
	sys/netipsec/ipcomp_var.h	(increase all counters to 64 bits)

	sys/netipsec/ipsec.c		(add #include netipsec/ipsec_var.h)
	sys/netipsec/ipsec_mbuf.c	(add #include netipsec/ipsec_var.h)
	sys/netipsec/ipsec_output.c	(add #include netipsec/ipsec_var.h)

	sys/netinet/raw_ip.c		(add #include netipsec/ipsec_var.h)
	sys/netinet/tcp_input.c		(add #include netipsec/ipsec_var.h)
	sys/netinet/udp_usrreq.c	(add #include netipsec/ipsec_var.h)

Changes to usr.bin/netstat to print the new fast-ipsec sysctl tree
for "netstat -s -p ipsec":

New file:
	usr.bin/netstat/fast_ipsec.c	(print fast-ipsec counters)

Changed files:
	usr.bin/netstat/Makefile	(add fast_ipsec.c)
	usr.bin/netstat/netstat.h	(declarations for fast_ipsec.c)
	usr.bin/netstat/main.c		(call KAME-vs-fast-ipsec dispatcher)
2004-05-07 00:55:14 +00:00
lukem 9bd9220cd7 When performing "start", "stop" or "reload" in run_rc_command(),
send any "<name> already running" or "<name> not running" messages
to stderr instead of stdout before the (existing) non-zero exit.
2004-05-03 14:52:26 +00:00
lukem 8a1597d78b Fix up botches in X userland from upgrade from XFree86 4.3.0 -> 4.4.0.
(All paths are relative to usr/X11R6)

* Obsolete:
	bin/fontconfig-config

* Add directories:
	lib/X11/locale/zh_CN.UTF-8
	lib/X11/xkb/geometry/ibm

* Rename include/freetype2/ft2build.h to include/ft2build.h and obsolete former

* Add files:
	fonttosfnt(1) program & man page
	include/expat.h
	lib/X11/app-defaults/XClock-color
	lib/X11/fonts/TTF/Vera*.ttf
	some font encodings
	zn_CN.UTF-8 locale
	some font encodings
	various xkb config files
	lib/X11/xedit/lisp/progmodes/patch.lsp
	Xfontcache(3) and various links
	XDGA(3) and various links
	XRes(3) and various links
	Xss(3) and various XScreenSaver*(3) links

* Add some more TODO items

* Clean up lib/expat build now that the version is hard coded.
2004-04-28 14:17:55 +00:00
schmonz c8dd377ead Add RCS Id. 2004-04-25 16:52:19 +00:00
keihan f672be074d s/netbsd.org/NetBSD.org/ 2004-04-23 10:59:47 +00:00
enami 9f8afc0e9b The char position passed to substr() should be 1 origion. 2004-04-22 23:02:39 +00:00
christos 1d0fe2e424 Whitespace fixes, some code re-factoring, and a bit more verbose messages. 2004-04-21 19:35:13 +00:00
dbj 48019a3a47 simply logic and flow of check_part function 2004-04-21 18:27:26 +00:00
dbj 1b003e4b0c abstract superblock field reading into shell function 2004-04-21 18:06:06 +00:00
dbj 115f147f20 add function for reporting verbose messages 2004-04-21 17:26:42 +00:00
dbj 496faa9025 tweak return value of check_part function 2004-04-21 17:07:47 +00:00
dbj 324ebbbef7 some minor shell programming tweaks recommended by christos
use [ -n ] instead of [ ! -z ]
use $() instead of ``
use just "$@" instead ${1+"$@"}
2004-04-21 17:02:41 +00:00
dbj bbf17112c5 use shell constructs and cat instead of sed since
sed may not be available early in the rc.d sequence
2004-04-21 16:12:31 +00:00
dbj 4fe7bbb7da enable rc.d fixsb script
initial testing suggests that it is working and I am confident it
will not cause irrevocable damage
2004-04-18 04:02:27 +00:00
dbj 1195d38f2f add support for turning off fixsb in rc.conf
default is fixsb=YES
2004-04-18 03:49:43 +00:00
dbj d328d71583 This rc.d script attempts to correct problems
which may have been introduced by booting a netbsd-current kernel
from between April of 2003 and January 2004. For more information
see <http://mail-index.NetBSD.org/current-users/2004/01/11/0022.html>
This script was developed as a response to NetBSD pr install/25138

This should not be added to the Makefile or the default install until
it has been further tested
2004-04-16 14:52:52 +00:00
jwise 42d56e7289 actually, `submission' had already been added elsewhere, so remove this part
of rev 1.73.
2004-04-15 18:29:39 +00:00
jwise 45a0404432 IANA aliases for port 80, and give `http' as the first, as IANA does. 2004-04-15 16:42:15 +00:00
jwise db7bfa1c0c Add assigned ports for mail submission (587), and zephyr udp ports. 2004-04-15 16:39:09 +00:00
lukem f1b860ea33 Convert lines of the form
(cd ${.CURDIR}/somedir && ${MAKE} AVAR=value atarget)
to
	${MAKEDIRTARGET} somedir atarget AVAR=value
which results in a "prettier" display of these operations
2004-04-13 12:43:12 +00:00
kim ed816845e6 Avoid the output "Running xxx.local" if the "xxx.local" script
does not produce any output.  This matches what /etc/security
already does with /etc/security.local output.
2004-04-09 17:35:21 +00:00
kim 4d55452261 Catch STDERR from /etc/security.local (not just STDOUT). 2004-04-09 17:33:35 +00:00
lukem 68909c287b Store the full path to the /usr/sbin/postfix in $postfix_command
and use the latter postfix_op() to implement start/stop/reload.
(We generally use full paths in rc.d scripts.)  Problem noted by Bill Squier.
2004-04-08 06:15:27 +00:00
mrg f79db8d04e move ipmon's "-D" argument from "command_args" to "ipmon_flags" so that
passing an (optional) filename argument (that must come last) works fine
from $ipmon_flags.  from PR#25006.
2004-04-04 13:59:36 +00:00
mrg a2dc58e139 add 587 tcp/udp for submission "Message Submission" protocol; from PR#25028 2004-04-04 12:53:03 +00:00
jmmv 3c8a1444d9 Introduce and use the rcvar_manpage variable, which contains the manual page
name where the user should look at for documentation about rcvar.  It defaults
to 'rc.subr(5)', as rc.subr is mainly used by rc.d scripts.

This variable is useful to let the daily, weekly, monthly and security scripts
tune the warning message shown when any of the variables they handle is not
properly set.

Closes PR misc/23908.
2004-04-02 13:13:47 +00:00
fredb f6e9f3cb15 Backout last change. I failed to note that the problem described in
PR bin/24653 had already been fixed with revision 1.9 of this file.
2004-03-31 18:01:07 +00:00
fredb ee6be08283 Take account of the fact that "ntpd" writes it's pidfile after chroot().
Closes PR bin/24653.
2004-03-31 17:52:06 +00:00
mrg 9be30af863 apply kre's patch from PR#18628:
if /var/account/acct.0.gz exists, keep all the old accounting files
in gzipped format.
2004-03-29 02:17:26 +00:00
dan 0909a31142 Note master.cf change and provide instructions regarding the fact that
postfix does not listen on the network by default.
2004-03-27 00:07:48 +00:00
dan b594741397 note that postfix requires a source of domain name information, along
with several options
2004-03-26 23:54:29 +00:00
matt 336f743b3b s/CDROM.work/CDROM.dir/ VAX ISOs can be built again. 2004-03-23 22:35:30 +00:00
enami ef38ad00a0 Search and replace by hand rather than using gsub() in loop. This reduces
number of search and prevents DFA cache overflow (and script runs faster).
2004-03-18 22:51:59 +00:00
mycroft b28430ff55 Build a SMDK2410 kernel. 2004-03-17 23:37:20 +00:00
scw 7ff62916e2 Specify both Cayman kernels in KERNEL_SETS 2004-03-17 20:29:43 +00:00
lukem c16dc445c3 style consistency cleanup
support "diff -p"
use "err 1" instead of "diff_usage"
2004-03-16 23:15:40 +00:00
enami 3ad4f06f88 Add missing close(). 2004-03-16 23:08:10 +00:00
enami 4e3d261647 Add new operation `diff', which is similar to `check' but also runs diff
command on files need to copy while compare_dir.
2004-03-16 23:03:14 +00:00
matt bc0e841788 Build EV64260 and EXPLORA451 kernels 2004-03-13 07:21:41 +00:00
jdolecek 5923227e2c the device name is 'verifiedexec', not 'veriexec' (the filename is 'veriexec',
tho)
2004-03-10 18:33:12 +00:00
garbled 4790f1f739 Apply patch from PR bin/24695 by Peter Postma. Add additional
directories required by sushi.
2004-03-09 20:09:40 +00:00
cgd a8d81512fb add a relatively trimmed 'init' case. 2004-03-09 06:04:33 +00:00
lukem 6e46cc7242 Use "mknod -R" for "MAKEDEV -f".
Fixes problem noted by Bernd Ernesti on current-users,
with solution suggested by David Laight.
2004-03-08 23:05:37 +00:00
cgd 335ed73c4c sync after building kernels. on some host systems (Linux) on NFS
have been seen to fail with the error:
    pax: File ./netbsd was modified during copy to archive
and this avoids it.
2004-03-08 05:46:44 +00:00
agc c0585f5a71 Allow CKSUM to be overridden. 2004-02-25 15:00:59 +00:00
jonb c384cda06a Add ssh_keygen_flags variable to rc.conf to allow users to set the
size of auto-generated keys if desired.
2004-02-18 17:36:34 +00:00
enami 4b4d77a7b2 Disable parallel build when doing make params so that `---- params ----'
won't be emitted into /etc/release.
2004-02-13 23:48:10 +00:00
jdolecek ba30c144ea add missing && in the home directory group writability condition;
gawk somehow coped even without (defaults to && ?), but nawk printed
bogus warnings (defaults to || ?)
2004-02-09 09:04:13 +00:00
lukem 7833fb35ce Move the 'build date' & 'built by' stuff to the "build settings" section. 2004-02-07 07:59:17 +00:00
itohy 867dc753a9 Add /etc/locate.conf 2004-02-06 15:36:52 +00:00
itohy b38b0bf922 Configuration file of locate(1) database. 2004-02-06 15:24:25 +00:00
jdolecek fce24261df create the lpt?ctl device when making lpt? or lpa?; this device has
no meaning for 'old' lpt(4) (lpt?ctl is equal to lpt? there), but
has some special meaning for 'new', ppbus-based lpt(4)
2004-02-03 21:43:43 +00:00
lukem 0541807809 The ssh_known_hosts check for "NetBSD RCSID matches" does not belong in
postinstall, so remove it;  sshd functions fine without the entries.
This type of functionality is performed as part of etcupdate(8) (et al).
2004-02-03 08:02:41 +00:00
sommerfeld 41f92bdfec Update to 2004012900 version 2004-02-01 14:19:44 +00:00
christos 0120b80220 add identd 2004-02-01 02:32:58 +00:00
christos a73f51dc63 new lines for identd [ipv6 support and option adjustment] 2004-01-31 21:51:53 +00:00
christos 1359f873c4 new identd script 2004-01-31 21:50:45 +00:00
christos 2a8f4efd20 add line for standalone identd invocation. 2004-01-31 21:49:52 +00:00
lukem 818f07b6aa in etc-release, put the builder on a separate line to the date 2004-01-31 15:40:42 +00:00
augustss 936189b99c Build INSTALL kernel. 2004-01-30 14:26:26 +00:00
lukem 4d0df9f157 Run "cd ../distrib/sets && make makesetfiles" at the end of "distribution" 2004-01-30 08:46:19 +00:00
lukem 2476a75526 add usr/share/zoneinfo/** 2004-01-30 03:02:41 +00:00
he 1607f0c077 When using obj directories, the make proces cd's to the obj directory.
Therefore, we need to cd to ${.CURDIR} before re-invoking ${MAKE} so
that it can find the Makefile.
Also, pass ${MFLAGS} to ${MAKE} so that we pick up the source tree's
makefile fragment, not the host system's fragments, so that this
works properly on older NetBSD host systems, as well in other
cross-compile contexts.
2004-01-27 15:55:42 +00:00
lukem 461afe3410 Remove the compatibility stuff to link from various tapes to *mt*
aliases if the latter don't already exist, as it causes build problems
as reported on port-vax@ by Brian Chase.
2004-01-27 15:45:19 +00:00
lukem eb5766fce9 Add to RELEASEVARS:
NETBSDSRCDIR OBJMACHINE USR_OBJMACHINE X11SRCDIR

Add 'params' separate to 'etc-release', and use the former as part of
the latter.
2004-01-27 04:19:06 +00:00
lukem 3ae3c90bcf Apply .PHONY appropriately.
Use .EXEC when we always want to create ${.TARGET}, rather than
perform an non-file-based operation (.PHONY is for the latter).
2004-01-27 01:52:06 +00:00
bjh21 a9e6f9057b Remove references to /dev/beep. 2004-01-25 14:00:57 +00:00
sekiya 00b99a724a Add wscons (necessary for X). 2004-01-24 02:48:43 +00:00
tls feebdbf0f8 The previous version of this file had the wrong key for cvs.netbsd.org(!);
it had the key from before the machine was officially placed in service
as "cvs.netbsd.org".  Replace with correct key.  Duh.
2004-01-20 23:59:49 +00:00
uebayasi 0b297c927b Missing rcvar. From Nicolas Joly in PR 24106. 2004-01-15 11:20:19 +00:00
jdolecek 07d4016c74 add 'wscons' to list of special arguments 2004-01-14 20:41:59 +00:00
jdolecek d68daf2dd5 put a 'Generated from' with RCS Ids of MAKEDEV.awk, MAKEDEV.tmpl and the
MD MAKEDEV.conf into the generated file

don't copy the 'PLEASE RUN ...' paragraph to the generated file

don't copy the list of individual devices to the generated file -
the info is available in MAKEDEV(8) for those who need it
2004-01-14 20:37:51 +00:00
jdolecek de7bb4305b remove incorrect veriexec entry - there is correct one here already 2004-01-14 19:23:36 +00:00
minoura 37c003c877 New directory for an X68k XKB data file. 2004-01-14 12:52:30 +00:00
jmmv ec3213dda0 Add the veriexec rc.d script. 2004-01-14 10:51:54 +00:00
blymn af8c26254d Add veriexec to defaults. 2004-01-14 06:54:48 +00:00
blymn 67b5617823 Add startup script for verified exec. 2004-01-14 06:53:50 +00:00
blymn bcb8ffa647 Add veriexec device 2004-01-14 05:13:53 +00:00
itojun 1644d4f2cf align ssh_known_hosts message with other operations 2004-01-14 04:49:57 +00:00
mrg 33dcab6f10 make wd2, wd3 and raid0..3 for install media 2004-01-14 01:20:15 +00:00
lukem 6697dd05b6 add some missing usr/include/dev directories 2004-01-13 09:12:22 +00:00
uebayasi 79ca61d5d8 Define an rcvar "virecover" so that this can be configurable. The default
is YES.
2004-01-11 14:21:43 +00:00
uebayasi 6892f132b9 Set an rcvar so that this can really be configurable by the rcvar. (This
means that it has long been not be able to do so!)
2004-01-11 13:57:56 +00:00
tls d8793381d3 Install default ssh_known_hosts file with public keys for Project servers.
Hopefully I didn't make too much of a hash of the postinstall support for
this; it currently installs the file if there's none in the destination,
and elsewise notes if the CVS version differs (or is missing) but doesn't
try to fix that.
2004-01-11 04:21:18 +00:00
tls c7a6bf592b Moved from src/etc. known_hosts file containing Project servers. 2004-01-11 03:24:39 +00:00
tls 863605648b Add ssh_known_hosts containing public keys for Project servers. 2004-01-11 03:20:41 +00:00
minoura d9cff0a9f6 /dev/grf? on x68k must not be accessed without the root priviledge. 2004-01-10 07:17:08 +00:00
lukem 88068bf42a Add the following to the list of variables displayed in etc/release
MKBFD MKCRYPTO_IDEA MKCRYPTO_MDC2 MKCRYPTO_RC5 MKCVS
	MKDYNAMICROOT MKGCC MKGCCCMDS MKGDB MKHESIOD MKHTML MKIEEEFP
	MKKERBEROS4 MKKERBEROS MKLINKLIB MKMANZ MKPICLIB MKPOSTFIX
	MKSENDMAIL MKSKEY MKSOFTFLOAT MKSTATICLIB MKUUCP MKX11 MKYP
2004-01-08 02:37:16 +00:00
lukem 165989f36c Add etc_release to check if etc/release is up to date.
Only used for "extracted etc.tgz SRC_DIR", as "src/etc SRC_DIR" builds
etc/release automatically.

Improve the usage and some of the code.
2004-01-06 13:16:53 +00:00
rtr ee094051e8 remaining x11 dirs 2004-01-06 08:26:11 +00:00
lukem b83d8ffd8d rename release-info to etc-release
rename  install-release-info  to  install-etc-release
2004-01-06 07:25:40 +00:00
lukem 57ec8c75e1 remove superfluous .endif accidentally introduced in previous 2004-01-06 03:46:27 +00:00
lukem 5f82e1b832 deprecate NO_SENDMAIL and consistently test MKSENDMAIL 2004-01-06 02:10:43 +00:00
lukem f3bab2a8fc Implement ``one'' prefix to allow a "one shot" operation as if
${rcvar}=yes yet all the other prerequisite tests are still performed.
The existing ``force'' prefix is a sledgehammer that ignores all the
prerequisite checks and always returns a zero exit status; this is a
more gentle approach to the problem of "manipulate this disabled
service without editing rc.conf(5)".
2004-01-06 00:52:24 +00:00
wrstuden d27168eb15 Add iSNS service ("isns") at port 3205 for tcp & udp. From iana.
Add "iscsi-target" at 3260/tcp as per iana.  Add "iscsi-rfc" at
860/tcp.  Modify comment on "iscsi" service to indicate that it
should move to 860/tcp after the iSCSI RFC gets released. iscsi-rfc
should be removed at that point.

The problem with the iscsi service at present is that all through
draft development, everyone used 3260. As part of the RFC publishing,
the port number will be changed to 860. However no one has started
to use the new port number yet, so it's premature to switch yet.
2004-01-06 00:23:01 +00:00
lukem ccf752736a Get the copyright info for etc/release from sys/conf/copyright.
Idea from Simon Burge.
2004-01-05 04:05:06 +00:00
lukem f0eea29c73 install-release-info does not need DESTDIR. [toolchain/23982] 2004-01-05 00:12:01 +00:00
lukem 51f1131bbc Rename /etc/release-info to /etc/release, to be consistent with other
implementations and Hubert's original intent.
2004-01-04 23:55:11 +00:00
lukem de34191fc7 Add "release-info", to create the file of that name containing
information about the build, and "install-release-info" to install it.
(The latter will be invoked by src/Makefile)

Based on work by Hubert Feyrer <hubertf@> and the "params" target in
src/Makefile.
2004-01-04 13:29:16 +00:00
lukem ffdba9f604 use !="no" instead of =="yes" 2004-01-03 13:58:26 +00:00
lukem bce7c4948b add usr/X11R6/libexec 2004-01-02 16:23:02 +00:00
lukem 6e1ebdd6fa display path of created iso-image 2004-01-01 12:28:22 +00:00
atatat da4f7330e5 Also supress speling erors. 2003-12-28 16:34:03 +00:00
martin 04d651d978 Add rtclocaltime (couldn't we mark these in the set lists somehow
instead of duplicating part of the list here?)
2003-12-27 23:00:55 +00:00
martin 91d3025816 Add rtclocaltime. 2003-12-27 00:29:21 +00:00
martin 448491ee86 Add a new /etc/rc.conf option: rtclocaltime=YES adapts the RTC offset
at boot automatically, so a machine dual booting another OS that uses
the RTC at localtime and NetBSD agree on the current time even if daylight
saving started/ended (without recompiling a kernel twice per year).
Awk code by Matt Thomas.
2003-12-27 00:23:22 +00:00
lukem 1b373d7a5e Revert part of previous; etc/rc.d/kdc must be installed even if Kerberos
isn't enabled.
This is how the rc.d system works in conjunction with our current build
and install system; all the rc.d scripts are installed even if the
subsystems they control are not.
2003-12-26 12:04:35 +00:00
lukem e2288a51a0 Add warn() to display message to stderr prefixed by the script name,
and use appropriately.
2003-12-22 22:26:32 +00:00
lukem d90e033b23 improve build of MAKEDEV from src 2003-12-22 21:38:23 +00:00
tron 80b84ce51e Set "NETBSDSRCDIR" in environment while generating "MAKEDEV" script to
make the check work if "postinstall" is not invoked from "build.sh".
2003-12-22 12:07:59 +00:00
lukem fcdfdbba5c Rework MAKEDEV:
*	Use "mknod -F netbsd -r" to create nodes, instead of
	"rm ; mknod; chmod; chown".
	This means permissions & ownership of existing nodes will
	not be changed.
	This is up to 30% faster when populating an empty /dev,
	and nearly 2x faster when re-running on an existing /dev.

    *	New options:
    	-f		force change of permission & ownership of existing
			devices
    	-m mknod	override name/path of mknod program
			(which defaults to $TOOL_MKNOD, then "mknod").
	-s		generate mtree(8) specfile instead of creating devices

    *	Remove /usr/etc from $PATH; not needed anymore.

    *	Provide functions to create devices & directories:
	    mkdev name [b|c] major minor [mode{=600} [gid{=0} [uid{=0}]]]
		create device node `name' with the appropriate permissions
	    lndev src target
		create a symlink from src to target
	    makedir dir mode
		create directory with appropriate mode

    *	UIDs and GIDs are hardcoded in at MAKEDEV generation time.
	(Unfortunately there's not a simple way of determining a GID
	a la "id -n user" for determining a UID).

This was tested by generating MAKEDEV for each MACHINE,MACHINE_ARCH
combination and comparing the results of "MAKEDEV all" from the
previous version to the new one.
(This testing actually highlighted mistakes in the previous configuration!)


Simplify distrib/common/Makefile.makedev to use "MAKEDEV -s"
2003-12-21 17:37:26 +00:00
lukem 9e396f0ea9 don't change umask without setting it back to 77; it has unwanted side effects 2003-12-21 17:18:08 +00:00
lukem f10d9367cc also rm & chmod dtyC$unit 2003-12-21 16:27:34 +00:00
lukem 6ab1279223 fix mms\* 2003-12-21 16:17:19 +00:00
lukem cb8a9610e0 be consistent in fss* 2003-12-21 15:32:59 +00:00
lukem 4ddba21b9a * Match the source code to the comments, and use $NETBSDSRCDIR
instead of -v ETCDIR.
* Parse $NETBSDSRCDIR/etc/{master.passwd,group} to build a list of
  user->uid and group->gid mappings, and replace %uid_XXX% and %gid_XXX%
  appropriately.
* Whitespace & regex tweaks.
2003-12-19 06:04:16 +00:00
christos 501d4710c0 prepare for bind 9. 2003-12-18 18:30:18 +00:00
martin ffeeb30dd3 Add JavaStation kernels to KERNEL_SETS 2003-12-15 19:36:16 +00:00
martin e5627c0207 bootjs.elf -> bootjs.net 2003-12-15 17:35:33 +00:00
lukem 7eec24689d MAKEVERBOSE-ify MAKEDEV creation 2003-12-15 09:46:51 +00:00
jdolecek 2d5a801b27 add /rescue to the PATH to find chown if /usr is not available yet
XXX chown should either be moved or we should not depend on it here

fixes PR kern/23614 by Christian Biere
2003-12-15 08:57:52 +00:00