git: dma(8): install default conf files with installworld
John Marino
marino at crater.dragonflybsd.org
Mon Mar 2 07:00:48 PST 2015
commit 0cde307f0d0dcc48c7dc2c2bcd2525f3c3ae68dd
Author: John Marino <draco at marino.st>
Date: Mon Mar 2 14:45:55 2015 +0100
dma(8): install default conf files with installworld
Previously dma configure files were only installed with the
"make distribution" command. Additionally, the user was expected to
modify them as opposed to copies of them. This is probably why there
were part of distribution, in order to avoid overwriting the dma.conf
and auth.conf.
The negative side to this approach is that updated *.conf sample files
would never be installed. Since the dma.conf is actually completely
commented out, and since it doesn't fail in the absence of dma.conf,
these files aren't actually needed.
This commit installs /etc/dma/dma.conf.sample and /etc/dma/auth.conf.sample
files during installworld instead. Future updates to the *.conf.sample
files will overwrite them, but obviously /etc/dma/*.conf will not be
touched. Some of the sendfile conf files are provided as .sample, so the
concept is not new for DragonFly.
Summary of changes:
etc/Makefile | 1 -
libexec/dma/Makefile | 2 +-
libexec/dma/Makefile.etc | 15 ---------------
libexec/dma/default-conf/Makefile | 18 ++++++++++++++++++
4 files changed, 19 insertions(+), 17 deletions(-)
delete mode 100644 libexec/dma/Makefile.etc
create mode 100644 libexec/dma/default-conf/Makefile
http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/0cde307f0d0dcc48c7dc2c2bcd2525f3c3ae68dd
--
DragonFly BSD source repository
More information about the Commits
mailing list