Hello community,
here is the log from the commit of package otrs.1118 for openSUSE:12.2:Update checked in at 2012-12-07 10:48:24
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:12.2:Update/otrs.1118 (Old)
and /work/SRC/openSUSE:12.2:Update/.otrs.1118.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "otrs.1118", Maintainer is ""
Changes:
--------
New Changes file:
--- /dev/null 2012-11-30 12:21:47.308011256 +0100
+++ /work/SRC/openSUSE:12.2:Update/.otrs.1118.new/otrs.changes 2012-12-07 10:48:28.000000000 +0100
@@ -0,0 +1,1862 @@
+-------------------------------------------------------------------
+Fri Nov 23 09:12:46 UTC 2012 - chris@computersalat.de
+
+- fix for bnc#790729 (typo in ZZZAuto.pm)
+- fix for bnc#791014 (CVE-2012-4751)
+- Update to 3.1.11:
+ ( fix for OSA-2012-03, http://otrs.org/advisory/)
+ - Fixed bug#8770 - AJAX Removes Default Options.
+ - Fixed bug#7135 - Queueview, Ticketwindow closing on Refresh.
+ - Fixed bug#7294 - Ticket search window closes on background
+ refresh of ticket queue.
+ - Fixed bug#8765 - Package Manager OS detection does not work.
+ - Improved HTML security filter to better find javascript source
+ URLs.
+ - Fixed bug#8575 - SSL protocol negotiation fails using SMTPTLS
+ with recent IO::Socket::SSL versions by upgrading TLS module to
+ 0.20.
+ - Fixed bug#4475 - Extra double quote added to HTML links when
+ using http-link field.
+ - Improved caching of search results when the result set is empty.
+- Rebase otrs-perm.patch.
+
+-------------------------------------------------------------------
+Mon Sep 10 14:11:47 UTC 2012 - chris@computersalat.de
+
+- fix for bnc#778655 (CVE-2012-4600)
+- update to 3.1.10
+ (fix for OSA-2012-02, http://otrs.org/advisory/)
+ * Improved HTML security filter to detect tag nesting.
+ * Bug#8611 - Ticket count is wrong in QueueView.
+ * Bug#8698 - Layout.pm only looks at first entry from
+ HTTP_ACCEPT_LANGUAGE to determine language.
+ * Bug#8731 - LDAP group check returns wrong error.
+
+-------------------------------------------------------------------
+Wed Aug 22 17:46:43 UTC 2012 - chris@computersalat.de
+
+- fix for bnc#776966 (CVE-2012-2582)
+ * OSA-2012-1, http://otrs.org/advisory/
+- update to 3.1.9
+- update OTRS::ITSM to 3.1.6
+
+-------------------------------------------------------------------
+Mon Jun 11 09:05:12 UTC 2012 - chris@computersalat.de
+
+- cleanup source, spec
+ * - remove 'permissions' stuff
+- fix changes file
+
+-------------------------------------------------------------------
+Tue Jun 5 16:07:59 UTC 2012 - chris@computersalat.de
+
+- update to 3.1.6
+ * Bug#8495 - Generic Agent TicketAction single value attributes
+ should not let multiple selection.
+ * Bug#8378 - Validation fails if the ID of the element contains a
+ dot (.) or a colon (:).
+ * Bug#7532 - 'Field is required' message should be removed in RTE if
+ content is added.
+ * Bug#8514 - Long words in description break rendering of SysConfig
+ items.
+ * Bug#8537 - DynamicField caching issue.
+ * Bug#8482 - Responsible of a ticket without responsible permission.
+ * Bug#8485 - CustomerUser validation fails in GI Ticket Operations
+ if there is no ValidID in the mapping.
+ * Bug#8529 - Fixed print to STDERR in ReferenceData.pm.
+ * Bug#8427 - Dynamic Field Type Multiselect not shown in Notification
+ (event).
+ * Bug#8189 - AgentTicketCompose: Pressing "Enter" will delete
+ Attachment.
+ * Bug#7844 - Escalation Event does not respect service calendar of
+ ticket/queue.
+ * Bug#8228 - Ticket::Frontend::AgentTicketNote###StateDefault
+ doesn't work.
+ * Bug#8519 - Kernel::System::TicketSearch->TicketSearch() doesn't
+ properly handle array references in SortBy parameter
+ * Bug#7519 - AJAX-reload of SMIME-fields did not work properly.
+ * Bug#8518 - Crypt on multiple recipients error replaces Crypt
+ selection.
+ * Bug#8164 - Internal articles are visible within customer ticket
+ overview.
+ * Bug#8506 - Customer email link won't open in popup as expected.
+ * Bug#7844 - Escalation Event does not respect service calendar of
+ ticket/queue.
+ * Bug#8498 - OpenSSL 1.0.0 does not get the stored SMIME
+ certificates when -CApath is used in the command.
+ * Bug#8337 - Parentheses in user last_name / first_name are not
+ sanitized.
+ * Bug#8467 - Reply to an e-mail address with ' not possible.
+ * Bug#8352 - Wrong substitution regex in HTMLUtils.pm->ToAscii.
+ * Bug#8401 - DynamicField Update doesn't update the
+ X-OTRS-DynamicField-XXX Fields in Postmaster Filters.
+ * Bug#5746 - Using PerlEx you have to restart IIS each time a setting
+ is changed in SysConfig.
+ * Bug#8452 - Dynamic Field Date/Time not working when server runs on
+ UTC.
+ - The detailed ChangeLog can be found at:
+ http://source.otrs.org/viewvc.cgi/otrs/CHANGES?revision=1.2260.2.47&view=markup.
+- Update ITSM to 3.1.4:
+ * Bug#8479 - Change and workorder notification records are not
+ deleted during module uninstallation.
+ * Bug#8484 - Can't create cache for Change Management Toolbar
+ Modules on win32 platform.
+ * Bug#8453 - Saved time in ITSMChangeManagement screens adds UTC
+ offset.
+ * Bug#8487 - Usage of event.stopPropagation() causes javascript
+ error in IE8.
+ * Bug#8488 - Change search should require at least one search
+ parameter.
+ * Bug#8507nbsp;- Font size is ignored for text if input is made in
+ certain order.
+ * Bug#8515 - Search icon shows the ticket search instead of the
+ change search when the current screen is the workorder zoom.
+ * Bug#8521 - Back-Link in Workorder-Zoom returns to the previous
+ page, but does not reload the page
+ (the page comes from the browser cache).
+ * Bug#8538 - AgentTicketZoom does not show "Review Required" Field.
+
+-------------------------------------------------------------------
+Wed May 16 21:00:51 UTC 2012 - chris@computersalat.de
+
+- fix itsm sources
+ * dos2unix INSTALL-3.1.ITSM
+ * readd packages30
+ * readd packages31/*3.1.{1,2}.opm
+- fix itsm deps
+- remove/disable permissions file stuff
+- exclude bin/otrs.SetPermissions.pl
+- fix perl deps
+ * use module names, not pkg names
+
+-------------------------------------------------------------------
+Wed May 16 16:22:36 UTC 2012 - alexandre@exatati.com.br
+
+- Update to 3.1.5:
+ - Updated Hungarian translation, thanks to Csaba Nemeth!
+ - Added possibility to specify a cache type for selective cache
+ cleaning in bin/otrs.DeleteCache.
+ - Added possibility to define ACL rules by user role.
+ - Bug#8466 - On Win32 GenericInterface does not return results
+ properly.
+ - Bug#8465 - Can't create cache for web service debug log on Win32
+ platforms.
+ - Bug#7919 - Translation of ticket states in CSV Export of
+ CustomerTicketSearch.
+ - Bug#8461 - CustomerTicketSearch doesn't use ticket ACL rules.
+ - Bug#7877 - SMIME emails don't get parsed properly (follow-up
+ fix).
+ - Bug#8446 - Dynamic Field type TextArea missing > 3800 characters
+ validation.
+ - Bug#8447 - Checkbox Dynamic Field is incorrectly calculated in
+ statistics.
+ - Bug#8328 - Statistics ignores any restrictions on dynamic fields.
+ - Bug#8439 - AgentTicketForward: ticket not unlocked after selecting
+ a close state.
+ - Bug#7168 - Ticket Overview Control Row can only be one line high.
+ - Bug#8437 - Dynamic Field order duplicated when change the order
+ of a field.
+ - Bug#8409 - Deselecting 'select all' in queue view does not work.
+ - Bug#8424 - Ticket articles of large tickets cannot be opened.
+ - Bug#8415 - Setting Ticket::Responsible ignored by AgentTicketActionCommon.
+ - Bug#8288 - Autocomplete search results show up in Times font when
+ using Internet Explorer.
+ - Bug#8414 - ACL for AgentTicketCustomer in AgentTicketZoom doesn't
+ affect CustomerID link in ticket information.
+ - Updated CKEditor to version 3.6.3, fixing several bugs.
+ - Bug#8369 - Incorrect handling of Ticket ACL in AJAX Updates.
+- Update ITSM to 3.1.3:
+ - Added Portuguese translations for Portugal, thanks to Rui
+ Francisco!
+ - Small performance improvement when creating a change from a
+ template.
+ - Bug# 8261 - Bad performance when moving timeslot in
+ AgentITSMChangeTimeSlot.
+ - Bug# 8265 - Error in ITSM Incident Problem Management statistics.
+ - Bug# 8302 - CI class names are not translated in
+ AgentITSMConfigItemAdd.dtl
+ - Bug# 8303 - Wrong charset for cs_ITSMTicket.pm
+ - Bug# 8293 - Cannot delete change search profile.
+ - Bug# 8362 - Change-Delete menu link is visible for other
+ group members than itsm-change-manager.
+ - Bug# 8366 - Number of SQL statements could be decreased when
+ deleting a change.
+ - Bug# 8386 - Change Mangement Toolbar Modules could use caching
+ to reduce the number of SQL statements.
+ - Bug# 8396 - Dynamic Field creation problem on migrated framework.
+ - Bug# 8305 - Possible SQL injection problem in change search.
+
+-------------------------------------------------------------------
+Tue Apr 24 20:26:42 UTC 2012 - chris@computersalat.de
+
+- update to 3.1.4
+ * Bug#8284 - The text "Cc: (xx@mail.com) added database email!" is confusing.
+ * Bug#8392 - DynamicFieldAdd returns wrong value.
+ * Bug#8387 - UseSyncBackend configuration does not conform to OTRS style.
+ * Bug#8367 - Customer entry not marked as mandatory.
+ * Bug#8348 - Wrong pop-up close behavior when no URL is given and SessionUseCookie is set to No.
++++ 1665 more lines (skipped)
++++ between /dev/null
++++ and /work/SRC/openSUSE:12.2:Update/.otrs.1118.new/otrs.changes
New:
----
UPGRADING.SuSE
ZZZAuto.pm
itsm-3.1.6.tar.bz2
itsm.README.de
itsm.README.en
otrs-3.1.1-httpd_conf.patch
otrs-3.1.11.tar.bz2
otrs-perm.patch
otrs-scheduler.init
otrs.README.de
otrs.README.en
otrs.changes
otrs.init
otrs.rpmlintrc
otrs.spec
sysconfig.otrs
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ otrs.spec ++++++
#
# spec file for package otrs
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
%define otrs_ver 3.1.11
%define itsm_ver 3.1.6
%define itsm_min 3.1
%define otrs_root /srv
%define otrsdoc_dir_files CHANGES COPYING* CREDITS README* UPGRADING.SuSE doc
%define otrsdocs CHANGES CREDITS doc
Name: otrs
Summary: The Open Ticket Request System
License: AGPL-3.0+
Group: Productivity/Networking/Email/Utilities
Version: %{otrs_ver}
Release: 0
Url: http://otrs.org/
AutoReqProv: off
Source: ftp://ftp.otrs.org/pub/otrs/%{name}-%{otrs_ver}.tar.bz2
Source1: itsm-%{itsm_ver}.tar.bz2
Source2: %{name}.rpmlintrc
Source11: sysconfig.%{name}
Source12: %{name}.README.en
Source13: %{name}.README.de
Source14: itsm.README.en
Source15: itsm.README.de
Source16: ZZZAuto.pm
Source17: UPGRADING.SuSE
Source20: %{name}.init
Source21: %{name}-scheduler.init
#atch0: %{name}-3.1.1-init.patch
Patch1: %{name}-3.1.1-httpd_conf.patch
Patch2: %{name}-perm.patch
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-build
PreReq: %insserv_prereq %fillup_prereq
PreReq: coreutils mktemp net-tools pwdutils
PreReq: grep sed
PreReq: apache2
BuildRequires: pwdutils
%if 0%{?suse_version} > 1020
BuildRequires: fdupes
%endif
#
Requires: apache2-mod_perl
Requires: fetchmail
Requires: mysql
Requires: mysql-client
Requires: perl
Requires: procmail
Requires: perl(DBD::mysql)
Requires: perl(DBI)
Requires: perl(Digest::MD5)
Requires: perl(GD)
Requires: perl(GD::Graph)
Requires: perl(GD::Text)
Requires: perl(Net::DNS)
Requires: perl(PDF::API2)
#
Recommends: perl(Crypt::SSLeay)
Recommends: perl(Encode::HanExtra)
Recommends: perl(IO::Socket::SSL)
Recommends: perl(JSON::XS)
Recommends: perl(Mail::IMAPClient)
Recommends: perl(Net::SSL)
Recommends: perl(SOAP::Lite)
#
Suggests: perl(Net::LDAP)
Suggests: perl(Text::CSV_XS)
%if "%_vendor" == "suse"
%define VENDOR SUSE
%else
%define VENDOR %_vendor
%endif
%description
OTRS is an Open source Ticket Request System with many features to manage
customer telephone calls and e-mails. It is distributed under the GNU
AFFERO General Public License (AGPL) and tested on Linux, Solaris, AIX,
Windows, FreeBSD, OpenBSD and Mac OS 10.x. Do you receive many e-mails and
want to answer them with a team of agents? You're going to love OTRS!
Feature list: see README
Authors list: see CREDITS
%package doc
Summary: OTRS Documentation
Group: Documentation/Other
%description doc
This package contains the README, Changes and docs for OTRS
Authors list: see CREDITS
%package -n otrs-itsm
Summary: ITIL (R) focused IT service management
Group: Productivity/Networking/Email/Utilities
Version: %{itsm_ver}
Release: 0
Requires: %{name} >= 3.1.6
Provides: OTRS::ITSM
Provides: itsm
%description itsm
OTRS::ITSM implements ITIL (R) focused IT service management.
You need a OTRS %{otrs_ver} (http://otrs.org/) installation.
Make sure your database accepts packages over 5 MB in size. A MySQL database
for example accepts packages up to 1 MB by default. In this case, the value for
max_allowed_packet must be increased. The recommended maximum size accepted is
20 MB.
for INSTALL see INSTALL-%{itsm_min}.ITSM
please see README.itsm for further details, which comes with otrs package
Required OTRS::ITSM modules can be found under %{otrs_root}/%{name}/itsm
Authors list: see CREDITS
%prep
%setup -q -n %{name}-%{otrs_ver} -a 1
#patch0
%patch1
%patch2
##### rpmlint
#### incorrect-fsf-address
### http://www.fsf.org/about/contact/
for sdir in bin scripts; do
find ./${sdir} -type f -exec perl -p -i -e 's|^# Foundation.*|# Foundation, 51 Franklin Street, Suite 500, Boston, MA 02110-1335, USA|' {} \;
done
find -name ".cvsignore" -type f | xargs rm -fv
find -name ".htaccess" -type f | xargs rm -fv
%__rm -f UPGRADING
%__cp %{S:17} .
pushd Kernel/Config/Files
%__cp %{S:16} .
%__sed -i -e "s,@OTRS_ROOT@,%{otrs_root},g"\
ZZZAuto.pm ../../../scripts/apache2-httpd.include.conf
popd
# fix old otrs_root (/opt)
%__sed -i -e "s,/opt/%{name},%{otrs_root}/%{name},g" \
bin/otrs.SetPermissions.pl \
Kernel/Config/Files/Framework.xml \
Kernel/Config/Defaults.pm \
Kernel/Config.pm.dist \
README \
scripts/apache2-perl-startup.pl \
scripts/restore.pl
## rpmlint:
# wrong-file-end-of-line-encoding
%{__perl} -p -i -e "s|\r\n|\n|" itsm-%{itsm_ver}/INSTALL-%{itsm_min}.ITSM
%build
%{_sbindir}/groupadd -g 88 -r %{name} 2>/dev/null || :
%{_sbindir}/useradd -c "OTRS User" -d %{otrs_root}/%{name} -G %{name},www -g %{name} \
-u 88 -r -s /bin/false %{name} 2>/dev/null || :
# copy config file
%__cp -a Kernel/Config.pm.dist Kernel/Config.pm
cd Kernel/Config/
for file in *.dist
do
%__cp -a $file `basename $file .dist`
done
cd ../../
# copy all crontab dist files
for file in var/cron/*.dist
do
%__mv $file var/cron/`basename $file .dist`
done
%__rm INSTALL{,.RedHat,.SuSE}
#%__mv INSTALL.SuSE INSTALL
%install
export DESTROOT="%{otrs_root}/%{name}/"
%__install -d ${RPM_BUILD_ROOT}${DESTROOT}
%__install -d ${RPM_BUILD_ROOT}%{_sbindir}
%__cp -a . ${RPM_BUILD_ROOT}/${DESTROOT}
for configFile in .fetchmailrc .mailfilter .procmailrc; do
touch ${RPM_BUILD_ROOT}/${DESTROOT}/${configFile}
done
touch $RPM_BUILD_ROOT${DESTROOT}var/log/TicketCounter.log
# add ghost file 'otrs.NagiosCheck.pl'
# otherwise module 'SystemMonitoring' won't install
touch ${RPM_BUILD_ROOT}${DESTROOT}/bin/%{name}.NagiosCheck.pl
# otherwise module 'Survey' won't install
touch ${RPM_BUILD_ROOT}${DESTROOT}/bin/%{name}.SurveyTriggerSendRequests.pl
# install README
for lang in en de; do
%__cp -p "${RPM_SOURCE_DIR}/%{name}.README.${lang}" "README.%{VENDOR}.${lang}"
%__cp -p "${RPM_SOURCE_DIR}/itsm.README.${lang}" "README.itsm.%{VENDOR}.${lang}"
done
# fix @OTRS_ROOT@ in itsm.README.*
for r in $(ls -1 README.itsm.*); do
%__sed -i -e "s,@OTRS_ROOT@,%{otrs_root},g" $r
done
# remove files that are part of the docdir
pushd ${RPM_BUILD_ROOT}/${DESTROOT}
%__rm -rf %{otrsdoc_dir_files}
%__install -d doc
popd
# remove unneeded files from scripts
pushd ${RPM_BUILD_ROOT}/${DESTROOT}/scripts
%__rm -rf apache{,2}*.conf auto_build* auto_docbuild.sh otrs-scheduler-* redhat-* suse-* *.spec test/* tool
popd
# install permissions file
#__install -D -m0644 %{S:3} ${RPM_BUILD_ROOT}/etc/permissions.d/%{name}
# install sysconfig file and init script
%__install -D -m0644 ${RPM_SOURCE_DIR}/sysconfig.%{name} $RPM_BUILD_ROOT/%{_var}/adm/fillup-templates/sysconfig.%{name}
%__install -D -m0755 %{S:20} ${RPM_BUILD_ROOT}/etc/init.d/%{name}
%__ln_s -f ../../etc/init.d/%{name} ${RPM_BUILD_ROOT}/%{_sbindir}/rc%{name}
%__install -D -m0755 %{S:21} ${RPM_BUILD_ROOT}/etc/init.d/%{name}-scheduler
%__ln_s -f ../../etc/init.d/%{name}-scheduler ${RPM_BUILD_ROOT}/%{_sbindir}/rc%{name}-scheduler
## FIXME - nochown patch obsolete, cause script complete changed
#${RPM_BUILD_ROOT}%{otrs_root}/%{name}/bin/SetPermissions.sh ${RPM_BUILD_ROOT}%{otrs_root}/%{name} %{name} wwwrun %{name} www echo
otrs_apache_conf="scripts/apache2-httpd.include.conf"
%__install -D -m0644 ${otrs_apache_conf} ${RPM_BUILD_ROOT}/etc/apache2/conf.d/%{name}.conf
# OTRS::ITSM
# rename itsm-%{itsm_ver} to itsm
pushd ${RPM_BUILD_ROOT}/${DESTROOT}
%__mv itsm-%{itsm_ver} itsm
popd
%if 0%{?suse_version} > 1020
%fdupes ${RPM_BUILD_ROOT}/%{otrs_root}/%{name}/var
%fdupes ${RPM_BUILD_ROOT}/%{otrs_root}/%{name}/Kernel/cpan-lib
%endif
%preun
%stop_on_removal otrs
:
%pre
# on `rpm -ivh` PARAM is 1
# on `rpm -Uvh` PARAM is 2
if [ -z "`%{_bindir}/getent group %{name} 2>/dev/null`" ]; then
%{_sbindir}/groupadd -g 88 -r %{name} 2>/dev/null
else
if [ `%{_bindir}/id -g %{name}` != 88 ]; then
%{_sbindir}/groupmod -g 88 %{name} 2>/dev/null
fi
fi
if [ -z "`%{_bindir}/getent passwd %{name} 2>/dev/null`" ]; then
%{_sbindir}/useradd -c "OTRS User" -d %{otrs_root}/%{name} -G %{name},www -g %{name} -u 88 -r -s /bin/false %{name} 2>/dev/null
else
if [ `%{_bindir}/id -u %{name}` != 88 ]; then
%{_sbindir}/usermod -c "OTRS User" -d %{otrs_root}/%{name} -G %{name},www -g %{name} -u 88 %{name} 2>/dev/null
fi
fi
%post
# fill otrs sysconfig file
%{fillup_and_insserv -f otrs-scheduler}
%{fillup_and_insserv otrs}
%if 0%{?suse_version}
/usr/sbin/a2enmod perl >/dev/null
%endif
# Update ?
if [ ${FIRST_ARG:-0} -gt 1 ]; then
# OTRS_ROOT changed from /opt to /srv
if [ -f /opt/%{name}/Kernel/Config.pm.rpmsave ]; then
%__mv /opt/%{name}/Kernel/Config.pm.rpmsave %{otrs_root}/%{name}/Kernel/
fi
%{_sbindir}/usermod -d %{otrs_root}/%{name} %{name}
#update sysconfig
%__sed -i -e "s,/opt/%{name},%{otrs_root}/%{name},g" /etc/sysconfig/%{name}
fi
# if rpm is not in update mode
if ! [ ${FIRST_ARG:-0} -gt 1 ]; then
if [ -z "${YAST_IS_RUNNING}" ]; then
for lang in LC_ALL LC_MESSAGE LANG; do
test "${!lang}" && break
done
echo
case "${!lang}" in
de_*)
echo "Hinweise zur Erstkonfiguration von OTRS finden Sie in"
echo "/usr/share/doc/packages/otrs/README.%{VENDOR}.de"
;;
*)
echo "About the initial setup of OTRS, please read"
echo "/usr/share/doc/packages/otrs/README.%{VENDOR}.en"
;;
esac
echo
fi
fi
exit 0
%postun
%restart_on_update otrs-scheduler
%restart_on_update otrs
%restart_on_update apache2
%insserv_cleanup
%clean
%{__rm} -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
%doc COPYING* README{,.database,.webserver} README.SUSE.* UPGRADING.SuSE
%dir /etc/apache2
%dir /etc/apache2/conf.d
%config(noreplace) /etc/apache2/conf.d/%{name}.conf
/etc/init.d/%{name}
/usr/sbin/rc%{name}
/etc/init.d/%{name}-scheduler
/usr/sbin/rc%{name}-scheduler
#config /etc/permissions.d/%{name}
%{_var}/adm/fillup-templates/sysconfig.%{name}
###############
## {root,www}
###############
%defattr(0750,root,www,0755)
# bin
%{otrs_root}/%{name}/bin
#exclude %{otrs_root}/%{name}/bin/%{name}.DeleteSessionIDs.pl
#exclude %{otrs_root}/%{name}/bin/%{name}.UnlockTickets.pl
%exclude %{otrs_root}/%{name}/bin/%{name}.GetConfig.pl
%exclude %{otrs_root}/%{name}/bin/%{name}.SetPermissions.pl
#%attr(0700,%{name},%{name}) %{otrs_root}/%{name}/bin/%{name}.DeleteSessionIDs.pl
#%attr(0700,%{name},%{name}) %{otrs_root}/%{name}/bin/%{name}.UnlockTickets.pl
#%attr(0700,%{name},%{name}) %{otrs_root}/%{name}/bin/%{name}.GetConfig.pl
# add ghost file 'otrs.NagiosCheck.pl'
# otherwise module 'SystemMonitoring' won't install
%attr(0750,wwwrun,www) %{otrs_root}/%{name}/bin/%{name}.NagiosCheck.pl
# otherwise module 'Survey' won't install
%attr(0750,wwwrun,www) %{otrs_root}/%{name}/bin/%{name}.SurveyTriggerSendRequests.pl
###############
## {otrs,otrs}
###############
# otrs HOME
%defattr(-,%{name},%{name})
%dir %{otrs_root}/%{name}
%ghost %config(noreplace) %{otrs_root}/%{name}/.fetchmailrc
%ghost %config(noreplace) %{otrs_root}/%{name}/.mailfilter
%ghost %config(noreplace) %{otrs_root}/%{name}/.procmailrc
%{otrs_root}/%{name}/.fetchmailrc.dist
%{otrs_root}/%{name}/.mailfilter.dist
%{otrs_root}/%{name}/.procmailrc.dist
%{otrs_root}/%{name}/ARCHIVE
%{otrs_root}/%{name}/RELEASE
# scripts
%{otrs_root}/%{name}/scripts/*.pl
%{otrs_root}/%{name}/scripts/*.pm
%{otrs_root}/%{name}/scripts/*.sql
%{otrs_root}/%{name}/scripts/database
%{otrs_root}/%{name}/scripts/tools
#%defattr(0755,wwwrun,%{name},0755)
# var/httpd
%dir %{otrs_root}/%{name}/var/httpd
###############
## {otrs,www}
###############
%defattr(0744,%{name},www,0775)
# doc and scripts
%dir %{otrs_root}/%{name}/doc
%dir %{otrs_root}/%{name}/scripts
%dir %{otrs_root}/%{name}/scripts/test
# var
%dir %{otrs_root}/%{name}/var
%{otrs_root}/%{name}/var/logo-%{name}.png
# var/cron
%dir %{otrs_root}/%{name}/var/cron
%config(noreplace) %{otrs_root}/%{name}/var/cron/*
# var/{packages,spool}
%{otrs_root}/%{name}/var/packages
%dir %{otrs_root}/%{name}/var/spool
# var/{article,log,tmp}
#defattr(0644,%{name},www,2775)
%dir %{otrs_root}/%{name}/var/article
%ghost %config(noreplace) %attr(660,%{name},www) %{otrs_root}/%{name}/var/log/TicketCounter.log
%defattr(0644,%{name},www,2775)
%dir %{otrs_root}/%{name}/var/tmp
%defattr(0660,%{name},www,2775)
%dir %{otrs_root}/%{name}/var/log
#%dir %{otrs_root}/%{name}/var/httpd/htdocs/js
#%dir %{otrs_root}/%{name}/var/httpd/htdocs/js/js-cache
#%{otrs_root}/%{name}/var/httpd/htdocs/skins/Agent/default
#%{otrs_root}/%{name}/var/httpd/htdocs/skins/Customer/default
###############
## {wwwrun,www}
###############
# var/tmp/Cache
%defattr(0644,wwwrun,www,0755)
%dir %{otrs_root}/%{name}/var/tmp/Cache
# var/fonts
%{otrs_root}/%{name}/var/fonts
# var/httpd/htdocs
%{otrs_root}/%{name}/var/httpd/htdocs
# var/{session,stats}
%dir %{otrs_root}/%{name}/var/sessions
%dir %{otrs_root}/%{name}/var/stats
%{otrs_root}/%{name}/var/stats/*
# Custom DIR
#defattr(0644,wwwrun,www,0755)
%dir %{otrs_root}/%{name}/Custom
%{otrs_root}/%{name}/Custom/README
# Kernel DIR
#defattr(0644,wwwrun,www,0755)
%dir %{otrs_root}/%{name}/Kernel
%config(noreplace) %attr(0640,wwwrun,www) %{otrs_root}/%{name}/Kernel/Config.pm
%{otrs_root}/%{name}/Kernel/Config.pm.dist
%dir %{otrs_root}/%{name}/Kernel/Config
%{otrs_root}/%{name}/Kernel/Config/Defaults.pm
%config(noreplace) %{otrs_root}/%{name}/Kernel/Config/GenericAgent.pm
%{otrs_root}/%{name}/Kernel/Config/GenericAgent.pm.*
%dir %{otrs_root}/%{name}/Kernel/Config/Files
%{otrs_root}/%{name}/Kernel/Config/Files/Deprecated.xml
%{otrs_root}/%{name}/Kernel/Config/Files/Framework.xml
%{otrs_root}/%{name}/Kernel/Config/Files/GenericInterface.xml
%{otrs_root}/%{name}/Kernel/Config/Files/Scheduler.xml
%{otrs_root}/%{name}/Kernel/Config/Files/Ticket.xml
%{otrs_root}/%{name}/Kernel/GenericInterface
%{otrs_root}/%{name}/Kernel/cpan-lib
%{otrs_root}/%{name}/Kernel/Language.pm
%dir %{otrs_root}/%{name}/Kernel/Language
%config(noreplace) %{otrs_root}/%{name}/Kernel/Language/*.pm
%{otrs_root}/%{name}/Kernel/Modules/
%config(noreplace) %{otrs_root}/%{name}/Kernel/Output/HTML/Standard/*.dtl
#config(noreplace) %{otrs_root}/%{name}/Kernel/Output/HTML/Lite/*.dtl
%dir %{otrs_root}/%{name}/Kernel/Output
%dir %{otrs_root}/%{name}/Kernel/Output/HTML
#dir %{otrs_root}/%{name}/Kernel/Output/HTML/Lite
%dir %{otrs_root}/%{name}/Kernel/Output/HTML/Standard
%{otrs_root}/%{name}/Kernel/Output/HTML/*.pm
%{otrs_root}/%{name}/Kernel/Scheduler.pm
%{otrs_root}/%{name}/Kernel/Scheduler
%{otrs_root}/%{name}/Kernel/System/
#
%files doc
%defattr(644,root,root,755)
%doc %{otrsdocs}
%files itsm
%defattr(-,root,root)
%doc COPYING*
%doc README.itsm*
%doc itsm-%{itsm_ver}/INSTALL-%{itsm_min}.ITSM
%{otrs_root}/%{name}/itsm
%config %attr(0644,wwwrun,www) %{otrs_root}/%{name}/Kernel/Config/Files/ZZZAuto.pm
%changelog
++++++ UPGRADING.SuSE ++++++
# --
# UPGRADING - Upgrading Instructions for OTRS
# Copyright (C) 2001-2012 OTRS AG, http://otrs.org/
# --
# $Id: UPGRADING,v 1.66 2012/02/07 14:10:57 mg Exp $
# --
# This software comes with ABSOLUTELY NO WARRANTY. For details, see
# the enclosed file COPYING for license information (AGPL). If you
# did not receive this file, see http://www.gnu.org/licenses/agpl.txt.
# --
These instructions are for people upgrading OTRS from "3.0" to "3.1",
and applies both for RPM and source code (tarball) upgrades.
If you are running a lower version of OTRS you have to follow the upgrade path
to 3.0 first (1.1->1.2->1.3->2.0->2.1->2.2->2.3->2.4->3.0->3.1 ...)!
Please note that if you upgrade from OTRS 2.2 or earlier, you have to
take an extra step; please read http://bugs.otrs.org/show_bug.cgi?id=6798
If you need to do a "patch level upgrade", which is an upgrade for instance
from OTRS version 3.1.1 to 3.1.3, you should skip steps 8, 10 and 12-19.
Please note that for upgrades from 3.1.beta1 or 3.1.beta2, an additional step 20
is needed!
If you are using Microsoft SQL Server as the DBMS for OTRS, please refer
to the manual, chapter "Upgrading Microsoft SQL Server Data Types" for instructions
how to upgrade the data types used by OTRS
(http://doc.otrs.org/3.1/en/html/upgrading-mssql-datatypes.html).
1) Stop all relevant services
--------------------------
e. g. (depends on used services):
shell> rccron stop
shell> rcpostfix stop
shell> rcapache2 stop
shell> rcotrs stop
2) Backup everything below $OTRS_HOME (default: OTRS_HOME=/srv/otrs)
-----------------------------------------------------------------
o Kernel/Config.pm
o Kernel/Config/GenericAgent.pm
o Kernel/Config/Files/ZZZAuto.pm
o var/*
o as well as the database
3) Make sure that you have backed up everything ;-)
------------------------------------------------
4) Setup new system (optional)
---------------------------
If possible try this install on a separate machine for testing first.
5) Install the new release (RPM)
------------------------------------
shell> rpm -Uvh otrs-3.1.x-?.noarch.rpm
The RPM-update will keep the old configuration files.
o Kernel/Config.pm
o Kernel/Config/GenericAgent.pm
o Kernel/Config/Files/ZZZAuto.pm (will be overwritten by itsm)
You must use the new files *.rpmnew
o Kernel/Config.pm.rpmnew
cp -a Kernel/Config.pm Kernel/Config.pm.backup
mv Kernel/Config.pm.rpmnew Kernel/Config.pm
then modify Kernel/Config.pm to adapt settings (e.g. DB connection)
6) Own themes
----------
Note: The OTRS themes between 3.0 and 3.1 are NOT compatible, so don't
use your old themes!
Themes are located under $OTRS_HOME/Kernel/Output/HTML/*/*.dtl
(default: OTRS_HOME=/srv/otrs)
7) Apply the database changes
--------------------------
shell> cd $OTRS_HOME
SCHEMA UPDATE PART 1:
=====================
MySQL:
shell> cat scripts/DBUpdate-to-3.1.mysql.sql | mysql -p -f -u root otrs
PostgreSQL 8.2+:
shell> cat scripts/DBUpdate-to-3.1.postgresql.sql | psql otrs
PostgreSQL, older versions:
shell> cat scripts/DBUpdate-to-3.1.postgresql_before_8_2.sql | psql otrs
NOTE: If you use PostgreSQL 8.1 or earlier, you need to activate the new
legacy driver for these older versions. Do this by adding a new
line to your Kernel/Config.pm like this:
$Self->{DatabasePostgresqlBefore82} = 1;
DATABASE MIGRATION SCRIPT
=========================
shell> scripts/DBUpdate-to-3.1.pl
Do not continue the upgrading process if this script did not work properly
for you. Otherwise data loss may occur.
SCHEMA UPDATE PART 2:
=====================
MySQL:
shell> cat scripts/DBUpdate-to-3.1-post.mysql.sql | mysql -p -f -u root otrs
PostgreSQL 8.2+:
shell> cat scripts/DBUpdate-to-3.1-post.postgresql.sql | psql otrs
PostgreSQL, older versions:
shell> cat scripts/DBUpdate-to-3.1-post.postgresql_before_8_2.sql | psql otrs
8) Refresh the configuration cache and delete caches
-------------------------------------------------
Please run:
shell> bin/otrs.RebuildConfig.pl
shell> bin/otrs.DeleteCache.pl
9) Restart your services
---------------------
e. g. (depends on used services):
shell> /etc/init.d/apache start
shell> /etc/init.d/postfix start
shell> /etc/init.d/cron start
shell> /etc/init.d/otrs-scheduler start
shell> /etc/init.d/otrs start
Now you can log into your system.
10) Check installed packages
------------------------
In the package manager, check if all packages are still marked as
correctly installed or if any require reinstallation or even a package upgrade.
11) Check for encoding issues
-------------------------
OTRS 3.1 only allows UTF-8 as internal charset.
Non-UTF-8 installations of OTRS must switch to UTF-8.
12) Escalation events
-----------------
If you want to use the new escalation events in your system, you need to
activate the corresponding GenericAgent job in
Kernel/Config/GenericAcent.pm.
Please look into Kernel/Config/GenericAgent.pm.dist
for an example of how to do this.
13) TicketHistory
-------------
The TicketHistory type TicketFreeTextUpdate was renamed to
TicketDynamicFieldUpdate. If you have any custom reporting using this,
please adjust it.
14) Ticket event handlers
---------------------
The Event name TicketFreeTextUpdate_$Counter was renamed to
TicketDynamicFieldUpdate_$FieldName.
If you have any custom event handlers for these events, please adapt them.
15) DynamicField user preferences module
------------------------------------
If you had one or more active custom settings for "PreferencesGroups###Freetext",
you need to adapt them to work with the new DynamicFields engine. The PrefKey
setting must be changed to "UserDynamicField_DynamicField", where the part after
the _ is the name of the dynamic field. Existing values would need to be renamed
in the database as well.
16) Custom free field default value event handler
---------------------------------------------
If you used the event handler Ticket::EventModulePost###TicketFreeFieldDefault
(not active by default), you'll need to migrate its configuration to the new
setting Ticket::EventModulePost###TicketDynamicFieldDefault.
The configuration of this is slightly different; where you had to specify a
Counter indicating the TicketFreeText number previously, now you need to
specify the name of the DynamicField (for migrated fields, this will be
DynamicField_TicketFreeKey$Counter and DynamicField_TicketFreeText$Counter.
You need two separate entries now if you want to set both the key and the
text field.
17) FreeText/Time based ACLs
------------------------
If you have any ACLs defined which involve freetext or freetime fields,
you need to adjust these ACL definitions.
Please have a look at http://doc.otrs.org/3.1/en/html/acl.html. There you
can find a list of all possible ACL settings. In general, you need to add
the prefix "DynamicField_" to existing free field definitions, and you can
add a new "DynamicField" section to the "Properties" list for situations
when a ticket does not exist yet.
18) Well done!
----------
++++++ ZZZAuto.pm ++++++
# OTRS config file (automaticaly generated!)
# VERSION:1.1
package Kernel::Config::Files::ZZZAuto;
use utf8;
sub Load {
my ($File, $Self) = @_;
$Self->{'SecureMode'} = 1;
$Self->{'DefaultCharset'} = 'utf-8';
$Self->{'DefaultLanguage'} = 'de';
$Self->{'LogModule'} = 'Kernel::System::Log::File';
$Self->{'Package::RepositoryList'} = {
'file://@OTRS_ROOT@/otrs/itsm/packages30/' => '[--OTRS::ITSM 3.0 local repo]',
'file://@OTRS_ROOT@/otrs/itsm/packages31/' => '[--OTRS::ITSM 3.1 local repo]',
'http://ftp.otrs.org/pub/otrs/itsm/packages30/' => '[--OTRS::ITSM 3.0 Master--] http://ftp.otrs.org/',
'http://ftp.otrs.org/pub/otrs/itsm/packages31/' => '[--OTRS::ITSM 3.1 Master--] http://ftp.otrs.org/'
};
$Self->{'Package::RepositoryAccessRegExp'} = '127\\.0\\.0\\.1';
}
1;
++++++ itsm.README.de ++++++
README Datei für OTRS::ITSM
Das Paket otrs-itsm enhält alle notwendigen Module, um Ihre OTRS Installation
mit ITSM zu erweitern.
Hierbei sollten sie folgendes beachten:
- mit der Installation dieses Pakets wird die Datei
@OTRS_ROOT@/otrs/Kernel/Config/Files/ZZZAuto.pm hinzugefügt, welches ein lokales
Repository zur Installation von OTRS::ITSM Modulen zur Verfügung stellt.
Somit muß das OTRS System nicht zwingend eine Verbindung zum Internet haben.
- Falls sie OTRS bereits schon länger in Verwendung haben und auch Anpassungen
vorgenommen haben,dann sollten Sie das lokale Repository via SysConfig
hinzufügen.
-> gehen SIe in den Admin Bereich:
-> wählen Sie SysConfig
-> wählen Sie bei der Gruppenauswahl "Framework (324)"
-> im erscheinenden Ergebnis wählen Sie "Core::Package"
-> Config Einstellungen: Framework -> Core::Package
o aktivieren Sie "Package::RepositoryAccessRegExp:" und belassen Sie
den (Default: 127\.0\.0\.1) Wert
o fügen Sie bei "Package::RepositoryList:" ein neues Repository hinzu
Schlüssel: file://@OTRS_ROOT@/otrs/itsm/packages31/
Inhalt: [--OTRS::ITSM local repo]
-> klicken Sie auf Aktualisieren
Sie können nun in der "Paket Verwaltung" als Quelle "[--OTRS::ITSM local repo]"
auswählen, um OTRS::ITSM zu installieren.
Viel Spaß mit OTRS::ITSM
++++++ itsm.README.en ++++++
README File for OTRS::ITSM
This package holds all needed modules to extend your OTRS with ITSM
You should take care of the following info
- with installing this package, there will be
@OTRS_ROOT/otrs/Kernel/Config/Files/ZZZAuto.pm added, which provides a local repo
for installing all needed ITSM modules.
So your OTRS System does not need to have internet access.
- If you were using your OTRS and you already have done many mods, then you
should add the local repo by hand.
-> go to Admin section
-> choose SysConfig
-> on groups select "Framework (324)"
-> on the results choose "Core::Package"
-> Config settings: Framework -> Core::Package
o activate "Package::RepositoryAccessRegExp:" and leave
(Default: 127\.0\.0\.1) value as is.
o on "Package::RepositoryList:" add a new repo
Key: file://@OTRS_ROOT/otrs/itsm/packages31/
Value: [--OTRS::ITSM local repo]
-> click refresh
Now you are able to select Source "[--OTRS::ITSM local repo]" in
package management and can install OTRS::ITSM modules.
Have fun with OTRS::ITSM
++++++ otrs-3.1.1-httpd_conf.patch ++++++
Index: scripts/apache2-httpd.include.conf
===================================================================
--- scripts/apache2-httpd.include.conf.orig
+++ scripts/apache2-httpd.include.conf
@@ -4,8 +4,8 @@
# --
# agent, admin and customer frontend
-ScriptAlias /otrs/ "/opt/otrs/bin/cgi-bin/"
-Alias /otrs-web/ "/opt/otrs/var/httpd/htdocs/"
+ScriptAlias /otrs/ "@OTRS_ROOT@/otrs/bin/cgi-bin/"
+Alias /otrs-web/ "@OTRS_ROOT@/otrs/var/httpd/htdocs/"
# activate this if you are using an Oracle database
#SetEnv ORACLE_HOME /path/to/your/oracle/
@@ -17,7 +17,7 @@ Alias /otrs-web/ "/opt/otrs/var/httpd/ht
<IfModule mod_perl.c>
# load all otrs modules
- Perlrequire /opt/otrs/scripts/apache2-perl-startup.pl
+ Perlrequire @OTRS_ROOT@/otrs/scripts/apache2-perl-startup.pl
# Apache::Reload - Reload Perl Modules when Changed on Disk
PerlModule Apache2::Reload
@@ -45,26 +45,53 @@ Alias /otrs-web/ "/opt/otrs/var/httpd/ht
</IfModule>
# directory settings
-