From ea3ac462d1fea8a0f49bbe86bcf375309209efb8 Mon Sep 17 00:00:00 2001 From: Bram Matthys Date: Fri, 30 Sep 2016 13:41:44 +0200 Subject: [PATCH] Don't overwrite spamfilter.conf, badwords.conf and dccallow.conf during 'make install'. Reported by ivanp (#4755). --- Makefile.in | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Makefile.in b/Makefile.in index 92996a741..8547806e3 100644 --- a/Makefile.in +++ b/Makefile.in @@ -181,7 +181,16 @@ install: all $(INSTALL) -m 0700 -d @DOCDIR@ $(INSTALL) -m 0600 doc/Authors doc/coding-guidelines doc/tao.of.irc @DOCDIR@ $(INSTALL) -m 0700 -d @CONFDIR@ - $(INSTALL) -m 0600 doc/conf/*.conf @CONFDIR@ + $(INSTALL) -m 0600 doc/conf/*.default.conf @CONFDIR@ + -@if [ ! -f "@CONFDIR@/spamfilter.conf" ] ; then \ + $(INSTALL) -m 0600 doc/conf/spamfilter.conf @CONFDIR@ ; \ + fi + -@if [ ! -f "@CONFDIR@/badwords.conf" ] ; then \ + $(INSTALL) -m 0600 doc/conf/badwords.conf @CONFDIR@ ; \ + fi + -@if [ ! -f "@CONFDIR@/dccallow.conf" ] ; then \ + $(INSTALL) -m 0600 doc/conf/dccallow.conf @CONFDIR@ ; \ + fi $(INSTALL) -m 0700 -d @CONFDIR@/aliases $(INSTALL) -m 0600 doc/conf/aliases/*.conf @CONFDIR@/aliases $(INSTALL) -m 0700 -d @CONFDIR@/help