Commit Graph

2372 Commits

Author SHA1 Message Date
jandberg
9ddf538d8e added wscons vts 2002-03-13 19:38:05 +00:00
lukem
9bcc098690 Use ${_arg}_postcmd even if we're not using the default ${_arg}_cmd method. 2002-03-13 06:58:34 +00:00
lukem
9cfa003dc7 Implement ${_arg}_postcmd support, which is run if a default
start/stop/reload/restart operation succeeds (i.e, zero exit code).
Code from Lubomir Sedlacik <salo@Xtrmntr.org>.
2002-03-13 04:50:08 +00:00
simonb
f5612134fc Remove trailing semicolons from lines that don't need them.
TABify many lines.
2002-03-13 01:26:54 +00:00
simonb
af03fa8023 Add an RCS id. 2002-03-11 11:29:29 +00:00
itojun
0a2445c3b6 move sshd config files to /etc/ssh 2002-03-11 04:57:55 +00:00
itojun
ce418d6d8e dig /etc/ssh 2002-03-11 04:38:41 +00:00
bjh21
9d5896ee9e When making a release, build the release notes, and copy them and boot26
into the release directory.  Also make checksums for boot26.
2002-03-07 23:12:54 +00:00
thorpej
f44b824188 Use ${PRINTOBJDIR}. 2002-03-05 19:53:19 +00:00
lukem
4b99ad4ad4 provide check_DESTDIR and check_RELEASEDIR targets in <bsd.own.mk>
and use those rather than local versions
2002-03-05 03:51:21 +00:00
shiba
c6fac1444f Clean up make release procedure. But just make through
in distrib/mac68k/miniroot.

Reviewed by fredb, briggs
2002-03-04 16:43:06 +00:00
lukem
6b68804273 various cleanups inspired by etc.i386/MAKEDEV:
* use "ln -fs foo bar" instead of "rm -f bar; ln -s foo bar"

* remove unnecessary chown root or chgrp wheel directives; older code here
  didn't bother doing this, so why be inconsistent

* when making directories, don't use -p and don't redirect stdout to /dev/null

* clean up whitespace

* wrap the main parser code in a function makedev(), and call makedev
  instead of "sh $0". (this is a bit faster)

* don't barf when we have fdesc mounted; just skip the devices fdesc provides


(these files should really be automagically generated...)
2002-03-04 14:02:29 +00:00
minoura
3b21dd73bb rm ; ln -s -> ln -fs 2002-03-04 09:56:41 +00:00
lukem
6afd7807f4 be consistent with every other port and use symlinks rather than hardlinks 2002-03-04 07:10:46 +00:00
nathanw
3d66460938 Add sysmon devices. 2002-03-03 18:19:02 +00:00
toshii
0d030b3347 Use a tab instead of 7 spaces. 2002-03-03 14:15:58 +00:00
mrg
685d1c413a clean up a little:
- don't set the securelevel to the same thing
	- don't try to lower the securelevel

inspired by PR#13647
2002-03-01 17:58:00 +00:00
chs
4318a1a32b copy kernels to the releasedir even when KERNELS_DONE is defined
(i.e. only skip building the kernels).  fix some comments while I'm here.
2002-03-01 06:22:09 +00:00
lukem
c5a625870b ipmon: set -D via command_args rather than the default ipmon_flags.
resolves [install/15753]
2002-02-28 01:06:13 +00:00
scw
5b72ef673a MD etc glue for mvmeppc. 2002-02-27 21:17:52 +00:00
kleink
80f8e27ae5 Bring pseudo terminal devices' major numbers in sync with reality again. 2002-02-26 21:13:32 +00:00
kleink
696ed33e26 Bring pseudo terminal devices' major numbers in sync with reality again. 2002-02-26 20:46:59 +00:00
itojun
9820da6ce1 supply reverse lookup for ::1 on ip6.arpa too 2002-02-26 08:48:35 +00:00
lukem
1f04f759a5 remove chown root:wheel . that I added in 1.164; too many warnings with fdesc 2002-02-25 13:03:36 +00:00
lukem
80ce7c6cb7 Fixes derived from [bin/15563] submitted by Ron Roskens:
- Don't su(1) to ${name}_user if running as that user.
- Support $procname as the name of the process to search for.
  Defaults to the value of $command.
2002-02-25 12:49:33 +00:00
lukem
5bf3bfa2bb fix spelo. crank copyright year 2002-02-25 08:11:23 +00:00
atatat
681a706ec7 Change a 62 to a 16, so that the proper number of slots is skipped.
Fixes PR 15650.
2002-02-25 07:34:55 +00:00
lukem
04784cf374 Don't run "status" as if "force" is set, thus reverting part of rev 1.29.
I can't remember the rationale for why I made that change in the first place,
and there's been some good arguments presented to me as to why the rcvar
should be checked before status is run.
2002-02-25 07:12:47 +00:00
lukem
0ccd65df49 run_rc_script() improvements:
- always unset the variables used by run_rc_command() before sourcing an
  rc.d script, rather than just when rc_fast_and_loose is in effect.
  this allows run_rc_command() to be used in .sh scripts (with care).
- remove comment describing now-former limitation of .sh scripts.
- make the rc_fast_and_loose check only after the `` not *.sh / not scratch
  / script-is-executable '' checks.  rc_fast_and_loose now behaves a lot more
  like the normal operation, in that it skips scratch files and
  non-executable files
2002-02-25 06:58:14 +00:00
wiz
a287908210 Mark mk.conf optional, addressing install/15572. 2002-02-24 17:17:48 +00:00
lukem
7d6824228d Support alternate config dir for sshd conf file and keys (defaults to "/etc").
Based on [misc/12473] from Jim Bernard.
2002-02-24 12:50:08 +00:00
ad
5fcb6944f5 - Make stic0 as part of wscons.
- Remove wsmouse0/wskbd0 from all, since it already calls MAKEDEV wscons.
2002-02-22 16:20:44 +00:00
thorpej
2658062b61 Add "bin" to the list of valid kernel suffixes. 2002-02-22 05:08:16 +00:00
garbled
120f0525b3 add a note requesting people edit share/sushi/system/rcconf/form when editing
this file to keep it in sync.
2002-02-21 19:59:09 +00:00
lukem
0c7bc63d83 oops; forgot to retain previous setting of $_flags (aka $syslogd_flags)
which adding "-P /var/run/syslogd.sockets"...
2002-02-20 01:49:59 +00:00
veego
908b0c7ea5 Add ./etc/ipf6.conf 2002-02-19 21:33:13 +00:00
tron
17e6126494 Back out last change as suggested by Hubert Feyrer in private e-mail:
The "ttys" file is modified by "sysinst" during installation.
2002-02-17 21:04:31 +00:00
tron
b08c6b723c Enable for "getty" processes because because the i386 port used wscons(4)
default these days and the default "wsconf.conf" creates four screens.
2002-02-17 20:41:42 +00:00
ross
a70d2bc993 Comments here are harvested for a man page, so avoid &<>. 2002-02-14 13:42:05 +00:00
martti
8f0fa118e2 Added ttyp[g-zA-Z] (bin/15594). 2002-02-13 09:46:01 +00:00
gmcgarry
9c180c43cc EXTRA_KERNELS -> BUILD_KERNELS 2002-02-13 06:30:46 +00:00
reinoud
d4a4f7bbb8 Remove an old `shark' comment and enable ttyv0 for now until we completely
switch over to wscons.
2002-02-12 14:01:58 +00:00
lukem
a402e4cd01 populate /var/spool/postfix/etc with /etc/{localtime,resolv.conf,services}.
per suggestion from perry.
2002-02-12 02:19:27 +00:00
lukem
852ef3de6f improve comment, and clean up a test 2002-02-12 01:26:36 +00:00
lukem
62498fc17a reset perms of ptyX[0-9a-zA-Z] instead of just ptyX[0-9a-f] 2002-02-12 01:23:11 +00:00
skrll
dd6c2b08f4 Add in the changes tls@netbsd.org made to all the other ports recently. 2002-02-11 15:57:54 +00:00
augustss
afcd602367 Create the ulpt devices that don't reset the printer on open.
(I don't get this, I could have sworn I committed these files a while ago.)
2002-02-11 14:57:31 +00:00
lukem
a8aa7922b1 don't forget to install ipfs... 2002-02-11 14:00:35 +00:00
lukem
84ea7917fd - Remove previous hack; rc.subr warns about the variable not being set
for a reason, which is usually ``your /etc/defaults/rc.conf is not up
  to date''.
- Consolidate `rm's into one line.
2002-02-11 13:55:42 +00:00
martti
89122f4056 Don't try to execute this script if ipfs is not set to YES. Otherwise
you'll see the following message:

   # /etc/rc.d/ipfs stop
   /etc/rc.d/ipfs: WARNING: $ipfs is not set properly.

This horrible change is needed because of the "shutdown" keyword.
2002-02-11 13:39:14 +00:00
lukem
9ee14b2e73 be consistent, and use "mkdir foo 2>/dev/null" instead of "mkdir -p foo"
(to suppress errors if foo already exists)
2002-02-11 12:54:13 +00:00
martti
52d30cc560 Use "mkdir -p" instead of "mkdir" to create /dev/altq 2002-02-11 12:27:10 +00:00
martti
d7bcd10a27 ipfs allows state information created for NAT entries and rules using
keep state to be locked (modification prevented) and then saved to disk,
allowing for the system to experience a reboot, followed by the restoration
of that information, resulting in connections not being interrupted.

To activate this feature, set ipfs=YES in /etc/rc.conf
2002-02-11 10:19:55 +00:00
is
725d029d19 Remove INSTWDCPCM, because for a while now, GENERIC (and INSTALL) have
included both pcmcia support, and wdc instead of idesc as the driver for
the Amiga internal ATA connector.
2002-02-10 20:43:33 +00:00
pooka
13d4fb6acf Breathe life into etc.shark files by moving them over from etc.arm32
and modifying them appropriately in the process.

Remove the obsolete etc.arm32 files
2002-02-10 19:30:41 +00:00
gmcgarry
6804ab704a Compile new installation kernel. 2002-02-10 01:09:54 +00:00
thorpej
0c1012f0a0 Add /usr/share/dhcpd 2002-02-09 21:09:27 +00:00
lukem
7b1ed2d086 - add check_destdir and check_releasedir targets, and use appropriately
(easier to read that large nested .if's
- use INSTALL_FILE, INSTALL_LINK and INSTALL_SYMLINK instead of INSTALL
- when creating release directories, don't bother setting owner and group
2002-02-09 11:09:29 +00:00
lukem
448dcd6d93 do not bother setting owner or group when ${INSTALL}ing releases 2002-02-09 09:27:20 +00:00
ross
7b48561479 Add share/man/html? and the lower machine directories. 2002-02-07 02:52:14 +00:00
lukem
bfa72435ba remove unnecessary 'chown root.wheel' and be consistent with the rest
of this file...
2002-02-05 09:14:12 +00:00
augustss
2f3db30ca0 Make ulpn device nodes (no reset on open). 2002-02-05 00:45:46 +00:00
lukem
205eb9cc73 - ensure . is owned by root:wheel (so new entries inherit the correct group)
- wrap the main parser code in a function makedev(), and call makedev
  instead of 'sh $0'. (this is a bit faster)
- remove unnecessary chown root or chgrp wheel directives; older code here
  didn't bother doing this, so why be inconsistent
- when making directories, don't use -p and don't redirect stdout to /dev/null
2002-02-04 08:21:27 +00:00
tsutsui
182244fcd9 Add MD Makefile.inc for newsmips to make release.
XXX distrib/notes/newsmips is not yet.
2002-02-03 11:23:45 +00:00
veego
6ff44bd71d etc/rc.d/NETWORK was renamed to etc/rc.d/NETWORKING 2002-02-03 08:33:14 +00:00
tls
59b84cdaa8 Fix minor mistake made while increasing number of pty devices: where we had
"pty0 pty1 pty2 pty3" before, for a total of 64 device nodes, we now want
just "pty0" for a total of 62 -- the original commit had "pty0 pty1" for a
total of 124, which ate too many inodes and made "ls /dev" a bit messy.
2002-02-02 20:58:43 +00:00
ragge
b1ce179c55 ttyw0 is virtual consoles on vax, ttyv0 was old controlling terminal for
QVSS/QDSS. ttySx and ttyTx are DHU11 serial ports.
2002-02-02 11:23:16 +00:00
tls
1977a7b24e Add support for many more (930 or 992) ptys than the current 256.
Changes taken from the i386 MAKEDEV.  Note that the unusual use of 'dd'
to index an array was chosen because 'dd' is on all ports' install media.

This form of this change comes from Andrew Brown; the original idea to
bump the number of ptys this way comes from Brian Marcotte at Panix.
2002-02-02 07:04:44 +00:00
tls
85383e6e68 fix another typo in previous commit: the version committed was missing the end of the opty) case. 2002-02-02 05:57:47 +00:00
tls
9f05a494a9 fix typo in previous commit -- pty device number is 6, not 5! 2002-02-02 05:55:19 +00:00
tls
c6652502b9 Add support for up to 930 pty devices (instead of the current 256).
The openpty() routine has been modified to use the extra pty names
before the "traditional" names, so that programs too dumb to use
openpty() will, hopefully, find one of the "traditional" ptys free
even if many others are in use.  The modifications to MAKEDEV are
courtesy Andrew Brown, and are pretty clever: the unit numbers used
by the "traditional" names stay the same, to avoid trouble when
upgrading existing systems.  The unusual use of "dd" to index an
array in MAKEDEV is because no other simple method seemed feasible
using only the programs on the install media for all ports.
2002-02-02 05:48:30 +00:00
fredb
36db822e71 Remove a comment that's no longer true: it's no longer necessary for a
release builder to generate the INSTALLSBC and GENERICSBC kernels by hand.
2002-02-01 04:57:24 +00:00
reinoud
81f2164941 Fix typo from copying 2002-01-31 02:15:28 +00:00
lukem
e00fb37f16 Rename NETWORK to NETWORKING, to allow rc.d to be on a case insensitive
file system (prevents conflict with 'network').  PROVIDE both NETWORKING
and NETWORK (the latter for compatibility with 3rd party scripts).
2002-01-31 01:26:05 +00:00
reinoud
7d372c5d03 Oeps... update the kernel names and use the acorn32 distrib directory 2002-01-31 01:07:44 +00:00
bouyer
42b4a64371 If check_disks=YES, check for failed components in RAIDframe devices. 2002-01-27 22:08:50 +00:00
lukem
6c5c021900 use the recently added hw.disknames value from sysctl(8) to determine
the list of currently configured disk devices, and start raid parity
rebuilds on devices which match "raid[0-9]*"
2002-01-27 14:16:33 +00:00
lukem
e5182cb71d use ${PAX} instead of tar | gzip 2002-01-27 07:03:04 +00:00
lukem
6af35d5a81 - replace "tar -cf - ... | gzip -9 > foo" with "GZIP=-9 ${PAX} -zwf foo ... "
- more comment hacking
2002-01-27 06:49:22 +00:00
lukem
03a5940a64 - add the following targets to the DESTDIR=="" check:
install-etc-files iso_image_mi iso-image_md_pre iso-image_md_post snap_kern
- add the following targets to the RELEASEDIR=="" check:
    iso_image_mi iso-image_md_pre iso-image_md_post snap_kern
- improve comments around make .flow control statements (including adding
  some helper # { ... # } comments around large .if statements for (ab)use
  with vi showmatch mode)
- clean up whitespace
2002-01-27 01:44:02 +00:00
perry
7f6d795f45 add usr/share/games/ching 2002-01-25 05:07:57 +00:00
eeh
5092e6e3e9 Create ttyC00 and ttyC01 for NS16550 serial ports. 2002-01-24 22:22:26 +00:00
skrll
f29db86be5 Add initial etc.cats support so that make snapshot/release will work.
Mostly copied across from etc.arm32 with some obvious things removed, e.g.
RiscPC/Shark devices, the disktab cut down and a mfs entry added in fstab.
2002-01-23 15:41:42 +00:00
itojun
d1f5dc17b6 do not taint ::/124 for localhost reverse table. 2002-01-22 03:27:24 +00:00
abs
b537fda1d5 Move 'wscons' to directly after 'std'. Various MAKEDEVs had it pretty much
at the end, and as wscons (actually ttyE0) is required to login on the console,
it is probably better that an out of space MAKEDEV fail on some other device.
2002-01-21 16:19:17 +00:00
lukem
6405cef9be minor cosmetic changes (no functional change) 2002-01-21 14:33:25 +00:00
oster
e474b1951e Update the various MAKEDEV's to reflect the default of 8 RAIDframe devices. 2002-01-19 18:59:17 +00:00
lukem
f9d5a55631 commented out entry for ntpd_chrootdir 2002-01-18 10:53:29 +00:00
lukem
5982fec3a6 setup ntpd chroot cage under /var/chroot/ntpd 2002-01-18 10:52:24 +00:00
lukem
e3e168f629 if $ntpd_chrootdir != "", ensure that the following files, devices,
and links exist:
        ${ntpd_chrootdir}/dev/clockctl
        /var/db/ntp.drift -> ${ntpd_chrootdir}/var/db/ntp.drift
and then start ntpd with the appropriate options to run chroot(2)ed
under $ntpd_chrootdir as user ntpd group ntpd.

to take advantage of this, set ntpd_chrootdir in /etc/rc.conf.

[this is based on similar work i did for rc.d/named]
2002-01-18 10:51:30 +00:00
lukem
c22b780e2f * build /var/run/syslogd.sockets to contain list of sockets in chrooted cages
that we know about, and start syslogd with -P /var/run/syslogd.sockets
  if necessary.
* add ${ntpd_chrootdir}/var/run/log to known sockets
2002-01-18 10:48:41 +00:00
tron
dd70720ed9 Add port number for UUCP over SSL. 2002-01-17 12:31:37 +00:00
deberg
dd427cee59 add nsmb device 2002-01-14 06:18:20 +00:00
manu
b2fd9eed95 Changed clockctl group to ntpd 2002-01-13 14:31:44 +00:00
manu
98572ccabc Added clockctl 2002-01-13 14:21:26 +00:00
manu
eef6a7a7c6 Changed clockctl group to ntpd 2002-01-13 14:20:59 +00:00
manu
8f66a3364c Added clockctl 2002-01-13 14:18:35 +00:00
manu
de8d612984 Added clockctl 2002-01-13 14:08:48 +00:00
wiz
a4397af56d Add /usr/include/fs/smbfs. 2002-01-11 01:36:28 +00:00
lukem
d5767e945e fix a couple of spelling mistakes in the i4b* descriptions 2002-01-08 02:46:10 +00:00