diff -Nru request-tracker4-4.2.12/debian/changelog request-tracker4-4.2.12/debian/changelog --- request-tracker4-4.2.12/debian/changelog 2015-11-28 17:08:08.000000000 +0000 +++ request-tracker4-4.2.12/debian/changelog 2016-01-10 22:36:35.000000000 +0000 @@ -1,3 +1,23 @@ +request-tracker4 (4.2.12-5) unstable; urgency=medium + + * Revert previous change following fix to DateTime::Locale + * Fix findutils perm syntax. Thanks to Andreas Metzler for the patch + (Closes: #803021) + * Run dh_autoreconf so changes in configure.ac are picked up + * Extract correct (Debian) version number in configure.ac and annotate + it as from Debian in the web interface (Closes: #796851) + * Fix problem with SMIME and non-ASCII emails. Thanks to Max Kosmach + for the patch (Closes: #795133) + * Include systemd unit file for rt4-fcgi, contributed by + Christian Loos (Closes: #809376) + * Add missing dependency on request-tracker4 to rt4-fcgi + * Update local documentation to reflect current web server support + * Use dh_prep instead of dh_clean -k, and other Lintian cleanups + * Switch from fonts-droid to fonts-noto (+ fonts-droid-fallback) + (Closes: #804687) + + -- Dominic Hargreaves Sun, 10 Jan 2016 22:36:34 +0000 + request-tracker4 (4.2.12-4) unstable; urgency=medium * Fix FTBFS caused by change in DateTime::Locale (Closes: #806449) diff -Nru request-tracker4-4.2.12/debian/control request-tracker4-4.2.12/debian/control --- request-tracker4-4.2.12/debian/control 2015-11-28 17:01:41.000000000 +0000 +++ request-tracker4-4.2.12/debian/control 2016-01-01 19:42:46.000000000 +0000 @@ -60,7 +60,7 @@ libcgi-pm-perl (>= 3.38), libfcgi-procmanager-perl, libdatetime-perl (>= 0.44), - libdatetime-locale-perl (>= 0.40), + libdatetime-locale-perl (>= 1:1.02), libhtml-quoted-perl, perl (>= 5.10.1) | libfile-temp-perl (>= 0.19), libtext-password-pronounceable-perl, @@ -104,6 +104,8 @@ libcss-squish-perl, libtest-pod-perl, libdbd-mysql-perl, + dh-autoreconf, + dh-systemd, Build-Depends-Indep: perl (>= 5.8.3) Standards-Version: 3.9.6 Vcs-Git: git://anonscm.debian.org/pkg-request-tracker/request-tracker4.git @@ -121,7 +123,8 @@ rsyslog | system-log-daemon, ${perl:Depends}, dbconfig-common (>= 1.8.38), ucf (>= 0.28), - fonts-droid, + fonts-noto-hinted, + fonts-droid-fallback, libhtml-mason-perl (>= 1:1.43), libapache-session-perl (>= 1.53), libregexp-common-perl, @@ -159,7 +162,7 @@ libcgi-pm-perl (>= 3.38), libfcgi-procmanager-perl, libdatetime-perl (>= 0.44), - libdatetime-locale-perl (>= 0.40), + libdatetime-locale-perl (>= 1:1.02), libhtml-quoted-perl, perl (>= 5.10.1) | libfile-temp-perl (>= 0.19), libtext-password-pronounceable-perl, @@ -277,7 +280,7 @@ Package: rt4-fcgi Architecture: all -Depends: ${misc:Depends}, libfcgi-perl, procps, spawn-fcgi +Depends: ${misc:Depends}, request-tracker4, libfcgi-perl, procps, spawn-fcgi Recommends: nginx-full Description: External FastCGI support for request-tracker4 Request Tracker (RT) is a ticketing system which diff -Nru request-tracker4-4.2.12/debian/.git-dpm request-tracker4-4.2.12/debian/.git-dpm --- request-tracker4-4.2.12/debian/.git-dpm 2015-11-28 17:01:41.000000000 +0000 +++ request-tracker4-4.2.12/debian/.git-dpm 2016-01-01 18:24:25.000000000 +0000 @@ -1,6 +1,6 @@ # see git-dpm(1) from git-dpm package -1b75d077d2c5e35ee94ac5d2794c55099ea40c16 -1b75d077d2c5e35ee94ac5d2794c55099ea40c16 +4026672646c7b634a6f51a0c3d202d35524f8af0 +4026672646c7b634a6f51a0c3d202d35524f8af0 e382a2c97b14830fb028376d2304e1e4919c2014 e382a2c97b14830fb028376d2304e1e4919c2014 request-tracker4_4.2.12.orig.tar.gz diff -Nru request-tracker4-4.2.12/debian/links request-tracker4-4.2.12/debian/links --- request-tracker4-4.2.12/debian/links 2015-11-28 17:01:41.000000000 +0000 +++ request-tracker4-4.2.12/debian/links 2016-01-01 18:24:30.000000000 +0000 @@ -21,5 +21,5 @@ /usr/share/dbconfig-common/scripts/request-tracker4/upgrade/mysql/4.2.11 /usr/share/dbconfig-common/scripts/request-tracker4/upgrade/pgsql/4.2.11 /usr/share/dbconfig-common/scripts/request-tracker4/upgrade/mysql/4.2.11 /usr/share/dbconfig-common/scripts/request-tracker4/upgrade/sqlite3/4.2.11 # We remove the original fonts in debian/rules -/usr/share/fonts/truetype/droid/DroidSans.ttf /usr/share/request-tracker4/fonts/DroidSans.ttf -/usr/share/fonts/truetype/droid/DroidSansFallback.ttf /usr/share/request-tracker4/fonts/DroidSansFallback.ttf +/usr/share/fonts/truetype/noto/NotoSans-Regular.ttf /usr/share/request-tracker4/fonts/NotoSans-Regular.ttf +/usr/share/fonts-droid-fallback/truetype/DroidSansFallback.ttf /usr/share/request-tracker4/fonts/DroidSansFallback.ttf diff -Nru request-tracker4-4.2.12/debian/NOTES.Debian request-tracker4-4.2.12/debian/NOTES.Debian --- request-tracker4-4.2.12/debian/NOTES.Debian 2015-11-28 17:01:41.000000000 +0000 +++ request-tracker4-4.2.12/debian/NOTES.Debian 2016-01-01 18:24:24.000000000 +0000 @@ -150,15 +150,21 @@ Note: if anything does go wrong in this procedure, you will probably need to drop the database 'rtdb' manually. +WEB SERVER INTEGRATION +---------------------- + +RT generally needs to be run with a frontend web server. Most commonly, +Apache is used with mod_fcgid, but integration with the non-free +mod_fastcgi, mod_perl and other web servers is also supported. APACHE CONFIGURATION -------------------- There are three config files supplied in /etc/request-tracker4/ for the different modes of operation: mod_perl2, fastcgi and fcgid. -These might work straight away; you really should read them before -beginning to use RT4. The expectation is that you will need to edit -the applicable file for your RT4 site. +By default these will configure Apache to server your RT instance at +/rt, once they are included in a VirtualHost setction. They may need +further customisations for your site. In particular, if you are running RT within a Virtualhost (and therefore cannot address it at http://localhost), you *will* need to adjust the ACL @@ -173,73 +179,31 @@ Set($WebBaseURL , "http://my.domain.com"); with any Apache virtual hosts, locations, aliases or rewrites in the -Include files, such as: - -1) - -Alias /rt /usr/share/request-tracker4/html - -2) - - - - -3) - -RewriteRule ^/rt$ /rt/ -RewriteRule ^/rt/(.*)$ /usr/share/request-tracker4/html/$1 - -You should ensure that you remove any existing lines such as: - - RewriteEngine off - -from the relevant VirtualHost section in your config. - -mod_perl 2 -========= - -Add the following line to the VirtualHost section of Apache from which -you wish to serve RT, (possibly in the file -/etc/apache2/sites-enabled/default). When editing files in the apache2 -sites-enabled and mods-enabled directories you should be very careful -not to leave behind editor backup files (such as *~ for emacs). These -will also be read when the server is restarted and cause general -confusion. - -Include "/etc/request-tracker4/apache2-modperl2.conf" - -You will probably need to edit this Include file. - -For Apache2 you will want to look for something like: - -LoadModule perl_module /usr/lib/apache2/modules/mod_perl.so - -If you are using the standard Debian package it is just a case of doing: - -ln -s /etc/apache2/mods-available/perl.load /etc/apache2/mods-enabled/perl.load - -or "a2enmod perl". - -You may also need to, similarly, enable mod_rewrite, mod_actions (and -mod_ssl if you intend to use SSL) +Include files (normally defined in /etc/request-tracker4/apache2-*). FastCGI ======= -If you want to use something other than mod_perl, there are Mason -handler scripts in /etc/request-tracker4/. These are: +Customise one of +/etc/request-tracker4/apache2-fcgid.conf (mod_fcgid) or +/etc/request-tracker4/apache2-fastcgi.conf (mod_fastcgi) and then +activate the configuration using the instructions at the top of the +relevant file. -/etc/request-tracker4/apache2-fastcgi.conf -/etc/request-tracker4/apache2-fcgid.conf +mod_perl +======== -Again you will probably need to include these into the relevant -section of your Apache config with something like: +Customise /etc/request-tracker4/apache2-modperl2.conf and then activate +the configuration using the instructions at the top of the file. -Include "/etc/request-tracker4/apache2-fastcgi.conf" -Most likely they will require some editing before they do exactly what -you want. +EXTERNAL FCGI DAEMON +-------------------- +The rt4-fcgi package contains extra configuration for running RT as +an external process, suitable for other web servers (for example nginx) +with support for talking to FCGI processes via sockets. See +/usr/share/doc/rt4-fcgi/README.Debian for more information. RT ROOT PASSWORD ---------------- @@ -252,6 +216,7 @@ course). Go to 'Preferences' then 'About me'. You can then change the password (and other pertinent information). + MAIL CONFIGURATION ------------------ @@ -284,4 +249,4 @@ ------- Stephen Quinney , Thu Sep 15 14:53:16 2005 -Dominic Hargreaves , Sun Jan 30 13:17:49 UTC 2011 +Dominic Hargreaves , Fri, 01 Jan 2016 17:29:30 +0000 diff -Nru request-tracker4-4.2.12/debian/patches/datetime_locale_test_fix.diff request-tracker4-4.2.12/debian/patches/datetime_locale_test_fix.diff --- request-tracker4-4.2.12/debian/patches/datetime_locale_test_fix.diff 2015-11-28 17:01:41.000000000 +0000 +++ request-tracker4-4.2.12/debian/patches/datetime_locale_test_fix.diff 1970-01-01 00:00:00.000000000 +0000 @@ -1,25 +0,0 @@ -From 1b75d077d2c5e35ee94ac5d2794c55099ea40c16 Mon Sep 17 00:00:00 2001 -From: Dominic Hargreaves -Date: Sat, 28 Nov 2015 16:56:52 +0000 -Subject: Fix use of lower-case locale not recognised by new DateTime::Locale - -Bug-Debian: http://bugs.debian.org/806449 -Bug: https://issues.bestpractical.com/Ticket/Display.html?id=31511 -Patch-Name: datetime_locale_test_fix.diff ---- - t/security/CVE-2011-5092-localizeddatetime.t | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/t/security/CVE-2011-5092-localizeddatetime.t b/t/security/CVE-2011-5092-localizeddatetime.t -index 733afc0..5730ff3 100644 ---- a/t/security/CVE-2011-5092-localizeddatetime.t -+++ b/t/security/CVE-2011-5092-localizeddatetime.t -@@ -4,7 +4,7 @@ use warnings; - use RT::Test tests => undef; - - my $root = RT::CurrentUser->new('root'); --my ($ok, $msg) = $root->UserObj->SetLang('en-us'); -+my ($ok, $msg) = $root->UserObj->SetLang('en-US'); - ok $ok, $msg; - - my $year = (localtime time)[5] + 1900; diff -Nru request-tracker4-4.2.12/debian/patches/debianize_version.diff request-tracker4-4.2.12/debian/patches/debianize_version.diff --- request-tracker4-4.2.12/debian/patches/debianize_version.diff 1970-01-01 00:00:00.000000000 +0000 +++ request-tracker4-4.2.12/debian/patches/debianize_version.diff 2016-01-01 18:24:24.000000000 +0000 @@ -0,0 +1,55 @@ +From ec68cbe2944a377b9f114ee0721fba3dcffb7cee Mon Sep 17 00:00:00 2001 +From: Dominic Hargreaves +Date: Thu, 31 Dec 2015 12:17:56 +0000 +Subject: Extract the correct (Debian) version number in configure.ac + +Also make clear in the web interface that this version number is from +Debian. + +Patch-Name: debianize_version.diff +--- + configure.ac | 8 ++++---- + share/html/Elements/Footer | 2 +- + 2 files changed, 5 insertions(+), 5 deletions(-) + +diff --git a/configure.ac b/configure.ac +index 46dc6ce..d26285f 100755 +--- a/configure.ac ++++ b/configure.ac +@@ -7,7 +7,7 @@ AC_REVISION($Revision$)dnl + + dnl Setup autoconf + AC_PREREQ([2.53]) +-AC_INIT(RT, m4_esyscmd([( git describe --tags || cat ./.tag 2> /dev/null || echo "rt-3.9.EXPORTED" )| tr -d "\n"]), [rt-bugs@bestpractical.com]) ++AC_INIT(RT, m4_esyscmd([( dpkg-parsechangelog -SVersion )| tr -d "\n"]), [https://www.debian.org/Bugs/Reporting]) + AC_CONFIG_SRCDIR([lib/RT.pm]) + + dnl Save our incant early since $@ gets overwritten by some macros. +@@ -17,11 +17,11 @@ AC_SUBST(CONFIGURE_INCANT, "$0 $@") + + dnl Extract RT version number components + AC_SUBST([rt_version_major], +- m4_bregexp(AC_PACKAGE_VERSION,[^rt-\(\w+\)\.\(\w+\)\.\(.+\)$],[\1])) ++ m4_bregexp(AC_PACKAGE_VERSION,[^\(\w+\)\.\(\w+\)\.\(.+\)$],[\1])) + AC_SUBST([rt_version_minor], +- m4_bregexp(AC_PACKAGE_VERSION,[^rt-\(\w+\)\.\(\w+\)\.\(.+\)$],[\2])) ++ m4_bregexp(AC_PACKAGE_VERSION,[^\(\w+\)\.\(\w+\)\.\(.+\)$],[\2])) + AC_SUBST([rt_version_patch], +- m4_bregexp(AC_PACKAGE_VERSION,[^rt-\(\w+\)\.\(\w+\)\.\(.+\)$],[\3])) ++ m4_bregexp(AC_PACKAGE_VERSION,[^\(\w+\)\.\(\w+\)\.\(.+\)$],[\3])) + test "x$rt_version_major" = 'x' && rt_version_major=0 + test "x$rt_version_minor" = 'x' && rt_version_minor=0 + test "x$rt_version_patch" = 'x' && rt_version_patch=0 +diff --git a/share/html/Elements/Footer b/share/html/Elements/Footer +index dc1ce6b..7c4894f 100644 +--- a/share/html/Elements/Footer ++++ b/share/html/Elements/Footer +@@ -53,7 +53,7 @@ + % if ($m->{'rt_base_time'}) { +

<&|/l&>Time to display: <%Time::HiRes::tv_interval( $m->{'rt_base_time'} )%>

+ %} +-

<&|/l_unsafe, '»|«', $RT::VERSION, '2015', 'Best Practical Solutions, LLC', &>[_1] RT [_2] Copyright 1996-[_3] [_4]. ++

<&|/l_unsafe, '»|«', $RT::VERSION . ' (Debian)', '2015', 'Best Practical Solutions, LLC', &>[_1] RT [_2] Copyright 1996-[_3] [_4]. +

+ % if (!$Menu) { + diff -Nru request-tracker4-4.2.12/debian/patches/find_perm_syntax.diff request-tracker4-4.2.12/debian/patches/find_perm_syntax.diff --- request-tracker4-4.2.12/debian/patches/find_perm_syntax.diff 1970-01-01 00:00:00.000000000 +0000 +++ request-tracker4-4.2.12/debian/patches/find_perm_syntax.diff 2016-01-01 18:24:24.000000000 +0000 @@ -0,0 +1,58 @@ +From 80f81a36d1d4ce96d4212ac57cd616a11b169212 Mon Sep 17 00:00:00 2001 +From: Andreas Metzler +Date: Wed, 30 Dec 2015 19:47:28 +0000 +Subject: Test for either -perm /xxx or -perm +xxx and use the working one. + +Origin: https://issues.bestpractical.com/Ticket/Display.html?id=31308 +Bug: https://issues.bestpractical.com/Ticket/Display.html?id=31308 +Bug-Debian: https://bugs.debian.org/803021 +Patch-Name: find_perm_syntax.diff +--- + Makefile.in | 4 +--- + configure.ac | 18 ++++++++++++++++++ + 2 files changed, 19 insertions(+), 3 deletions(-) + +diff --git a/Makefile.in b/Makefile.in +index 73d62b7..60d2e13 100644 +--- a/Makefile.in ++++ b/Makefile.in +@@ -302,9 +302,7 @@ fixperms: + + # Make upgrade scripts executable if they are in the source. + # +- # Note that we use the deprecated (by GNU/POSIX find) -perm +0NNN syntax +- # instead of -perm /0NNN since BSD find doesn't support the latter. +- ( cd etc/upgrade && find . -type f -not -name '*.in' -perm +0111 -print ) | while read file ; do \ ++ ( cd etc/upgrade && find . -type f -not -name '*.in' -perm @FINDPERM@0111 -print ) | while read file ; do \ + chmod a+x "$(DESTDIR)$(RT_ETC_PATH)/upgrade/$$file" ; \ + done + +diff --git a/configure.ac b/configure.ac +index 1bcf2ba..46dc6ce 100755 +--- a/configure.ac ++++ b/configure.ac +@@ -34,6 +34,24 @@ if test "$PERL" = 'not found'; then + AC_MSG_ERROR([cannot use $PACKAGE_NAME without perl]) + fi + ++dnl BSD find uses -perm +xxxx, GNU find has deprecated this syntax in favour of ++dnl -perm /xxx. ++AC_MSG_CHECKING([whether find supports -perm /x or find -perm +x]) ++if find -perm /0100 -not -perm /0100 ++then ++ FINDPERM="/" ++elif ++ find -perm +0100 -not -perm +0100 ++then ++ FINDPERM="+" ++else ++ FINDPERM="na" ++fi ++AC_MSG_RESULT([${FINDPERM}]) ++if test "x$FINDPERM" = "xna" ; then ++ AC_MSG_WARN([local find program supports neither -perm /0111 nor -perm +0111, make fixperms will not work]) ++fi ++AC_SUBST([FINDPERM]) + + dnl WEB_HANDLER + AC_ARG_WITH(web-handler, diff -Nru request-tracker4-4.2.12/debian/patches/fix_encode_smime.diff request-tracker4-4.2.12/debian/patches/fix_encode_smime.diff --- request-tracker4-4.2.12/debian/patches/fix_encode_smime.diff 1970-01-01 00:00:00.000000000 +0000 +++ request-tracker4-4.2.12/debian/patches/fix_encode_smime.diff 2016-01-01 18:24:24.000000000 +0000 @@ -0,0 +1,25 @@ +From 322d7737c963ec2c296c63ccc8766de945dec888 Mon Sep 17 00:00:00 2001 +From: mkosmach +Date: Mon, 7 Sep 2015 14:42:30 +0300 +Subject: fixed a "cannot decode string with wide characters" error in SMIME + +Bug: https://issues.bestpractical.com/Ticket/Display.html?id=31155 +Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=795133 +Patch-Name: fix_encode_smime.diff +--- + lib/RT/Crypt.pm | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/lib/RT/Crypt.pm b/lib/RT/Crypt.pm +index cad86d2..69f54d9 100644 +--- a/lib/RT/Crypt.pm ++++ b/lib/RT/Crypt.pm +@@ -545,7 +545,7 @@ sub VerifyDecrypt { + my $modify = $res{status_on}->head->modify; + $res{status_on}->head->modify(1); + $res{status_on}->head->add( +- "X-RT-" . $protected->{'Protocol'} . "-Status" => $res{'status'} ++ "X-RT-" . $protected->{'Protocol'} . "-Status" => Encode::encode( "UTF-8", $res{'status'} ) + ); + $res{status_on}->head->modify($modify); + diff -Nru request-tracker4-4.2.12/debian/patches/fonts_use_noto_sans.diff request-tracker4-4.2.12/debian/patches/fonts_use_noto_sans.diff --- request-tracker4-4.2.12/debian/patches/fonts_use_noto_sans.diff 1970-01-01 00:00:00.000000000 +0000 +++ request-tracker4-4.2.12/debian/patches/fonts_use_noto_sans.diff 2016-01-01 18:24:25.000000000 +0000 @@ -0,0 +1,27 @@ +From 4026672646c7b634a6f51a0c3d202d35524f8af0 Mon Sep 17 00:00:00 2001 +From: Dominic Hargreaves +Date: Fri, 1 Jan 2016 18:23:08 +0000 +Subject: Use Noto Sans instead of Droid Sans + +Droid Sans is deprecated in Debian, and we are using the fonts from +Debian rather than bundled with RT. + +Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=804687 +Patch-Name: fonts_use_noto_sans.diff +--- + etc/RT_Config.pm.in | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/etc/RT_Config.pm.in b/etc/RT_Config.pm.in +index 7ece63f..5c26784 100644 +--- a/etc/RT_Config.pm.in ++++ b/etc/RT_Config.pm.in +@@ -1176,7 +1176,7 @@ Set( + 'zh-cn' => "$RT::FontPath/DroidSansFallback.ttf", + 'zh-tw' => "$RT::FontPath/DroidSansFallback.ttf", + 'ja' => "$RT::FontPath/DroidSansFallback.ttf", +- 'others' => "$RT::FontPath/DroidSans.ttf", ++ 'others' => "$RT::FontPath/NotoSans-Regular.ttf", + ); + + =item C<$ChartsTimezonesInDB> diff -Nru request-tracker4-4.2.12/debian/patches/series request-tracker4-4.2.12/debian/patches/series --- request-tracker4-4.2.12/debian/patches/series 2015-11-28 17:01:41.000000000 +0000 +++ request-tracker4-4.2.12/debian/patches/series 2016-01-01 18:24:25.000000000 +0000 @@ -12,4 +12,7 @@ test_mail_html_outgoing_fix.diff load_rt_generated.diff rt_test_db_type.diff -datetime_locale_test_fix.diff +find_perm_syntax.diff +debianize_version.diff +fix_encode_smime.diff +fonts_use_noto_sans.diff diff -Nru request-tracker4-4.2.12/debian/rt4-fcgi.README.Debian request-tracker4-4.2.12/debian/rt4-fcgi.README.Debian --- request-tracker4-4.2.12/debian/rt4-fcgi.README.Debian 1970-01-01 00:00:00.000000000 +0000 +++ request-tracker4-4.2.12/debian/rt4-fcgi.README.Debian 2016-01-01 18:24:24.000000000 +0000 @@ -0,0 +1,22 @@ +request-tracker4 FastCGI daemon +------------------------------- + +This package, rt4-fcgi, contains configuration enabling RT to be run +as a separate standalone FastCGI process, listening at +/var/run/rt4-fcgi.sock. + +By default, the daemon is not started on package installation. Once +you have completed initial configuration of RT (see +/usr/share/doc/request-tracker4/NOTES.Debian.gz and related files) +you can enable the external daemone either using + + # systemctl enable rt4-fcgi + +if your system uses systemd, or by editing /etc/default/rt4-fcgi +and changing 'enabled=no' to 'enabled=yes' and then running + + # service rt4-fcgi start + +otherwise. + + -- Dominic Hargreaves Fri, 01 Jan 2016 17:15:57 +0000 diff -Nru request-tracker4-4.2.12/debian/rt4-fcgi.service request-tracker4-4.2.12/debian/rt4-fcgi.service --- request-tracker4-4.2.12/debian/rt4-fcgi.service 1970-01-01 00:00:00.000000000 +0000 +++ request-tracker4-4.2.12/debian/rt4-fcgi.service 2016-01-01 18:24:24.000000000 +0000 @@ -0,0 +1,22 @@ +[Unit] +Description=request-tracker4 FastCGI daemon + +[Service] +Type=forking +PIDFile=/var/run/%p.pid +SyslogIdentifier=%p +Environment=workers=2 +EnvironmentFile=-/etc/default/%p +ExecStart=/usr/bin/spawn-fcgi \ + -F ${workers} \ + -d / \ + -u www-data \ + -g www-data \ + -s /var/run/%p.sock \ + -P /var/run/%p.pid \ + -- /usr/share/request-tracker4/libexec/rt-server.fcgi +Restart=on-failure +RestartSec=5 + +[Install] +WantedBy=multi-user.target diff -Nru request-tracker4-4.2.12/debian/rules request-tracker4-4.2.12/debian/rules --- request-tracker4-4.2.12/debian/rules 2015-11-28 17:01:41.000000000 +0000 +++ request-tracker4-4.2.12/debian/rules 2016-01-01 18:24:30.000000000 +0000 @@ -34,6 +34,8 @@ find . -name '*.in' -print | egrep -v '\.pc|\.\/debian' | sed -e 's/\.in$$//' | while read f; do mkdir -p bak/`dirname $$f`; mv -v $$f bak/$$f; done test -d $(TPSRC) + dh_autoreconf + ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS))) # The test suite needs a different configuration in place ./configure \ @@ -48,9 +50,6 @@ rm -rf var endif - # Although there's a configure stage, we have no make step. - - chmod u+x ./configure # --enable-gpg and --enable-smime disabled for #654697 # still usable when manually configured ./configure \ @@ -82,12 +81,13 @@ -find bak -type f -print | sed -e 's/^bak\///' | while read f; do mv bak/$$f $$f; done -rm -rf bak rm -f config.status config.log config.pld bak html-docs + dh_autoreconf_clean dh_clean build-stamp install: build dh_testdir dh_testroot - dh_clean -k + dh_prep dh_installdirs $(MAKE) install DESTDIR=$(RT_PKG) @@ -99,8 +99,8 @@ # libraries instead # (leave below as example as there'll be different ones to add back) #rm -rf $(RT_PKG)/usr/share/$(RT)/html/NoAuth/js/prototype - # We will install symlinks to the fonts provided by the fonts-droid - # package + # We will install symlinks to the fonts provided by the fonts-noto + # and fonts-droid-fallback packages rm -rf $(RT_PKG)/usr/share/$(RT)/fonts for x in rt-server rt-server.fcgi standalone_httpd; do \ @@ -182,7 +182,10 @@ chmod 2755 $(RT_PKG)/var/log/$(RT)/ dh_compress dh_perl + # NB - we don't enable this by default, in common with the init script + #dh_systemd_enable dh_installinit + dh_systemd_start dh_usrlocal dh_installdeb dh_gencontrol diff -Nru request-tracker4-4.2.12/debian/source.lintian-overrides request-tracker4-4.2.12/debian/source.lintian-overrides --- request-tracker4-4.2.12/debian/source.lintian-overrides 2015-11-28 17:01:41.000000000 +0000 +++ request-tracker4-4.2.12/debian/source.lintian-overrides 2016-01-01 19:42:49.000000000 +0000 @@ -3,6 +3,7 @@ configure-generated-file-in-source config.log # Sources are shipped in third-party-source +# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=744972 source-is-missing share/static/js/jquery-1.9.1.min.js source-is-missing share/static/js/jquery-ui-1.10.0.custom.min.js source-is-missing share/static/js/jquery.modal.min.js @@ -170,3 +171,32 @@ source-is-missing third-party-source/devel/third-party/ckeditor/plugins/htmlwriter/samples/assets/outputforflash/outputforflash.fla source-is-missing third-party-source/devel/third-party/ckeditor/plugins/htmlwriter/samples/assets/outputforflash/outputforflash.swf source-is-missing third-party-source/devel/third-party/ckeditor/plugins/htmlwriter/samples/assets/outputforflash/swfobject.js +source-is-missing third-party-source/devel/third-party/ckeditor/ckeditor.js +source-is-missing third-party-source/devel/third-party/ckeditor/config.js +source-is-missing third-party-source/devel/third-party/ckeditor/core/ckeditor_base.js +source-is-missing third-party-source/devel/third-party/ckeditor/plugins/dialogui/plugin.js +source-is-missing third-party-source/devel/third-party/ckeditor/plugins/specialchar/plugin.js +source-is-missing third-party-source/devel/third-party/ckeditor/plugins/scayt/lang/de.js +source-is-missing third-party-source/devel/third-party/ckeditor/plugins/scayt/lang/fa.js +source-is-missing third-party-source/devel/third-party/ckeditor/plugins/scayt/lang/gu.js +source-is-missing third-party-source/devel/third-party/ckeditor/plugins/scayt/lang/it.js +source-is-missing third-party-source/devel/third-party/ckeditor/plugins/scayt/lang/ja.js +source-is-missing third-party-source/devel/third-party/ckeditor/plugins/scayt/lang/ka.js +source-is-missing third-party-source/devel/third-party/ckeditor/plugins/scayt/lang/ku.js +source-is-missing third-party-source/devel/third-party/ckeditor/plugins/scayt/lang/ru.js +source-is-missing third-party-source/devel/third-party/ckeditor/plugins/scayt/lang/ug.js +source-is-missing third-party-source/devel/third-party/ckeditor/plugins/scayt/lang/uk.js +source-is-missing third-party-source/devel/third-party/ckeditor/plugins/scayt/lang/vi.js +source-is-missing third-party-source/devel/third-party/ckeditor/plugins/a11yhelp/dialogs/lang/cs.js +source-is-missing third-party-source/devel/third-party/ckeditor/plugins/a11yhelp/dialogs/lang/de.js +source-is-missing third-party-source/devel/third-party/ckeditor/plugins/a11yhelp/dialogs/lang/el.js +source-is-missing third-party-source/devel/third-party/ckeditor/plugins/a11yhelp/dialogs/lang/eo.js +source-is-missing third-party-source/devel/third-party/ckeditor/plugins/a11yhelp/dialogs/lang/es.js +source-is-missing third-party-source/devel/third-party/ckeditor/plugins/a11yhelp/dialogs/lang/fa.js +source-is-missing third-party-source/devel/third-party/ckeditor/plugins/a11yhelp/dialogs/lang/fr.js +source-is-missing third-party-source/devel/third-party/ckeditor/plugins/a11yhelp/dialogs/lang/he.js +source-is-missing third-party-source/devel/third-party/ckeditor/plugins/a11yhelp/dialogs/lang/it.js +source-is-missing third-party-source/devel/third-party/ckeditor/plugins/a11yhelp/dialogs/lang/ku.js +source-is-missing third-party-source/devel/third-party/ckeditor/plugins/a11yhelp/dialogs/lang/lv.js +source-is-missing third-party-source/devel/third-party/ckeditor/plugins/a11yhelp/dialogs/lang/sk.js +source-is-missing third-party-source/devel/third-party/ckeditor/plugins/a11yhelp/dialogs/lang/tr.js