Commit Graph

212 Commits

Author SHA1 Message Date
christos 795680b973 handle blacklistd properly. 2015-08-24 07:21:14 +00:00
jnemeth 5923cd0eff PR/50158 - Simon Burge -- postinstall does not know about blacklistd 2015-08-21 12:02:07 +00:00
uebayasi 2d6876178b Whitespace. 2015-08-15 09:33:55 +00:00
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