blob: 3005eee81171555ce1397036a7b672c16955aecd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
|
$NetBSD: patch-aa,v 1.9 2017/03/20 10:24:02 bouyer Exp $
--- Makefile.in.orig 2016-06-17 16:54:15.000000000 +0200
+++ Makefile.in 2017-03-17 18:51:01.000000000 +0100
@@ -721,8 +721,6 @@
echo "Creating $(DESTDIR)$$dir"; \
$(INSTALL) -d -m 755 $(DESTDIR)$$dir; \
fi; \
- chown $(USER) $(DESTDIR)$$dir || /bin/true; \
- chgrp $(GROUP) $(DESTDIR)$$dir || /bin/true; \
done
sympa_wizard.pl.inst: $(top_srcdir)/src/sbin/sympa_wizard.pl.in Makefile
@@ -732,48 +730,17 @@
< $(top_srcdir)/src/sbin/sympa_wizard.pl.in > $@
installconfig: installdir sympa_wizard.pl.inst
- @echo "Installing basic configuration ..."
- export PERL5LIB=$(DESTDIR)$(modulesdir); \
- if [ ! -f $(DESTDIR)$(confdir)/sympa.conf ]; then \
- 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); \
- fi; \
- chown $(USER) $(DESTDIR)$(confdir) || /bin/true; \
- chgrp $(GROUP) $(DESTDIR)$(confdir) || /bin/true; \
- $(PERL) sympa_wizard.pl.inst \
- --create sympa.conf \
- --target $(DESTDIR)$(confdir)/sympa.conf \
- || /bin/true; \
- chown $(USER) $(DESTDIR)$(confdir)/sympa.conf || /bin/true; \
- chgrp $(GROUP) $(DESTDIR)$(confdir)/sympa.conf || /bin/true; \
- fi; \
- if [ ! -f $(DESTDIR)$(sysconfdir)/data_structure.version ]; 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 || /bin/true; \
- chgrp $(GROUP) data_structure.version || /bin/true; \
- fi
- @for dir in create_list_templates custom_actions custom_conditions \
- data_sources families global_task_models list_task_models \
- mail_tt2 scenari search_filters web_tt2; do \
- if [ ! -d $(DESTDIR)$(sysconfdir)/$$dir ] ; then \
- echo "Creating $(DESTDIR)$(sysconfdir)/$$dir"; \
- $(INSTALL) -d -m 755 $(DESTDIR)$(sysconfdir)/$$dir; \
- fi; \
- chown $(USER) $(DESTDIR)$(sysconfdir)/$$dir || /bin/true; \
- chgrp $(GROUP) $(DESTDIR)$(sysconfdir)/$$dir || /bin/true; \
- done
- @if [ ! -e $(DESTDIR)$(sysconfdir)/README ]; then \
- echo "Creating $(DESTDIR)$(sysconfdir)/README"; \
- $(SED) \
- -e 's|--sysconfdir--|$(sysconfdir)|' \
- -e 's|--defaultdir--|$(defaultdir)|' \
- etc_README > $(DESTDIR)$(sysconfdir)/README; \
- chmod 444 $(DESTDIR)$(sysconfdir)/README; \
- fi
+ if [ ! -d $(DESTDIR)$(prefix)/share/examples/sympa ]; then \
+ $(INSTALL) -d -m 755 $(DESTDIR)$(prefix)/share/examples/sympa; \
+ fi;\
+ env PERL5LIB=$(DESTDIR)$(prefix)/sympa/bin $(DESTDIR)$(sbindir)/sympa_wizard.pl \
+ --create sympa.conf \
+ --target $(DESTDIR)$(prefix)/share/examples/sympa/sympa.conf \
+ || true; \
+ cd $(DESTDIR)$(prefix)/share/examples/sympa; \
+ echo "# automatically created file" >> data_structure.version; \
+ echo "# you should not modify it" >> data_structure.version; \
+ echo $(VERSION) >> data_structure.version
nextstep:
@echo ""
@@ -796,12 +763,6 @@
@echo "#######################################################"
importantchanges:
- if test -f $(top_srcdir)/previous_sympa_version; then \
- export PREVIOUS=`$(CAT) $(top_srcdir)/previous_sympa_version`; \
- fi; \
- $(PERL) $(top_srcdir)/important_changes.pl \
- --current=$(VERSION) \
- --previous=$${PREVIOUS};
uninstall-hook:
rm -f $(DESTDIR)$(confdir)/sympa.conf
|