Changeset View
Changeset View
Standalone View
Standalone View
head/mail/sympa/files/patch-Makefile.am
--- Makefile.am.orig 2017-09-11 13:22:01 UTC | --- Makefile.am.orig 2019-03-20 12:52:07 UTC | ||||
+++ Makefile.am | +++ Makefile.am | ||||
@@ -135,7 +135,7 @@ sympa_wizard.pl.inst: $(top_srcdir)/src/ | @@ -131,19 +131,19 @@ installdir: | ||||
installconfig: installdir sympa_wizard.pl.inst | |||||
installconfig: installdir | |||||
@echo "Installing basic configuration ..." | @echo "Installing basic configuration ..." | ||||
-@export PERL5LIB=$(DESTDIR)$(modulesdir); \ | - -@if [ ! -f $(DESTDIR)$(confdir)/sympa.conf ]; then \ | ||||
- if [ ! -f $(DESTDIR)$(confdir)/sympa.conf ]; then \ | - echo "installing sympa.conf"; \ | ||||
+ if [ ! -f $(DESTDIR)$(confdir)/sympa.conf.sample ]; then \ | - $(INSTALL) -m 640 sympa.conf $(DESTDIR)$(confdir); \ | ||||
echo "This looks like your first Sympa installation. The following wizard will assist you to create your first Sympa configuration.";\ | |||||
if [ ! -d $(DESTDIR)$(confdir) ]; then \ | |||||
$(INSTALL) -d -m 755 $(DESTDIR)$(confdir); \ | |||||
@@ -144,17 +144,17 @@ installconfig: installdir sympa_wizard.p | |||||
chgrp $(GROUP) $(DESTDIR)$(confdir); \ | |||||
$(PERL) sympa_wizard.pl.inst \ | |||||
--create sympa.conf \ | |||||
- --target $(DESTDIR)$(confdir)/sympa.conf; \ | |||||
- chown $(USER) $(DESTDIR)$(confdir)/sympa.conf; \ | - chown $(USER) $(DESTDIR)$(confdir)/sympa.conf; \ | ||||
- chgrp $(GROUP) $(DESTDIR)$(confdir)/sympa.conf; \ | - chgrp $(GROUP) $(DESTDIR)$(confdir)/sympa.conf; \ | ||||
+ --target $(DESTDIR)$(confdir)/sympa.conf.sample; \ | + -@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; \ | + chown $(USER) $(DESTDIR)$(confdir)/sympa.conf.sample; \ | ||||
+ chgrp $(GROUP) $(DESTDIR)$(confdir)/sympa.conf.sample; \ | + chgrp $(GROUP) $(DESTDIR)$(confdir)/sympa.conf.sample; \ | ||||
fi | fi | ||||
- -@if [ ! -f $(DESTDIR)$(sysconfdir)/data_structure.version ]; then \ | - -@if [ ! -f $(DESTDIR)$(sysconfdir)/data_structure.version ]; then \ | ||||
+ -@if [ ! -f $(DESTDIR)$(sysconfdir)/data_structure.version.sample ]; then \ | + -@if [ ! -f $(DESTDIR)$(sysconfdir)/data_structure.version.sample ]; then \ | ||||
cd $(DESTDIR)$(sysconfdir); \ | cd $(DESTDIR)$(sysconfdir); \ | ||||
- echo "# automatically created file" >> data_structure.version; \ | - echo "# automatically created file" >> data_structure.version; \ | ||||
- echo "# you should not modify it" >> data_structure.version; \ | - echo "# you should not modify it" >> data_structure.version; \ | ||||
- echo $(VERSION) >> data_structure.version; \ | - echo $(VERSION) >> data_structure.version; \ | ||||
- chown $(USER) data_structure.version; \ | - chown $(USER) data_structure.version; \ | ||||
- chgrp $(GROUP) data_structure.version; \ | - chgrp $(GROUP) data_structure.version; \ | ||||
+ echo "# automatically created file" >> data_structure.version.sample; \ | + echo "# automatically created file" >> data_structure.version.sample; \ | ||||
+ echo "# you should not modify it" >> data_structure.version.sample; \ | + echo "# you should not modify it" >> data_structure.version.sample; \ | ||||
+ echo $(VERSION) >> data_structure.version.sample; \ | + echo $(VERSION) >> data_structure.version.sample; \ | ||||
+ chown $(USER) data_structure.version.sample; \ | + chown $(USER) data_structure.version.sample; \ | ||||
+ chgrp $(GROUP) data_structure.version.sample; \ | + chgrp $(GROUP) data_structure.version.sample; \ | ||||
fi | fi | ||||
-@for dir in create_list_templates custom_actions custom_conditions \ | -@for dir in create_list_templates custom_actions custom_conditions \ | ||||
data_sources families global_task_models list_task_models \ | data_sources families tasks \ | ||||
@@ -184,9 +184,9 @@ nextstep: | |||||
@echo "#######################################################" | |||||
uninstall-hook: | |||||
- cd $(DESTDIR)$(confdir) && rm -f sympa.conf | |||||
- cd $(DESTDIR)$(confdir) && rm -f wwsympa.conf | |||||
- cd $(DESTDIR)$(sysconfdir) && rm -f data_structure.version | |||||
+ cd $(DESTDIR)$(confdir) && rm -f sympa.conf.sample | |||||
+ 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) |