The following commit has been merged in the master branch:
commit ab1f0a2bd5b1a96d00017c4e854a26f99051aa11
Author: Raphael Geissert <[EMAIL PROTECTED]>
Date:   Sat Aug 30 17:21:45 2008 -0500

    Add embedded-php-library, checking for a set of common php libs
    
    Signed-off-by: Raphael Geissert <[EMAIL PROTECTED]>
    Signed-off-by: Frank Lichtenheld <[EMAIL PROTECTED]>

diff --git a/checks/files b/checks/files
index ed0a9bf..6602759 100644
--- a/checks/files
+++ b/checks/files
@@ -684,6 +684,25 @@ foreach my $file (sort keys %{$info->index}) {
            }
        }
 
+       # ---------------- embedded php libraries
+       # A list of known packaged php (!PEAR) libraries
+       # and the packages providing them
+       my @phplibraries = (
+           [ qr,(?i)adodb\.inc\.php$, => 'libphp-adodb' ],
+           [ qr,(?i)Smarty(_Compiler)?\.class\.php$, => 'smarty' ],
+           [ qr,(?i)class\.phpmailer\.php$, => 'libphp-phpmailer' ],
+           [ qr,(?i)phpsysinfo\.dtd$, => 'phpsysinfo' ],
+           [ qr,(?i)class\.(Linux|(Open|Net|Free|)BSD)\.inc\.php$, => 
'phpsysinfo' ],
+           [ qr,Auth/(OpenID|Yadis/Yadis)\.php$, => 'php-openid' ],
+# not yet available in unstable:
+#          [ qr,(?i)markdown\.php$, => 'libmarkdown-php' ],
+       );
+       foreach my $phplibrary (@phplibraries) {
+           if ($file =~ m,$phplibrary->[0], and $pkg ne $phplibrary->[1]) {
+               tag "embedded-php-library", "$file";
+           }
+       }
+
        # ---------------- general: setuid/setgid files!
        if ($operm & 04000 or $operm & 02000) {
            my ($setuid, $setgid) = ("","");
diff --git a/checks/files.desc b/checks/files.desc
index 4c6dd99..1f75a0e 100644
--- a/checks/files.desc
+++ b/checks/files.desc
@@ -1001,3 +1001,12 @@ Info: This package appears to contain an embedded copy 
of a PEAR module.
  Please depend on the respective PEAR package providing the module and
  make sure the library can be found by the scripts via the include_path.
 Ref: policy 4.13
+
+Tag: embedded-php-library
+Type: warning
+Severity: normal
+Certainty: certain
+Info: This package appears to contain an embedded copy of a PHP library.
+ Please depend on the respective package providing the library and
+ make sure it can be found by the scripts via the include_path.
+Ref: policy 4.13

-- 
Debian package checker


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to