Subject: [PATCH] Know about libphp-pclzip, libphp-phplayersmenu, libphp-phpsniff, libphp-jabber, libphp-simplepie, libphp-jpgraph, php-fpdf, php-getid3, php-gettext, magpierss, php-simpletest, and libsparkline-php; for the embedded-php-library check

From: Raphael Geissert <[email-masked]>
Date: Sat, 6 Dec 2008 00:09:24 -0600

Signed-off-by: Raphael Geissert <[email-masked]>
---
 checks/files |   14 +++++++++++++-
 1 files changed, 13 insertions(+), 1 deletions(-)

diff --git a/checks/files b/checks/files
index 69792f6..5015fdc 100644
--- a/checks/files
+++ b/checks/files
@@ -696,13 +696,25 @@ foreach my $file (sort keys %{$info->index}) {
 	my @phplibraries = (
 	    [ qr,(?i)adodb\.inc\.php$, => 'libphp-adodb' ],
 	    [ qr,(?i)Smarty(_Compiler)?\.class\.php$, => 'smarty' ],
-	    [ qr,(?i)class\.phpmailer\.(php|inc)$, => 'libphp-phpmailer' ],
+	    [ qr,(?i)class\.phpmailer(\.(php|inc))+$, => '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' ],
 	    [ qr,(?i)Snoopy\.class\.(php|inc)$, => 'libphp-snoopy' ],
 	    [ qr,(?i)markdown\.php$, => 'libmarkdown-php' ],
 	    [ qr,(?i)geshi\.php$, => 'php-geshi' ],
+	    [ qr,(?i)(class[.-])?pclzip\.(inc|lib)?\.php$, => 'libphp-pclzip' ],
+	    [ qr,(?i).*layersmenu.*/(lib/)?PHPLIB\.php$, => 'libphp-phplayersmenu' ],
+	    [ qr,(?i)phpSniff\.(class|core)\.php$, => 'libphp-phpsniff' ],
+	    [ qr,(?i)(class\.)?jabber\.php$, => 'libphp-jabber' ],
+	    [ qr,(?i)simplepie(\.(php|inc))+$, => 'libphp-simplepie' ],
+	    [ qr,(?i)jpgraph\.php$, => 'libphp-jpgraph' ],
+	    [ qr,(?i)fpdf\.php$, => 'php-fpdf' ],
+	    [ qr,(?i)getid3\.(lib\.)?(\.(php|inc))+$, => 'php-getid3' ],
+	    [ qr,(?i)streams\.php$, => 'php-gettext' ],
+	    [ qr,(?i)rss_parse\.(php|inc)$, => 'magpierss' ],
+	    [ qr,(?i)unit_tester\.php$, => 'php-simpletest' ],
+	    [ qr,(?i)Sparkline\.php$, => 'libsparkline-php' ],
 # not yet available in unstable:,
 #	    [ qr,(?i)IXR_Library(\.inc|\.php)+$, => 'libphp-ixr' ],
 #	    [ qr,(?i)(class\.)?kses\.php$, => 'libphp-kses' ],