/[smecontribs]/rpms/smeserver-wordpress/contribs8/smeserver-wordpress-1.0-wpEPEL.patch
ViewVC logotype

Annotation of /rpms/smeserver-wordpress/contribs8/smeserver-wordpress-1.0-wpEPEL.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.3 - (hide annotations) (download)
Tue Nov 5 06:51:47 2013 UTC (10 years, 6 months ago) by unnilennium
Branch: MAIN
CVS Tags: smeserver-wordpress-1_0-13_el5_sme, smeserver-wordpress-1_0-12_el5_sme, smeserver-wordpress-1_2-9_el5_sme, smeserver-wordpress-1_2-7_el5_sme, HEAD
Changes since 1.2: +1 -1 lines
* Tue Nov 5 2013 JP Pialasse <tests@pialasse.com> 1.0-12.sme
- error in config file  [SME: 7978]
- also added more configuration option
- added /usr/share/php/ in phpbasedir [SME: 7977]
- patch cleanup, createlinks added to spec

1 unnilennium 1.1 diff -Nur smeserver-wordpress-1.0/createlinks smeserver-wordpress-1.0.new/createlinks
2     --- smeserver-wordpress-1.0/createlinks 1969-12-31 19:00:00.000000000 -0500
3     +++ smeserver-wordpress-1.0.new/createlinks 2013-10-27 14:45:57.000000000 -0400
4     @@ -0,0 +1,15 @@
5     +#!/usr/bin/perl -w
6     +
7     +use esmith::Build::CreateLinks qw(:all);
8     +
9     +####################
10     +# links to add
11     +
12     +# templates to expand
13     + templates2events( "/etc/wordpress/wp-config.php" , qw( conf-wordpress bootstrap-console-save post-upgrade) );
14     + templates2events( "/etc/e-smith/sql/init/80wordpress" , qw( conf-wordpress bootstrap-console-save post-upgrade) );
15     + templates2events( "/etc/httpd/conf/httpd.conf", "conf-wordpress" );
16     +
17     +# services to launch on event
18 unnilennium 1.2 + safe_symlink("sigusr1", "root/etc/e-smith/events/conf-wordpress/services2adjust/httpd-e-smith");
19     + safe_symlink("restart", "root/etc/e-smith/events/conf-wordpress/services2adjust/mysql.init");
20 unnilennium 1.1 diff -Nur smeserver-wordpress-1.0/root/etc/e-smith/db/accounts/defaults/wordpress/type smeserver-wordpress-1.0.new/root/etc/e-smith/db/accounts/defaults/wordpress/type
21     --- smeserver-wordpress-1.0/root/etc/e-smith/db/accounts/defaults/wordpress/type 1969-12-31 19:00:00.000000000 -0500
22     +++ smeserver-wordpress-1.0.new/root/etc/e-smith/db/accounts/defaults/wordpress/type 2013-10-27 14:22:18.000000000 -0400
23     @@ -0,0 +1 @@
24     +reserved
25     diff -Nur smeserver-wordpress-1.0/root/etc/e-smith/db/configuration/defaults/wordpress/DbName smeserver-wordpress-1.0.new/root/etc/e-smith/db/configuration/defaults/wordpress/DbName
26     --- smeserver-wordpress-1.0/root/etc/e-smith/db/configuration/defaults/wordpress/DbName 1969-12-31 19:00:00.000000000 -0500
27     +++ smeserver-wordpress-1.0.new/root/etc/e-smith/db/configuration/defaults/wordpress/DbName 2013-10-27 14:22:18.000000000 -0400
28     @@ -0,0 +1 @@
29     +wordpress
30     diff -Nur smeserver-wordpress-1.0/root/etc/e-smith/db/configuration/defaults/wordpress/DbUser smeserver-wordpress-1.0.new/root/etc/e-smith/db/configuration/defaults/wordpress/DbUser
31     --- smeserver-wordpress-1.0/root/etc/e-smith/db/configuration/defaults/wordpress/DbUser 1969-12-31 19:00:00.000000000 -0500
32     +++ smeserver-wordpress-1.0.new/root/etc/e-smith/db/configuration/defaults/wordpress/DbUser 2013-10-27 14:22:18.000000000 -0400
33     @@ -0,0 +1 @@
34     +wordpress
35     diff -Nur smeserver-wordpress-1.0/root/etc/e-smith/db/configuration/defaults/wordpress/Name smeserver-wordpress-1.0.new/root/etc/e-smith/db/configuration/defaults/wordpress/Name
36     --- smeserver-wordpress-1.0/root/etc/e-smith/db/configuration/defaults/wordpress/Name 1969-12-31 19:00:00.000000000 -0500
37     +++ smeserver-wordpress-1.0.new/root/etc/e-smith/db/configuration/defaults/wordpress/Name 2013-10-27 14:22:18.000000000 -0400
38     @@ -0,0 +1 @@
39     +Wordpress weblog
40     diff -Nur smeserver-wordpress-1.0/root/etc/e-smith/db/configuration/defaults/wordpress/PublicAccess smeserver-wordpress-1.0.new/root/etc/e-smith/db/configuration/defaults/wordpress/PublicAccess
41     --- smeserver-wordpress-1.0/root/etc/e-smith/db/configuration/defaults/wordpress/PublicAccess 1969-12-31 19:00:00.000000000 -0500
42     +++ smeserver-wordpress-1.0.new/root/etc/e-smith/db/configuration/defaults/wordpress/PublicAccess 2013-10-27 14:22:18.000000000 -0400
43     @@ -0,0 +1 @@
44     +global
45     diff -Nur smeserver-wordpress-1.0/root/etc/e-smith/db/configuration/defaults/wordpress/status smeserver-wordpress-1.0.new/root/etc/e-smith/db/configuration/defaults/wordpress/status
46     --- smeserver-wordpress-1.0/root/etc/e-smith/db/configuration/defaults/wordpress/status 1969-12-31 19:00:00.000000000 -0500
47     +++ smeserver-wordpress-1.0.new/root/etc/e-smith/db/configuration/defaults/wordpress/status 2013-10-27 14:22:18.000000000 -0400
48     @@ -0,0 +1 @@
49     +enabled
50     diff -Nur smeserver-wordpress-1.0/root/etc/e-smith/db/configuration/defaults/wordpress/WpLang smeserver-wordpress-1.0.new/root/etc/e-smith/db/configuration/defaults/wordpress/WpLang
51     --- smeserver-wordpress-1.0/root/etc/e-smith/db/configuration/defaults/wordpress/WpLang 1969-12-31 19:00:00.000000000 -0500
52     +++ smeserver-wordpress-1.0.new/root/etc/e-smith/db/configuration/defaults/wordpress/WpLang 2013-10-27 14:22:18.000000000 -0400
53     @@ -0,0 +1 @@
54     +en
55     diff -Nur smeserver-wordpress-1.0/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/92wordpress smeserver-wordpress-1.0.new/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/92wordpress
56     --- smeserver-wordpress-1.0/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/92wordpress 2013-10-27 17:07:38.000000000 -0400
57     +++ smeserver-wordpress-1.0.new/root/etc/e-smith/templates/etc/httpd/conf/httpd.conf/92wordpress 2013-10-27 17:15:04.000000000 -0400
58     @@ -55,15 +55,15 @@
59    
60     {
61     if (exists $wordpress{'URL'})
62     - { $OUT .= "Alias /$wordpress{'URL'} /opt/wordpress\n"; }
63     + { $OUT .= "Alias /$wordpress{'URL'} /usr/share/wordpress\n"; }
64     }
65    
66     - $OUT .= "Alias /wordpress /opt/wordpress\n";
67     + $OUT .= "Alias /wordpress /usr/share/wordpress\n";
68    
69     $OUT .= "\n";
70     - $OUT .= "<Directory /opt/wordpress>\n";
71     + $OUT .= "<Directory /usr/share/wordpress>\n";
72     $OUT .= " AddType application/x-httpd-php .php\n";
73     - $OUT .= " php_admin_value open_basedir /opt/wordpress\n";
74     + $OUT .= " php_admin_value open_basedir /usr/share/wordpress:/etc/wordpress:/tmp/:/usr/share/pear\n";
75     $OUT .= " Options None\n";
76     $OUT .= " order deny,allow\n";
77     $OUT .= " deny from all\n";
78     diff -Nur smeserver-wordpress-1.0/root/etc/e-smith/templates/etc/wordpress/wp-config.php/10db smeserver-wordpress-1.0.new/root/etc/e-smith/templates/etc/wordpress/wp-config.php/10db
79     --- smeserver-wordpress-1.0/root/etc/e-smith/templates/etc/wordpress/wp-config.php/10db 1969-12-31 19:00:00.000000000 -0500
80     +++ smeserver-wordpress-1.0.new/root/etc/e-smith/templates/etc/wordpress/wp-config.php/10db 2007-07-06 05:30:02.000000000 -0400
81     @@ -0,0 +1,6 @@
82     +{
83     + $OUT .= "define('DB_NAME', \'$wordpress{DbName}\'); \n";
84     + $OUT .= "define('DB_USER', \'$wordpress{DbUser}\'); \n";
85     + $OUT .= "define('DB_PASSWORD', \'$wordpress{DbPassword}\'); \n";
86 unnilennium 1.3 + $OUT .= "define('DB_HOST', \'localhost\'); \n";
87 unnilennium 1.1 +}
88     \ Pas de fin de ligne à la fin du fichier.
89     diff -Nur smeserver-wordpress-1.0/root/etc/e-smith/templates/etc/wordpress/wp-config.php/20inc_dist smeserver-wordpress-1.0.new/root/etc/e-smith/templates/etc/wordpress/wp-config.php/20inc_dist
90     --- smeserver-wordpress-1.0/root/etc/e-smith/templates/etc/wordpress/wp-config.php/20inc_dist 1969-12-31 19:00:00.000000000 -0500
91     +++ smeserver-wordpress-1.0.new/root/etc/e-smith/templates/etc/wordpress/wp-config.php/20inc_dist 2007-07-06 02:35:58.000000000 -0400
92     @@ -0,0 +1,3 @@
93     +{
94     + $OUT = "require_once('wp-config-sample.php');";
95     +}
96     diff -Nur smeserver-wordpress-1.0/root/etc/e-smith/templates/etc/wordpress/wp-config.php/template-begin smeserver-wordpress-1.0.new/root/etc/e-smith/templates/etc/wordpress/wp-config.php/template-begin
97     --- smeserver-wordpress-1.0/root/etc/e-smith/templates/etc/wordpress/wp-config.php/template-begin 1969-12-31 19:00:00.000000000 -0500
98     +++ smeserver-wordpress-1.0.new/root/etc/e-smith/templates/etc/wordpress/wp-config.php/template-begin 2003-03-17 15:00:58.000000000 -0500
99     @@ -0,0 +1,14 @@
100     +{
101     + $OUT = <<HERE;
102     +<?php
103     +/*
104     +HERE
105     +
106     + $OUT .=
107     + Text::Template::_load_text("/etc/e-smith/templates-default/template-begin");
108     +
109     + $OUT .= <<HERE;
110     +*/
111     +HERE
112     +
113     +}
114     diff -Nur smeserver-wordpress-1.0/root/etc/e-smith/templates/etc/wordpress/wp-config.php/template-end smeserver-wordpress-1.0.new/root/etc/e-smith/templates/etc/wordpress/wp-config.php/template-end
115     --- smeserver-wordpress-1.0/root/etc/e-smith/templates/etc/wordpress/wp-config.php/template-end 1969-12-31 19:00:00.000000000 -0500
116     +++ smeserver-wordpress-1.0.new/root/etc/e-smith/templates/etc/wordpress/wp-config.php/template-end 2003-03-17 15:16:08.000000000 -0500
117     @@ -0,0 +1 @@
118     +?>
119     diff -Nur smeserver-wordpress-1.0/root/etc/e-smith/templates/opt/wordpress/wp-config.php/10db smeserver-wordpress-1.0.new/root/etc/e-smith/templates/opt/wordpress/wp-config.php/10db
120     --- smeserver-wordpress-1.0/root/etc/e-smith/templates/opt/wordpress/wp-config.php/10db 2007-07-06 05:30:02.000000000 -0400
121     +++ smeserver-wordpress-1.0.new/root/etc/e-smith/templates/opt/wordpress/wp-config.php/10db 1969-12-31 19:00:00.000000000 -0500
122     @@ -1,6 +0,0 @@
123     -{
124     - $OUT .= "define('DB_NAME', \'$wordpress{DbName}\'); \n";
125     - $OUT .= "define('DB_USER', \'$wordpress{DbUser}\'); \n";
126     - $OUT .= "define('DB_PASSWORD', \'$wordpress{DbPassword}\'); \n";
127     - $OUT .= "define('WPLANG', \'$wordpress{WpLang}\'); \n";
128     -}
129     \ Pas de fin de ligne à la fin du fichier.
130     diff -Nur smeserver-wordpress-1.0/root/etc/e-smith/templates/opt/wordpress/wp-config.php/20inc_dist smeserver-wordpress-1.0.new/root/etc/e-smith/templates/opt/wordpress/wp-config.php/20inc_dist
131     --- smeserver-wordpress-1.0/root/etc/e-smith/templates/opt/wordpress/wp-config.php/20inc_dist 2007-07-06 02:35:58.000000000 -0400
132     +++ smeserver-wordpress-1.0.new/root/etc/e-smith/templates/opt/wordpress/wp-config.php/20inc_dist 1969-12-31 19:00:00.000000000 -0500
133     @@ -1,3 +0,0 @@
134     -{
135     - $OUT = "require_once('wp-config-sample.php');";
136     -}
137     diff -Nur smeserver-wordpress-1.0/root/etc/e-smith/templates/opt/wordpress/wp-config.php/template-begin smeserver-wordpress-1.0.new/root/etc/e-smith/templates/opt/wordpress/wp-config.php/template-begin
138     --- smeserver-wordpress-1.0/root/etc/e-smith/templates/opt/wordpress/wp-config.php/template-begin 2003-03-17 15:00:58.000000000 -0500
139     +++ smeserver-wordpress-1.0.new/root/etc/e-smith/templates/opt/wordpress/wp-config.php/template-begin 1969-12-31 19:00:00.000000000 -0500
140     @@ -1,14 +0,0 @@
141     -{
142     - $OUT = <<HERE;
143     -<?php
144     -/*
145     -HERE
146     -
147     - $OUT .=
148     - Text::Template::_load_text("/etc/e-smith/templates-default/template-begin");
149     -
150     - $OUT .= <<HERE;
151     -*/
152     -HERE
153     -
154     -}
155     diff -Nur smeserver-wordpress-1.0/root/etc/e-smith/templates/opt/wordpress/wp-config.php/template-end smeserver-wordpress-1.0.new/root/etc/e-smith/templates/opt/wordpress/wp-config.php/template-end
156     --- smeserver-wordpress-1.0/root/etc/e-smith/templates/opt/wordpress/wp-config.php/template-end 2003-03-17 15:16:08.000000000 -0500
157     +++ smeserver-wordpress-1.0.new/root/etc/e-smith/templates/opt/wordpress/wp-config.php/template-end 1969-12-31 19:00:00.000000000 -0500
158     @@ -1 +0,0 @@
159     -?>
160     diff -Nur smeserver-wordpress-1.0/root/etc/e-smith/templates.metadata/etc/e-smith/sql/init/80wordpress smeserver-wordpress-1.0.new/root/etc/e-smith/templates.metadata/etc/e-smith/sql/init/80wordpress
161     --- smeserver-wordpress-1.0/root/etc/e-smith/templates.metadata/etc/e-smith/sql/init/80wordpress 1969-12-31 19:00:00.000000000 -0500
162     +++ smeserver-wordpress-1.0.new/root/etc/e-smith/templates.metadata/etc/e-smith/sql/init/80wordpress 2013-10-27 14:22:18.000000000 -0400
163     @@ -0,0 +1 @@
164     +PERMS=0750
165     diff -Nur smeserver-wordpress-1.0/root/etc/e-smith/templates.metadata/etc/wordpress/wp-config.php smeserver-wordpress-1.0.new/root/etc/e-smith/templates.metadata/etc/wordpress/wp-config.php
166     --- smeserver-wordpress-1.0/root/etc/e-smith/templates.metadata/etc/wordpress/wp-config.php 1969-12-31 19:00:00.000000000 -0500
167     +++ smeserver-wordpress-1.0.new/root/etc/e-smith/templates.metadata/etc/wordpress/wp-config.php 2013-10-27 14:39:00.000000000 -0400
168     @@ -0,0 +1,3 @@
169     +UID="root"
170     +GID="root"
171     +PERMS=0644

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed