]> git.pld-linux.org Git - packages/eventum.git/blame - eventum.spec
- converted to UTF-8
[packages/eventum.git] / eventum.spec
CommitLineData
bb01d732
ER
1# TODO
2# - discard bundled packages (from INSTALL):
3# - JpGraph 1.5.3 (last GPL version)
bb01d732
ER
4# - dTree 2.0.5 (http://www.destroydrop.com/javascript/tree/)
5# - dynCalendar.js (http://www.phpguru.org/dyncalendar.html)
6# - overLIB 3.5.1 (http://www.bosrup.com/web/overlib/)
7# - A few other small javascript libraries
5d2f681c 8# - 64bit platforms beware? http://bugs.php.net/bug.php?id=30215 (it's actually Smarty related problem)
a659c698
JB
9#
10# Conditional build:
7492ce03 11%bcond_with qmail # build the router-qmail subpackage
cddf3011 12
fea7989f 13#define _snap 20060921
77b3db3b 14%define _svn 20070209.3245
b8b72891 15#define _rc RC3
77b3db3b 16%define _rel 5.181
87d15bba 17
b3857e8b 18%include /usr/lib/rpm/macros.php
c96aabf5 19Summary: Eventum Issue / Bug tracking system
d8cfa9f0 20Summary(pl.UTF-8): Eventum - system śledzenia spraw/błędów
bb01d732 21Name: eventum
644e62e1 22Version: 1.7.1
fea7989f 23Release: %{?_rc:%{_rc}.}%{_rel}%{?_snap:.%{_snap}}%{?_svn:.%{_svn}}
6850abd9
ER
24License: GPL
25Group: Applications/WWW
fea7989f
ER
26#Source0: http://downloads.mysql.com/snapshots/eventum/%{name}-nightly-%{_snap}.tar.gz
27Source0: %{name}-%{_svn}.tar.bz2
77b3db3b 28# Source0-md5: a2f0e18bfa2b236e5ed39befa4cede54
82121306 29Source1: %{name}-apache.conf
cd719538
ER
30Source2: %{name}-mail-queue.cron
31Source3: %{name}-mail-download.cron
32Source4: %{name}-reminder.cron
33Source5: %{name}-monitor.cron
34Source6: %{name}-cvs.php
35Source7: %{name}-irc.php
36Source8: %{name}-irc.init
73f6a3e6 37Source9: %{name}-irc.sysconfig
31dabce6 38
a6d2ad69 39Source11: %{name}-router-qmail.sh
31dabce6 40
1c9d2c71 41Source13: %{name}-upgrade.sh
410d72c7 42Source14: %{name}-router-postfix.sh
c1e74aa1 43Source15: %{name}.logrotate
f399f1c0 44Source16: %{name}-lighttpd.conf
ac27ba92 45Patch0: %{name}-lf.patch
31dabce6 46
a6016bab
ER
47Patch2: %{name}-timetracking-advanced-logic.patch
48Patch3: %{name}-email-notify-display.patch
49Patch4: %{name}-backtraces.patch
50Patch5: %{name}-errorhandler.patch
14ff3418 51# packaging patches that probably never go upstream
ac27ba92
ER
52Patch100: %{name}-paths.patch
53Patch101: %{name}-cvs-config.patch
4c823356
ER
54Patch102: %{name}-irc-config.patch
55Patch103: %{name}-PEAR.patch
56Patch104: %{name}-httpclient-clientside.patch
57Patch105: %{name}-bot-reconnect.patch
4c823356 58Patch107: %{name}-mem-limits.patch
a6016bab
ER
59Patch108: %{name}-gettext.patch
60# some tests
61Patch200: %{name}-fixed-nav.patch
da8d6134 62URL: http://dev.mysql.com/downloads/other/eventum/
2bbc9c41 63BuildRequires: gettext-devel
b3857e8b 64BuildRequires: rpm-php-pearprov >= 4.0.2-98
99bbe3cb 65BuildRequires: rpmbuild(macros) >= 1.268
4068cb73 66BuildRequires: sed >= 4.0
00e0fc89
ER
67Requires(triggerpostun): /usr/bin/php
68Requires(triggerpostun): sed >= 4.0
5b165428 69Requires: %{name}-base = %{version}-%{release}
7db4d346 70Requires: Smarty >= 2.6.10-4
00e0fc89 71Requires: apache(mod_dir)
61351540
ER
72Requires: php(gd)
73Requires: php(imap)
74Requires: php(mbstring)
75Requires: php(mysql)
76Requires: php(pcre)
77Requires: php(session)
71b01fde
ER
78Requires: php-pear-DB
79Requires: php-pear-Date
80Requires: php-pear-HTTP_Request
81Requires: php-pear-Mail
723da18a 82Requires: php-pear-Mail_Mime
71b01fde
ER
83Requires: php-pear-Math_Stats
84Requires: php-pear-Net_DIME
71b01fde 85Requires: php-pear-Net_SMTP
71b01fde
ER
86Requires: php-pear-Net_Socket
87Requires: php-pear-Net_URL
88Requires: php-pear-Net_UserAgent_Detect
3223fb64 89Requires: php-pear-PEAR-core
71b01fde
ER
90Requires: php-pear-Text_Diff
91Requires: php-pear-XML_RPC
465c3ab7 92Requires: smarty-gettext
bdf85dc8 93Requires: webapps
f399f1c0
ER
94Requires: webserver(access)
95Requires: webserver(alias)
61351540 96Requires: webserver(php) >= 4.2.0
35fa3cf8 97BuildArch: noarch
bb01d732
ER
98BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
99
65cb4bd7 100%define _noautoreq 'pear(/etc/webapps/.*)' 'pear(jpgraph_dir.php)' 'pear(.*Smarty.class.php)' 'pear(Benchmark/.*)'
3223fb64 101
1d760108 102%define _libdir %{_prefix}/lib/%{name}
71f56750 103%define _appdir %{_datadir}/%{name}
452347b6 104%define _smartyplugindir %{_appdir}/include/smarty
3223fb64 105%define _smartydir /usr/share/php/Smarty
bdf85dc8
ER
106%define _webapps /etc/webapps
107%define _webapp %{name}
8a37ad9d
ER
108%define _webappdir %{_webapps}/%{_webapp}
109%define _sysconfdir /etc/%{name}
bb01d732
ER
110
111%description
112Eventum is a user-friendly and flexible issue tracking system that can
113be used by a support department to track incoming technical support
114requests, or by a software development team to quickly organize tasks
115and bugs. Eventum is used by the MySQL AB Technical Support team, and
116has allowed us to dramatically improve our response times.
117
d8cfa9f0
JR
118%description -l pl.UTF-8
119Eventum to przyjazny dla użytkownika system śledzenia spraw, który
120może być używany przez dział obsługi do śledzenia przychodzących żądań
121obsługi technicznej albo przez zespół tworzący oprogramowanie do
122szybkiej organizacji zadań i błędów. Eventum jest używany przez zespół
123Technical Support MySQL AB i umożliwił im znacząco poprawić czasy
4068cb73
JB
124reakcji.
125
d2e501e8
ER
126%package base
127Summary: Eventum base package
d8cfa9f0 128Summary(pl.UTF-8): Podstawowy pakiet Eventum
d2e501e8 129Group: Applications/WWW
3223fb64
ER
130Requires(postun): /usr/sbin/groupdel
131Requires(postun): /usr/sbin/userdel
5bbd68c9
ER
132Requires(pre): /bin/id
133Requires(pre): /usr/bin/getgid
5bbd68c9 134Requires(pre): /usr/sbin/groupadd
3223fb64 135Requires(pre): /usr/sbin/useradd
9f768793 136Provides: group(eventum)
d080edb6 137Provides: user(eventum)
d2e501e8
ER
138
139%description base
140This package contains base directory structure for Eventum.
141
d8cfa9f0
JR
142%description base -l pl.UTF-8
143Ten pakiet zawiera podstawową strukturę katalogów dla Eventum.
1bb5e749 144
ab983aaa 145%package setup
4068cb73 146Summary: Eventum setup package
d8cfa9f0 147Summary(pl.UTF-8): Pakiet do wstępnej konfiguracji Eventum
ab983aaa 148Group: Applications/WWW
5b165428 149Requires: %{name} = %{version}-%{release}
ab983aaa
ER
150
151%description setup
152Install this package to configure initial Eventum installation. You
153should uninstall this package when you're done, as it considered
154insecure to keep the setup files in place.
155
d8cfa9f0
JR
156%description setup -l pl.UTF-8
157Ten pakiet należy zainstalować w celu wstępnej konfiguracji Eventum po
158pierwszej instalacji. Potem należy go odinstalować, jako że
159pozostawienie plików instalacyjnych mogłoby być niebezpieczne.
4068cb73 160
0da8e1f2 161%package mail-queue
30689148 162Summary: Eventum mail queue process
d8cfa9f0 163Summary(pl.UTF-8): Przetwarzanie kolejki poczty Eventum
0da8e1f2 164Group: Applications/WWW
5b165428 165Requires: %{name} = %{version}-%{release}
0da8e1f2
ER
166Requires: crondaemon
167
168%description mail-queue
169Beginning with the first release of Eventum, emails are not directly
170sent out from the various scripts, but rather added to a mail queue
171table that is processed by a cron job. If an email cannot be sent, it
172will be marked as such in the mail queue log, and the cron job script
173will re-try to send it again the next time it runs.
174
175This package contains the cron job.
176
d8cfa9f0
JR
177%description mail-queue -l pl.UTF-8
178Od pierwszego wydania Eventum poczta nie jest wysyłana bezpośrednio z
179różnych skryptów, lecz dodawana do kolejki przetwarzanej z crona.
180Jeśli poczta nie może być wysłana, będzie odpowiednio oznaczona w logu
181kolejki poczty, a skrypt z crona będzie próbował wysłać ją ponownie
182następnym razem.
0181746f 183
30689148 184Ten pakiet zawiera zadanie dla crona.
185
ea084bcb 186%package mail-download
30689148 187Summary: Eventum email download
d8cfa9f0 188Summary(pl.UTF-8): Ściąganie poczty Eventum
ea084bcb 189Group: Applications/WWW
5b165428 190Requires: %{name} = %{version}-%{release}
ea084bcb
ER
191Requires: crondaemon
192
193%description mail-download
194In order for Eventum's email integration feature to work, you need to
195setup a cron job to run the script every so often.
196
197This package contains the cron job.
198
d8cfa9f0
JR
199%description mail-download -l pl.UTF-8
200Aby integracja poczty elektronicznej w Eventum działała, trzeba
201ustawić zadanie crona, aby uruchamiał odpowiedni skrypt wystarczająco
202często.
0181746f
JB
203
204Ten pakiet zawiera zadanie dla crona.
205
cd719538
ER
206%package reminder
207Summary: Eventum Reminder System
d8cfa9f0 208Summary(pl.UTF-8): System przypominania dla Eventum
cd719538 209Group: Applications/WWW
5b165428 210Requires: %{name} = %{version}-%{release}
cd719538
ER
211Requires: crondaemon
212
213%description reminder
214The reminder system was designed with the objective as serving as a
215safe net for issues that need attention. Depending on what
216configuration you create, you may have several reminders (or alerts)
217be sent out whenever an issue needs attention, for whatever parameter
218you may deem necessary.
219
220This package contains the cron job.
221
d8cfa9f0
JR
222%description reminder -l pl.UTF-8
223System przypominania został zaprojektowany tak, aby służył jako
224bezpieczna sieć dla spraw wymagających uwagi. W zależności od
225konfiguracji można ustawić różne przypominajki (lub alarmy) wysyłane
226przy każdej sprawie wymagającej uwagi lub przy parametrze, który można
227uważać za potrzebny.
6341f096
JB
228
229Ten pakiet zawiera zadanie dla crona.
230
cd719538
ER
231%package monitor
232Summary: Eventum Heartbeat Monitor
d8cfa9f0 233Summary(pl.UTF-8): Monitor życia dla Eventum
cd719538 234Group: Applications/WWW
5b165428 235Requires: %{name} = %{version}-%{release}
cd719538 236Requires: crondaemon
61351540 237Requires: php(posix)
cd719538
ER
238
239%description monitor
240The heartbeat monitor is a feature designed for the administrator that
241wants to be alerted whenever a common problem in Eventum is detected,
242like the database server not being available anymore, or maybe when
243the recommended permissions for certain configuration files are
244changed.
245
246Please note that before running the heartbeat monitor, you may need to
247customize some of the checks to be appropriate for your own system,
248particularly the permission and file checks on
249Monitor::checkConfiguration().
250
251This package contains the cron job.
252
d8cfa9f0
JR
253%description monitor -l pl.UTF-8
254Monitor życia to funkcjonalność zaprojektowana dla administratora
255chcącego być alarmowanym przy każdym wykryciu popularnego problemu z
256Eventum, jak nie działanie serwera bazy danych albo zmiana uprawnień
257do plików konfiguracyjnych.
6341f096 258
d8cfa9f0
JR
259Należy zauważyć, że przed uruchomieniem tego monitora może być
260konieczne dostosowanie niektórych testów do systemu, w szczególności
261testów uprawnień i plików w Monitor::checkConfiguration().
6341f096
JB
262
263Ten pakiet zawiera zadanie dla crona.
264
5b165428
ER
265%package route-drafts
266Summary: Eventum Draft Routing
d8cfa9f0 267Summary(pl.UTF-8): Przekazywanie szkiców dla Eventum
5b165428
ER
268Group: Applications/WWW
269Requires: %{name} = %{version}-%{release}
5b165428
ER
270Requires: eventum(router)
271
272%description route-drafts
71f56750 273The draft routing feature is used to automatically associate a thread
5410173f 274of drafts into an Eventum issue. By setting up qmail (or even Postfix)
71f56750
ER
275to deliver emails sent to a specific address (usually
276draft-<number>@<domain>) to the above script, users are able to send
277drafts written in their mail client to be stored in Eventum. These
278drafts will NOT broadcasted to the notification list.
5b165428 279
d8cfa9f0
JR
280%description route-drafts -l pl.UTF-8
281Przekazywanie szkiców służy do automatycznego wiązania wątku szkiców z
282problemem w Eventum. Ustawiając qmaila (czy nawet Postfiksa), aby
283dostarczał pocztę wysłaną na podany adres (zwykle
284draft-<liczba>@<domena>) do tego skryptu umożliwia się użytkownikom
285wysyłanie szkiców napisanych w ich kliencie pocztowym do zapisania w
286Eventum. Szkice te NIE będą wysyłane na listę powiadomień.
5410173f 287
cd719538
ER
288%package route-emails
289Summary: Eventum Email Routing
d8cfa9f0 290Summary(pl.UTF-8): Przekazywanie poczty dla Eventum
cd719538 291Group: Applications/WWW
5b165428 292Requires: %{name} = %{version}-%{release}
8bc4bcd1 293Requires: eventum(router)
cd719538
ER
294
295%description route-emails
296The email routing feature is used to automatically associate a thread
297of emails into an Eventum issue. By setting up qmail (or even postfix)
298to deliver emails sent to a specific address (usually
299issue-<number>@<domain>) to the above script, users are able to use
300their email clients to reply to emails coming from Eventum, and those
301replies will be automatically associated with the issue and
302broadcasted to the entire notification list.
303
d8cfa9f0
JR
304%description route-emails -l pl.UTF-8
305Funkcjonalność przekazywania poczty służy do automatycznego wiązania
306wątku listów ze sprawą w Eventum. Po ustawieniu qmaila (czy nawet
307postfiksa), aby dostarczał listy wysyłane na pewien adres (zwykle
308issue-<numer>@<domena>) na powyższy skrypt, użytkownicy będą mogli
309używać klientów pocztowych do odpowiadania na listy przychodzące z
310Eventum, a odpowiedzi te będą automatycznie wiązane ze sprawą i
311rozprowadzane do całej listy ogłoszeniowej.
6341f096 312
cd719538
ER
313%package route-notes
314Summary: Eventum Note Routing
d8cfa9f0 315Summary(pl.UTF-8): Przekazywanie notatek dla Eventum
cd719538 316Group: Applications/WWW
5b165428 317Requires: %{name} = %{version}-%{release}
8bc4bcd1 318Requires: eventum(router)
cd719538
ER
319
320%description route-notes
321The note routing feature is used to automatically associate a thread
322of notes into an Eventum issue. By setting up qmail (or even postfix)
323to deliver emails sent to a specific address (usually
324note-<number>@<domain>) to the above script, users are able to use
325their email clients to reply to internal notes coming from Eventum,
326and those replies will be automatically associated with the issue and
327broadcasted to the notification list staff members.
328
d8cfa9f0
JR
329%description route-notes -l pl.UTF-8
330Funkcjonalność przekazywania notatek służy do automatycznego wiązania
331wątku notatek ze sprawą w Eventum. Po ustawieniu qmaila (czy nawet
332postfiksa), aby dostarczał listy wysyłane na pewien adres (zwykle
333note-<numer>@<domena>) na powyższy skrypt, użytkownicy będą mogli
334używać klientów pocztowych do odpowiadania na wewnętrzne notatki
335pochodzące od Eventu, a odpowiedzi te będą automatycznie wiązane ze
336sprawą i rozprowadzane do członków personelu listy ogłoszeniowej.
6341f096 337
a6d2ad69
ER
338%package router-qmail
339Summary: Eventum Mail Routing - qmail
d8cfa9f0 340Summary(pl.UTF-8): Przekazywanie poczty Eventum - qmail
a6d2ad69 341Group: Applications/Mail
9b16153c
ER
342# loose dep is intentional. qmail subpackage isn't built on PLD
343# builders and there really nothing changes.
5b165428 344Requires: %{name} >= %{version}-%{release}
a6d2ad69 345Requires: qmail >= 1.03
8bc4bcd1
ER
346Provides: eventum(router)
347Obsoletes: eventum(router)
a6d2ad69
ER
348
349%description router-qmail
350This package provides way of routing notes and emails back to Eventum
351via qmail.
352
d8cfa9f0
JR
353%description router-qmail -l pl.UTF-8
354Ten pakiet udostępnia metodę przekazywania notatek i listów do Eventum
995fa554
JB
355przez qmaila.
356
a6d2ad69
ER
357%package router-postfix
358Summary: Eventum Mail Routing - Postfix
d8cfa9f0 359Summary(pl.UTF-8): Przekazywanie poczty Eventum - Postfix
a6d2ad69 360Group: Applications/Mail
5b165428 361Requires: %{name} = %{version}-%{release}
a6d2ad69 362Requires: postfix
8bc4bcd1
ER
363Provides: eventum(router)
364Obsoletes: eventum(router)
a6d2ad69
ER
365
366%description router-postfix
367This package provides way of routing notes and emails back to Eventum
368via Postfix.
369
e1bb3563
ER
370The Postfix configuration instructions you can find from
371<http://eventum.mysql.org/wiki/index.php/Setting_up_email_routing_with_postfix>.
372
d8cfa9f0
JR
373%description router-postfix -l pl.UTF-8
374Ten pakiet udostępnia metodę przekazywania notatek i listów do Eventum
995fa554
JB
375przez Postfiksa.
376
d8cfa9f0 377Opis konfiguracji Postfiksa można znaleźć pod adresem
a659c698
JB
378<http://eventum.mysql.org/wiki/index.php/Setting_up_email_routing_with_postfix>.
379
cd719538
ER
380%package irc
381Summary: Eventum IRC Notification Bot
d8cfa9f0 382Summary(pl.UTF-8): IRC-owy bot powiadamiający dla Eventum
cd719538 383Group: Applications/WWW
b79fc4aa 384Requires(post,preun): /sbin/chkconfig
e1c0f343 385Requires(triggerpostun): sed >= 4.0
5b165428 386Requires: %{name} = %{version}-%{release}
61351540 387Requires: php(sockets)
71f56750 388Requires: php-pear-Net_SmartIRC
e1c0f343 389Requires: rc-scripts >= 0.4.0.18
cd719538
ER
390
391%description irc
392The IRC notification bot is a nice feature for remote teams that want
393to handle issues and want to have a quick and easy way to get simple
394notifications. Right now the bot notifies of the following actions:
395- New Issues
396- Blocked emails
397- Issues that got their assignment list changed
398
399NOTE: You will need to manually edit the bot.php script to set your
400appropriate preferences, like IRC server and channel that the bot
401should join.
402
d8cfa9f0
JR
403%description irc -l pl.UTF-8
404IRC-owy bot powiadamiający to miła funkcjonalność dla zdalnych
405zespołów chcących obsługiwać sprawy i mieć szybki i łatwy sposób na
406uzyskiwanie prostych powiadomień. Aktualnie bot powiadamia o
407następujących zdarzeniach:
6341f096
JB
408- nowych sprawach
409- zablokowanych listach
d8cfa9f0 410- sprawach, dla których zmieniła się lista powiązań
6341f096 411
d8cfa9f0
JR
412UWAGA: w celu wprowadzenia własnych ustawień, takich jak serwer IRC i
413kanał używany przez bota, trzeba ręcznie zmodyfikować skrypt bot.php .
6341f096 414
abd490e4
ER
415%package cli
416Summary: Eventum command-line interface
d8cfa9f0 417Summary(pl.UTF-8): Interfejs linii poleceń dla Eventum
abd490e4 418Group: Applications/WWW
5b165428 419Requires: %{name}-base = %{version}-%{release}
9500cdeb 420Requires: php-cli
3223fb64 421Requires: php-common >= 3:4.1.0
71b01fde 422Requires: php-pear-XML_RPC
abd490e4
ER
423
424%description cli
425The Eventum command-line interface allows you to access most of the
426features of the web interface straight from your command shell.
abd490e4 427
d8cfa9f0
JR
428%description cli -l pl.UTF-8
429Interfejs linii poleceń Eventum pozwala na dostęp do większości
430funkcji interfejsu WWW prosto z linii poleceń powłoki.
958cd5a0 431
5cb2e61d 432%package scm
30689148 433Summary: Eventum SCM integration
d8cfa9f0 434Summary(pl.UTF-8): Integracja SCM dla Eventum
5cb2e61d 435Group: Applications/WWW
5b165428 436Requires: %{name}-base = %{version}-%{release}
61351540 437Requires: php(pcre)
bdf85dc8 438Requires: php-cli
3223fb64 439Requires: php-common >= 3:4.1.0
5cb2e61d
ER
440
441%description scm
442This feature allows your software development teams to integrate your
443Source Control Management system with your Issue Tracking System.
444
445The integration is implemented in such a way that it will be forward
446compatible with pretty much any SCM system, such as CVS.
447
0181746f 448For installation see
a392a259 449</eventum/help.php?topic=scm_integration_installation>.
0181746f 450
d8cfa9f0
JR
451%description scm -l pl.UTF-8
452Ten pakiet pozwala zespołom programistów na integrację systemu
453zarządzania źródłami (SCM - Source Control Management) z systemem
454śledzenia spraw.
0181746f 455
d8cfa9f0
JR
456Integracja jest zaimplementowana tak, aby być kompatybilna w przód z
457prawie każdym systemem SCM, jak np. CVS.
0181746f 458
d8cfa9f0 459Szczegóły na temat instalacji można przeczytać pod
a392a259 460</eventum/help.php?topic=scm_integration_installation>.
5cb2e61d 461
bb01d732 462%prep
fea7989f 463%setup -q %{?_snap:-n %{name}-%{_snap}}%{?_svn:-n %{name}}
085e39c0 464# undos the source
cd87a3e8 465find . -type f -print0 | xargs -0 sed -i -e 's,\r$,,'
085e39c0 466
65cb4bd7
ER
467rm benchmark.php
468rm -r misc/upgrade/*v1.[123]* # too old to support in PLD Linux
469rm misc/upgrade/flush_compiled_templates.php
470rm -r misc/upgrade/*/upgrade_config.php # not needed in PLD Linux
471rm -r misc/upgrade/*/index.html # not needed in PLD Linux
5b165428 472
65cb4bd7 473rm -r include/php-gettext
5b165428 474# sample, not used in eventum
65cb4bd7 475rm rpc/xmlrpc_client.php
e1c0f343 476
a392a259 477# bug fixes.
0b3b58dd 478%patch0 -p1
7eea4a5a 479
a6016bab 480%patch2 -p1
4c823356
ER
481%patch3 -p1
482%patch4 -p1
483%patch5 -p1
fea7989f 484
a6016bab 485#%patch200 -p1
ac27ba92
ER
486
487# packaging
488%patch100 -p1
489%patch101 -p1
4c823356 490%patch102 -p1
ac27ba92
ER
491%patch103 -p1
492%patch104 -p1
493%patch105 -p1
ac27ba92 494%patch107 -p1
a6016bab 495%patch108 -p1
0b3b58dd 496
3d92cbd2
ER
497cat <<'EOF'> mysql-permissions.sql
498# use this schema if you want to grant permissions manually instead of using setup
499# this schema is extracted from setup/index.php.
500GRANT SELECT, UPDATE, DELETE, INSERT, ALTER, DROP, CREATE, INDEX ON eventum.* TO 'eventum'@'localhost' IDENTIFIED BY 'password';
501EOF
502
465c3ab7
ER
503mv misc/localization/de{_DE,}
504mv misc/localization/es{_ES,}
505mv misc/localization/fi{_FI,}
506mv misc/localization/fr{_FR,}
507mv misc/localization/it{_IT,}
508mv misc/localization/nl{_NL,}
509mv misc/localization/ru{_RU,}
600d96a0 510mv misc/localization/sv{_SE,}
465c3ab7
ER
511
512# oops, the file got truncated - quick fix
513cp misc/localization/eventum.po misc/localization/de/LC_MESSAGES/eventum.po
514cp misc/localization/eventum.po misc/localization/es/LC_MESSAGES/eventum.po
515cp misc/localization/eventum.po misc/localization/fi/LC_MESSAGES/eventum.po
516cp misc/localization/eventum.po misc/localization/fr/LC_MESSAGES/eventum.po
465c3ab7
ER
517cp misc/localization/eventum.po misc/localization/nl/LC_MESSAGES/eventum.po
518cp misc/localization/eventum.po misc/localization/ru/LC_MESSAGES/eventum.po
519cp misc/localization/eventum.po misc/localization/en_US/LC_MESSAGES/eventum.po
520
71f56750 521sed -e '1s,#!.*/bin/php -q,#!%{_bindir}/php,' misc/cli/eventum > %{name}-cli
bd7564e0 522sed -e '1i#!%{_bindir}/php' misc/scm/process_cvs_commits.php > process_cvs_commits
fea7989f 523cat misc/scm/process_svn_commits.php > process_svn_commits
71f56750 524mv misc/cli/eventumrc_example eventumrc
16902912
ER
525sed -i -e '1i#!%{_bindir}/php' misc/*.php
526chmod +x misc/*.php
5b165428
ER
527
528# remove backups from patching as we use globs to package files to buildroot
73c437a6 529find '(' -name '*~' -o -name '*.orig' ')' | xargs -r rm -v
085e39c0 530
465c3ab7
ER
531%build
532cd misc/localization
533for a in */LC_MESSAGES; do
534 msgfmt -o $a/eventum.mo $a/eventum.po
535done
536
bb01d732
ER
537%install
538rm -rf $RPM_BUILD_ROOT
cfc3bce6 539install -d \
8a37ad9d 540 $RPM_BUILD_ROOT{%{_webappdir},%{_sysconfdir},%{_bindir},%{_sbindir},%{_libdir}} \
cfc3bce6 541 $RPM_BUILD_ROOT/etc/{rc.d/init.d,cron.d,sysconfig} \
c1e74aa1
ER
542 $RPM_BUILD_ROOT/var/{run,cache,lib}/%{name} \
543 $RPM_BUILD_ROOT/var/log/{archiv/,}%{name} \
89522a33 544 $RPM_BUILD_ROOT/var/lib/%{name}/routed_{emails,drafts,notes} \
761ae7dd 545 $RPM_BUILD_ROOT%{_appdir}/{include,htdocs/misc,upgrade} \
cfc3bce6
ER
546
547cp -a *.php css customer images js manage reports rpc setup $RPM_BUILD_ROOT%{_appdir}/htdocs
548cp -a misc/*.html $RPM_BUILD_ROOT%{_appdir}/htdocs/misc
549cp -a misc/*.php $RPM_BUILD_ROOT%{_appdir}
cfc3bce6 550cp -a templates $RPM_BUILD_ROOT%{_appdir}
00e0fc89 551cp -a include/{customer,custom_field,jpgraph,workflow} $RPM_BUILD_ROOT%{_appdir}/include
cfc3bce6 552cp -a include/*.php $RPM_BUILD_ROOT%{_appdir}/include
085e39c0 553cp -a logs/* $RPM_BUILD_ROOT/var/log/%{name}
dd1c0942 554cp -a misc/upgrade $RPM_BUILD_ROOT%{_appdir}
bb01d732 555
1c9d2c71 556cp -a favicon.ico $RPM_BUILD_ROOT%{_appdir}/htdocs/favicon.ico
1c9d2c71 557install %{SOURCE13} $RPM_BUILD_ROOT%{_appdir}/upgrade/upgrade.sh
da8d6134 558
cfc3bce6
ER
559# cli
560install -d $RPM_BUILD_ROOT%{_appdir}/cli
5b165428
ER
561cp -a misc/cli/include/class.{misc,command_line}.php $RPM_BUILD_ROOT%{_appdir}/cli
562cp -a misc/cli/config.inc.php $RPM_BUILD_ROOT%{_sysconfdir}/cli.php
d080edb6 563install %{name}-cli $RPM_BUILD_ROOT%{_bindir}/%{name}
77b3db3b 564install misc/irc/bot.php $RPM_BUILD_ROOT%{_sbindir}/%{name}-bot
9cdc5027 565
cfc3bce6 566# scm
bd7564e0
ER
567install process_cvs_commits $RPM_BUILD_ROOT%{_libdir}/process_cvs_commits
568install process_svn_commits $RPM_BUILD_ROOT%{_libdir}/process_svn_commits
569ln -s process_cvs_commits $RPM_BUILD_ROOT%{_libdir}/scm
570install %{SOURCE6} $RPM_BUILD_ROOT%{_sysconfdir}/scm.php
82121306 571
cfc3bce6 572# private key
77b3db3b
ER
573echo '<?php
574$private_key = "DEFAULTPRIVATEKEY";' > $RPM_BUILD_ROOT%{_webappdir}/private_key.php
f399f1c0 575touch $RPM_BUILD_ROOT%{_webappdir}/htpasswd
47033007 576
31dabce6
ER
577cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_webappdir}/apache.conf
578cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_webappdir}/httpd.conf
579cp -a %{SOURCE16} $RPM_BUILD_ROOT%{_webappdir}/lighttpd.conf
580cp -a %{SOURCE2} $RPM_BUILD_ROOT/etc/cron.d/%{name}-mail-queue
581cp -a %{SOURCE3} $RPM_BUILD_ROOT/etc/cron.d/%{name}-mail-download
582cp -a %{SOURCE4} $RPM_BUILD_ROOT/etc/cron.d/%{name}-reminder
583cp -a %{SOURCE5} $RPM_BUILD_ROOT/etc/cron.d/%{name}-monitor
77b3db3b 584cp -a %{SOURCE7} $RPM_BUILD_ROOT%{_webappdir}/irc_config.php
31dabce6
ER
585cp -a %{SOURCE8} $RPM_BUILD_ROOT/etc/rc.d/init.d/eventum-irc
586cp -a %{SOURCE9} $RPM_BUILD_ROOT/etc/sysconfig/eventum-irc
587
588
589%{__sed} -i -e "/define('APP_VERSION'/ {
590 idefine('APP_VERSION', '%{version}%{?_snap:-%{_snap}}%{?_rc:-%{_rc}}%{?_svn:-%{_svn}}');
591 d
592
593}" $RPM_BUILD_ROOT%{_appdir}/htdocs/init.php
bb01d732 594
cfc3bce6 595# config
8a37ad9d 596> $RPM_BUILD_ROOT%{_webappdir}/setup.php
31dabce6 597> $RPM_BUILD_ROOT%{_webappdir}/config.php
cfc3bce6 598
085e39c0
ER
599install -d $RPM_BUILD_ROOT%{_smartyplugindir}
600# These plugins are not in Smarty package (Smarty-2.6.2-3)
15502563
ER
601cp -a \
602 include/Smarty/plugins/function.{calendar,get_{display_style,innerhtml,textarea_size}}.php \
603 include/Smarty/plugins/modifier.highlight_quoted.php \
9500cdeb 604 $RPM_BUILD_ROOT%{_smartyplugindir}
085e39c0 605
a6d2ad69 606# qmail router
37996833 607%if %{with qmail}
a6d2ad69
ER
608d=$RPM_BUILD_ROOT/var/lib/%{name}
609echo 'root' > $d/.qmail
610echo 'root' > $d/.qmail-default
611echo '| %{_libdir}/router-qmail drafts' > $d/.qmail-draft-default
612echo '| %{_libdir}/router-qmail emails 1' > $d/.qmail-issue-default
613echo '| %{_libdir}/router-qmail notes' > $d/.qmail-note-default
614install %{SOURCE11} $RPM_BUILD_ROOT%{_libdir}/router-qmail
37996833 615%endif
410d72c7
ER
616# postfix router
617install %{SOURCE14} $RPM_BUILD_ROOT%{_libdir}/router-postfix
a6d2ad69 618
c1e74aa1 619install -D %{SOURCE15} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
465c3ab7
ER
620# locale
621cd misc/localization
622for a in */LC_MESSAGES; do
623 install -d $RPM_BUILD_ROOT%{_datadir}/locale/$a
624 cp -a $a/%{name}.mo $RPM_BUILD_ROOT%{_datadir}/locale/$a
625done
626cd -
627
600d96a0 628%find_lang %{name}
c1e74aa1 629
bb01d732
ER
630%clean
631rm -rf $RPM_BUILD_ROOT
632
01b84746
ER
633%pre
634%addusertogroup http %{name}
635
82121306 636%post
ec185415 637# check if the package is configured.
2bf6ebce 638if grep -q "Header('Location: setup/')" %{_webappdir}/config.php; then
ac9278b5 639if [ -f %{_appdir}/htdocs/setup/index.php ]; then
ec185415
ER
640%banner %{name} -e <<EOF
641
642You haven't yet configured Eventum!
ac9278b5
ER
643Please open in browser <http://localhost/eventum/>
644If you need access from elsewhere, you need to edit
8a37ad9d 645%{_webappdir}/apache.conf and restart apache.
ec185415 646
ac9278b5
ER
647IMPORTANT: When You have configured Eventum, please uninstall the
648setup package, so that %{name}-setup is able to secure your Eventum
649installation.
ec185415 650
ac9278b5 651EOF
5b165428 652#' vim syntax hack
ac9278b5
ER
653else
654%banner %{name} -e <<EOF
655
656You haven't yet configured Eventum!
657
658To setup eventum, please install %{name}-setup and open in browser
659<http://localhost/eventum/>.
660If you need access from elsewhere, you need to edit
2bf6ebce 661%{_webappdir}/*.conf depending on webserver and restart the webserver.
ac9278b5
ER
662
663IMPORTANT: When You have configured Eventum, please uninstall the
664setup package, so that %{name}-setup is able to secure your Eventum
665installation.
ec185415
ER
666
667EOF
5b165428 668#' vim syntax hack
ac9278b5 669fi
47033007 670
8a37ad9d 671elif grep -q 'DEFAULTPRIVATEKEY' %{_webappdir}/private_key.php; then
47033007
ER
672%banner %{name} -e <<EOF
673
674You have default private key installed!
675
676Install %{name}-setup and open up http://yourserver/eventum/setup/
677-- that will help you setup initial config.
678
679when have configured Eventum, please uninstall the setup package,
680so that %{name}-setup is able to secure your Eventum installation.
681
682EOF
683 elif [ -d %{_appdir}/setup ]; then
107fc31b
ER
684%banner %{name} -e <<EOF
685
686If you have have configured Eventum, please uninstall the setup package,
687so that %{name}-setup is able to secure your Eventum installation.
688
689EOF
ec185415 690fi
94bd779f 691
da8d6134
ER
692# nuke Smarty templates cache after upgrade
693rm -f /var/cache/eventum/*.php
694
82121306
ER
695%preun
696if [ "$1" = "0" ]; then
dfe0f6d6
ER
697 # nuke cache
698 rm -f /var/cache/eventum/*.php 2>/dev/null || :
699fi
cfc3bce6 700
01b84746 701%pre base
1d760108
ER
702%groupadd -P %{name}-base -g 146 %{name}
703%useradd -P %{name}-base -u 146 -d /var/lib/%{name} -g %{name} -c "Eventum User" %{name}
01b84746
ER
704
705%postun base
706if [ "$1" = "0" ]; then
a6d2ad69 707 %userremove %{name}
1f52d1fe 708 %groupremove %{name}
a6d2ad69
ER
709fi
710
711%post router-qmail
712CF=/etc/qmail/control/virtualdomains
713if ! grep -q ':%{name}\b' $CF 2>/dev/null; then
8a37ad9d 714 FQDN=$(awk -F'"' '/define/ && $2 ~ /APP_HOSTNAME/ {print $4}' %{_webappdir}/config.php 2>/dev/null)
1f52d1fe 715 [ "$FQDN" ] || FQDN=$(hostname -f 2>/dev/null || echo localhost)
a6d2ad69
ER
716 umask 022
717 echo "#${FQDN}:%{name}" >> $CF
718
719%banner %{name}-qmail -e <<EOF
720
721Added "#${FQDN}:%{name}" to $CF,
722Please verify that it is correct and restart qmail:
723# service qmail reload
724
1f52d1fe 725Consult qmail-send(8) for more information on virtualdomains.
a6d2ad69
ER
726
727EOF
728fi
729
730%preun router-qmail
731if [ "$1" = "0" ]; then
732 sed -i -e '/:%{name}\b/d' /etc/qmail/control/virtualdomains
01b84746
ER
733fi
734
94bd779f 735%post setup
8a37ad9d
ER
736chmod 660 %{_webappdir}/{config,private_key}.php
737chown root:eventum %{_webappdir}/{config,private_key}.php
94bd779f
ER
738
739%postun setup
740if [ "$1" = "0" ]; then
8a37ad9d
ER
741 chmod 640 %{_webappdir}/{config,private_key}.php
742 chown root:eventum %{_webappdir}/{config,private_key}.php
94bd779f
ER
743fi
744
e1c0f343
ER
745%post irc
746/sbin/chkconfig --add eventum-irc
99bbe3cb 747%service eventum-irc restart "Eventum IRC Bot"
e1c0f343 748
add0e245
ER
749%preun irc
750if [ "$1" = 0 ]; then
751 %service eventum-irc stop
752 /sbin/chkconfig --del eventum-irc
753fi
754
09f58a75 755%triggerin -- apache1 < 1.3.37-3, apache1-base
bdf85dc8 756%webapp_register apache %{_webapp}
1d760108 757
09f58a75 758%triggerun -- apache1 < 1.3.37-3, apache1-base
bdf85dc8 759%webapp_unregister apache %{_webapp}
1d760108 760
00e0fc89 761%triggerin -- apache < 2.2.0, apache-base
bdf85dc8 762%webapp_register httpd %{_webapp}
1d760108 763
00e0fc89 764%triggerun -- apache < 2.2.0, apache-base
bdf85dc8 765%webapp_unregister httpd %{_webapp}
1d760108 766
f399f1c0
ER
767%triggerin -- lighttpd
768%webapp_register lighttpd %{_webapp}
769
770%triggerun -- lighttpd
771%webapp_unregister lighttpd %{_webapp}
772
c9165420
ER
773# FIXME
774# only one upgrade trigger is called if you're upgrading over two
775# versions, say 1.5 to 1.5.3, only 1.5.3 trigger is called.
776# use common trigger (the highest version and rpmvercmp from poldek?)
6c5cabb4 777%triggerpostun -- eventum < 1.5.1-0.257
c9165420
ER
778%{_appdir}/upgrade/upgrade.sh %{_appdir}/upgrade/v1.5_to_v1.5.1 <<EOF
779database_changes.php Perform database changes
da8d6134 780EOF
da8d6134 781
6c5cabb4 782%triggerpostun -- eventum < 1.5.2-0.289
c9165420
ER
783%{_appdir}/upgrade/upgrade.sh %{_appdir}/upgrade/v1.5.1_to_v1.5.2 <<EOF
784database_changes.php Perform database changes
785set_priority_ranks.php Fix the ranking of priority values
da8d6134 786EOF
761ae7dd 787
c9165420
ER
788%triggerpostun -- eventum < 1.5.3-0.291
789%{_appdir}/upgrade/upgrade.sh %{_appdir}/upgrade/v1.5.2_to_v1.5.3 <<EOF
790database_changes.php Perform database changes
791EOF
6c5cabb4 792
2c8d1b16 793%triggerpostun -- eventum < 1.5.4-1.12
ba10eace
ER
794%{_appdir}/upgrade/upgrade.sh %{_appdir}/upgrade/v1.5.3_to_v1.5.4 <<EOF
795database_changes.php Perform database changes
796EOF
797
cddf3011
ER
798%triggerpostun -- eventum < 1.6.0-RC2.6
799%{_appdir}/upgrade/upgrade.sh %{_appdir}/upgrade/v1.5.5_to_v1.6.0 <<EOF
800database_changes.php Perform database changes
801upgrade_saved_searches.php Upgrade existing custom filters (saved searches)
802EOF
803
903b1259
ER
804%triggerpostun -- eventum < 1.6.1-0.2
805%{_appdir}/upgrade/upgrade.sh %{_appdir}/upgrade/v1.6.0_to_v1.6.1 <<EOF
806database_changes.php Perform database changes
807EOF
808
65cb4bd7 809%triggerpostun -- eventum < 1.7.1-4.132.20061119.3143
465c3ab7
ER
810%{_appdir}/upgrade/upgrade.sh %{_appdir}/upgrade/v1.7.1_to_v2.0 <<EOF
811database_changes.php Perform database changes
812EOF
813
e1c0f343 814%triggerpostun irc -- eventum-irc < 1.6.1-3.14
903b1259
ER
815sed -i -e '
816s,\$irc_host,$irc_server_hostname,
817s,\$irc_port,$irc_server_port,
818s,\$irc_nick,$nickname,
819s,\$irc_realname,$realname,
820s,\$irc_username,$username,
e1c0f343 821s,\$irc_password,$password,
903b1259
ER
822' /etc/eventum/irc.php
823
5b165428 824%triggerpostun -- eventum < 1.7.0-2.0.48
bdf85dc8
ER
825# migrate from apache-config macros
826if [ -f /etc/%{name}/apache.conf.rpmsave ]; then
827 if [ -d /etc/apache/webapps.d ]; then
828 cp -f %{_webapps}/%{_webapp}/apache.conf{,.rpmnew}
829 cp -f /etc/%{name}/apache.conf.rpmsave %{_webapps}/%{_webapp}/apache.conf
830 fi
831
832 if [ -d /etc/httpd/webapps.d ]; then
833 cp -f %{_webapps}/%{_webapp}/httpd.conf{,.rpmnew}
834 cp -f /etc/%{name}/apache.conf.rpmsave %{_webapps}/%{_webapp}/httpd.conf
835 fi
836fi
837
cd87a3e8
ER
838if [ -L /etc/apache/conf.d/99_%{_webapp}.conf ]; then
839 /usr/sbin/webapp register apache %{_webapp}
840 rm -f /etc/apache/conf.d/99_%{_webapp}.conf
99bbe3cb 841 %service -q apache reload
cd87a3e8
ER
842fi
843if [ -L /etc/httpd/httpd.conf/99_%{_webapp}.conf ]; then
844 /usr/sbin/webapp register httpd %{_webapp}
845 rm -f /etc/httpd/httpd.conf/99_%{_webapp}.conf
99bbe3cb 846 %service -q httpd reload
cd87a3e8
ER
847fi
848
9bfc5524
ER
849%{_appdir}/upgrade/upgrade.sh %{_appdir}/upgrade/v1.6.1_to_v1.7.0 <<EOF
850database_changes.php Perform database changes
851set_root_message_ids.php Set iss_root_message_id
852EOF
853
bdf85dc8 854# regular configs
c3e18268 855for i in apache.conf config.php private_key.php setup.php; do
bdf85dc8 856 if [ -f /etc/eventum/$i.rpmsave ]; then
8a37ad9d
ER
857 mv -f %{_webappdir}/$i{,.rpmnew}
858 mv -f /etc/eventum/$i.rpmsave %{_webappdir}/$i
bdf85dc8
ER
859 fi
860done
861
8a37ad9d
ER
862%triggerpostun cli -- %{name}-cli < 1.7.0-3.4
863if [ -f %{_webappdir}/cli.php.rpmsave ]; then
bdf85dc8 864 mv -f %{_sysconfdir}/cli.php{,.rpmnew}
8a37ad9d 865 mv -f %{_webappdir}/cli.php.rpmsave %{_sysconfdir}/cli.php
bdf85dc8
ER
866fi
867
8a37ad9d
ER
868%triggerpostun irc -- %{name}-irc < 1.7.0-3.4
869if [ -f %{_webappdir}/irc.php.rpmsave ]; then
bdf85dc8 870 mv -f %{_sysconfdir}/irc.php{,.rpmnew}
8a37ad9d 871 mv -f %{_webappdir}/irc.php.rpmsave %{_sysconfdir}/irc.php
bdf85dc8
ER
872fi
873
bd7564e0
ER
874%triggerpostun scm -- %{name}-scm < 1.7.1-2.70.20060724
875if [ -f %{_sysconfdir}/cvs.php.rpmsave ]; then
876 mv -f %{_sysconfdir}/scm.php{,.rpmnew}
877 mv -f %{_sysconfdir}/cvs.php.rpmsave %{_sysconfdir}/scm.php
878fi
879ln -sf process_cvs_commits $RPM_BUILD_ROOT%{_libdir}/scm
880
31dabce6
ER
881%triggerpostun -- eventum < eventum-1.7.1-5.165
882%{__sed} -i -e '
883 /define.*APP_URL/d
884' %{_webappdir}/config.php
885
77b3db3b
ER
886%triggerpostun irc -- %{name}-irc < 1.7.1-5.181
887if [ -f %{_sysconfdir}/irc.php.rpmsave ]; then
888 mv -f %{_webappdir}/irc_config.php{,.rpmnew}
889 mv -f %{_sysconfdir}/irc.php.rpmsave %{_webappdir}/irc_config.php
890fi
891
600d96a0 892%files -f %{name}.lang
bb01d732 893%defattr(644,root,root,755)
5e8e4e5e 894%doc ChangeLog FAQ INSTALL README UPGRADE CONTRIB
3d92cbd2 895%doc docs/* setup/schema.sql mysql-permissions.sql
8a37ad9d
ER
896%attr(751,root,root) %dir %{_webappdir}
897%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/apache.conf
898%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/httpd.conf
f399f1c0 899%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/lighttpd.conf
8a37ad9d
ER
900%attr(640,root,eventum) %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/config.php
901%attr(640,root,eventum) %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/private_key.php
902%attr(660,root,eventum) %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/setup.php
f399f1c0 903%attr(640,root,http) %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/htpasswd
d2e501e8 904
01b84746
ER
905%dir %attr(731,root,eventum) /var/log/%{name}
906%attr(620,root,eventum) %ghost /var/log/%{name}/*
c1e74aa1
ER
907%dir %attr(750,root,root) /var/log/archiv/%{name}
908%config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}
35f9d6a3 909
cfc3bce6
ER
910%dir %{_appdir}/htdocs
911%{_appdir}/htdocs/*.php
da8d6134 912%{_appdir}/htdocs/*.ico
cfc3bce6
ER
913%{_appdir}/htdocs/css
914%{_appdir}/htdocs/customer
915%{_appdir}/htdocs/images
916%{_appdir}/htdocs/js
917%{_appdir}/htdocs/manage
918%{_appdir}/htdocs/reports
919%{_appdir}/htdocs/rpc
920%{_appdir}/htdocs/misc
9748a8c3 921%{_appdir}/templates
c9165420
ER
922%dir %{_appdir}/upgrade
923%attr(755,root,root) %{_appdir}/upgrade/upgrade.sh
924%{_appdir}/upgrade/[!u]*
ddcd51d0 925%{_smartyplugindir}
085e39c0 926
9748a8c3
ER
927%dir %{_appdir}/include
928%{_appdir}/include/customer
1c9d2c71 929%{_appdir}/include/custom_field
9748a8c3 930%{_appdir}/include/jpgraph
9748a8c3 931%{_appdir}/include/workflow
d3796334 932%{_appdir}/include/class.[!m]*.php
c96aabf5
ER
933%{_appdir}/include/class.mail.php
934%{_appdir}/include/class.mail_queue.php
935%{_appdir}/include/class.mime_helper.php
936%{_appdir}/include/class.misc.php
937%{_appdir}/include/db_access.php
9748a8c3 938
01b84746
ER
939%dir %attr(730,root,eventum) /var/run/%{name}
940%dir %attr(730,root,eventum) /var/cache/%{name}
ab983aaa 941
d2e501e8
ER
942%files base
943%defattr(644,root,root,755)
944%attr(751,root,root) %dir %{_sysconfdir}
a392a259 945%dir %{_libdir}
cfc3bce6 946%dir %{_appdir}
1f52d1fe
ER
947# qmail will ignore user, if it's home directory is not owned
948%attr(750,eventum,eventum) %dir /var/lib/%{name}
89522a33 949# saved mail copies
1d760108 950%attr(770,root,eventum) %dir /var/lib/%{name}/routed_emails
89522a33
ER
951%attr(770,root,eventum) %dir /var/lib/%{name}/routed_drafts
952%attr(770,root,eventum) %dir /var/lib/%{name}/routed_notes
d2e501e8 953
ab983aaa
ER
954%files setup
955%defattr(644,root,root,755)
cfc3bce6 956%{_appdir}/htdocs/setup
0da8e1f2
ER
957
958%files mail-queue
959%defattr(644,root,root,755)
16902912 960%attr(755,root,root) %{_appdir}/process_mail_queue.php
ea084bcb
ER
961%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/%{name}-mail-queue
962
963%files mail-download
964%defattr(644,root,root,755)
790ebceb 965%attr(755,root,root) %{_appdir}/download_emails.php
ea084bcb 966%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/%{name}-mail-download
5cb2e61d 967
cd719538
ER
968%files reminder
969%defattr(644,root,root,755)
16902912 970%attr(755,root,root) %{_appdir}/check_reminders.php
cd719538
ER
971%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/%{name}-reminder
972
973%files monitor
974%defattr(644,root,root,755)
c96aabf5 975%{_appdir}/include/class.monitor.php
16902912 976%attr(755,root,root) %{_appdir}/monitor.php
cd719538
ER
977%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/%{name}-monitor
978
5b165428
ER
979%files route-drafts
980%defattr(644,root,root,755)
410d72c7 981%attr(755,root,root) %{_appdir}/route_drafts.php
5b165428 982
cd719538
ER
983%files route-emails
984%defattr(644,root,root,755)
410d72c7 985%attr(755,root,root) %{_appdir}/route_emails.php
cd719538
ER
986
987%files route-notes
988%defattr(644,root,root,755)
410d72c7 989%attr(755,root,root) %{_appdir}/route_notes.php
cd719538 990
5e76225b 991%if %{with qmail}
a6d2ad69
ER
992%files router-qmail
993%defattr(644,root,root,755)
994%attr(640,root,eventum) %config(noreplace) %verify(not md5 mtime size) /var/lib/%{name}/.qmail*
995%attr(755,root,root) %{_libdir}/router-qmail
6ee43cd6 996%endif
a6d2ad69
ER
997
998%files router-postfix
999%defattr(644,root,root,755)
410d72c7 1000%attr(755,root,root) %{_libdir}/router-postfix
a6d2ad69 1001
cd719538
ER
1002%files irc
1003%defattr(644,root,root,755)
77b3db3b 1004%attr(640,root,eventum) %config(noreplace) %verify(not md5 mtime size) %{_webappdir}/irc_config.php
01b84746 1005%attr(640,root,eventum) %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/eventum-irc
71f56750 1006%attr(755,root,root) %{_sbindir}/%{name}-bot
cd719538
ER
1007%attr(754,root,root) /etc/rc.d/init.d/%{name}-irc
1008
abd490e4
ER
1009%files cli
1010%defattr(644,root,root,755)
1011%doc eventumrc
ca6b8520 1012%config %verify(not md5 mtime size) %{_sysconfdir}/cli.php
d2e501e8 1013%attr(755,root,root) %{_bindir}/%{name}
cfc3bce6 1014%{_appdir}/cli
abd490e4 1015
5cb2e61d
ER
1016%files scm
1017%defattr(644,root,root,755)
ca6b8520 1018%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/scm.php
bd7564e0
ER
1019%attr(755,root,root) %{_libdir}/process_cvs_commits
1020%attr(755,root,root) %{_libdir}/process_svn_commits
1021# legacy
1022%ghost %{_libdir}/scm
This page took 0.330019 seconds and 4 git commands to generate.