summaryrefslogtreecommitdiff
path: root/usr.sbin/sysmerge
AgeCommit message (Collapse)Author
2009-10-02Use BSD.x11.dist mtree file now that it is up-to-date and maintained.Antoine Jacoutot
ok sthen@
2009-08-24Harden variables setting, prodded by alex@Antoine Jacoutot
Fix TMPDIR while here and remove the EDITOR definition, it is only used once. ok sthen@
2009-08-23Document all variables used by sysmerge.Antoine Jacoutot
"fine" jmc@
2009-08-18HEADS-UP: change the way sysmerge(8) runs by default.Antoine Jacoutot
Remove the '-a' switch (auto-mode) and make this behaviour the default. Add a new '-d' switch to get former default (full diff) mode. General idea ok for several. man page improvements from jmc@ ok jim@ oga@ sobrado@ ok sthen@ "sane defaults++ :)"
2009-08-17Don't try to move files that don't exist.Antoine Jacoutot
2009-08-16Properly initialize the array setting auto-upgradable files.Antoine Jacoutot
ok sthen@
2009-06-28Fix small regression introduced with symlinks handling.Antoine Jacoutot
spotted by jmc@
2009-06-28Remove useless blank space in output.Antoine Jacoutot
2009-06-28Teach sysmerge to deal with links (found the hard way when I realised IAntoine Jacoutot
missed some very much needed symlinks under /etc/fonts/conf.d/). The behaviour is the following, if a link does not exist: * in '-a' mode, it is created automatically * in normal mode, sysmerge will ask what you want to do If one wants to use '-a' mode while still being in control of what links are created, sysmerge.ignore can be used. "sounds good to" phessler@, ok sthen@
2009-06-14DBDIR resides in DESTDIR.Antoine Jacoutot
ok sthen@
2009-06-05tweak previous;Jason McIntyre
2009-06-04When in auto-mode, automatically install binary files (from the X set).Antoine Jacoutot
``please put it in'', pyr@
2009-05-13Remove unused args from getopts.Antoine Jacoutot
Remove top comments already duplicated in the man page. "sure" sthen@
2009-05-12simplify the descriptions of -a and -b; this has taken me and antoineJason McIntyre
an entire day of mailing to make this tweak ;( ok ajacoutot
2009-05-12- tweak the description of -aJason McIntyre
- remove -SX from usage() ok ajacoutot
2009-05-11This commit adds a new feature to sysmerge(8), usable in '-a' mode.Antoine Jacoutot
From now on, checksums of reference files (sets and/or src) will be stored under /var/db/sysmerge/{etcsum,xetcsum,srcsum} . This allows for "remembering last choice" several people have requested. This deprecates the need for -X and -S which have been removed (these switches may come back at some point for the auto-patch feature which halex@ proposed). It will only compare files which reference sources have changed since the last run and will attempt to automatically upgrade them to the newest version provided that they have no local changes. i.e. first run should dislay differences, second run should not display anything except if something changed between old and new sets/src. This way sysmerge can also warn you from files which may have been obsoleted. General idea taken from Net/FreeBSD but we're doing things differently. Intensively discussed with oga@, sthen@ and halex@ ok oga@ sthen@
2009-04-28Add the possibility to go back from merging mode to the previous menu.Antoine Jacoutot
Move unset NO_INSTALLED where it belongs, at the start of the function. Several minor cleanups. from Alexander Hall ok sthen@
2009-04-12Better output (i.e. /etc instead of //etc)Antoine Jacoutot
mostly from and ok sthen@
2009-04-12Treat /etc/hosts the same way as /etc/group and /etc/master.passwd: makeAntoine Jacoutot
it impossible to install a virgin one over the currently installed one. from Mitja Muzenic, with a tweak
2009-04-12When in automode, sysmerge will now automatically install filesAntoine Jacoutot
that only differ by CVS Id (adapted from FreeBSD mergemaster) Ground work on the man page, from jmc@ * do not duplicate info * rewordings * move some stuffs around ok jmc@ sthen@
2009-04-09Sort.Antoine Jacoutot
requested by jmc@
2009-04-09Add a hook to deal with special sendmail db files under /etc/mail/Antoine Jacoutot
Tweak some outputs and put interesting messages into sysmerge.log. export the NEED_NEWALIASES variable. inputs from and ok sthen@
2009-04-06Fix regression introduced in r1.32 where after running MAKEDEV sysmergeAntoine Jacoutot
would stop comparing files. breakage reported by and ok naddy@
2009-04-06new sentence, new line;Jason McIntyre
2009-04-06Add a report summary file, ${WRKDIR}/sysmerge.log, that will include allAntoine Jacoutot
worthy post run information instead of spreading info into several files. Tweak some output while here. Enchance description for the -S and -X options; thanks to sthen@ and jmc@ for finding the correct wording... it was not as easy as it seems. Fix a typo in the man page, spotted by jmc@ ok sthen@ jmc@
2009-03-27Mitigate the risk of leaving the system in an inconsistent stateAntoine Jacoutot
when a "special" file has been installed (e.g. master.passwd) but sysmerge was interrupted: we now run the corresponding command right after installing the file and not at the end of sysmerge run. When DESTDIR is set and a new aliases file has been installed, try to run newaliases from chrooted DESTDIR. input from and ok sthen@
2009-03-25Several cleanups:Antoine Jacoutot
* constistency in redirections (and fix a wrong one) * enclose variables * several UPPER -> lowercase rewordings * add "" on conditionals (suggested by jared r r spiegel a while ago) * use cmp instead of md5 for sets comparison (from sthen@) * some man page rewordings from sthen@ ok sthen@
2009-03-25You can now feed sysmerge with an etcXX and/or xetcXX tarball(s)Antoine Jacoutot
corresponding to your current snapshot or release. Any file that was modified between this old reference and the new one *and* that you did not change locally will automatically be updated to the new version. Make sure we don't compare files that have not changed between old and new tarball (from Alexander Hall). man page flushing, tweaking, rewording and enhancing from jmc@ Several people came up with this request or alike, thanks to them. looked over and tested by several ok weerd@
2009-02-17- always run pwd_mdb, newaliases, MAKEDEV and cap_mkdb even when not inAntoine Jacoutot
auto-mode so that the system is not left in an inconsistent state - unify messages - tweak manpage according to new behavior based on an initial patch from matthieu@ ok matthieu@
2009-02-17- better outputAntoine Jacoutot
ok sthen@
2008-12-17more on editors; ok ajacoutotJason McIntyre
2008-12-16- make it possible to edit a merged file using an external editor ;Antoine Jacoutot
useful when 'sdiff eb' does not cope with one's needs. idea and input from weerd@ ok weerd@ sthen@
2008-12-15Cleanup the temporary directory in all the error paths.Federico G. Schwindt
ajacoutot@ ok.
2008-09-17- when merging a file, add a key to see a diff between the merged fileAntoine Jacoutot
and the new or old one requested by todd@ months ago "I like the idea" fgsch@, "should be in" todd@
2008-09-12- make it possible to use a user defined MERGE_CMD instead of sdiffAntoine Jacoutot
mostly from andreas@ man page enhancing by jmc@ ok andreas@
2008-09-12- use shell built-in getopts instead of getopt(1)Antoine Jacoutot
- cleanup by adding usage and error_rm_wrkdir functions feedbacks from guenther@ sthen@ and jared r r spiegel, thank you! ok sthen
2008-09-06- don't list *.merged files in the "remaining for you to merge by hand"Antoine Jacoutot
list, it's very confusing. ok sthen@
2008-09-02- make sure they are no sendmail leftovers in src when sysmerge stopsAntoine Jacoutot
unexpectedly feedback and ok sthen@
2008-08-29- prevent sysmerge from installing a virgin master.passwd and groupAntoine Jacoutot
files (only allow delete or merge+install); requested by nick@ no objections from laurent@ krw@ oga@ ok sthen@ nick@
2008-07-21Leave PATH alone.Antoine Jacoutot
noticed by and ok deraadt@
2008-07-10Fix "etc source" output when not using a tarballAntoine Jacoutot
ok "bien sur!" sthen@
2008-07-08Typo in summarize output.Antoine Jacoutot
ok sthen@
2008-07-04Teach sysmerge to retrieve {etc,xetc}*.tgz files from FTP/HTTPStuart Henderson
paths using ftp(1). Thanks ajacoutot and jmc for suggestions. ok ajacoutot jmc, no objection deraadt
2008-07-04some small text improvements; ok ajacoutotJason McIntyre
2008-06-13- don't ask for yesno confirmation when running in automatic modeAntoine Jacoutot
- allow comments in sysmerge.ignore suggested by, feedback from and ok naddy@
2008-06-13- add support for ignoring files and directories from comparisonAntoine Jacoutot
through an optionnal /etc/sysmerge.ignore file requested by many man page tweak from jmc@ /etc/changelist addition suggested by sthen@ ok sthen@ jdixon@ jmc@ naddy@
2008-06-13- always force full file check on fbtab, login.conf, sysctl.conf andAntoine Jacoutot
ttys since they are created using helper scripts and comparing CVS Id would not be accurate original diff from sthen@ man page tweak from jmc@ ok sthen@ jdixon@ jmc@ naddy@
2008-06-10Additionnal checks on the file names supplied for -s and -x.Pierre-Yves Ritschard
Based on a diff by ajacoutot@, ok jdixon@ and sthen@ on a previous diff, ok ajacoutot@.
2008-06-09- add a sanity check on tarballs name to ensure we're not feedingAntoine Jacoutot
sysmerge with unrelated sets ok sthen@ pyr@ jdixon@
2008-06-09- encourage people to use the same source as was used to upgrade systemAntoine Jacoutot
binaries so that some etc files don't get forgotten in the process discussed with kurt@ tweaks and ok jmc@