]>
Commit | Line | Data |
---|---|---|
a659c698 JB |
1 | # |
2 | # Conditional build: | |
7bc9b641 | 3 | %bcond_with order # with experimental order patch |
cddf3011 | 4 | |
1e275f79 | 5 | %define rel 1 |
67c819dc ER |
6 | #define subver 37 |
7 | #define githash 2276dac77 | |
fef1a461 | 8 | %define php_min_version 7.3.0 |
c96aabf5 | 9 | Summary: Eventum Issue / Bug tracking system |
9f49cf47 | 10 | Summary(pl.UTF-8): Eventum - system śledzenia spraw/błędów |
bb01d732 | 11 | Name: eventum |
ae60044c | 12 | Version: 3.10.12 |
7665f424 | 13 | Release: %{?subver:1.%{subver}.%{?githash:g%{githash}.}}%{rel} |
0bd66721 | 14 | License: GPL v2+ |
6850abd9 | 15 | Group: Applications/WWW |
8985f5c2 | 16 | Source0: https://github.com/eventum/eventum/releases/download/v%{version}/%{name}-%{version}.tar.xz |
ae60044c | 17 | # Source0-md5: 0f2c9e99c7e0e913f3d1a471486da2eb |
8985f5c2 | 18 | #Source0: https://github.com/eventum/eventum/releases/download/snapshot/%{name}-%{version}-%{subver}-g%{githash}.tar.xz |
82121306 | 19 | Source1: %{name}-apache.conf |
cd719538 ER |
20 | Source2: %{name}-mail-queue.cron |
21 | Source3: %{name}-mail-download.cron | |
22 | Source4: %{name}-reminder.cron | |
23 | Source5: %{name}-monitor.cron | |
1cce3e61 | 24 | Source10: sphinx.crontab |
cfcdd0a9 ER |
25 | Source14: %{name}.logrotate |
26 | Source15: %{name}-lighttpd.conf | |
d0dabd47 ER |
27 | Source16: http://www.isocra.com/images/updown2.gif |
28 | # Source16-md5: deb6eeb2552ba757d3a949ed10c4107d | |
cc613bc9 | 29 | Source17: %{name}.tmpfiles |
4f627938 | 30 | Patch2: %{name}-order.patch |
7a906e31 ER |
31 | #Patch3: group-users.patch |
32 | #Patch4: https://github.com/glensc/eventum/compare/cf_escape.patch | |
14ff3418 | 33 | # packaging patches that probably never go upstream |
ac27ba92 | 34 | Patch100: %{name}-paths.patch |
cfcdd0a9 | 35 | Patch107: %{name}-gettext.patch |
3ca19d87 | 36 | Patch108: autoload.patch |
a6016bab ER |
37 | # some tests |
38 | Patch200: %{name}-fixed-nav.patch | |
1bc78cb2 | 39 | URL: https://github.com/eventum/eventum |
376f0835 | 40 | BuildRequires: gettext-tools |
5500a61e | 41 | BuildRequires: rpmbuild(macros) >= 1.654 |
4068cb73 | 42 | BuildRequires: sed >= 4.0 |
290540fe ER |
43 | BuildRequires: tar >= 1:1.22 |
44 | BuildRequires: xz | |
db2ce4e2 | 45 | Requires(post): sudo |
5132bae6 ER |
46 | Requires(postun): /usr/sbin/groupdel |
47 | Requires(postun): /usr/sbin/userdel | |
48 | Requires(pre): /bin/id | |
49 | Requires(pre): /usr/bin/getgid | |
50 | Requires(pre): /usr/sbin/groupadd | |
51 | Requires(pre): /usr/sbin/useradd | |
0b88d857 | 52 | Requires: fonts-TTF-RedHat-liberation |
01d8dfff | 53 | Requires: php(core) >= %{php_min_version} |
085aa6d4 | 54 | Requires: php(ds) |
2f331c68 | 55 | Requires: php(filter) |
2f331c68 ER |
56 | Requires: php(iconv) |
57 | Requires: php(imap) | |
58 | Requires: php(json) | |
59 | Requires: php(mbstring) | |
2f331c68 | 60 | Requires: php(pcre) |
75d6f458 | 61 | Requires: php(pdo_mysql) |
2f331c68 | 62 | Requires: php(session) |
5dbd4bf5 ER |
63 | Requires: php-Smarty >= 3.1 |
64 | Requires: php-Smarty-plugin-gettext | |
19d84727 | 65 | Requires: php-monolog >= 1.17.2 |
19d84727 | 66 | Requires: php-psr-Log >= 1.0.0-2 |
0b88d857 | 67 | Requires: phplot >= 5.8.0 |
bdf85dc8 | 68 | Requires: webapps |
f399f1c0 ER |
69 | Requires: webserver(access) |
70 | Requires: webserver(alias) | |
897bdb2c | 71 | Requires: webserver(indexfile) |
61351540 | 72 | Requires: webserver(php) >= 4.2.0 |
462ee1a6 | 73 | Suggests: localedb |
383eed8e | 74 | Suggests: php(openssl) |
06ddb94b | 75 | Suggests: webserver(setenv) |
5132bae6 ER |
76 | Provides: group(eventum) |
77 | Provides: user(eventum) | |
78 | Obsoletes: eventum-base < 3.0.3-1.305 | |
4e2cf70d ER |
79 | Obsoletes: eventum-route-drafts < 3.0.8-1.1 |
80 | Obsoletes: eventum-route-emails < 3.0.8-1.1 | |
81 | Obsoletes: eventum-route-notes < 3.0.8-1.1 | |
bd70ea88 | 82 | Conflicts: logrotate < 3.8.0 |
35fa3cf8 | 83 | BuildArch: noarch |
bb01d732 ER |
84 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
85 | ||
e608e003 | 86 | %define _noautoreq_pear .* |
1d760108 | 87 | %define _libdir %{_prefix}/lib/%{name} |
71f56750 | 88 | %define _appdir %{_datadir}/%{name} |
d1c44829 | 89 | %define _smartydir %{php_data_dir}/Smarty |
bdf85dc8 ER |
90 | %define _webapps /etc/webapps |
91 | %define _webapp %{name} | |
8a37ad9d ER |
92 | %define _webappdir %{_webapps}/%{_webapp} |
93 | %define _sysconfdir /etc/%{name} | |
bb01d732 ER |
94 | |
95 | %description | |
96 | Eventum is a user-friendly and flexible issue tracking system that can | |
97 | be used by a support department to track incoming technical support | |
98 | requests, or by a software development team to quickly organize tasks | |
a3a1480e | 99 | and bugs. |
bb01d732 | 100 | |
d8cfa9f0 JR |
101 | %description -l pl.UTF-8 |
102 | Eventum to przyjazny dla użytkownika system śledzenia spraw, który | |
103 | może być używany przez dział obsługi do śledzenia przychodzących żądań | |
104 | obsługi technicznej albo przez zespół tworzący oprogramowanie do | |
a3a1480e | 105 | szybkiej organizacji zadań i błędów. |
4068cb73 | 106 | |
ab983aaa | 107 | %package setup |
4068cb73 | 108 | Summary: Eventum setup package |
9f49cf47 | 109 | Summary(pl.UTF-8): Pakiet do wstępnej konfiguracji Eventum |
ab983aaa | 110 | Group: Applications/WWW |
5b165428 | 111 | Requires: %{name} = %{version}-%{release} |
ab983aaa ER |
112 | |
113 | %description setup | |
114 | Install this package to configure initial Eventum installation. You | |
115 | should uninstall this package when you're done, as it considered | |
116 | insecure to keep the setup files in place. | |
117 | ||
d8cfa9f0 JR |
118 | %description setup -l pl.UTF-8 |
119 | Ten pakiet należy zainstalować w celu wstępnej konfiguracji Eventum po | |
120 | pierwszej instalacji. Potem należy go odinstalować, jako że | |
121 | pozostawienie plików instalacyjnych mogłoby być niebezpieczne. | |
4068cb73 | 122 | |
d4a553ea ER |
123 | %package doc |
124 | Summary: Eventum documentation and Wiki | |
125 | Group: Documentation | |
126 | ||
127 | %description doc | |
1bc78cb2 | 128 | Eventum documentation and Wiki. |
d4a553ea | 129 | |
0da8e1f2 | 130 | %package mail-queue |
30689148 | 131 | Summary: Eventum mail queue process |
9f49cf47 | 132 | Summary(pl.UTF-8): Przetwarzanie kolejki poczty Eventum |
0da8e1f2 | 133 | Group: Applications/WWW |
5b165428 | 134 | Requires: %{name} = %{version}-%{release} |
0da8e1f2 ER |
135 | Requires: crondaemon |
136 | ||
137 | %description mail-queue | |
138 | Beginning with the first release of Eventum, emails are not directly | |
139 | sent out from the various scripts, but rather added to a mail queue | |
140 | table that is processed by a cron job. If an email cannot be sent, it | |
141 | will be marked as such in the mail queue log, and the cron job script | |
142 | will re-try to send it again the next time it runs. | |
143 | ||
144 | This package contains the cron job. | |
145 | ||
d8cfa9f0 JR |
146 | %description mail-queue -l pl.UTF-8 |
147 | Od pierwszego wydania Eventum poczta nie jest wysyłana bezpośrednio z | |
148 | różnych skryptów, lecz dodawana do kolejki przetwarzanej z crona. | |
149 | Jeśli poczta nie może być wysłana, będzie odpowiednio oznaczona w logu | |
150 | kolejki poczty, a skrypt z crona będzie próbował wysłać ją ponownie | |
151 | następnym razem. | |
0181746f | 152 | |
30689148 | 153 | Ten pakiet zawiera zadanie dla crona. |
154 | ||
ea084bcb | 155 | %package mail-download |
30689148 | 156 | Summary: Eventum email download |
9f49cf47 | 157 | Summary(pl.UTF-8): Ściąganie poczty Eventum |
ea084bcb | 158 | Group: Applications/WWW |
5b165428 | 159 | Requires: %{name} = %{version}-%{release} |
ea084bcb ER |
160 | Requires: crondaemon |
161 | ||
162 | %description mail-download | |
163 | In order for Eventum's email integration feature to work, you need to | |
164 | setup a cron job to run the script every so often. | |
165 | ||
166 | This package contains the cron job. | |
167 | ||
d8cfa9f0 JR |
168 | %description mail-download -l pl.UTF-8 |
169 | Aby integracja poczty elektronicznej w Eventum działała, trzeba | |
170 | ustawić zadanie crona, aby uruchamiał odpowiedni skrypt wystarczająco | |
171 | często. | |
0181746f JB |
172 | |
173 | Ten pakiet zawiera zadanie dla crona. | |
174 | ||
cd719538 ER |
175 | %package reminder |
176 | Summary: Eventum Reminder System | |
9f49cf47 | 177 | Summary(pl.UTF-8): System przypominania dla Eventum |
cd719538 | 178 | Group: Applications/WWW |
5b165428 | 179 | Requires: %{name} = %{version}-%{release} |
cd719538 ER |
180 | Requires: crondaemon |
181 | ||
182 | %description reminder | |
183 | The reminder system was designed with the objective as serving as a | |
184 | safe net for issues that need attention. Depending on what | |
185 | configuration you create, you may have several reminders (or alerts) | |
186 | be sent out whenever an issue needs attention, for whatever parameter | |
187 | you may deem necessary. | |
188 | ||
189 | This package contains the cron job. | |
190 | ||
d8cfa9f0 JR |
191 | %description reminder -l pl.UTF-8 |
192 | System przypominania został zaprojektowany tak, aby służył jako | |
193 | bezpieczna sieć dla spraw wymagających uwagi. W zależności od | |
194 | konfiguracji można ustawić różne przypominajki (lub alarmy) wysyłane | |
195 | przy każdej sprawie wymagającej uwagi lub przy parametrze, który można | |
196 | uważać za potrzebny. | |
6341f096 JB |
197 | |
198 | Ten pakiet zawiera zadanie dla crona. | |
199 | ||
cd719538 ER |
200 | %package monitor |
201 | Summary: Eventum Heartbeat Monitor | |
9f49cf47 | 202 | Summary(pl.UTF-8): Monitor życia dla Eventum |
cd719538 | 203 | Group: Applications/WWW |
5b165428 | 204 | Requires: %{name} = %{version}-%{release} |
cd719538 | 205 | Requires: crondaemon |
2f331c68 | 206 | Requires: php(posix) |
cd719538 ER |
207 | |
208 | %description monitor | |
209 | The heartbeat monitor is a feature designed for the administrator that | |
210 | wants to be alerted whenever a common problem in Eventum is detected, | |
211 | like the database server not being available anymore, or maybe when | |
212 | the recommended permissions for certain configuration files are | |
213 | changed. | |
214 | ||
215 | Please note that before running the heartbeat monitor, you may need to | |
216 | customize some of the checks to be appropriate for your own system, | |
217 | particularly the permission and file checks on | |
218 | Monitor::checkConfiguration(). | |
219 | ||
220 | This package contains the cron job. | |
221 | ||
d8cfa9f0 JR |
222 | %description monitor -l pl.UTF-8 |
223 | Monitor życia to funkcjonalność zaprojektowana dla administratora | |
224 | chcącego być alarmowanym przy każdym wykryciu popularnego problemu z | |
225 | Eventum, jak nie działanie serwera bazy danych albo zmiana uprawnień | |
226 | do plików konfiguracyjnych. | |
6341f096 | 227 | |
d8cfa9f0 JR |
228 | Należy zauważyć, że przed uruchomieniem tego monitora może być |
229 | konieczne dostosowanie niektórych testów do systemu, w szczególności | |
230 | testów uprawnień i plików w Monitor::checkConfiguration(). | |
6341f096 JB |
231 | |
232 | Ten pakiet zawiera zadanie dla crona. | |
233 | ||
1cce3e61 ER |
234 | %package sphinx |
235 | Summary: Eventum Sphinx Search | |
236 | Group: Applications/WWW | |
237 | Requires: %{name} = %{version}-%{release} | |
238 | Requires: crondaemon | |
239 | Requires: sphinx | |
240 | ||
241 | %description sphinx | |
242 | Sphinx search integration for Eventum. | |
243 | ||
244 | This package contains the cron job. | |
245 | ||
bb01d732 | 246 | %prep |
4b01e826 | 247 | %setup -q -n %{name}-%{version}%{?githash:-%{subver}-g%{githash}} |
5b165428 | 248 | |
fa6167ba ER |
249 | mv docs/examples . |
250 | ||
9487d524 | 251 | # bug fixes / features |
4f627938 | 252 | %{?with_order:%patch2 -p1} |
7a906e31 ER |
253 | #%patch3 -p0 |
254 | #%patch4 -p1 | |
7a906e31 | 255 | %{?with_order:cp -p %{SOURCE16} htdocs/images} |
a6016bab | 256 | #%patch200 -p1 |
ac27ba92 | 257 | |
1cce3e61 ER |
258 | # produce default sphinx config |
259 | # must be run before paths.patch | |
7a906e31 | 260 | %if 0 |
1cce3e61 ER |
261 | cat <<'EOF' > config/config.php |
262 | <?php | |
263 | define('APP_SQL_DBTYPE', 'mysql'); | |
264 | define('APP_SQL_DBHOST', 'localhost:/var/lib/mysql/mysql.sock'); | |
265 | define('APP_SQL_DBPORT', 3306); | |
266 | define('APP_SQL_DBNAME', 'eventum'); | |
267 | define('APP_SQL_DBUSER', 'mysql'); | |
268 | define('APP_SQL_DBPASS', ''); | |
269 | define('APP_TABLE_PREFIX', 'eventum_'); | |
270 | EOF | |
271 | php config/sphinx.conf.php > config/sphinx.conf | |
54b9a2df | 272 | rm config/config.php |
7a906e31 | 273 | %endif |
1cce3e61 | 274 | |
ac27ba92 ER |
275 | # packaging |
276 | %patch100 -p1 | |
ac27ba92 | 277 | %patch107 -p1 |
3ca19d87 | 278 | %patch108 -p1 |
0b3b58dd | 279 | |
54b9a2df ER |
280 | rm htdocs/.htaccess.dist |
281 | ||
1df90ad2 ER |
282 | # cleanup libs taken from system, everything else gets bundled |
283 | rm -r vendor/fonts/liberation | |
284 | rm -r vendor/monolog/monolog | |
1df90ad2 ER |
285 | rm -r vendor/phplot/phplot |
286 | rm -r vendor/psr/log | |
287 | rm -r vendor/smarty-gettext/smarty-gettext | |
288 | rm -r vendor/smarty/smarty | |
289 | rm -r vendor/sphinx/php-sphinxapi | |
c3fd3767 | 290 | |
9c8b19cb ER |
291 | %{__sed} -i '1s|^#!.*php\b|#!/usr/bin/php|' config/sphinx.conf.php bin/*.php |
292 | ||
5b165428 | 293 | # remove backups from patching as we use globs to package files to buildroot |
73c437a6 | 294 | find '(' -name '*~' -o -name '*.orig' ')' | xargs -r rm -v |
085e39c0 | 295 | |
465c3ab7 | 296 | %build |
ae3e48e6 | 297 | %{__make} -C localization |
465c3ab7 | 298 | |
bb01d732 ER |
299 | %install |
300 | rm -rf $RPM_BUILD_ROOT | |
cfc3bce6 | 301 | install -d \ |
6e3be5a3 | 302 | $RPM_BUILD_ROOT{%{_webappdir}/{custom_field,templates,workflow},%{_sysconfdir},%{_bindir},%{_sbindir},%{_libdir}} \ |
2b135b34 | 303 | $RPM_BUILD_ROOT/etc/{rc.d/init.d,cron.d,logrotate.d,sysconfig} \ |
64359d1c | 304 | $RPM_BUILD_ROOT/var/{run,lib,spool}/%{name} \ |
685fc383 | 305 | $RPM_BUILD_ROOT/var/log/{archive/,}%{name} \ |
ac6bab4c | 306 | $RPM_BUILD_ROOT/var/lib/%{name}/{routed_{emails,drafts,notes},storage} \ |
5c4473bf | 307 | $RPM_BUILD_ROOT/var/cache/%{name}/doctrine/proxies \ |
73de38a1 | 308 | $RPM_BUILD_ROOT%{systemdtmpfilesdir} |
cfc3bce6 | 309 | |
9de27aeb | 310 | %{__make} install-eventum install-localization \ |
ae3e48e6 | 311 | sysconfdir=%{_webappdir} \ |
7a906e31 | 312 | localedir=%{_localedir} \ |
ae3e48e6 | 313 | DESTDIR=$RPM_BUILD_ROOT |
da8d6134 | 314 | |
60ba10e2 | 315 | ln -s --relative $RPM_BUILD_ROOT{%{_webappdir},%{_appdir}/config} |
37f06e5c | 316 | |
bcb86d50 | 317 | cp -a vendor $RPM_BUILD_ROOT%{_appdir} |
3ca19d87 | 318 | |
29e8ea7c ER |
319 | # unsupported locale |
320 | %{__rm} -r $RPM_BUILD_ROOT%{_localedir}/ht | |
321 | ||
fa6167ba ER |
322 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} |
323 | cp -a examples/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
324 | ||
ae3e48e6 | 325 | %{?with_order:cp -a htdocs/ajax $RPM_BUILD_ROOT%{_appdir}/htdocs} |
9cdc5027 | 326 | |
f399f1c0 | 327 | touch $RPM_BUILD_ROOT%{_webappdir}/htpasswd |
1b5aae0f | 328 | cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_webappdir}/apache.conf |
87ca28ca | 329 | cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_webappdir}/httpd.conf |
1b5aae0f | 330 | cp -p %{SOURCE15} $RPM_BUILD_ROOT%{_webappdir}/lighttpd.conf |
1cce3e61 ER |
331 | |
332 | install -d $RPM_BUILD_ROOT/etc/sphinx | |
7a906e31 | 333 | #cp -p config/sphinx.conf $RPM_BUILD_ROOT/etc/sphinx/%{name}.conf |
858c6f2a | 334 | cp -p config/sphinx.conf.php $RPM_BUILD_ROOT%{_webappdir} |
ae3e48e6 | 335 | |
1b5aae0f ER |
336 | cp -p %{SOURCE2} $RPM_BUILD_ROOT/etc/cron.d/%{name}-mail-queue |
337 | cp -p %{SOURCE3} $RPM_BUILD_ROOT/etc/cron.d/%{name}-mail-download | |
338 | cp -p %{SOURCE4} $RPM_BUILD_ROOT/etc/cron.d/%{name}-reminder | |
339 | cp -p %{SOURCE5} $RPM_BUILD_ROOT/etc/cron.d/%{name}-monitor | |
1cce3e61 | 340 | cp -p %{SOURCE10} $RPM_BUILD_ROOT/etc/cron.d/%{name}-sphinx |
ae3e48e6 | 341 | |
1b5aae0f | 342 | cp -p %{SOURCE14} $RPM_BUILD_ROOT/etc/logrotate.d/%{name} |
2b135b34 | 343 | |
92bc2f5d | 344 | cp -p %{SOURCE17} $RPM_BUILD_ROOT%{systemdtmpfilesdir}/%{name}.conf |
cc613bc9 | 345 | |
600d96a0 | 346 | %find_lang %{name} |
c1e74aa1 | 347 | |
bb01d732 ER |
348 | %clean |
349 | rm -rf $RPM_BUILD_ROOT | |
350 | ||
01b84746 | 351 | %pre |
5132bae6 ER |
352 | %groupadd -g 146 %{name} |
353 | %useradd -u 146 -d /var/lib/%{name} -g %{name} -c "Eventum User" %{name} | |
01b84746 ER |
354 | %addusertogroup http %{name} |
355 | ||
82121306 | 356 | %post |
686306de ER |
357 | # create empty ghost files |
358 | # these permissions ensure the logs are write only | |
359 | for a in \ | |
360 | errors.log login_attempts.log \ | |
2df0528f | 361 | eventum.log \ |
7b26fd71 | 362 | auth.log cli.log \ |
686306de ER |
363 | ; do |
364 | test -f /var/log/%{name}/$a && continue | |
365 | install -m 0620 -o root -g http /dev/null /var/log/%{name}/$a | |
08196fe2 ER |
366 | done |
367 | ||
00358bba | 368 | # run database update if configured |
9913db86 | 369 | test -s %{_webappdir}/setup.php && \ |
db2ce4e2 | 370 | sudo -H -u http -- %{_appdir}/bin/upgrade.php || : |
847270fe | 371 | |
da8d6134 | 372 | # nuke Smarty templates cache after upgrade |
b452fa5d | 373 | rm -f /var/cache/eventum/smarty/*.php |
da8d6134 | 374 | |
4a751c1a ER |
375 | # Restart webserver on upgrade to get .mo translations reloaded. |
376 | # actually php engines "php-fcgi" and "php-fpm" needed only, apache is restarted anyway via webapp trigger. | |
114241d7 ER |
377 | %php_webserver_restart |
378 | ||
5132bae6 | 379 | %postun |
01b84746 | 380 | if [ "$1" = "0" ]; then |
a6d2ad69 | 381 | %userremove %{name} |
1f52d1fe | 382 | %groupremove %{name} |
a6d2ad69 ER |
383 | fi |
384 | ||
94bd779f | 385 | %post setup |
9913db86 ER |
386 | chmod 660 %{_webappdir}/{setup,private_key,secret_key}.php |
387 | chown root:http %{_webappdir}/{setup,private_key,secret_key}.php | |
94bd779f ER |
388 | |
389 | %postun setup | |
9913db86 ER |
390 | if [ "$1" = "0" ] && [ -f %{_webappdir}/setup.php ]; then |
391 | chmod 640 %{_webappdir}/{setup,private_key,secret_key}.php | |
392 | chown root:http %{_webappdir}/{setup,private_key,secret_key}.php | |
94bd779f ER |
393 | fi |
394 | ||
09f58a75 | 395 | %triggerin -- apache1 < 1.3.37-3, apache1-base |
bdf85dc8 | 396 | %webapp_register apache %{_webapp} |
1d760108 | 397 | |
09f58a75 | 398 | %triggerun -- apache1 < 1.3.37-3, apache1-base |
bdf85dc8 | 399 | %webapp_unregister apache %{_webapp} |
1d760108 | 400 | |
87ca28ca | 401 | %triggerin -- apache < 2.2.0, apache-base |
bdf85dc8 | 402 | %webapp_register httpd %{_webapp} |
1d760108 | 403 | |
87ca28ca | 404 | %triggerun -- apache < 2.2.0, apache-base |
bdf85dc8 | 405 | %webapp_unregister httpd %{_webapp} |
1d760108 | 406 | |
f399f1c0 ER |
407 | %triggerin -- lighttpd |
408 | %webapp_register lighttpd %{_webapp} | |
409 | ||
410 | %triggerun -- lighttpd | |
411 | %webapp_unregister lighttpd %{_webapp} | |
412 | ||
600d96a0 | 413 | %files -f %{name}.lang |
bb01d732 | 414 | %defattr(644,root,root,755) |
371b276a | 415 | %attr(771,root,http) %dir %{_webappdir} |
f7d1e520 | 416 | %attr(751,root,http) %dir %{_webappdir}/crm |
e9a24d52 | 417 | %attr(751,root,http) %dir %{_webappdir}/custom_field |
f7d1e520 | 418 | %attr(751,root,http) %dir %{_webappdir}/partner |
e9a24d52 | 419 | %attr(751,root,http) %dir %{_webappdir}/templates |
94cd239c | 420 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/htpasswd |
e570944f | 421 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/private_key.php |
dee89c38 | 422 | %attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/secret_key.php |
94cd239c ER |
423 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/apache.conf |
424 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/httpd.conf | |
425 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/lighttpd.conf | |
e570944f | 426 | %attr(660,root,http) %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/setup.php |
d2e501e8 | 427 | |
7e9ea0b3 | 428 | %dir %attr(731,root,http) /var/log/%{name} |
e570944f | 429 | %attr(620,root,http) %ghost /var/log/%{name}/* |
3c6aa7a9 | 430 | %dir %attr(750,root,root) /var/log/archive/%{name} |
8fd047ac | 431 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name} |
35f9d6a3 | 432 | |
5132bae6 | 433 | %dir %{_appdir} |
37f06e5c ER |
434 | %{_appdir}/config |
435 | ||
7a906e31 | 436 | %dir %{_appdir}/bin |
e4872067 | 437 | %attr(755,root,root) %{_appdir}/bin/check_reminders.php |
59b9fac1 | 438 | %attr(755,root,root) %{_appdir}/bin/console.php |
e4872067 | 439 | %attr(755,root,root) %{_appdir}/bin/download_emails.php |
f2c60f9c | 440 | %attr(755,root,root) %{_appdir}/bin/export-issues.php |
acff2f42 | 441 | %attr(755,root,root) %{_appdir}/bin/extension.php |
bd0576dd | 442 | %attr(755,root,root) %{_appdir}/bin/ldapsync.php |
c316a9af | 443 | %attr(755,root,root) %{_appdir}/bin/migrate_storage_adapter.php |
e4872067 | 444 | %attr(755,root,root) %{_appdir}/bin/monitor.php |
7a906e31 | 445 | %attr(755,root,root) %{_appdir}/bin/process_all_emails.php |
e4872067 ER |
446 | %attr(755,root,root) %{_appdir}/bin/process_mail_queue.php |
447 | %attr(755,root,root) %{_appdir}/bin/truncate_mail_queue.php | |
6453eaf6 | 448 | %attr(755,root,root) %{_appdir}/bin/upgrade.php |
7a906e31 | 449 | |
4b01e826 | 450 | %{_appdir}/autoload.php |
ae3e48e6 | 451 | %{_appdir}/init.php |
1beb4932 | 452 | %{_appdir}/phinx.php |
cfc3bce6 ER |
453 | %dir %{_appdir}/htdocs |
454 | %{_appdir}/htdocs/*.php | |
da8d6134 | 455 | %{_appdir}/htdocs/*.ico |
67c819dc | 456 | %{_appdir}/htdocs/mix-manifest.json |
7bc9b641 | 457 | %{_appdir}/htdocs/ajax |
cfc3bce6 ER |
458 | %{_appdir}/htdocs/css |
459 | %{_appdir}/htdocs/customer | |
67c819dc | 460 | %{_appdir}/htdocs/fonts |
cfc3bce6 ER |
461 | %{_appdir}/htdocs/images |
462 | %{_appdir}/htdocs/js | |
463 | %{_appdir}/htdocs/manage | |
464 | %{_appdir}/htdocs/reports | |
465 | %{_appdir}/htdocs/rpc | |
9748a8c3 | 466 | %{_appdir}/templates |
847270fe | 467 | |
8be9fbff ER |
468 | %dir %{_appdir}/db |
469 | %dir %{_appdir}/db/migrations | |
470 | %{_appdir}/db/migrations/*.php | |
5c4473bf ER |
471 | %dir %{_appdir}/db/seeds |
472 | %{_appdir}/db/seeds/*.php | |
847270fe | 473 | |
8772b0d6 | 474 | %{_appdir}/res |
e8b7cc70 | 475 | %{_appdir}/src |
8772b0d6 | 476 | %{_appdir}/vendor |
ae3e48e6 ER |
477 | %dir %{_appdir}/lib |
478 | %{_appdir}/lib/eventum | |
00e339ff | 479 | |
5132bae6 ER |
480 | %dir %{_libdir} |
481 | ||
73de38a1 | 482 | %{systemdtmpfilesdir}/%{name}.conf |
5132bae6 ER |
483 | |
484 | %dir /var/lib/%{name} | |
e570944f | 485 | %dir %attr(730,root,http) /var/run/%{name} |
64359d1c | 486 | %dir %attr(730,root,http) /var/spool/%{name} |
e570944f | 487 | %dir %attr(730,root,http) /var/cache/%{name} |
5c4473bf ER |
488 | %dir %attr(730,root,http) /var/cache/%{name}/doctrine |
489 | %dir %attr(730,root,http) /var/cache/%{name}/doctrine/proxies | |
ab983aaa | 490 | |
89522a33 | 491 | # saved mail copies |
e570944f ER |
492 | %attr(770,root,http) %dir /var/lib/%{name}/routed_emails |
493 | %attr(770,root,http) %dir /var/lib/%{name}/routed_drafts | |
494 | %attr(770,root,http) %dir /var/lib/%{name}/routed_notes | |
ac6bab4c ER |
495 | # attachment storage |
496 | %attr(770,root,http) %dir /var/lib/%{name}/storage | |
d2e501e8 | 497 | |
ab983aaa ER |
498 | %files setup |
499 | %defattr(644,root,root,755) | |
cfc3bce6 | 500 | %{_appdir}/htdocs/setup |
0da8e1f2 | 501 | |
d4a553ea | 502 | %files doc |
06ddb94b | 503 | %defattr(644,root,root,755) |
d4a553ea ER |
504 | %doc docs/* |
505 | %{_examplesdir}/%{name}-%{version} | |
506 | ||
0da8e1f2 ER |
507 | %files mail-queue |
508 | %defattr(644,root,root,755) | |
ea084bcb ER |
509 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/%{name}-mail-queue |
510 | ||
511 | %files mail-download | |
512 | %defattr(644,root,root,755) | |
ea084bcb | 513 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/%{name}-mail-download |
5cb2e61d | 514 | |
cd719538 ER |
515 | %files reminder |
516 | %defattr(644,root,root,755) | |
cd719538 ER |
517 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/%{name}-reminder |
518 | ||
519 | %files monitor | |
520 | %defattr(644,root,root,755) | |
cd719538 ER |
521 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/%{name}-monitor |
522 | ||
1cce3e61 ER |
523 | %files sphinx |
524 | %defattr(644,root,root,755) | |
525 | %{_webappdir}/sphinx.conf.php | |
7a906e31 | 526 | #%attr(750,root,http) %config(noreplace) %verify(not md5 mtime size) /etc/sphinx/%{name}.conf |
1cce3e61 | 527 | %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/%{name}-sphinx |