summaryrefslogtreecommitdiff
path: root/usr.sbin/sysmerge
AgeCommit message (Collapse)Author
2010-07-20Instead of checking for the *etcXX.tgz filename, check whether theAntoine Jacoutot
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@
2010-07-17When running in full diff mode, don't wait for user input beforeAntoine Jacoutot
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.
2010-07-06Add a blank line between sections in the output log, it's more readable.Antoine Jacoutot
2010-07-05Automatically install missing users and groups.Antoine Jacoutot
(does *NOT* touch existing users/groups) "I like it" from several... inputs from sthen@ and halex@ ok krw@ halex@ sthen@
2010-06-27Suggest a reboot if "sh MAKEDEV" was run or login.conf was modified.Antoine Jacoutot
reported by matthieu@ req. by and "I like it" deraadt@
2010-03-20s/sh/ksh/Antoine Jacoutot
2010-02-06Remove newly generated sum file(s) if it did not exist before and trapAntoine Jacoutot
is called. While here, change shebang to /bin/ksh to reflect reality and bump copyright year. "checkbashisms says yes. :-)" && ok sthen@
2010-01-13- move the separator so it's just displayed for files with diffs toStuart Henderson
review, specifically it's now not printed for every auto-installed file, giving a much more compact output. ok ajacoutot@ - skip the blank line before 'Comparison complete' suggested by ajacoutot.
2009-12-18xargs takes the whole list as argument, so no need to append.Antoine Jacoutot
ok sthen@
2009-12-18Add etcsum and xetcsum to IGNORE_FILES. Needed for upcoming change.Antoine Jacoutot
ok sthen@
2009-12-06Add /var/db/locate.database and /var/games/tetris.scores to IGNORE_FILES.Antoine Jacoutot
ok sthen@
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@