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