summaryrefslogtreecommitdiff
path: root/Makefile.am
blob: 5fe7fb1aa54f0946dff53883eb26fcdd03fa5bd8 (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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
EXTRA_DIST =
CLEANFILES =

@distribution@

do_subst = sed \
	-e 's,[@]prefix[@],@prefix@,g' \
	-e 's,[@]phpdir[@],$(phpdir),g' \
	-e 's,[@]localstatedir[@],$(localstatedir),g'

noinst_HEADERS = @PACKAGE@.spec

WSTOPLEVEL_FILES = www/favicon.ico

wstopleveldir = $(wsdocrootdir)
wstoplevel_DATA = $(WSTOPLEVEL_FILES)

WSADMIN_FILES = www/admin/index.php \
	www/admin/logout.php \
	www/admin/style.css 

wsadmindir = $(wsdocrootdir)/admin
wsadmin_DATA = $(WSADMIN_FILES)

WSADDRESSBOOK_FILES = www/admin/addressbook/addr.php \
	www/admin/addressbook/index.php

wsaddressbookdir   = $(wsadmindir)/addressbook
wsaddressbook_DATA = $(WSADDRESSBOOK_FILES)

WSADMINISTRATOR_FILES = www/admin/administrator/admin.php \
	www/admin/administrator/index.php

wsadminstratordir = $(wsadmindir)/administrator
wsadminstrator_DATA = $(WSADMINISTRATOR_FILES)

WSDISTRIBUTIONLIST_FILES = www/admin/distributionlist/index.php \
	www/admin/distributionlist/list.php

wsdistributionlistdir = $(wsadmindir)/distributionlist
wsdistributionlist_DATA = $(WSDISTRIBUTIONLIST_FILES)

WSKOLAB_FILES = www/admin/kolab/erfrakon.php \
	www/admin/kolab/index.php \
	www/admin/kolab/versions.php \
	www/admin/kolab/intevation.php \
	www/admin/kolab/codefusion.php \
	www/admin/kolab/kdab.php \
	www/admin/kolab/kde.php

wskolabdir = $(wsadmindir)/kolab
wskolab_DATA = $(WSKOLAB_FILES)

WSMAINTAINER_FILES = www/admin/maintainer/maintainer.php \
	www/admin/maintainer/index.php

wsmaintainerdir = $(wsadmindir)/maintainer
wsmaintainer_DATA = $(WSMAINTAINER_FILES)

WSPICS_FILES = www/admin/pics/erfrakon.png \
	www/admin/pics/codefusion.png \
	www/admin/pics/intevation_logo.png \
	www/admin/pics/kdab.png \
	www/admin/pics/kde.jpg \
	www/admin/pics/kolab_logo.png

wspicsdir = $(wsadmindir)/pics
wspics_DATA = $(WSPICS_FILES)

WSSERVICE_FILES = www/admin/service/index.php

wsservicedir = $(wsadmindir)/service
wsservice_DATA = $(WSSERVICE_FILES)

WSsharedfolder_FILES = www/admin/sharedfolder/sf.php \
	www/admin/sharedfolder/index.php

wssharedfolderdir = $(wsadmindir)/sharedfolder
wssharedfolder_DATA = $(WSsharedfolder_FILES)

WSUSER_FILES = www/admin/user/forward.php \
	www/admin/user/index.php \
	www/admin/user/user.php \
	www/admin/user/vacation.php \
	www/admin/user/deliver.php

wsuserdir = $(wsadmindir)/user
wsuser_DATA = $(WSUSER_FILES)

phpadmindir = $(phpdir)/admin

php/admin/include/mysmarty.php: Makefile php/admin/include/mysmarty.php.in
	$(mkinstalldirs) php/admin/include
	$(do_subst) <$(srcdir)/php/admin/include/mysmarty.php.in >$@
CLEANFILES += php/admin/include/mysmarty.php
EXTRA_DIST += php/admin/include/mysmarty.php.in

PHP_INCLUDES = php/admin/include/menu.php \
	php/admin/include/debug.php \
	php/admin/include/Sieve.php \
	php/admin/include/form.class.php \
	php/admin/include/auth.class.php \
	php/admin/include/ldap.class.php \
	php/admin/include/sieveutils.class.php \
	php/admin/include/mysmarty.php \
	php/admin/include/headers.php \
	php/admin/include/authenticate.php

phpincludesdir = $(phpadmindir)/include
phpincludes_DATA = $(PHP_INCLUDES)

PHP_TEMPLATES_EN = php/admin/templates/en/maintainerdeleted.tpl \
	php/admin/templates/en/kde.tpl \
	php/admin/templates/en/addrdeleted.tpl \
	php/admin/templates/en/userdeleted.tpl \
	php/admin/templates/en/page.tpl \
	php/admin/templates/en/addresslist.tpl \
	php/admin/templates/en/sflistall.tpl \
	php/admin/templates/en/erfrakon.tpl \
	php/admin/templates/en/codefusion.tpl \
	php/admin/templates/en/adminlistall.tpl \
	php/admin/templates/en/login.tpl \
	php/admin/templates/en/maintainerlistall.tpl \
	php/admin/templates/en/kolab.tpl \
	php/admin/templates/en/versions.tpl \
	php/admin/templates/en/addrlistall.tpl \
	php/admin/templates/en/forward.tpl \
	php/admin/templates/en/deliver.tpl \
	php/admin/templates/en/distlistall.tpl \
	php/admin/templates/en/kdab.tpl \
	php/admin/templates/en/userlistall.tpl \
	php/admin/templates/en/service.tpl \
	php/admin/templates/en/welcome.tpl \
	php/admin/templates/en/systemaliasnagscreen.tpl \
	php/admin/templates/en/intevation.tpl \
	php/admin/templates/en/vacation.tpl \
	php/admin/templates/en/createuser.tpl \
	php/admin/templates/en/formcontainer.tpl \
	php/admin/templates/en/admindeleted.tpl

phptemplatesdir = $(phpadmindir)/templates
phptemplatesendir = $(phptemplatesdir)/en
phptemplatesen_DATA = $(PHP_TEMPLATES_EN)

EXTRA_DIST += $(WSTOPLEVEL_FILES) \
	$(WSADMIN_FILES) \
	$(WSADDRESSBOOK_FILES) \
	$(WSADMINISTRATOR_FILES) \
	$(WSDISTRIBUTIONLIST_FILES) \
	$(WSKOLAB_FILES) \
	$(WSMAINTAINER_FILES) \
	$(WSPICS_FILES) \
	$(WSSERVICE_FILES) \
	$(WSsharedfolder_FILES) \
	$(WSUSER_FILES) \
	$(PHP_INCLUDES) \
	$(PHP_TEMPLATES_EN)

install-data-hook:
	$(mkinstalldirs) $(DESTDIR)$(phpadmindir)/templates_c
	test -z "$(webserver_usr)" || chown $(webserver_usr) $(DESTDIR)$(phpadmindir)/templates_c