File: mod_perl.patch

package info (click to toggle)
w3c-markup-validator 1.3%2Bdfsg-3
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 5,044 kB
  • ctags: 332
  • sloc: perl: 2,888; xml: 1,331; python: 427; sh: 216; makefile: 75
file content (27 lines) | stat: -rw-r--r-- 983 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Subject: Customize mod_perl related stuff
Forwarded: not-needed
Author: Nicholas Bamber <nicholas@periapt.co.uk>
Last-Update: 2013-03-06

--- a/httpd/conf/httpd.conf
+++ b/httpd/conf/httpd.conf
@@ -36,7 +36,7 @@
 <IfDefine MODPERL2>
 # Note: this block affects the whole server, not just the validator.
 PerlSwitches -T
-PerlPostConfigRequire /usr/local/validator/httpd/mod_perl/startup.pl
+PerlPostConfigRequire /usr/share/w3c-markup-validator/mod_perl/startup.pl
 </IfDefine>
 
 <LocationMatch "^/+w3c-validator/+(check|feedback(\.html)?)$">
--- a/httpd/mod_perl/startup.pl
+++ b/httpd/mod_perl/startup.pl
@@ -8,7 +8,6 @@
 # /usr/local/validator, be sure to modify this file so that the path to
 # catalog.xml below is correct for validator's sgml-lib/catalog.xml
 
-my $home = $ENV{W3C_VALIDATOR_HOME} || "/usr/local/validator";
-$ENV{XML_CATALOG_FILES} = "$home/htdocs/sgml-lib/catalog.xml";
+$ENV{XML_CATALOG_FILES} = "/usr/share/xml/w3c-sgml-lib/schema/dtd/catalog.xml";
 
 1;