3 |
# Name: Stephen Noble |
# Name: Stephen Noble |
4 |
|
|
5 |
%define name smeserver-wordpress |
%define name smeserver-wordpress |
6 |
%define version 1.0 |
%define version 1.2 |
7 |
%define release 12 |
%define release 9 |
8 |
Summary: smserver rpm to setup mysql database and web link for wordpress weblog |
Summary: smserver rpm to setup mysql database and web link for wordpress weblog |
9 |
Name: %{name} |
Name: %{name} |
10 |
Version: %{version} |
Version: %{version} |
11 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
12 |
License: GNU GPL version 2 |
License: GNU GPL version 2 |
13 |
URL: http://www.dungog.net/wiki |
URL: http://wiki.contribs.org/Main_Page |
14 |
Group: SMEserver/addon |
Group: SMEserver/addon |
15 |
Source: %{name}-%{version}.tar.gz |
Source: %{name}-%{version}.tar.gz |
|
Patch0: smeserver-wordpress-1.0-rm80opt.patch |
|
|
Patch1: smeserver-wordpress-1.0-tmp_folder.patch |
|
|
Patch2: smeserver-wordpress-1.0-wpEPEL.patch |
|
|
Patch3: smeserver-wordpress-1.0-patch3.patch |
|
16 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
17 |
BuildRoot: /var/tmp/%{name}-%{version} |
BuildRoot: /var/tmp/%{name}-%{version} |
18 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
BuildRequires: e-smith-devtools |
19 |
Requires: e-smith-release >= 8.0 |
Requires: e-smith-release >= 8.0 |
20 |
Requires: wordpress |
Requires: wordpress |
21 |
|
Patch0: smeserver-wordpress-1.2.NfrHttpdDirective.patch |
22 |
|
Patch1: smeserver-wordpress-1.2.remove_AuthBasicProvider.patch |
23 |
AutoReqProv: no |
AutoReqProv: no |
24 |
|
|
25 |
%description |
%description |
26 |
smserver rpm to setup mysql database and web link for wordpress weblog |
smserver rpm to setup mysql database and web link for wordpress weblog |
27 |
|
|
28 |
%changelog |
%changelog |
29 |
|
* Wed Nov 18 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.2-9.sme |
30 |
|
- Added new directive to apache (Indexes, FollowSymLinks, AllowOverrideAll) |
31 |
|
- The http can be forced, even if it is not a good idea |
32 |
|
- new properties in the wordpress key |
33 |
|
- the AuthBasicProvider has been removed for sme8 |
34 |
|
|
35 |
|
* Fri Aug 21 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.2-7.sme |
36 |
|
- Initial release to contribs8 |
37 |
|
|
38 |
|
* Mon Feb 09 2015 stephane de Labrusse <stephdl@de-labrusse.fr> 1.2-6.sme |
39 |
|
- Add usr/share/wordpress/wp-content in the default server backup |
40 |
|
|
41 |
|
* Thu Dec 25 2014 stephane de Labrusse <stephdl@de-labrusse.fr> 1.2-5.sme |
42 |
|
- Force the 'Salt property' to enabled |
43 |
|
|
44 |
|
* Sun Nov 9 2014 stephane de Labrusse <stephdl@de-labrusse.fr> 1.2-4.sme |
45 |
|
- Corrected a typo in the virtualhost https redirection |
46 |
|
|
47 |
|
* Wed Oct 15 2014 stephane de Labrusse <stephdl@de-labrusse.fr> 1.2-3.sme |
48 |
|
- Thanks to Remi Collet for the help to resolve the 'bug' |
49 |
|
- define('DISALLOW_FILE_MODS', false); :) |
50 |
|
- Added another default value to {wordpress}{Salt} |
51 |
|
|
52 |
|
* Tue Sep 02 2014 stephane de Labrusse <stephdl@de-labrusse.fr> 1.2-2.sme |
53 |
|
- corrected the lack of module MIME::Base64 [SME: 8548] |
54 |
|
- corrected the new ownership of www on /etc/wordpress [SME: 8546] |
55 |
|
- added templates.metadata to root,www 0640 on /etc/wordpress/wp-config.php |
56 |
|
- changed db {wordpress}{phrase} to {wordpress}{Salt} |
57 |
|
|
58 |
|
* Wed Jun 20 2014 stephane de Labrusse <stephdl@de-labrusse.fr> 1.2-1.sme |
59 |
|
- initial release to sme9 |
60 |
|
|
61 |
|
* Tue Nov 5 2013 JP Pialasse <tests@pialasse.com> 1.0-13.sme |
62 |
|
- added chown to allow plugin instalaltion and translation |
63 |
|
|
64 |
* Tue Nov 5 2013 JP Pialasse <tests@pialasse.com> 1.0-12.sme |
* Tue Nov 5 2013 JP Pialasse <tests@pialasse.com> 1.0-12.sme |
65 |
- error in config file [SME: 7978] |
- error in config file [SME: 7978] |
66 |
- also added more configuration option |
- also added more configuration option |
79 |
|
|
80 |
* Wed Jun 05 2013 Stephane de Labrusse <stephdl@de-labrusse.fr> 1.0.4 |
* Wed Jun 05 2013 Stephane de Labrusse <stephdl@de-labrusse.fr> 1.0.4 |
81 |
- add a tmp folder in httpd.conf |
- add a tmp folder in httpd.conf |
82 |
|
|
83 |
* Mon Jun 03 2013 Stephane de Labrusse <stephdl@de-labrusse.fr> 1.0-3 |
* Mon Jun 03 2013 Stephane de Labrusse <stephdl@de-labrusse.fr> 1.0-3 |
84 |
- backup html-folder, mysql-base, and config-file during erase and upgrade process |
- backup html-folder, mysql-base, and config-file during erase and upgrade process |
85 |
|
|
117 |
%setup |
%setup |
118 |
%patch0 -p1 |
%patch0 -p1 |
119 |
%patch1 -p1 |
%patch1 -p1 |
|
%patch2 -p1 |
|
|
%patch3 -p1 |
|
120 |
|
|
121 |
%build |
%build |
122 |
perl createlinks |
perl createlinks |
123 |
#mkdir -p root/etc/e-smith/db/accounts/defaults/wordpress |
|
|
#echo "reserved" > root/etc/e-smith/db/accounts/defaults/wordpress/type |
|
|
# |
|
|
#mkdir -p root/etc/e-smith/db/configuration/defaults/wordpress |
|
|
#echo "Wordpress weblog" > root/etc/e-smith/db/configuration/defaults/wordpress/Name |
|
|
#echo "global" > root/etc/e-smith/db/configuration/defaults/wordpress/PublicAccess |
|
|
#echo "enabled" > root/etc/e-smith/db/configuration/defaults/wordpress/status |
|
|
#echo "wordpress" > root/etc/e-smith/db/configuration/defaults/wordpress/DbName |
|
|
#echo "wordpress" > root/etc/e-smith/db/configuration/defaults/wordpress/DbUser |
|
|
#echo "en" > root/etc/e-smith/db/configuration/defaults/wordpress/WpLang |
|
|
# |
|
|
#mkdir -p root/etc/e-smith/templates.metadata/etc/e-smith/sql/init |
|
|
#echo "PERMS=0750" > root/etc/e-smith/templates.metadata/etc/e-smith/sql/init/80wordpress |
|
|
# |
|
|
##only needed so it is removed afterwards |
|
|
#mkdir -p root/opt/wordpress |
|
|
#touch root/opt/wordpress/wp-config.php |
|
124 |
|
|
125 |
%install |
%install |
126 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
131 |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
echo "%doc COPYING" >> %{name}-%{version}-filelist |
132 |
|
|
133 |
%clean |
%clean |
134 |
|
|
135 |
cd .. |
cd .. |
136 |
rm -rf %{name}-%{version} |
rm -rf %{name}-%{version} |
137 |
|
|
139 |
%preun |
%preun |
140 |
|
|
141 |
%post |
%post |
|
#/etc/e-smith/events/actions/initialize-default-databases |
|
|
#/sbin/e-smith/expand-template /etc/e-smith/sql/init/80wordpress |
|
|
#/etc/rc.d/init.d/mysql.init start |
|
|
#/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf |
|
|
#/sbin/e-smith/expand-template /opt/wordpress/wp-config.php |
|
|
#/usr/bin/sv h /service/httpd-e-smith |
|
|
# |
|
|
#echo "" |
|
|
#echo "see http://wiki.contribs.org/Wordpress" |
|
|
#echo "see config show wordpress" |
|
|
#/sbin/e-smith/config show wordpress |
|
|
#echo " " |
|
|
|
|
|
# this one under I am not sure if it is a good thing ..................... !!!!!! |
|
|
#/bin/chown -R www:www /opt/wordpress/ |
|
142 |
|
|
143 |
%postun |
%postun |
144 |
#uninstall |
|
|
#if [ $1 = 0 ] ; then |
|
|
# /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf |
|
|
# /usr/bin/sv h /service/httpd-e-smith |
|
|
#fi |
|
145 |
|
|
146 |
%files -f %{name}-%{version}-filelist |
%files -f %{name}-%{version}-filelist |
147 |
%defattr(-,root,root) |
%defattr(-,root,root) |