--- Makefile.am.orig 2019-06-21 03:28:22 UTC +++ Makefile.am @@ -132,24 +132,24 @@ installdir: installconfig: installdir @echo "Installing basic configuration ..." - -@if [ ! -f $(DESTDIR)$(confdir)/sympa.conf ]; then \ - echo "installing sympa.conf"; \ - $(INSTALL) -m 640 sympa.conf $(DESTDIR)$(confdir); \ - chown $(USER) $(DESTDIR)$(confdir)/sympa.conf; \ - chgrp $(GROUP) $(DESTDIR)$(confdir)/sympa.conf; \ + -@if [ ! -f $(DESTDIR)$(confdir)/sympa.conf.sample ]; then \ + echo "installing sympa.conf.sample"; \ + $(INSTALL) -m 640 sympa.conf $(DESTDIR)$(confdir)/sympa.conf.sample; \ + chown $(USER) $(DESTDIR)$(confdir)/sympa.conf.sample; \ + chgrp $(GROUP) $(DESTDIR)$(confdir)/sympa.conf.sample; \ fi @echo "Installing configuration template ..." -@echo "installing sympa.conf-dist"; \ - $(INSTALL) -m 644 -T sympa.conf-dist $(DESTDIR)$(confdir)/sympa.conf-dist; \ + $(INSTALL) -m 644 sympa.conf-dist $(DESTDIR)$(confdir)/sympa.conf-dist; \ chown $(USER) $(DESTDIR)$(confdir)/sympa.conf-dist; \ chgrp $(GROUP) $(DESTDIR)$(confdir)/sympa.conf-dist - -@if [ ! -f $(DESTDIR)$(sysconfdir)/data_structure.version ]; then \ + -@if [ ! -f $(DESTDIR)$(sysconfdir)/data_structure.version.sample ]; then \ cd $(DESTDIR)$(sysconfdir); \ - echo "# automatically created file" >> data_structure.version; \ - echo "# you should not modify it" >> data_structure.version; \ - echo $(VERSION) >> data_structure.version; \ - chown $(USER) data_structure.version; \ - chgrp $(GROUP) data_structure.version; \ + echo "# automatically created file" >> data_structure.version.sample; \ + echo "# you should not modify it" >> data_structure.version.sample; \ + echo $(VERSION) >> data_structure.version.sample; \ + chown $(USER) data_structure.version.sample; \ + chgrp $(GROUP) data_structure.version.sample; \ fi -@for dir in create_list_templates custom_actions custom_conditions \ data_sources families tasks \ @@ -197,10 +197,10 @@ nextstep: @echo "#######################################################" uninstall-hook: - cd $(DESTDIR)$(confdir) && rm -f sympa.conf + cd $(DESTDIR)$(confdir) && rm -f sympa.conf.sample cd $(DESTDIR)$(confdir) && rm -f sympa.conf-dist - cd $(DESTDIR)$(confdir) && rm -f wwsympa.conf - cd $(DESTDIR)$(sysconfdir) && rm -f data_structure.version + cd $(DESTDIR)$(confdir) && rm -f wwsympa.conf.sample + cd $(DESTDIR)$(sysconfdir) && rm -f data_structure.version.sample cd $(DESTDIR)$(sysconfdir) && rm -f README DISTCHECK_CONFIGURE_FLAGS = --enable-fhs --with-perl=$(PERL)