]> git.pld-linux.org Git - packages/otrs.git/blob - otrs.spec
it is not ready, read you PM
[packages/otrs.git] / otrs.spec
1 # TODO:
2 # - separate 3 subpackages: common files, administration and client frontend
3 # - all otrs-var into /var/lib/otrs
4 # - write not so brain-damage init-script...
5 #   VERIFY .... rpm -qp .../foo.rpm --provides
6 %include    /usr/lib/rpm/macros.perl
7 Summary:        The Open Ticket Request System
8 Summary(pl.UTF-8):      Open Ticket Request System - otwarty system zgłaszania żądań
9 Name:           otrs
10 Version:        3.2.1
11 Release:        0.1
12 Epoch:          1
13 License:        GPL
14 Group:          Applications/Databases
15 Source0:        http://ftp.otrs.org/pub/otrs/%{name}-%{version}.tar.bz2
16 # Source0-md5:  9f096d37d6c4842680962676ef32a2f7
17 Source1:        %{name}-logrotate
18 Source2:        %{name}.sysconfig
19 Patch0:         %{name}-paths.patch
20 URL:            http://otrs.org/
21 BuildRequires:  rpm-perlprov
22 BuildRequires:  rpmbuild(macros) >= 1.654
23 Requires(pre):  /bin/id
24 Requires(pre):  /usr/sbin/useradd
25 Requires(pre):  /usr/sbin/usermod
26 Requires:       apache(mod_perl)
27 Requires:       perl-Crypt-PasswdMD5
28 Requires:       perl-DBD-mysql
29 Requires:       perl-DBI
30 Requires:       perl-Text-CSV
31 Requires:       perl-YAML-LibYAML
32 Requires:       procmail
33 Requires:       smtpdaemon
34 Requires:       webapps
35 Requires:       webserver = apache
36 Suggests:       perl-Crypt-SSLeay
37 Suggests:       perl-JSON-XS
38 Suggests:       perl-PDF-API2
39 Conflicts:      logrotate < 3.7-4
40 BuildArch:      noarch
41 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42
43 %define         _noautoreq_perl Kernel::.*
44 %define         _noautoprovfiles    %{otrsdir}/Kernel/cpan-lib/
45
46 %define         otrsdir         %{_datadir}/otrs
47 %define         otrsuser        otrs
48 %define         _webapps        /etc/webapps
49 %define         _webapp         %{name}
50
51 %description
52 OTRS is an Open source Ticket Request System with many features to
53 manage customer telephone calls and e-mails. It is distributed under
54 the GNU General Public License (GPL) and tested on Linux, Solaris,
55 AIX, FreeBSD and MacOS X. Do you receive many e-mails and want to
56 answer them with a team of agents? You're going to love the OTRS!
57
58 Feature list:
59 - web-interface: easy and logical to use, with agent, admin and
60   customer views, themes support, multi language support, customizable
61   templates, attachments support
62 - email-interface with MIME attachments support, dispatching mail via
63   address or x-header, autoresponders for customers, notifications to
64   the agent
65 - tickets with customizable views, locking, replying, autoresponders,
66   history, ability to add notes, email bouncing/forwarding, priorities,
67   time accounting, content full-text search
68 - system with creation and configuration of user accounts, groups,
69   standard responses, signatures, notifications for administrators and
70   problem reporters, deadlines for trouble tickets, settable ticket
71   number format, different levels of permissions/access-rights, central
72   database (MySQL, PostgreSQL, ...), user authentication against
73   database or LDAP directory, easy addons and frontends development.
74
75 %description -l pl.UTF-8
76 OTRS (Open source Ticket Request System) to wolnodostępny system
77 zgłaszania żądań z wieloma możliwościami zarządzania telefonami i
78 e-mailami od klientów. Jest rozpowszechniany na Powszechnej Licencji
79 Publicznej GNU (GPL) i testowany na Linuksie, Solarisie, AIX-ie,
80 FreeBSD i MacOS X. Jeśli otrzymujemy wiele e-maili i chcemy odpowiadać
81 na nie poprzez zespół agentów, to OTRS może się okazać bardzo dobrym
82 narzędziem.
83
84 Lista możliwości:
85 - interfejs WWW: łatwy i logiczny w użyciu, z widokami dla agentów,
86   administratorów i klientów, obsługą motywów, obsługą wielu języków,
87   modyfikowalnymi szablonami, obsługą załączników
88 - interfejs e-mailowy z obsługą załączników MIME, obsługą poczty w
89   zależności od adresu lub x-nagłówków, autoresponderami dla klientów,
90   powiadomieniami dla agentów
91 - bilety z konfigurowalnymi widokami, blokowaniem, odpowiadaniem,
92   autoresponderami, historią, możliwością dodawania notatek,
93   odbijaniem/przekierowywaniem poczty, priorytetami, rozliczaniem czasu,
94   pełnotekstowym przeszukiwaniem zawartości
95 - system z tworzeniem i konfiguracją kont użytkowników, grup,
96   standardowych odpowiedzi, sygnaturek, powiadomieniami dla
97   administratorów i zgłaszających problemy, ostatecznymi terminami dla
98   problematycznych biletów, ustawialnym formatem numerowania biletów,
99   różnymi poziomami uprawnień/praw dostępu, centralną bazą danych
100   (MySQL, PostgreSQL...), uwierzytelnianiem użytkowników przy użyciu
101   bazy danych lub katalogu LDAP, łatwym tworzeniem dodatków i
102   frontendów.
103
104 %package scripts
105 Summary:        OTRS scripts
106 Summary(pl.UTF-8):      Skrypty dla OTRS
107 Group:          Applications/Databases
108 Requires:       %{name} = %{epoch}:%{version}-%{release}
109
110 %description scripts
111 Various scripts for OTRS.
112
113 %description scripts -l pl.UTF-8
114 Różne skrypty dla OTRS.
115
116 %prep
117 %setup -q
118 %patch0 -p1
119
120 # copy config file
121 cp Kernel/Config/GenericAgent.pm.dist Kernel/Config/GenericAgent.pm
122 cd Kernel/Config/ && for foo in *.dist; do cp $foo `basename $foo .dist`; done && cd ../../
123
124 # Remove regular CPAN libs - only HTML/Safe.pm has to stay, I can't find it...
125 rm -Rf Kernel/cpan-lib/{Authen,Date,Email,IO,MIME,Mail,XML,auto}
126 # Remove junk:
127 rm -Rf doc/manual/*/sgml/
128 rm -Rf doc/manual/de/
129
130 %install
131 rm -rf $RPM_BUILD_ROOT
132 install -d $RPM_BUILD_ROOT/etc/{cron.d,logrotate.d,rc.d/init.d,sysconfig,%{name}/Config,logrotate.d} \
133         $RPM_BUILD_ROOT{/var/log/{,archive/}%{name},%{_bindir},%{otrsdir}} \
134         $RPM_BUILD_ROOT/var/lib/%{name}/{article,pics/stats} \
135         $RPM_BUILD_ROOT%{_webapps}/%{_webapp}
136
137 # copy files
138 cp -R . $RPM_BUILD_ROOT%{otrsdir}
139
140 # copy all crontab dist files
141 for foo in var/cron/*.dist; do mv $foo $RPM_BUILD_ROOT/etc/cron.d/otrs.`basename $foo` ; done
142
143 # install init-Script & apache2 config
144 install scripts/redhat-rcotrs $RPM_BUILD_ROOT/etc/rc.d/init.d/otrs
145 install %{SOURCE2} $RPM_BUILD_ROOT/etc/sysconfig/otrs
146
147 install scripts/apache2-httpd.include.conf $RPM_BUILD_ROOT%{_webapps}/%{_webapp}/httpd.conf
148
149 install %{SOURCE1} $RPM_BUILD_ROOT/etc/logrotate.d/%{name}
150
151 # logs in proper place:
152 touch $RPM_BUILD_ROOT/var/log/%{name}/TicketCounter.log
153 touch $RPM_BUILD_ROOT/var/log/%{name}/otrs.log
154
155 # move configs into proper place...
156 mv -f $RPM_BUILD_ROOT%{otrsdir}/.procmailrc.dist $RPM_BUILD_ROOT/etc/%{name}/procmailrc
157 mv -f $RPM_BUILD_ROOT%{otrsdir}/.fetchmailrc.dist $RPM_BUILD_ROOT/etc/%{name}/fetchmailrc
158 mv -f $RPM_BUILD_ROOT%{otrsdir}/.mailfilter.dist $RPM_BUILD_ROOT/etc/%{name}/mailfilter
159 mv -f $RPM_BUILD_ROOT%{otrsdir}/Kernel/Config.pm.dist $RPM_BUILD_ROOT/etc/%{name}/Config.pm
160 mv -f $RPM_BUILD_ROOT%{otrsdir}/Kernel/Config/GenericAgent.pm $RPM_BUILD_ROOT/etc/%{name}
161 # save dist versions
162 # TODO: drop .dist and rely on rpm %config(noreplace) feature
163 install $RPM_BUILD_ROOT/etc/%{name}/procmailrc $RPM_BUILD_ROOT/etc/%{name}/procmailrc.dist
164 install $RPM_BUILD_ROOT/etc/%{name}/fetchmailrc $RPM_BUILD_ROOT/etc/%{name}/fetchmailrc.dist
165 install $RPM_BUILD_ROOT/etc/%{name}/mailfilter $RPM_BUILD_ROOT/etc/%{name}/mailfilter.dist
166 install $RPM_BUILD_ROOT/etc/%{name}/Config.pm $RPM_BUILD_ROOT/etc/%{name}/Config.pm.dist
167 install $RPM_BUILD_ROOT/etc/%{name}/GenericAgent.pm $RPM_BUILD_ROOT/etc/%{name}/GenericAgent.pm.dist
168 # File for on-line configuration:
169 touch $RPM_BUILD_ROOT/etc/%{name}/ZZZAAuto.pm
170 ln -sf ../../../../../../etc/otrs/ZZZAAuto.pm $RPM_BUILD_ROOT%{otrsdir}/Kernel/Config/Files/ZZZAAuto.pm
171 # link to proper places
172 ln -sf ../../../etc/otrs/procmailrc $RPM_BUILD_ROOT%{otrsdir}/.procmailrc
173 ln -sf ../../../etc/otrs/fetchmailrc $RPM_BUILD_ROOT%{otrsdir}/.fetchmailrc
174 ln -sf ../../../etc/otrs/mailfilter $RPM_BUILD_ROOT%{otrsdir}/.mailfilter
175 ln -sf ../../../../etc/otrs/Config.pm $RPM_BUILD_ROOT%{otrsdir}/Kernel/Config.pm
176 ln -sf ../../../../../etc/otrs/GenericAgent.pm $RPM_BUILD_ROOT%{otrsdir}/Kernel/Config/GenericAgent.pm
177
178 # Cleanup junk:
179 rm -f $RPM_BUILD_ROOT%{otrsdir}/scripts/apache* $RPM_BUILD_ROOT%{otrsdir}/scripts/redhat* $RPM_BUILD_ROOT%{otrsdir}/scripts/suse*
180 rm -rf $RPM_BUILD_ROOT%{otrsdir}/scripts/auto* $RPM_BUILD_ROOT%{otrsdir}/scripts/test
181 rm -rf $RPM_BUILD_ROOT%{otrsdir}/doc
182
183 # Needed for apache2:
184 install scripts/apache2-perl-startup.pl $RPM_BUILD_ROOT%{otrsdir}/scripts/apache2-perl-startup
185
186 %clean
187 rm -rf $RPM_BUILD_ROOT
188
189 %pre
190 %useradd -u 31 -d %{otrsdir} -s /bin/false -g http -c 'OTRS System user' %{otrsuser}
191
192 # TODO move to trigger?
193 # update home dir
194 /usr/sbin/usermod -d %{otrsdir} %{otrsuser}
195
196 %post
197 if [ "$1" = 0 ]; then
198         # note
199 %banner -e %{name} <<EOF
200 [install the OTRS database]
201  Use a webbrowser and open this link: http://`hostname -f`/otrs/installer.pl
202 EOF
203 fi
204
205 %triggerin -- apache < 2.2.0, apache-base
206 %webapp_register httpd %{_webapp}
207
208 %triggerun -- apache < 2.2.0, apache-base
209 %webapp_unregister httpd %{_webapp}
210
211 %triggerpostun -- %{name} < 1:2.0.4-0.5
212 # nuke very-old config location (this mostly for Ra)
213 if [ -f /etc/httpd/httpd.conf ]; then
214         sed -i -e "/^Include.*%{name}.conf/d" /etc/httpd/httpd.conf
215 fi
216
217 # apache2 config
218 if [ -f /etc/httpd/httpd.conf/88_otrs.conf.rpmsave ]; then
219         cp -f %{_webapps}/%{_webapp}/httpd.conf{,.rpmnew}
220         mv -f /etc/httpd/httpd.conf/88_otrs.conf.rpmsave %{_webapps}/%{_webapp}/httpd.conf
221 fi
222
223 /usr/sbin/webapp register httpd %{_webapp}
224 %service -q httpd reload
225
226 %files
227 %defattr(644,root,root,755)
228 %doc ARCHIVE CHANGES  COPYING  COPYING-Third-Party CREDITS doc/ README README.database README.webserver RELEASE UPGRADING
229 %doc scripts/test Kernel/Config/GenericAgent.pm.examples
230 %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/otrs
231 %attr(751,otrs,http) %dir %{_sysconfdir}/%{name}
232 %attr(751,otrs,http) %dir %{_sysconfdir}/%{name}/Config/
233 %attr(644,otrs,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/procmailrc
234 %attr(710,otrs,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/fetchmailrc
235 %attr(600,otrs,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/mailfilter
236 %attr(660,otrs,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/Config.pm
237 %attr(640,otrs,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/GenericAgent.pm
238 %attr(660,otrs,http) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{name}/ZZZAAuto.pm
239 %attr(640,otrs,http) %{_sysconfdir}/%{name}/*.dist
240 %attr(644,otrs,http) %config(noreplace) %verify(not md5 mtime size) /etc/cron.d/*
241 %attr(754,root,root) /etc/rc.d/init.d/%{name}
242 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) /etc/logrotate.d/%{name}
243 %attr(755,otrs,http) %dir %{otrsdir}
244 %{otrsdir}/RELEASE
245 %{otrsdir}/.procmailrc
246 %{otrsdir}/.fetchmailrc
247 %{otrsdir}/.mailfilter
248 %dir %{otrsdir}/Kernel
249 %dir %{otrsdir}/Kernel/Config
250 %{otrsdir}/Kernel/Config/Defaults.pm
251 %{otrsdir}/Kernel/Config/GenericAgent.pm
252 %dir %{otrsdir}/Kernel/Config/Files
253 %{otrsdir}/Kernel/Config/Files/*.xml
254 %dir %{otrsdir}/Kernel/GenericInterface
255 %{otrsdir}/Kernel/GenericInterface/*.pm
256 %dir %{otrsdir}/Kernel/GenericInterface/Event
257 %dir %{otrsdir}/Kernel/GenericInterface/Invoker
258 %dir %{otrsdir}/Kernel/GenericInterface/Invoker/Test
259 %dir %{otrsdir}/Kernel/GenericInterface/Mapping
260 %dir %{otrsdir}/Kernel/GenericInterface/Operation
261 %dir %{otrsdir}/Kernel/GenericInterface/Operation/Session
262 %dir %{otrsdir}/Kernel/GenericInterface/Operation/Test
263 %dir %{otrsdir}/Kernel/GenericInterface/Operation/Ticket
264 %dir %{otrsdir}/Kernel/GenericInterface/Transport
265 %dir %{otrsdir}/Kernel/GenericInterface/Transport/HTTP
266 %{otrsdir}/Kernel/*.pm
267 %{otrsdir}/Kernel/*/*/*.pm
268 %{otrsdir}/Kernel/*/*/*/*.pm
269 %dir %{otrsdir}/Kernel/Language
270 %{otrsdir}/Kernel/Language/*.pm
271 %dir %{otrsdir}/Kernel/Modules
272 %{otrsdir}/Kernel/Modules/*.pm
273 %dir %{otrsdir}/Kernel/Output
274 %dir %{otrsdir}/Kernel/Output/HTML
275 %dir %{otrsdir}/Kernel/Output/HTML/Standard
276 %attr(644,otrs,http) %config(noreplace) %{otrsdir}/Kernel/Output/HTML/Standard/*.dtl
277 %dir %{otrsdir}/Kernel/Output/HTML/Standard/ProcessManagement
278 %attr(644,otrs,http) %config(noreplace) %{otrsdir}/Kernel/Output/HTML/Standard/ProcessManagement/*.dtl
279 %dir %{otrsdir}/Kernel/Scheduler
280 %{otrsdir}/Kernel/Scheduler/*.pm
281 %dir %{otrsdir}/Kernel/Scheduler/TaskHandler
282 %dir %{otrsdir}/Kernel/System
283 %{otrsdir}/Kernel/System/*.pm
284 %dir %{otrsdir}/Kernel/System/Auth
285 %dir %{otrsdir}/Kernel/System/Auth/Sync
286 %dir %{otrsdir}/Kernel/System/AuthSession
287 %dir %{otrsdir}/Kernel/System/Cache
288 %dir %{otrsdir}/Kernel/System/Crypt
289 %dir %{otrsdir}/Kernel/System/CustomerAuth
290 %dir %{otrsdir}/Kernel/System/CustomerUser
291 %dir %{otrsdir}/Kernel/System/CustomerUser/Preferences
292 %dir %{otrsdir}/Kernel/System/DB
293 %dir %{otrsdir}/Kernel/System/DynamicField
294 %dir %{otrsdir}/Kernel/System/DynamicField/Backend
295 %dir %{otrsdir}/Kernel/System/DynamicField/ObjectType
296 %dir %{otrsdir}/Kernel/System/Email
297 %dir %{otrsdir}/Kernel/System/GenericAgent
298 %dir %{otrsdir}/Kernel/System/GenericInterface
299 %dir %{otrsdir}/Kernel/System/LinkObject
300 %dir %{otrsdir}/Kernel/System/Log
301 %dir %{otrsdir}/Kernel/System/MailAccount
302 %dir %{otrsdir}/Kernel/System/PostMaster
303 %dir %{otrsdir}/Kernel/System/PostMaster/LoopProtection
304 %dir %{otrsdir}/Kernel/System/PostMaster/Filter
305 %dir %{otrsdir}/Kernel/System/ProcessManagement
306 %dir %{otrsdir}/Kernel/System/ProcessManagement/DB
307 %dir %{otrsdir}/Kernel/System/ProcessManagement/DB/Process
308 %{otrsdir}/Kernel/System/ProcessManagement/DB/Process/State.pm
309 %dir %{otrsdir}/Kernel/System/ProcessManagement/TransitionAction
310 %dir %{otrsdir}/Kernel/System/ProcessManagement/TransitionValidation
311 %dir %{otrsdir}/Kernel/System/Queue
312 %dir %{otrsdir}/Kernel/System/Scheduler
313 %dir %{otrsdir}/Kernel/System/SLA
314 %dir %{otrsdir}/Kernel/System/Service
315 %dir %{otrsdir}/Kernel/System/Stats
316 %dir %{otrsdir}/Kernel/System/Stats/Static
317 %dir %{otrsdir}/Kernel/System/Stats/Dynamic
318 %dir %{otrsdir}/Kernel/System/SysConfig
319 %dir %{otrsdir}/Kernel/System/Ticket
320 %dir %{otrsdir}/Kernel/System/Ticket/Acl
321 %dir %{otrsdir}/Kernel/System/Ticket/ArticleSearchIndex
322 %dir %{otrsdir}/Kernel/System/Ticket/CustomerPermission
323 %dir %{otrsdir}/Kernel/System/Ticket/Event
324 %dir %{otrsdir}/Kernel/System/Ticket/Permission
325 %dir %{otrsdir}/Kernel/System/Ticket/IndexAccelerator
326 %dir %{otrsdir}/Kernel/System/Ticket/Number
327 %dir %{otrsdir}/Kernel/System/UnitTest
328 %dir %{otrsdir}/Kernel/System/User
329 %dir %{otrsdir}/Kernel/System/User/Preferences
330 %dir %{otrsdir}/Kernel/System/Web
331 %dir %{otrsdir}/Kernel/System/Web/UploadCache
332 %dir %{otrsdir}/Kernel/System/VirtualFS
333 %dir %{otrsdir}/Kernel/cpan-lib
334 %{otrsdir}/Kernel/cpan-lib/*.pm
335 %dir %{otrsdir}/Kernel/cpan-lib/Algorithm
336 %dir %{otrsdir}/Kernel/cpan-lib/Apache
337 %dir %{otrsdir}/Kernel/cpan-lib/Apache2
338 %dir %{otrsdir}/Kernel/cpan-lib/CGI
339 %dir %{otrsdir}/Kernel/cpan-lib/Class
340 %dir %{otrsdir}/Kernel/cpan-lib/Class/Inspector
341 %dir %{otrsdir}/Kernel/cpan-lib/Crypt
342 %dir %{otrsdir}/Kernel/cpan-lib/CSS
343 %dir %{otrsdir}/Kernel/cpan-lib/Digest
344 %dir %{otrsdir}/Kernel/cpan-lib/Digest/SHA
345 %dir %{otrsdir}/Kernel/cpan-lib/Encode
346 %dir %{otrsdir}/Kernel/cpan-lib/File
347 %dir %{otrsdir}/Kernel/cpan-lib/HTTP
348 %dir %{otrsdir}/Kernel/cpan-lib/HTTP/Headers
349 %dir %{otrsdir}/Kernel/cpan-lib/HTTP/Request
350 %dir %{otrsdir}/Kernel/cpan-lib/JSON
351 %dir %{otrsdir}/Kernel/cpan-lib/JSON/PP
352 %dir %{otrsdir}/Kernel/cpan-lib/JSON/backportPP
353 %dir %{otrsdir}/Kernel/cpan-lib/JavaScript
354 %dir %{otrsdir}/Kernel/cpan-lib/LWP
355 %dir %{otrsdir}/Kernel/cpan-lib/LWP/Authen
356 %dir %{otrsdir}/Kernel/cpan-lib/LWP/Protocol
357 %dir %{otrsdir}/Kernel/cpan-lib/Locale
358 %dir %{otrsdir}/Kernel/cpan-lib/Locale/Codes
359 %dir %{otrsdir}/Kernel/cpan-lib/Mozilla
360 %dir %{otrsdir}/Kernel/cpan-lib/Mozilla/CA
361 %{otrsdir}/Kernel/cpan-lib/Mozilla/CA/cacert.pem
362 %dir %{otrsdir}/Kernel/cpan-lib/Net
363 %dir %{otrsdir}/Kernel/cpan-lib/Net/IMAP
364 %dir %{otrsdir}/Kernel/cpan-lib/Net/IMAP/Simple
365 %{otrsdir}/Kernel/cpan-lib/Net/IMAP/Simple/*.pm
366 %dir %{otrsdir}/Kernel/cpan-lib/Net/POP3
367 %dir %{otrsdir}/Kernel/cpan-lib/Net/SMTP
368 %dir %{otrsdir}/Kernel/cpan-lib/Net/SMTP/TLS
369 %{otrsdir}/Kernel/cpan-lib/Net/SMTP/TLS/*.pm
370 %dir %{otrsdir}/Kernel/cpan-lib/Proc
371 %{otrsdir}/Kernel/cpan-lib/Proc/Daemon.pod
372 %dir %{otrsdir}/Kernel/cpan-lib/SOAP
373 %dir %{otrsdir}/Kernel/cpan-lib/SOAP/Lite
374 %dir %{otrsdir}/Kernel/cpan-lib/SOAP/Lite/Deserializer
375 %{otrsdir}/Kernel/cpan-lib/SOAP/Lite/Deserializer/*.pm
376 %dir %{otrsdir}/Kernel/cpan-lib/SOAP/Transport
377 %dir %{otrsdir}/Kernel/cpan-lib/Text
378 %dir %{otrsdir}/Kernel/cpan-lib/Text/Diff
379 %dir %{otrsdir}/Kernel/cpan-lib/URI
380 %dir %{otrsdir}/Kernel/cpan-lib/URI/file
381 %dir %{otrsdir}/Kernel/cpan-lib/URI/urn
382 %dir %{otrsdir}/Kernel/cpan-lib/YAML
383 %dir %{otrsdir}/Kernel/cpan-lib/YAML/Dumper
384 %dir %{otrsdir}/Kernel/cpan-lib/YAML/Loader
385 %dir %{otrsdir}/bin
386 %attr(700,otrs,root) %{otrsdir}/bin/*.sh
387 %attr(700,otrs,root) %{otrsdir}/bin/otrs.*
388 %dir %{otrsdir}/bin/cgi-bin/
389 %attr(750,root,http) %{otrsdir}/bin/cgi-bin/*.pl
390 %dir %{otrsdir}/bin/fcgi-bin/
391 %attr(750,root,http) %{otrsdir}/bin/fcgi-bin/*.pl
392 %{otrsdir}/INSTALL
393 %dir %{otrsdir}/scripts
394 %dir %{otrsdir}/scripts/database
395 %{otrsdir}/scripts/*.sql
396 %{otrsdir}/scripts/apache2-perl-startup
397 %{otrsdir}/scripts/database/*
398 %attr(751,otrs,http) %dir /var/log/%{name}
399 %attr(751,otrs,http) %dir /var/log/archive/%{name}
400 %attr(664,otrs,http) %config(noreplace) %verify(not md5 mtime size) /var/log/otrs/otrs.log
401 %attr(664,otrs,http) %config(noreplace) %verify(not md5 mtime size) /var/log/otrs/TicketCounter.log
402 # This entries should be changed into links and proper trigger to move data:
403 %attr(751,otrs,http) %dir %{otrsdir}/var/
404 %{otrsdir}/var/*.png
405 %attr(755,otrs,http) %dir /etc/cron.d
406 %attr(2775,otrs,http) %{otrsdir}/var/article
407 %attr(755,otrs,http) %{otrsdir}/var/fonts
408 %attr(755,otrs,http) %{otrsdir}/var/httpd
409 %attr(755,otrs,http) %{otrsdir}/var/sessions
410 %attr(755,otrs,http) %{otrsdir}/var/spool
411 %attr(755,otrs,http) %{otrsdir}/var/stats
412 %attr(2775,otrs,http) %{otrsdir}/var/tmp
413 # attempt to move to /var/lib:
414 %attr(751,otrs,http) %dir /var/lib/%{name}
415 %attr(2775,otrs,http) %dir /var/lib/%{name}/article
416 %attr(751,otrs,http) %dir /var/lib/%{name}/pics
417 %attr(751,otrs,http) %dir /var/lib/%{name}/pics/stats
418
419 %dir %attr(750,root,http) %{_webapps}/%{_webapp}
420 %attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_webapps}/%{_webapp}/httpd.conf
421
422 %files scripts
423 %defattr(644,root,root,755)
424 %attr(700,otrs,http) %{otrsdir}/scripts/*.pl
425 %attr(700,otrs,http) %{otrsdir}/scripts/tools/*.pl
426 %{otrsdir}/scripts/*.pm
427 %dir %{otrsdir}/scripts/tools
This page took 0.113857 seconds and 3 git commands to generate.