rpms/mantis/EL-5 mantis-1.1.0-noexamplecom.patch, NONE, 1.1 mantis-1.1.6-bug4512.patch, NONE, 1.1 mantis-1.1.6-install-nowriteconfig.patch, NONE, 1.1 .cvsignore, 1.7, 1.8 mantis-README.Fedora, 1.2, 1.3 mantis-httpd.conf, 1.3, 1.4 mantis.spec, 1.16, 1.17 sources, 1.12, 1.13 mantis-0.19.2-noexamplecom.patch, 1.1, NONE mantis-1.0.0a3-iis.patch, 1.1, NONE

Gianluca Sforna giallu at fedoraproject.org
Thu Apr 9 19:24:10 UTC 2009


Author: giallu

Update of /cvs/extras/rpms/mantis/EL-5
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv23783

Modified Files:
	.cvsignore mantis-README.Fedora mantis-httpd.conf mantis.spec 
	sources 
Added Files:
	mantis-1.1.0-noexamplecom.patch mantis-1.1.6-bug4512.patch 
	mantis-1.1.6-install-nowriteconfig.patch 
Removed Files:
	mantis-0.19.2-noexamplecom.patch mantis-1.0.0a3-iis.patch 
Log Message:
Sync with devel branch


mantis-1.1.0-noexamplecom.patch:

--- NEW FILE mantis-1.1.0-noexamplecom.patch ---
Index: mantis-1.1.0rc2/config_inc.php.sample
===================================================================
--- mantis-1.1.0rc2.orig/config_inc.php.sample
+++ mantis-1.1.0rc2/config_inc.php.sample
@@ -47,14 +47,14 @@
 	$g_db_type       = "mysql";
 
 	# --- email variables -------------
-	$g_administrator_email  = 'administrator at example.com';
-	$g_webmaster_email      = 'webmaster at example.com';
+	$g_administrator_email  = 'administrator at localhost';
+	$g_webmaster_email      = 'webmaster at localhost';
 
 	# the "From: " field in emails
-	$g_from_email           = 'noreply at example.com';
+	$g_from_email           = 'noreply at localhost';
 
 	# the return address for bounced mail
-	$g_return_path_email    = 'admin at example.com';
+	$g_return_path_email    = 'admin at localhost';
 
 	# --- file upload settings --------
 	# This is the master setting to disable *all* file uploading functionality

mantis-1.1.6-bug4512.patch:

--- NEW FILE mantis-1.1.6-bug4512.patch ---
diff --git a/core/email_api.php b/core/email_api.php
index 2adb418..1857c81 100644
--- a/core/email_api.php
+++ b/core/email_api.php
@@ -897,8 +897,10 @@
 							string_get_bug_view_url_with_fqdn( $p_bug_id, $t_recipient ) .
 							" \n\n$p_message";
 
+			$t_visible_bug_data = email_build_visible_bug_data( $t_recipient, $p_bug_id, 'email_reminder' );
+			$t_mail_headers = email_get_default_headers( $t_visible_bug_data );
 			if( ON == config_get( 'enable_email_notification' ) ) {
-				email_store( $t_email, $t_subject, $t_contents );
+				email_store( $t_email, $t_subject, $t_contents, $t_mail_headers );
 			}
 
 			lang_pop();
@@ -946,7 +948,7 @@
 		# build headers
 		$t_bug_id = $p_visible_bug_data['email_bug'];
 		$t_message_md5 = md5( $t_bug_id . $p_visible_bug_data['email_date_submitted'] );
-		$t_mail_headers = array( 'keywords' => $p_visible_bug_data['set_category'] );
+		$t_mail_headers = email_get_default_headers( $p_visible_bug_data );
 		if ( $p_message_id == 'email_notification_title_for_action_bug_submitted' ) {
 			$t_mail_headers['Message-ID'] = "<{$t_message_md5}>";
 		} else {
@@ -960,6 +962,21 @@
 		return $t_ok;
 	}
 
+
+	/*
+	 Build and return the default set of mail header
+	 */
+	function email_get_default_headers( $p_visible_bug_data ) {
+		$t_headers = array();
+		$t_headers['keywords'] = $p_visible_bug_data['set_category'];
+		$t_headers['X-Mantis-Id'] = $p_visible_bug_data['email_bug'];
+		$t_headers['X-Mantis-Site'] = config_get( 'path' );
+		$t_headers['X-Mantis-Reporter'] = $p_visible_bug_data['email_reporter'];
+		$t_headers['X-Mantis-Owner'] = $p_visible_bug_data['email_handler'];
+		return $t_headers;
+	}
+
+
 	# --------------------
 	# Build the bug info part of the message
 	function email_format_bug_message( $p_visible_bug_data ) {

mantis-1.1.6-install-nowriteconfig.patch:

--- NEW FILE mantis-1.1.6-install-nowriteconfig.patch ---
--- mantis-1.1.6.orig/admin/install.php	2008-12-09 20:20:28.000000000 +0100
+++ mantis-1.1.6//admin/install.php	2008-12-28 19:39:50.493771722 +0100
@@ -397,10 +397,18 @@
 
 <tr>
 	<td>
+		<div style="background-color: #FCC; padding: 5px; border: 1px solid red;">
+		To change any of the disabled options below, edit /etc/mantis/config_inc.php and reload this page!
+		</div>
+	</td>
+</tr>
+
+<tr>
+	<td>
 		Type of Database
 	</td>
 	<td>
-		<select name="db_type">
+		<select disabled="true" name="db_type">
 		<?php
 			if ( $f_db_type == 'mysql' ) {
 				echo '<option value="mysql" selected="selected">MySql (default)</option>';
@@ -447,7 +455,7 @@
 		Hostname (for Database Server)
 	</td>
 	<td>
-		<input name="hostname" type="textbox" value="<?php echo $f_hostname ?>"></input>
+		<input name="hostname" type="textbox" disabled="disabled" value="<?php echo $f_hostname ?>"></input>
 	</td>
 </tr>
 
@@ -456,7 +464,7 @@
 		Username (for Database)
 	</td>
 	<td>
-		<input name="db_username" type="textbox" value="<?php echo $f_db_username ?>"></input>
+		<input name="db_username" type="textbox" disabled="disabled" value="<?php echo $f_db_username ?>"></input>
 	</td>
 </tr>
 
@@ -465,7 +473,7 @@
 		Password (for Database)
 	</td>
 	<td>
-		<input name="db_password" type="password" value="<?php echo ( !is_blank( $f_db_password ) ? CONFIGURED_PASSWORD : "" ) ?>"></input>
+		<input name="db_password" type="password" disabled="disabled" value="<?php echo ( !is_blank( $f_db_password ) ? CONFIGURED_PASSWORD : "" ) ?>"></input>
 	</td>
 </tr>
 
@@ -474,7 +482,7 @@
 		Database name (for Database)
 	</td>
 	<td>
-		<input name="database_name" type="textbox" value="<?php echo $f_database_name ?>"></input>
+		<input name="database_name" type="textbox" disabled="disabled" value="<?php echo $f_database_name ?>"></input>
 	</td>
 </tr>
 <tr>
@@ -762,6 +770,9 @@
 		$t_config_filename = $g_absolute_path . 'config_inc.php';
 		$t_config_exists = file_exists ( $t_config_filename );
 ?>
+<?php
+if (0 == 1) {
+?>
 <table width="100%" border="0" cellpadding="10" cellspacing="1">
 <tr>
 	<td bgcolor="#e8e8e8" colspan="2">
@@ -832,7 +843,9 @@
 ?>
 
 </table>
-
+<?php
+}
+?>
 <?php
 	if ( false == $g_failed ) {
 		$t_install_state++;


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/mantis/EL-5/.cvsignore,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -r1.7 -r1.8
--- .cvsignore	9 Jul 2007 09:45:43 -0000	1.7
+++ .cvsignore	9 Apr 2009 19:23:39 -0000	1.8
@@ -1 +1 @@
-mantis-1.0.8.tar.gz
+mantisbt-1.1.6.tar.gz


Index: mantis-README.Fedora
===================================================================
RCS file: /cvs/extras/rpms/mantis/EL-5/mantis-README.Fedora,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- mantis-README.Fedora	9 Jul 2007 09:45:43 -0000	1.2
+++ mantis-README.Fedora	9 Apr 2009 19:23:39 -0000	1.3
@@ -1,42 +1,55 @@
-Fedora specific installation notes
+= Fedora specific installation notes =
+
+== Database ==
 
 Mantis requires a database to function; use the following steps to
 configure mantis to work with MySQL:
 
 1. install MySQL packages
-    yum install mysql-server
+    yum install mysql-server php-mysql
 
 2. start MySQL server 
-    /etc/init.d/mysqld start
+    service mysqld start
 
 WARNING: the default MySQL configuration has a "root" account with no password.
          Please have a look to the MySQL documentation to add a proper password
          and/or a separate account for mantis usage.
 
-3. allow yourself to access the admin directory
+
+== Configuration files ==
+
+The mantis configuration file is /etc/mantis/config_inc.php.
+
+Be sure to check the file /usr/share/mantis/config_defaults_inc.php for the 
+full list of available configuration options.
+
+
+== First time operations ==
+
+1. allow yourelf to access the admin directory
     Please note that the provided configuration file for Apache 
     (/etc/httpd/conf.d/mantis.conf) by default prevents access to the mantis
     administration area. 
-    Change:
-    <Directory /usr/share/mantis/admin>
-        Order allow,deny
+    Find the section:
+        <Directory /usr/share/mantis/admin>
+
+    and change the "None" in:
+        Allow from None
     
-    to:
-    <Directory /usr/share/mantis/admin>
-        Order deny,allow
+    to the machine IP you will be connecting from. For instance:
+        Allow from 127.0.0.1
+
+    allows localhost access to the admin area
     
-    and restart apache with:
+    then restart apache with:
       service httpd restart
 
-    instead the needs to be edited in order to enable the execution of the installation script located
-   in /usr/share/mantis/admin.
-
-4. point your browser to:
-    https://localhost/mantis/admin/install.php
+2. point your browser to:
+      https://localhost/mantis/admin/install.php
    to create an empty DB.
 
 BIG FAT WARNING: when you are done with the installation, be sure to revert the 
-         modifications you've done in step 3.
+         modifications you've done in step 1.
          Otherwise you will leave the administration area unprotected with
          critical system information and database update capabilities open to 
          any unauthorized person.
@@ -47,6 +60,23 @@
          administrator level account.  Immediately after that, DISABLE or DELETE
          the administrator account. You can recreate it but you should delete
          the account to prevent the cookie_string from being used to trick the
-         package.  It would be even better to rename the account or delete it
-         permanently.  REMEMBER: After setting up the package, REMOVE the
+         package. REMEMBER: After setting up the package, REMOVE the
          default administrator account.
+
+== Upgrades ==
+
+After a version upgrade that involves changes to the DB schema, you will need
+to run again the installer steps as outlined above. The installer is able to
+recognize which modifications are needed and apply them to the DB.
+
+Albeit the upgrade routine is usually well tested and safe, please 
+consider doing a complete backup of the database before attempting the
+procedure.
+
+
+== SELinux ==
+
+The default SELinux configuration prevents the httpd process (hence mantis)
+from sending emails. This is easily fixed with:
+
+    setsebool -P httpd_can_sendmail=1


Index: mantis-httpd.conf
===================================================================
RCS file: /cvs/extras/rpms/mantis/EL-5/mantis-httpd.conf,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -r1.3 -r1.4
--- mantis-httpd.conf	9 Jul 2007 09:45:43 -0000	1.3
+++ mantis-httpd.conf	9 Apr 2009 19:23:39 -0000	1.4
@@ -16,9 +16,12 @@
 	# Do not change this unless the default administrator
 	# login was removed; see documentation for details
 	Order   Deny,Allow
-	Allow   from localhost
 	Deny    from All
-
+	Allow   from 127.0.0.1   # localhost
+	Allow   from ::1         # IPv6 variant of localhost
+        # Use the following to let any client use mantis
+        # Allow from All
+        
 	php_flag "register_globals" "off"
 	SetEnv MANTIS_CONFIG /etc/mantis/config_inc.php
 </Directory>
@@ -28,9 +31,9 @@
 # you are performing the first installation or a database schema update.
 # See README.Fedora for more details
 <Directory /usr/share/mantis/admin>
-	Order   allow,deny
-	Deny    from all
-	Allow   from localhost
+	Order   Deny,Allow
+	Deny    from All
+	Allow   from None
 </Directory>
 
 # This directory does not require access over HTTP


Index: mantis.spec
===================================================================
RCS file: /cvs/extras/rpms/mantis/EL-5/mantis.spec,v
retrieving revision 1.16
retrieving revision 1.17
diff -u -r1.16 -r1.17
--- mantis.spec	9 Jul 2007 09:45:43 -0000	1.16
+++ mantis.spec	9 Apr 2009 19:23:39 -0000	1.17
@@ -1,29 +1,30 @@
-# $Id$
-
 %global pkgdir        %{_datadir}/%{name}
 %global cfgdir        %{_sysconfdir}/%{name}
-%global httpconfdir    %{_sysconfdir}/httpd/conf.d
+%global docdir        %{_docdir}/%{name}-%{version}
+%global httpconfdir   %{_sysconfdir}/httpd/conf.d
 
 Summary:    Web-based bugtracking system
 Name:       mantis
-Version:    1.0.8
-Release:    1%{?dist}
-License:    GPL
+Version:    1.1.6
+Release:    3%{?dist}.1
+License:    GPLv2+
 Group:      Applications/Internet
 URL:        http://www.mantisbt.org/
 BuildArch:  noarch
-Source0:    http://downloads.sourceforge.net/mantisbt/%{name}-%{version}.tar.gz
+Source0:    http://downloads.sourceforge.net/mantisbt/mantisbt-%{version}.tar.gz
 Source1:    mantis-README.Fedora
 
-Patch0:     mantis-1.0.0a3-iis.patch
-Patch1:     mantis-0.19.2-noexamplecom.patch
+Patch0:     mantis-1.1.6-install-nowriteconfig.patch
+Patch1:     mantis-1.1.0-noexamplecom.patch
 Patch2:     mantis-1.0.0rc2-noadmin.patch
+Patch3:     mantis-1.1.6-bug4512.patch
+
 BuildRoot:  %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
-BuildRequires: diffutils
-Requires:   php
+Requires:   php >= 4.3.0
+Requires:   php-mbstring >= 4.3.0
 Requires:   mantis-config
-Requires:   php-adodb
+#Requires:   php-adodb
 
 %package config-httpd
 Summary:    Mantis configuration for Apache httpd
@@ -42,8 +43,14 @@
 It is written in the PHP scripting language and requires the MySQL
 database and a webserver. Mantis has been installed on Windows, MacOS,
 OS/2, and a variety of Unix operating systems. Any web browser should
-be able to function as a client. It is released under the terms of the
-GNU General Public License (GPL).
+be able to function as a client. 
+
+Documentation can be found in: %{docdir}
+
+When the package has finished installing, you will need to perform some
+additional configuration steps; these are described in:
+%{docdir}/README.Fedora
+
 
 %description config-httpd
 Mantis is a web-based bugtracking system.
@@ -51,14 +58,14 @@
 
 
 %prep
-%setup -q
+%setup -q -n mantisbt-%{version}
 %patch0 -p1
 %patch1 -p1
 %patch2 -p1
+%patch3 -p1
 
 cp %{SOURCE1} ./doc/README.Fedora
-
-chmod -x *.php *.sample
+rm .gitignore
 rm -rf packages
 
 
@@ -74,11 +81,13 @@
 tar cf - . | tar xf - -C ${RPM_BUILD_ROOT}%{pkgdir}
 
 # Remove adodb
-rm -rf ${RPM_BUILD_ROOT}%{pkgdir}/core/adodb
+# rm -rf ${RPM_BUILD_ROOT}%{pkgdir}/core/adodb
 
 find ${RPM_BUILD_ROOT} \( \
-    -name '*.orig' -o -name '*.#.*' -o \
-    -name '.cvsignore' \
+    -name '*.orig' \
+    -o -name '*.#.*' \
+    -o -name '.cvsignore' \
+    -o -name '.htaccess' \
     \) -print0 | xargs -0 rm -f
 
 ## Do not rename; the *existence* of this file will be checked to
@@ -86,6 +95,12 @@
 mv ${RPM_BUILD_ROOT}%{pkgdir}/mantis_offline.php.sample ${RPM_BUILD_ROOT}%{cfgdir}/
 mv ${RPM_BUILD_ROOT}%{pkgdir}/config_inc.php.sample     ${RPM_BUILD_ROOT}%{cfgdir}/config_inc.php
 
+#convert changelog to UTF8
+iconv -f ISO_8859-1 -t UTF-8 -o doc/ChangeLog{.utf8,}
+mv doc/ChangeLog{.utf8,}
+
+chmod a+x core ${RPM_BUILD_ROOT}%{pkgdir}/core/checkin.php
+
 for i in $(find ${RPM_BUILD_ROOT} -type f -regex '.*\.\(php\|txt\|gif\|png\|css\|htm\|dtd\|xsl\|sql\|js\|bak\|xml\|zip\)$' -perm +0111); do
     case $i in
         (*.php)
@@ -104,7 +119,7 @@
 chmod -x ${RPM_BUILD_ROOT}%{pkgdir}/core/phpmailer/{README,LICENSE}
 
 # Dangling symlink: when /etc/mantis/mantis_offline.php is present mantis is put offline
-ln -s %{cfgdir}/mantis_offline.php ${RPM_BUILD_ROOT}%{pkgdir}/mantis_offline.php
+ln -s ../../..%{cfgdir}/mantis_offline.php ${RPM_BUILD_ROOT}%{pkgdir}/mantis_offline.php
 
 %{__install} -d ${RPM_BUILD_ROOT}%{httpconfdir}
 %{__install} -p -m644 %{SOURCE10} ${RPM_BUILD_ROOT}%{httpconfdir}/mantis.conf
@@ -137,7 +152,50 @@
 
 
 %changelog
-* Mon Jul  9 2007 Gianluca Sforna <giallu gmail com> - 1.0.8-1
+* Wed Feb 25 2009 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.1.6-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
+
+* Sun Dec 28 2008 Sven Lankes <sven at lank.es> - 1.1.6-2
+- add patch to suppress bogus warning during setup 
+    (closes bz #437142)
+- convert ChangeLog to UTF8
+- remove .gitignore
+- change mantis_offline.php-symlink to be relative
+
+* Wed Dec 10 2008 Gianluca Sforna <giallu gmail com> - 1.1.6-1
+- new upstream release
+
+* Mon Nov 24 2008 Gianluca Sforna <giallu gmail com> - 1.1.5-1
+- new upstream release
+
+* Sun Oct 19 2008 Gianluca Sforna <giallu gmail com> - 1.1.4-1
+- new upstream release
+
+* Tue Oct 14 2008 Gianluca Sforna <giallu gmail com> - 1.1.3-1
+- new upstream release
+- drop upstreamed patch
+
+* Sat Jul 19 2008 Gianluca Sforna <giallu gmail com> - 1.1.2-1
+- new upstream release
+- add patch for bugnotes notification
+
+* Sat Jan 19 2008 Gianluca Sforna <giallu gmail com> - 1.1.1-1
+- new upstream release
+- Add more info in README.Fedora about configuration, upgrades
+  and SELinux
+
+* Sat Jan  5 2008 Gianluca Sforna <giallu gmail com> - 1.1.0-1
+- new upstream release
+- rediffed patches
+- allow local usage out of the box
+- remove .htaccess files
+- revert using embedded adodb 
+  see http://www.mantisbt.org/bugs/view.php?id=8256 for details
+- improve description and README.Fedora
+- Remove unneeded diffutils BR
+- Updated License field
+
+* Tue Jul  3 2007 Gianluca Sforna <giallu gmail com> - 1.0.8-1
 - new upstream release
 - add Require: php-adodb (and remove embedded one)
 - remove duplicate docs


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/mantis/EL-5/sources,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -r1.12 -r1.13
--- sources	9 Jul 2007 09:45:43 -0000	1.12
+++ sources	9 Apr 2009 19:23:39 -0000	1.13
@@ -1 +1 @@
-fab90748346fe9a8276a71f59c1a245a  mantis-1.0.8.tar.gz
+2e0c6d3dd9ca7d16258fc2d86363a675  mantisbt-1.1.6.tar.gz


--- mantis-0.19.2-noexamplecom.patch DELETED ---


--- mantis-1.0.0a3-iis.patch DELETED ---




More information about the fedora-extras-commits mailing list