Commit Graph

309 Commits

Author SHA1 Message Date
dholland 887da82a3d Comma of result is (though increasingly common) not formally recognized
grammar[,;] use a semicolon.
2015-07-11 06:40:37 +00:00
jnemeth 3480dbd463 Check for an out of date /etc/fonts/fonts.conf and if so, forcibly
update it (it is not intended to be user editable).  This is
primarily intended so that pkgsrc fonts installed in the new location
can be found.
2015-07-08 05:00:15 +00:00
martin 6fb47df388 PR install/50020: postinstall does not check for mandoc in /etc/man.conf.
Add a check, but ask the user to fix manually (the file could have local
modifications).
2015-07-02 09:53:12 +00:00
martin 64fd3ef0cf Simplify previous, pass awk as TOOL_AWK (that is what the makefile uses),
create an obj dir for make and force it to use that.
This version now works with read-only source again.
2015-07-02 09:31:56 +00:00
martin c365a0b724 Clean up the src/etc/mtree directory after using it to generate the mtree
spec file.
XXX this is fishy, we should find a better way.
2015-07-01 12:40:07 +00:00
martin 4a5465f248 Pass AWK to make when invoking emit_dist_file.
Part of fixing PR toolchain/50004.
2015-06-28 09:29:58 +00:00
martin 61b769c0d4 Terminate the obsole directory walking loop when we hit "/" or "."
(both relative to DESTDIR), I have seen it run into an endless loop with
_path=. when invoked from the top level make with some (valid) args.
2015-06-27 09:56:54 +00:00
martin 7d1d1b71a1 Add resize_root 2015-03-31 07:57:57 +00:00
jmcneill 7ba4328bfa Process /etc/modules.conf (if present) at startup, before securelevel is
raised, to allow module loading on ports without a module aware bootloader.
2015-03-21 19:10:43 +00:00
joerg 88c9fb0be8 Add rc script for /sbin/iscsid. 2015-02-21 23:13:00 +00:00
apb f4970596ba rc_obsolete_vars is a list of pairs, so format it with one pair per line. 2014-12-30 07:02:29 +00:00
wiz 2eb17e07ec Use Nx. 2014-12-21 21:10:13 +00:00
christos e32b8a4e6c PR/49428: Travis Paul: Document x option. 2014-12-21 20:14:33 +00:00
jnemeth a0380aebe4 add powerpc variants to the list of potentially obsolete modules to check 2014-12-16 05:30:40 +00:00
uebayasi e8f227f2a9 Fix previous; obsolete vars are pairs. 2014-12-13 02:35:02 +00:00
uebayasi 2ae7b0d687 postinstall(8): Define long item lists as variables to improve future diff-ability. 2014-12-13 02:30:39 +00:00
uebayasi a7d5e3a9dc Handle obsolete xen/pae-xen kernel modules; reported by John D. Baker. 2014-12-01 02:08:34 +00:00
apb 48c555dba9 Fix tab/space inconsistency in comment. 2014-11-12 19:41:24 +00:00
apb 87504aab72 Change the order of arguments to check_ids, placing the two file names
adjacent to each other.  Also add a comment explaining the "start"
argument and the "SKIP" special value.
2014-11-12 19:31:05 +00:00
martin 146a7e98a7 Make check_ids take an additional argument (the corresponding source
file) and grep that on error for the missing information, so the user
gets all the info needed how to "FIX MANUALLY".
2014-11-11 19:41:38 +00:00
roy c6314d6139 Remove rtsol(8) and rtsold(8) as their functionality is in dhcpcd(8).
Remove rtsol(8) from rc.d/network.
Add -w seconds command to ifconfig to wait for N seconds for until DAD
has finished on all addresses.
Use ifconfig -w in rc.d/network instead of a forced sleep.

As discussed on tech-net@
2014-09-11 13:10:03 +00:00
apb 94b079ef04 In get_makevar, ask make to recursively expand the variable,
not just print the unexpanded value.  This is done by
using make -V '${VAR}' instead of make -V 'VAR'.
2014-08-12 09:12:18 +00:00
apb 02561653c9 Quoting fixes in several eval commands. 2014-08-12 08:32:43 +00:00
apb 1bbb38d5f6 Check for and delete ${DEST_DIR}/@RUNDIR@, not /@RUNDIR@.
Also remove an unnecessary eval in do_dhcpcdrundir and
fix a typo in the description.
2014-08-12 08:28:04 +00:00
roy f356508f3e FONTCONFIG_DIR not existing does not need to be fixed. 2014-08-11 12:49:01 +00:00
apb f80058aa23 Synchronise several shell_quote implementations, and:
* Elide some unnecessary pairs of quotation marks, to improve readability.
  For example, shell_quote "''" is now \'\' instead of ''\'''\'''.
* Don't add quotes around words that contain only safe characters,
  to improve readability.
* LC_COLLATE=C to prevent [a-zA-Z] from matching non-ASCII characters.
* Use ${SED} if defined.
2014-08-04 21:56:30 +00:00
apb 52a5651c02 Use extra="${2-/,}" to use $2 if defined, else default to "/,". 2014-06-16 22:12:30 +00:00
apb 9b3ba6dbb0 Delete trailing slash with "${1%/}", not "${1#/}". 2014-06-16 22:04:39 +00:00
apb 0f5a92d284 Add a new obsolete_stand target, disabled by default,
to delete old files and subdirectories under /stand/${MACHINE}.
2014-06-16 08:59:13 +00:00
apb 7fc31c82f1 Remove stray quotation mark 2014-06-16 08:39:56 +00:00
apb 080bff1a9f In do_sendmail, use unprefix to fix up paths that will be
processed by obsolete_paths.
2014-06-16 08:29:18 +00:00
apb 4478f1a2eb Clarify wording in a comment for obsolete_paths. 2014-06-16 08:28:08 +00:00
apb dc6efbc769 Add bre_quote (copied from etcupdate), and unprefix functions. 2014-06-16 08:21:20 +00:00
apb d7be6cf067 Add SORT and SED variables, in case a host environment needs them. 2014-06-16 07:08:06 +00:00
mrg 4460048395 don't apply "ptyfsoldnodes" if /dev/pts does not exist, even if ptyfs
is listed in /etc/fstab.  without this, postinstall happily removes
all your ptys leaving you with none at all.  return an error if we
have ptyfs in /etc/fstab, but no /dev/pts.
2014-04-25 00:23:26 +00:00
martin 4765e08d28 Fix wrong variable name, PR bin/48647 from Jim Bernard. 2014-03-08 16:36:24 +00:00
jmmv d90ac76afc Fix path to atf-run.hooks after import of atf-0.19.
Problem found by martin@.  Not spotted by me, I think, because I always use
postinstall on an etc.tgz file and forgot about this code path.
2014-02-15 01:54:17 +00:00
skrll 69d52dbe21 Remove harmful whitespace. Now the /var/shm check can succeed quietly. 2014-01-29 12:56:28 +00:00
martin 319a65afc2 Add a check to remove the temporarily (eroneously) created /@RUNDIR@
(PR bin/48529)
2014-01-17 19:06:57 +00:00
njoly b0550d75f0 Skip varshm check if there is no fstab (like in chroots). 2013-12-17 12:51:26 +00:00
martin fe15878cd5 Cosmetics: use "msg" instead of "echo" 2013-12-13 07:37:50 +00:00
martin 0c88e27e4c Add a "varshm" check/fix to make sure /var/shm is mentioned in /etc/fstab
(and add a default of tmpfs with 25% of available ram limit if not).
To avoid the warning but not mount the tmpfs, just comment out the line
for /var/shm.

Also move "obsolete" to the end of the list again, as it should be run
last.
2013-12-05 15:41:23 +00:00
prlw1 4b5976925c Add pkgpath.conf to /etc/defaults check. 2013-09-09 15:04:12 +00:00
htodd 5fcfb3153d And add a skip for the deleted _gpio in uid. 2013-07-14 15:44:00 +00:00
htodd aebf69ca0d Add _rtadvd to uid check as well. 2013-07-14 15:27:12 +00:00
htodd 173d865eac Adding _rtadvd to group check. 2013-07-14 15:17:22 +00:00
christos ba70cbfcf3 don't echo the make command in the output file. 2013-06-17 17:40:17 +00:00
christos 0ebdad6fe7 - missing semicolon
- missing SKIPS
- assignment instead of comparison
2013-06-15 22:53:18 +00:00
christos 56ff42629e more thorough passwd/group checks. 2013-06-11 14:39:07 +00:00
mrg b3bc0e936f implement SOURCEMODE version of "fontconfig". 2013-06-10 20:33:31 +00:00
mrg 63b935973f update do_fontconfig() to update all the conf.avail files. fixes
errors that xkbcomp spews when the X server starts since fontconfig
was updated.
2013-06-06 07:06:42 +00:00
prlw1 281d156eac add _gpio to gid check 2013-05-21 12:07:03 +00:00
yamt 8782935dec try to sync lists of rc.d scripts 2013-05-16 07:37:05 +00:00
ast 0b98a54c44 Make sure that the "to fix, run: ..." instructions actually work cut-and-paste
By default postinstall has mode 644 so /bin/sh or similar needs to be prepended
2012-09-22 09:20:06 +00:00
apb 1de7d5f1b7 Remove the ability to specify multiple colon-separated fiel names with
a single "-s" option.  Multiple "-s" options must now be used instead.
We have been printing a warning about this since 2008-09-14.
2012-08-15 16:21:41 +00:00
apb 74a992e866 Don't rely on stat(1) with format "%SHr" to print the correct names.
That uses devname(3) internally, which doesn't work at all in a cross
build environment, and doesn't do what I thought even in a native
environment.

Instead, parse the device major numbers for the pty master and slave
devices from the output of "MAKEDEV -s pty0" and check those against the
actual device node that we are thinking of removing.
2012-08-15 12:48:19 +00:00
apb 508b448a57 Change do_ptyfsoldnodes to use stat(1) to check whether a file is
a device node of the correct type.  We no longer need to get the
major number from searching the MAKEDEV script, because the output
from stat(1) will contain the strings "tty" or "pty" instead of
the numeric major numbers.  We also no longer rely on "find -ls".
2012-08-14 13:11:24 +00:00
apb 0c31a5f126 Use grep -E and grep -F instead of egrep and fgrep. This reduces the
number of tools that may need to be passed in the environment.
2012-08-14 12:07:57 +00:00
apb beaffa0794 Remove the "stat" shell function (stat op format target value).
It has been unused since revision 1.14 dated 2006-05-30.
2012-08-14 10:38:40 +00:00
martin ff5fcf4714 Cleanup temporary file 2012-08-13 18:22:25 +00:00
martin 1d5deaee0c Make "fix ptyfsoldnodes" more verbose 2012-08-13 15:17:16 +00:00
martin d08b85050c Add a ptyfsoldnodes item that checks/removes old /dev/{p,t}ty* nodes
if ptyfs is used.
2012-08-13 10:20:52 +00:00
kefren 690d3837f6 add ldpd rc.d script here too 2012-06-28 16:34:06 +00:00
jnemeth 220a7d2bb0 add _tss to uid and gid checks 2012-06-01 21:59:06 +00:00
jmmv cfa157d760 Properly find atf configuration files in the source tree. My previous
change dealt properly with etc.tgz only.  Addresses PR bin/45870.
2012-02-29 02:40:28 +00:00
jmmv 7e5c66f341 Populate /etc/atf with any missing files. Fixes PR bin/45870. 2012-02-27 17:56:14 +00:00
apb 90e1171c17 quote SRC_DIR and DEST_DIR everywhere. Also wrap some long lines. 2012-02-22 16:42:07 +00:00
apb 0196d40adb Fix a call to pwd_mkdb in the case that DEST_DIR is the empty string. 2012-02-22 16:27:38 +00:00
nakayama 9e8270494c Pass -d option to pwd_mkdb(8) in order to make databases at proper location. 2012-02-21 12:31:18 +00:00
njoly 91f381dd41 Use msg for indentation. 2012-02-18 17:49:28 +00:00
apb 44652a5537 Add "pwd_mkdb" item, which checks whether /etc/pwd.db is in the
new format, and runs "pwd_mkdb -V 1 /etc/master.passwd" to fix it.
2012-02-17 07:51:20 +00:00
joerg d99b3bd499 Clean up cat pages that are older than the corresponding man pages.
Remove cat page directories that are empty.
2012-02-15 13:01:00 +00:00
tsutsui a7f5216f76 Add an rc.d(8) script for isibootd(8). Taken from ndbootd(8). 2011-12-17 13:37:49 +00:00
tls aae64c95c0 Make the rndsave structure public -- the kernel will learn to read it
and sysinst may learn to write it (since, on some systems, most of
the keyboard input they ever get happens to be during install).  Fix a
couple of minor problems with the random_seed rc script addition.
2011-11-26 01:17:17 +00:00
mrg bffbba31b4 fix the sendmail, mailerconf and atf checks to use ${DEST_DIR}.
add a note about this to the top of the file.
2011-10-07 02:07:56 +00:00
jym a0e5aa6d82 /etc/defaults/rc.conf can be modified at build time by getting additional
arch-specific hooks appended to its end (currently: i386 and amd64).

Handle this case in postinstall(8) by checking whether we are in
$SOURCEMODE or not, and generate the correct rc.conf file on the fly in
case we have to. Otherwise, postinstall(8) may install the default one
obtained from a source directory that does not have the MD hooks
appended to it.

Problem reported by wiz@. Thanks!
2011-09-06 21:39:30 +00:00
jym f618b3bb0d Set $SRC_DIR to its default value at the beginning of main() so that
usage() can print the correct value even when called early.
2011-09-06 14:13:46 +00:00
jym ec521efc45 Check that $TGZMODE is true to deduce that the set is extracted
from a .tgz instead of checking that $SRC_DIR != $SRC_ARG. These variables
can be modified in different places, so it's less error prone.
2011-09-06 14:08:05 +00:00
jmmv dcba4bad03 Check (and fix) that unprivileged-user has been changed from _atf to _tests
in /etc/atf/common.conf.  Requested by martin@.
2011-08-09 18:24:46 +00:00
jmmv bbf950e188 Rename the _atf user to _tests. The _atf name will get obsoleted if/when
we migrate to Kyua (atf v2), so it's better to use a generic name that does
not depend on the specific implementation.  Also, this user has not gone
out yet into any stable release, so we can easily rename it.

Suggested by jruoho@.
2011-08-05 14:43:41 +00:00
plunky ee76f29c49 rcconf_is_set takes a tuple of <script> <variable>, so add
in a couple of missing script names

	network ip6forwarding
	sysctl defcorename

and remove the trailing "sysctl"
2011-07-14 09:35:24 +00:00
plunky 0067012e91 introduce rcvar_is_enabled to test if a rcvar is enabled
use this instead of rcconf_is_set to warn about superseded
rc.d scripts, to silence spurious warnings produced before
/etc/defaults/rc.conf script was updated.

(spurious warnings noted by Martin Husemann)
2011-07-14 09:31:19 +00:00
plunky b52bb12959 provide a new 'bluetooth' rc.d script, to handle Bluetooth configuration
in a simpler manner. This replaces btattach, btconfig, bthcid, btdevctl
and sdpd scripts, and also should not require any configuration settings
other than "bluetooth=YES", though the full range of configurations is
still possible.
2011-05-27 09:28:41 +00:00
martin 4b3298a1fe Invert the chroot/tcpdump/etc test and make it remove the (not needed
anymore) directory.
2011-04-17 13:16:59 +00:00
martin c98db97906 Add a new check to populate /var/chroot/tcpdump/etc 2011-04-11 20:29:50 +00:00
erh b0e49f7e0c Fix the usage of the -s option to mention using it multiple times, rather
than the deprecated colon separated syntax.
2011-03-12 23:04:16 +00:00
tron cdfb116b0f Install "etc/gpio.conf" if it is missing. 2011-02-13 20:25:35 +00:00
tron 85add3c312 Add "npf" to the list of startup scripts that get checked. 2011-02-13 20:17:26 +00:00
njoly 29263bd796 Add _tcpdump uid/gid checks. 2010-12-17 22:56:22 +00:00
njoly aab4946261 Adjust obsolete_libs to handle both the libraries (unchanged) and the
corresponding .debug files if exists.
2010-11-30 14:35:38 +00:00
christos 30b8bfbace - don't bitch if /usr/X11R6/lib/X11 does not exist, if /usr/X11R6 does not
exist either. We might have never installed X11R6 on this system.
- spell nonexistent
2010-11-21 22:50:37 +00:00
njoly 9220c212a8 Add _atf to uid/gid checks. 2010-11-08 09:01:44 +00:00
dyoung ca088e5210 Do not try in postinstall(8) to replicate the code in etc/mtree/Makefile
that assembles /etc/mtree/NetBSD.dist.  Instead, use the Makefile's
new target, emit_dist_file, to assemble the correct NetBSD.dist.

Previously, 'postinstall -m amd64 -s $SRC_TOP' would install a
NetBSD.dist that was missing /usr/lib/i386/ et cetera.
2010-04-23 19:21:08 +00:00
christos 9a4b585a95 running postinstall fix should also say why fontconfig did not work, like
all other postinstall methods.
2009-12-24 21:52:57 +00:00
mbalmer 9b182ae0ac s/the the/the/ 2009-11-22 18:45:27 +00:00
joerg 1444b07e5e Explicitly request literal mode after .Xr. 2009-10-15 02:15:19 +00:00
apb 138c8d4f23 /usr/X11R7/lib/X11/xkb/symbols/pc used to be a directory, but changed
to a file on 2009-06-12.  Fixing this requires removing the directory
(which we can do) and re-extracting the xbase set (which we can't do),
or at least adding that one file (which we may be able to do if X11SRCDIR
is available).

Reviewed by mrg, snj
2009-10-13 07:47:00 +00:00
tsarna a8bcd3b5c3 Multicast DNS ("Bonjour") support, based on Apple's mDNSResponder. 2009-09-29 23:56:26 +00:00
njoly 5fde6173c5 Make do_mtree correctly report failure if either special or
NetBSD.dist checks failed, not only the last one.
2009-09-21 18:03:03 +00:00
mrg cfb8df7f4f install the fontconfig files into /etc/fonts/conf.avail, and symlink
the default ones into /etc/fonts/conf.d, as per default.

reported by jukka marin on netbsd-users.
2009-09-07 21:07:02 +00:00
mrg 2bd0cf0757 - do not create X11 subdirs always anymore
- we now only create them when building X11, and only create the ones
  we need (X11R6 xor X11R7)

- all these subdirs are now in the xbase set

- move the logic for running mtree into etc/mtree/Makefile

- split NetBSD.dist into 3 files, and have the build and postinstall handle
  creating a possibly merged one.  we still have a single installed file
  called "NetBSD.dist".
2009-09-07 19:34:29 +00:00
mbalmer da7930a7f1 Add gpio to rc checks.
Diff from Geoff Wing <gcw@pobox.com>, thanks.
2009-08-06 08:31:58 +00:00
christos 1e5d85413c moduli moved with openssh 2009-07-20 21:03:42 +00:00
tron 7d5e451c60 Switch to building Postfix 2.6.2 via "external/ibm-public/postfix". 2009-06-23 17:58:22 +00:00
pgoyette 8a01920225 Make the makedev step fail if either MAKEDEV or MAKEDEV.local need to
be updated.  Patch from njoly@
2009-05-22 15:23:17 +00:00
jnemeth 2dac444cfe fetch /etc/dhcpcd.conf from the correct place when building the system 2009-05-13 23:44:26 +00:00
jnemeth 8714d998c8 install /etc/rc.d/dhcpcd as well 2009-05-12 02:17:49 +00:00
jnemeth 363f93e8d1 install /etc/dhcpcd.conf 2009-05-12 01:53:07 +00:00
joerg e7f29a3386 Split fsck during boot into two phases. Check the root file system
first, mount root and run the various disk providers. Add swap and
check the remaining file systems after that.
This breaks the dependency cycle for lvm, which needs writeable /dev.
Depend on rndctl in cgd.
2009-04-21 16:08:57 +00:00
martin ecad31aebd Now that we use ?= to optionally assing to ddb.onpanic, match that when
testint existing configurations too.
2009-04-06 00:30:33 +00:00
martin 4e59766728 Make the ddb.onpanic line acceptable even if commented out 2009-04-01 16:38:46 +00:00
martin 7d53797861 Switch the default value (if no options DDB_ONPANIC is defined) for
ddb.onpanic to 1, change it back to 0 in sysctl.conf and make sure
postinstall installs this setting.
This avoids us trying to dump while booting from install CD, but keeps
the default the same once we are far enough through /etc/rc.d. Failing
earlier is unlikely to be recovered by an automatic reboot.
OK: core.
2009-03-11 23:22:57 +00:00
apb c163e7100a As long as we don't yet have a working TOOL_GREP,
fgrep is more portable than grep -F.
2009-02-26 10:32:43 +00:00
apb b56c1a749f In file_exists_exact(), fix an incorrect test of "1" instead of "$1",
and improve the comment explaining what this function does.
2009-02-26 08:25:50 +00:00
apb 6eefb4e5ea "grep -q" is not portable; use "grep >/dev/null" instead. Also add a
comment saying that postinstal is invoked during a cross build.
2009-02-26 08:05:09 +00:00
sketch bb0a3b607e Use awk and grep host tools where required. 'build.sh release' now works
on Solaris (but only with HOST_CC=/usr/sfw/bin/gcc for now).
2009-02-25 20:38:30 +00:00
dyoung ac7c88b5d2 Look for MAKEDEV.local in both ${SRC_DIR}/dev/ and ${SRC_DIR}/etc/,
so that 'postinstall check makedev' works whether the sources told
by the -s argument are a NetBSD source tree, etc.tgz, or a DESTDIR.
2009-02-25 01:11:50 +00:00
yamt 9287e91c00 do_makedev: look at a correct directory for MAKEDEV.local 2009-02-22 15:27:44 +00:00
jklos c259dad90f Added MAKEDEV.local to postinstall's makedev check. Upgraded systems were
not getting an updated MAKEDEV.local file.
2009-01-26 07:40:01 +00:00
haad f42e53f384 Add lvm script to the lists. 2009-01-16 01:58:32 +00:00
lukem c13322daaf Add rndctl to do_rc().
Thanks to Geoff Wing on current-users.
2009-01-08 02:05:15 +00:00
isaki cf59801230 x68k pow(4) now uses MI sysmon_pswitch framework. suggested by tsutsui@.
- Make MD poffd(8) retire, and use MI powerd(8) instead of it.
- Make /dev/pow1 retire, because nobody holds /dev/pow0 any longer.
  Use /dev/pow0 for pow(4) ioctl.
- POWIOCSSIGNAL ioctl which is for poffd(8) is also obsoleted.
2008-12-20 13:20:58 +00:00
mishka 43e91ff9f2 Import rc.d/httpd script for httpd(8) daemon control.
See rc.conf(5) for options explanation.
2008-12-11 13:55:16 +00:00
cube 6d69dde342 - Introduce a function get_makevar that will retrieve the values of a
specific set of user-derived variables, to be used in SOURCEMODE.
- In SOURCEMODE, generate the rc.d scripts xdm and xfs.
- Auto-detect if X11 sets are used (either through the value of MKX11 in
  SOURCEMODE, or by finding an xetc-xpecific file in sets mode).
- Ignore X11-specific rc.d scripts if X11 is not used.
2008-12-05 19:01:23 +00:00
nakayama c16b2cafae Add scan obsolete minor shared libraries in /usr/X11R7/lib.
Also scan in /usr/lib/i386 for amd64, /usr/lib/sparc for sparc64.
2008-11-24 20:12:28 +00:00
chris 0903aecdd9 lkm1, lkm2 and lkm3 are now obsolete and don't exist in the source tree,
so remove the references to them from postinstall.
2008-11-18 13:14:12 +00:00
snj ffabc8967d s/explicitely/explicitly/ 2008-10-29 17:09:47 +00:00
cube 26626779ff apb's latest change introduced a test to make sure an actual etc.tgz (or an
extraction of it) was provided as -s, but SOURCEMODE was not set to true in
the default case, which is to use /usr/src/etc, a source directory.
2008-10-17 21:31:55 +00:00
christos 3e1e171f06 revert previous; now 'postinstall fix' does not work anymore without having
sets.
2008-10-17 21:20:30 +00:00
christos 3e0c867bca use an existing file otherwise the test always fails. 2008-10-17 21:14:40 +00:00
christos 8b08621cd3 I don't have set.etc!?!? Do you? 2008-10-17 20:52:34 +00:00
apb 3c2b458230 In both postinstall and etcupdate, in modes where the -s argument
refers to tgz files or to a directory in which tgz files have already
been extracted, make it an error for the files that should have come
from etc.tgz to be missing.  This is intended to prevent users from
accidentally deleting necessary files when they run "postinstall -s
xetc.tgz fix".

Use the absence of .../etc/mtree/set.etc in the extracted directory
as a test for the error case.
2008-10-04 08:07:38 +00:00
junyoung 7af93d757a Fix 'arith: syntax error: " N_SRC_ARGS + 1 "' error which occurs with
the Debian default shell ("dash").

Now cross-build works again on Ubuntu 7.10.
2008-09-21 06:20:07 +00:00
apb 7c483070b7 Fix errors in previous. 2008-09-14 17:25:59 +00:00
apb 2d19284cc9 Document that "ss tgz1:tgz2" was merely deprecated, not removed. 2008-09-14 14:24:15 +00:00
apb 50356f5260 Allow "-s tgzfile1:tgzfile2" for backward compatibility. Print a
warning to encourage users to switch to using "-s tgzfile1 -s tgzfile2".
2008-09-14 13:46:51 +00:00
apb 9599e1b7c8 Document the change in meaning of "-s foo:bar". It now means a single
file or directory named "foo:bar".  If you want the old meaning,
use "-s foo -s bar" instead.
2008-09-07 15:24:04 +00:00
apb d8f98eee1d * Allow colons to appear in the names of tgz files, to address PR 39459.
* Remove the ability to specify a colon-separated list of tgz files
  using a single "-s" option, because ":" is now a valid character within the
  name of a single file.  Callers should use multiple "-s" options
  instead.
2008-09-07 15:22:47 +00:00
apb a454795e01 Cleanup shell quoting:
* Almost all shell variables are now quoted, except where they
  hold numeric values such as exit status, or where we want
  the shell to split on spaces.

* Constructs like

    _files="$@"
    do_something_with $files

  are changed to

    #_files="$@"
    do_something_with "$@"

* In contexts where we do actually want the args to be concatenated with
  space separators, use "$*", not "$@".

Tested by running "postinstall check" with a SCRATCHDIR whose name
contained spaces.
2008-09-07 12:34:06 +00:00
matt 875074d9fa Make sure to update root.cache too. 2008-07-23 07:43:12 +00:00
dholland 1d33f98b45 Correct improper escaping of regular expressions in string constants in
awk code. Noted by Aleksey Cheusov in tech-userlevel.
2008-07-13 15:34:16 +00:00
peter 430b2da1d5 Install /etc/pf.os with 444 permissions.
Modify postinstall(8) to always upgrade /etc/pf.os.

Suggested by Luke Mewburn in PR/35188.
2008-06-20 17:04:45 +00:00
yamt fff57c5525 merge yamt-pf42 branch.
(import newer pf from OpenBSD 4.2)

ok'ed by peter@.  requested by core@
2008-06-18 09:06:25 +00:00
apb bf49cd32ad Try to make it clear that local changes will be overwritten
by "postinstall fix".
2008-05-03 09:44:45 +00:00
martin 11a6dbe728 Convert TNF licenses to new 2 clause variant 2008-04-30 13:10:46 +00:00
plunky 486e4624e5 some changes to serial bluetooth host controller interfaces
btuartd(8) should be named btattach(8) for consistency
with other parts of NetBSD

make btattach(8) a single-use tool for less complexity

device specicific initialisation (from btuart(4)) is carried
out prior to activating the line discipline (in btattach(8)),
which simplifies the API somewhat and means that the user
tool and the kernel do not need to be kept in sync.

btuart(4) driver is much reduced; naming is made consistent
and all tsleep() and delay() are removed to userland
2008-04-15 11:17:47 +00:00
tron 63fdde0f21 Avoid error message in "obsolete" check if "/usr/X11R6/lib" doesn't exist. 2008-02-13 12:55:56 +00:00
tron 01e5108f0e Don't fail the X11 check if "/usr/X11R6/lib" doesn't exist. This is
perfectly valid setup (e.g. no X11 or modular X11 from "pkgsrc").
2008-02-13 12:52:14 +00:00
jmmv 80aba14b89 Update URLs after website reorganization in the motd check; per pavel@'s
request.  Closes PR misc/37070.
2007-12-15 17:48:38 +00:00
wiz 8e492a60da Typo fix. 2007-12-01 19:38:38 +00:00