Package: myphpmoney
Version: 1.3RC3-13
Severity: serious
Tags: patch
Justification: Policy 2.2.1
The font UNVRS.TTF included in this package contains the following
copyright notice:
"From the WSI-FONT Collection. Copyright (c) 1992 WSI. All Rights
Reserved. Redistribution strictly prohibited."
The attached patch modifies the code to use a different font (untested
as I didn't want to install apache and mysql, but it's completely
trivial). You should also upload a new source tarball that doesn't
contain the font.
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.13-rc3
Locale: LANG=nl_BE.UTF-8, LC_CTYPE=nl_BE.UTF-8 (charmap=UTF-8)
--- myphpmoney-1.3RC3/public_html/config/vars.inc.php
+++ myphpmoney-1.3RC3/public_html/config/vars.inc.php
@@ -236,7 +236,8 @@
# ----------------------------- POLICE OF CARACTERE FOR GRAPHIQUE HOME
--------------------------
- define('__FONT_GRAPH__', 'UNVRS.TTF'); ## FONT TTF
+ define('__FONT_PATH__', '/usr/share/fonts/truetype/ttf-bitstream-vera/');
+ define('__FONT_GRAPH__', 'Vera.ttf'); ## FONT TTF
define('__SIZE_GRAPH__', 10); ## SIZE FOR
THE FONT
# --------------------------------------------- COLOR
-------------------------------------------
--- myphpmoney-1.3RC3/debian/control
+++ myphpmoney-1.3RC3/debian/control
@@ -7,7 +7,7 @@
Package: myphpmoney
Architecture: all
-Depends: apache (>= 1.3.29.0.1-1) | apache-ssl (>= 1.3.29.0.1-1) | apache-perl
(>= 1.3.29.0.1-1) | httpd, php4 (>= 4.0.3pl1) | php4-cgi (>= 4.0.3pl1) |
libapache2-mod-php4, php4-mysql, mysql-server (>= 3.23.54a-5), mysql-client,
wwwconfig-common (>= 0.0.19), ${misc:Depends}
+Depends: apache (>= 1.3.29.0.1-1) | apache-ssl (>= 1.3.29.0.1-1) | apache-perl
(>= 1.3.29.0.1-1) | httpd, php4 (>= 4.0.3pl1) | php4-cgi (>= 4.0.3pl1) |
libapache2-mod-php4, php4-mysql, mysql-server (>= 3.23.54a-5), mysql-client,
wwwconfig-common (>= 0.0.19), ttf-bitstream-vera, ${misc:Depends}
Description: Finance manager written in PHP
MyPhpMoney is a finance manager written in PHP. It consists of 6 modules:
* Count book (to enter your operations and balance your accounts) ;
--- myphpmoney-1.3RC3.orig/public_html/graph/general.php
+++ myphpmoney-1.3RC3/public_html/graph/general.php
@@ -135,7 +135,7 @@
*/
require_once $_MPM['dir_class'].''.$_MPM['class_graph'];
$graph = new graph(__IMG_GRAPH_W_WIDTH__,__IMG_GRAPH_H_HEIGHT__);
- $graph->parameter['path_to_fonts'] =
str_replace(basename($_MPM['dir_graph']),'',dirname(__FILE__)).''.$_MPM['dir_font'];
+ $graph->parameter['path_to_fonts'] = __FONT_PATH__;
## The Font Police
$graph->parameter['title_font'] = __FONT_GRAPH__;
--- myphpmoney-1.3RC3.orig/mpm.spec
+++ myphpmoney-1.3RC3/mpm.spec
@@ -364,7 +364,6 @@
%{docroot}/%{name}-%{version}/public_html/class/tools.class
%{docroot}/%{name}-%{version}/public_html/graph/camembert.php
%{docroot}/%{name}-%{version}/public_html/graph/general.php
-%{docroot}/%{name}-%{version}/public_html/fonts/UNVRS.TTF
%{docroot}/%{name}-%{version}/public_html/export/local.xml
%{docroot}/%{name}-%{version}/public_html/export/original.xml
%{docroot}/%{name}-%{version}/public_html/export/cac40.txt