diff options
Diffstat (limited to 'net-mgmt/pnp/files/patch-0010-dont-overwrite-configs')
-rw-r--r-- | net-mgmt/pnp/files/patch-0010-dont-overwrite-configs | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/net-mgmt/pnp/files/patch-0010-dont-overwrite-configs b/net-mgmt/pnp/files/patch-0010-dont-overwrite-configs new file mode 100644 index 000000000000..f48cd2bd1666 --- /dev/null +++ b/net-mgmt/pnp/files/patch-0010-dont-overwrite-configs @@ -0,0 +1,45 @@ +From cccbb033458f205ac74e11babe5021bc7a3ade3c Mon Sep 17 00:00:00 2001 +From: Eygene Ryabinkin <rea-fbsd@codelabs.ru> +Date: Wed, 17 Nov 2010 19:47:16 +0300 +Subject: [PATCH 1/3] Do not overwrite configuration files + +Install all configuration files as *-sample. + +Signed-off-by: Eygene Ryabinkin <rea-fbsd@codelabs.ru> +--- + sample-config/Makefile.in | 8 +++----- + 1 files changed, 3 insertions(+), 5 deletions(-) + +diff --git a/sample-config/Makefile.in b/sample-config/Makefile.in +index 883345c..1eac2c1 100644 +--- a/sample-config/Makefile.in ++++ b/sample-config/Makefile.in +@@ -31,14 +31,12 @@ distclean: clean + devclean: distclean + + install: +- -rm -f $(DESTDIR)$(HTMLDIR)/conf/config.php +- + $(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(SYSCONFDIR) + $(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(SYSCONFDIR)/check_commands + $(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(SYSCONFDIR)/pages + $(INSTALL) -m 644 $(INSTALL_OPTS) pnp/pnp4nagios_release $(DESTDIR)$(SYSCONFDIR) +- $(INSTALL) -m 644 $(INSTALL_OPTS) pnp/config.php $(DESTDIR)$(SYSCONFDIR) +- $(INSTALL) -m 644 $(INSTALL_OPTS) pnp/background.pdf $(DESTDIR)$(SYSCONFDIR) ++ $(INSTALL) -m 644 $(INSTALL_OPTS) pnp/config.php $(DESTDIR)$(SYSCONFDIR)/config.php-sample ++ $(INSTALL) -m 644 $(INSTALL_OPTS) pnp/background.pdf $(DESTDIR)$(SYSCONFDIR)/background.pdf-sample + + install-config: + +@@ -46,7 +44,7 @@ install-config: + $(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(SYSCONFDIR)/check_commands + $(INSTALL) -m 755 $(INSTALL_OPTS) -d $(DESTDIR)$(SYSCONFDIR)/pages + +- $(INSTALL) -m 644 $(INSTALL_OPTS) pnp/config.php $(DESTDIR)$(SYSCONFDIR) ++ $(INSTALL) -m 644 $(INSTALL_OPTS) pnp/config.php $(DESTDIR)$(SYSCONFDIR)/config.php-sample + $(INSTALL) -m 644 $(INSTALL_OPTS) pnp/process_perfdata.cfg-sample $(DESTDIR)$(SYSCONFDIR) + $(INSTALL) -m 644 $(INSTALL_OPTS) pnp/rra.cfg-sample $(DESTDIR)$(SYSCONFDIR) + $(INSTALL) -m 644 $(INSTALL_OPTS) misccommands.cfg-sample $(DESTDIR)$(SYSCONFDIR) +-- +1.7.2.1 + |