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