Age | Commit message (Collapse) | Author |
|
default behavior of sysmerge when no source is specified on the
command line:
* if SM_PATH is set, then sysmerge will search this path for etcXX.tgz
and/or xetcXX.tgz
* if SM_PATH is not set (the default), then the behaviour is the same
as before and /usr/src is used
idea from espie@
man page refactoring jmc@ (who else :-))
"good idea" krw@
ok rpe@ landry@ espie@
|
|
|
|
sysmerge(8) output a warning when the target of the link does not yes
exist on the system.
ok sthen@
|
|
files have already been merged. This is needed in the case where the
syntax of smtpd.conf changed to prevent newaliases(8) from failing.
issue reported by todd@
ok sthen@
|
|
No functionnal change.
|
|
ok ajacoutot@
|
|
or preparing from /usr/src into extract_set() and prepare_src().
- extend error handling and quoting of user supplied input
- move and rename get_sets() to get_set(), change parameter order
and allow arbitrary filenames in url pattern (see r1.62 msg)
ok halex@, 'go ahead' ajacoutot@
|
|
|
|
etcXX.tgz/xetcXX.tgz sets into a more generic function get_sets().
Move the SRCDIR check into the getopts while-loop as well.
ok ajacoutot@ halex@
|
|
ok ajacoutot@
|
|
ok ajacoutot@ halex@
|
|
global variables are defined
ok ajacoutot@
|
|
ok @ajacoutot
|
|
no functional change
discussed and ok ajacoutot
|
|
style lines. no change of functionality.
discussed with and ok ajacoutot
|
|
as argument to replace some
error "message"
error_rm_workdir
lines by a single
error_rm_workdir "message"
line.
ok ajacoutot
|
|
ok ajacoutot
|
|
this is a sanity check to ensure no system user(s)/group(s) are missing.
ok sthen@
|
|
Remove unused DBFILE.
from robert at peichaer dot org
|
|
from robert at peichaer dot org
|
|
|
|
information.
ok sthen@
|
|
Remove bogus echo -n "foobar\n", leftover from display output tests.
No functional change but makes the code more readable.
from robert ar peichaer dor org
ok sthen@
|
|
|
|
anyway and sysmerge(8) automatically save replaced files.
ok sthen@
|
|
ok aja@
|
|
makemap when we are in fact running newaliases...).
No functionnal change.
|
|
(doubtful) but since files tend to move from one set to another sysmerge
would end up tagging them as obsolete. I see no way to fix this...
req. by and ok deraadt@, ok landry sthen@
|
|
|
|
added to the front of the file, then sent through system() of equiv.
ok aja
|
|
|
|
ok sthen@
|
|
|
|
|
|
http://) so that sysmerge(8) can work with URLs we use in the install
script.
ok sthen@
|
|
Update copyright year while here.
|
|
need to install files or directories with newly added user/group
ownerships.
ok sthen@ (on a slightly different diff)
|
|
to create, otherwise sysmerge will fail installing it. This can happen
for example when you only installed etcXX but run sysmerge against both
etcXX and xetcXX.
found the hard way by and ok sthen@
|
|
* "Installing foo" -> "{Merging,Upgrading} foo" where it makes sense
* remove the "it will remain to merge by hand" msg, too chatty and we
already tell the user at the end of a sysmerge run if some files are
still left to handle
ok sthen@
|
|
|
|
help from and ok naddy@
|
|
clear if there are any warning/error or things that should be handled
manually.
e.g. output from going from 4.8 to current:
# sysmerge -s etc49.tgz -x xetc49.tgz
===> Populating temporary root under /var/tmp/sysmerge.k1BnD/temproot
===> Starting comparison
===> Installing /.profile
===> Installing /etc/bgpd.conf
<...>
===> Installing /root/.profile
===> Installing /var/www/conf/mime.types
===> Comparison complete
===> Checking directory hierarchy permissions (running mtree(8))
===> Output log available at /var/tmp/sysmerge.k1BnD/sysmerge.log
*** WARNING: file(s) detected as obsolete: /etc/portal.conf /etc/security /var/msgs/bounds
*** WARNING: some new/updated file(s) may require a reboot
feedback and ok sthen@
|
|
occurence.
with a small tweak from an ok sthen@
|
|
from jmc@
|
|
prodded by and ok espie@, ok jmc@
|
|
updated files in the output, this is confusing.
ok sthen@
|
|
correct option (e.g. 'sysmerge /tmp/etc48.tgz'). Use OPTIND as all args
are handled by getopts we can catch misusage and we exit with an error.
from Brian Poole, thanks.
ok sthen@
|
|
src/*.tgz isn't specified. ok ajacoutot@
|
|
tarball contains ./var/db/sysmerge/etcsum or ./var/db/sysmerge/xetcsum.
First, it's more correct and second it allows people to rename the sets
without sysmerge bailing out.
feature requested and tested by oga@
|
|
starting the comparison anymore. It does not bring us anything and
allows to chop 30 lines of the script.
While here, remove some empty lines.
|