Up to [cvs.NetBSD.org] / pkgsrc / sysutils / etcmanage
Request diff between arbitrary revisions
Default branch: MAIN
Revision 1.3 / (download) - annotate - [select for diffs], Thu Oct 9 12:49:21 2014 UTC (7 years, 7 months ago) by gdt
CVS Tags: pkgsrc-2022Q1-base, pkgsrc-2022Q1, pkgsrc-2021Q4-base, pkgsrc-2021Q4, pkgsrc-2021Q3-base, pkgsrc-2021Q3, pkgsrc-2021Q2-base, pkgsrc-2021Q2, pkgsrc-2021Q1-base, pkgsrc-2021Q1, pkgsrc-2020Q4-base, pkgsrc-2020Q4, pkgsrc-2020Q3-base, pkgsrc-2020Q3, pkgsrc-2020Q2-base, pkgsrc-2020Q2, pkgsrc-2020Q1-base, pkgsrc-2020Q1, pkgsrc-2019Q4-base, pkgsrc-2019Q4, pkgsrc-2019Q3-base, pkgsrc-2019Q3, pkgsrc-2019Q2-base, pkgsrc-2019Q2, pkgsrc-2019Q1-base, pkgsrc-2019Q1, pkgsrc-2018Q4-base, pkgsrc-2018Q4, pkgsrc-2018Q3-base, pkgsrc-2018Q3, pkgsrc-2018Q2-base, pkgsrc-2018Q2, pkgsrc-2018Q1-base, pkgsrc-2018Q1, pkgsrc-2017Q4-base, pkgsrc-2017Q4, pkgsrc-2017Q3-base, pkgsrc-2017Q3, pkgsrc-2017Q2-base, pkgsrc-2017Q2, pkgsrc-2017Q1-base, pkgsrc-2017Q1, pkgsrc-2016Q4-base, pkgsrc-2016Q4, pkgsrc-2016Q3-base, pkgsrc-2016Q3, pkgsrc-2016Q2-base, pkgsrc-2016Q2, pkgsrc-2016Q1-base, pkgsrc-2016Q1, pkgsrc-2015Q4-base, pkgsrc-2015Q4, pkgsrc-2015Q3-base, pkgsrc-2015Q3, pkgsrc-2015Q2-base, pkgsrc-2015Q2, pkgsrc-2015Q1-base, pkgsrc-2015Q1, pkgsrc-2014Q4-base, pkgsrc-2014Q4, HEAD
Changes since 1.2: +2 -1 lines
Diff to previous 1.2 (colored)
Update to 0.9.1. Note that this is a fairly complete rototill from the previous version. However, there are now tests (which pass), and I've been running this version since June. New in Version 0.9.1, released 2014-06-09 * When installing a new config file, create the config file's parent directories if they don't exist. If a directory is created, the permissions and ownership are copied from the corresponding directory in the upstream config file hierarchy. * Add a new --version (-V) option. * Add a new --help (-h) option. * etcmanage now exits with an error if an unsupported argument is specified. * 'etcmanage --remove' no longer warns if the given file was not already in the database. New in Version 0.9, released 2014-05-21 * Use Perl's Digest::MD5 module instead of the md5 utility for compatibility with other operating systems. * Add a new --destdir option. If specified, the filenames for all operations will be prefixed with the provided directory name. This makes it possible to use etcmanage on a chroot or DESTDIR environment. * Don't automatically update the hash stored in the database if a live config file is modified and upstream is changed to match. This matches the behavior when both the live file and upstream file have been deleted (the record isn't removed from the database) and it provides an important invariant: If the state of the live config file does not match the state of the database record, nothing is modified. * Fix handling of removed files during 'etcmanage --update': If a managed file is deleted, treat it as a manual modification---don't restore the upstream file. * Improve logging: - Log problems updating config files to standard error (STDERR) instead of standard output (STDOUT). - During 'etcmanage --update', log "UNMANAGED_EQ_UPSTREAM" when encoutering a new upstream file that is already installed with identical contents. - During 'etcmanage --update', log "UNMANAGED_NEQ_UPSTREAM" to STDERR when encoutering a new upstream file that is already installed but has different contents. - Log three distinct types of "MISSING" messages instead of one: * "MISSING" is logged when the hash of the upstream file matches the database entry * "MISSING;UPSTREAM_WITHDRAWN" is logged when the upstream file doesn't exist * "MISSING;UPSTREAM_DIFFERENT" is logged when the hash of the upstream file differs from the hash stored in the database - Use the term "MODIFIED" instead of "CONFLICT" and split it into three distinct types of "MODIFIED" messages instead of one: * "MODIFIED" is logged when the hash of the upstream file matches the database entry * "MODIFIED;UPSTREAM_WITHDRAWN" is logged when the upstream file doesn't exist * "MODIFIED;UPSTREAM_DIFFERENT" is logged when the hash of the upstream file differs from the hash stored in the database * During 'etcmanage --update <dir>', visit all files in '<dir>', not just '<dir>/etc'. This makes it possible to use etcmanage to manage files outside of '/etc', but is unfortunately not backwards-compatible: 'etcmanage --update' can no longer be pointed to a DESTDIR containing a complete NetBSD build (or else all operating system files---not just config files---will be managed by etcmanage). * During 'etcmanage --generate-manifest <dir>', visit all files in '<dir>', not just '<dir>/etc'. This makes it easier to use etcmanage to manage files outside of '/etc', but is unfortunately not backwards-compatible: 'etcmanage --generate-manifest' can no longer be pointed to a DESTDIR containing a complete NetBSD build (or else all operating system files---not just config files---will be included in the manifest). * Add support for systems that don't have an /etc/services file or don't consider the /etc/services file to be a configuration file. * Fix command line parsing. It is now possible to specify multiple commands at once (including repeating a command) and they will be executed in the specified order. * Add a '--db' option to specify the database filename. * Add a new '--manual' command to mark a file as manually managed. This differs from '--remove' in that a future '--update' will never automatically cause the file to become managed. It also results in different log messages being printed when a config file has been modified, and these log messages are printed to STDOUT instead of STDERR (because they are expected conditions). * Refuse to add abnormal pathnames to the database. A pathname is considered abnormal if it has any of the following properties: - contains whitespace - begins with '#' - is the empty string - is relative - contains '/../', '/./', or superfluous slashes Pathnames with the first three properties in the above list cannot be represented in a manifest. Relative pathnames do not make sense (what are they relative to?). Pathnames with '/../', '/./', or superfluous slashes can result in unintentional duplicate database entries that conflict with each other. * Various code cleanups. * Various build system improvements.
Revision 1.2 / (download) - annotate - [select for diffs], Sat Dec 2 19:04:26 2006 UTC (15 years, 5 months ago) by gdt
CVS Tags: pkgsrc-2014Q3-base, pkgsrc-2014Q3, pkgsrc-2014Q2-base, pkgsrc-2014Q2, pkgsrc-2014Q1-base, pkgsrc-2014Q1, pkgsrc-2013Q4-base, pkgsrc-2013Q4, pkgsrc-2013Q3-base, pkgsrc-2013Q3, pkgsrc-2013Q2-base, pkgsrc-2013Q2, pkgsrc-2013Q1-base, pkgsrc-2013Q1, pkgsrc-2012Q4-base, pkgsrc-2012Q4, pkgsrc-2012Q3-base, pkgsrc-2012Q3, pkgsrc-2012Q2-base, pkgsrc-2012Q2, pkgsrc-2012Q1-base, pkgsrc-2012Q1, pkgsrc-2011Q4-base, pkgsrc-2011Q4, pkgsrc-2011Q3-base, pkgsrc-2011Q3, pkgsrc-2011Q2-base, pkgsrc-2011Q2, pkgsrc-2011Q1-base, pkgsrc-2011Q1, pkgsrc-2010Q4-base, pkgsrc-2010Q4, pkgsrc-2010Q3-base, pkgsrc-2010Q3, pkgsrc-2010Q2-base, pkgsrc-2010Q2, pkgsrc-2010Q1-base, pkgsrc-2010Q1, pkgsrc-2009Q4-base, pkgsrc-2009Q4, pkgsrc-2009Q3-base, pkgsrc-2009Q3, pkgsrc-2009Q2-base, pkgsrc-2009Q2, pkgsrc-2009Q1-base, pkgsrc-2009Q1, pkgsrc-2008Q4-base, pkgsrc-2008Q4, pkgsrc-2008Q3-base, pkgsrc-2008Q3, pkgsrc-2008Q2-base, pkgsrc-2008Q2, pkgsrc-2008Q1-base, pkgsrc-2008Q1, pkgsrc-2007Q4-base, pkgsrc-2007Q4, pkgsrc-2007Q3-base, pkgsrc-2007Q3, pkgsrc-2007Q2-base, pkgsrc-2007Q2, pkgsrc-2007Q1-base, pkgsrc-2007Q1, pkgsrc-2006Q4-base, pkgsrc-2006Q4, cwrapper, cube-native-xorg-base, cube-native-xorg
Changes since 1.1: +3 -1 lines
Diff to previous 1.1 (colored)
update to 0.3 new script BUILD-NetBSD which is a wrapper around build.sh, setting OBJDIR, etc., and intended to start from a plain source tree and end up with a cdrom image, with or without x. creates a manifest for etcmanage. It also has an install option which does a merge of /etc with etcmanage, but this needs to be done on the same machine as the build. new script INSTALL-NetBSD which takes a releasedir and does a binary upgrade (kernel, userland, merges etc with etcmange, but DOES NOT TOUCH BOOTBLOCKS). Can be run on a machine other than the build host.
Revision 18.104.22.168 / (download) - annotate - [select for diffs] (vendor branch), Wed Mar 8 20:51:47 2006 UTC (16 years, 2 months ago) by gdt
CVS Tags: pkgsrc-2006Q3-base, pkgsrc-2006Q3, pkgsrc-2006Q2-base, pkgsrc-2006Q2, pkgsrc-2006Q1-base, pkgsrc-2006Q1, pkgsrc-20060308
Changes since 1.1: +0 -0 lines
Diff to previous 1.1 (colored)
etcmanage is used to update files in /etc on a BSD system automatically. The essential concept is that a file which was installed automatically and has not been changed will be updated with new versions, and modified files will not be changed. This is 0.2
Revision 1.1 / (download) - annotate - [select for diffs], Wed Mar 8 20:51:47 2006 UTC (16 years, 2 months ago) by gdt
This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.