1 |
unnilennium |
1.1 |
# $Id: smeserver-wordpress.spec,v 1.6 2008/11/29 03:11:22 dungog Exp $ |
2 |
|
|
# Authority: dungog |
3 |
|
|
# Name: Stephen Noble |
4 |
|
|
|
5 |
|
|
%define name smeserver-wordpress |
6 |
|
|
%define version 1.0 |
7 |
stephdl |
1.7 |
%define release 14 |
8 |
unnilennium |
1.1 |
Summary: smserver rpm to setup mysql database and web link for wordpress weblog |
9 |
|
|
Name: %{name} |
10 |
|
|
Version: %{version} |
11 |
|
|
Release: %{release}%{?dist} |
12 |
|
|
License: GNU GPL version 2 |
13 |
|
|
URL: http://www.dungog.net/wiki |
14 |
|
|
Group: SMEserver/addon |
15 |
|
|
Source: %{name}-%{version}.tar.gz |
16 |
|
|
Patch0: smeserver-wordpress-1.0-rm80opt.patch |
17 |
|
|
Patch1: smeserver-wordpress-1.0-tmp_folder.patch |
18 |
unnilennium |
1.2 |
Patch2: smeserver-wordpress-1.0-wpEPEL.patch |
19 |
unnilennium |
1.4 |
Patch3: smeserver-wordpress-1.0-patch3.patch |
20 |
unnilennium |
1.6 |
Patch4: smeserver-wordpress-1.0-patch4.patch |
21 |
stephdl |
1.7 |
Patch5: smeserver-wordpress-1.0_corrected_ownership2www_and_added_salt.patch |
22 |
unnilennium |
1.1 |
BuildArchitectures: noarch |
23 |
|
|
BuildRoot: /var/tmp/%{name}-%{version} |
24 |
|
|
BuildRequires: e-smith-devtools >= 1.13.1-03 |
25 |
|
|
Requires: e-smith-release >= 8.0 |
26 |
|
|
Requires: wordpress |
27 |
|
|
AutoReqProv: no |
28 |
|
|
|
29 |
|
|
%description |
30 |
|
|
smserver rpm to setup mysql database and web link for wordpress weblog |
31 |
|
|
|
32 |
|
|
%changelog |
33 |
stephdl |
1.7 |
* Tue Sep 02 2014 stephane de Labrusse <stephdl@de-labrusse.fr> 1.0-14.sme |
34 |
|
|
- corrected the lack of module MIME::Base64 [SME: 8548] |
35 |
|
|
- corrected the new ownership of www on /etc/wordpress [SME: 8546] |
36 |
|
|
- added templates.metadata to root,www 0640 on /etc/wordpress/wp-config.php |
37 |
|
|
- changed db {wordpress}{phrase} to {wordpress}{Salt} |
38 |
|
|
|
39 |
unnilennium |
1.6 |
* Tue Nov 5 2013 JP Pialasse <tests@pialasse.com> 1.0-13.sme |
40 |
|
|
- added chown to allow plugin instalaltion and translation |
41 |
|
|
|
42 |
unnilennium |
1.5 |
* Tue Nov 5 2013 JP Pialasse <tests@pialasse.com> 1.0-12.sme |
43 |
unnilennium |
1.4 |
- error in config file [SME: 7978] |
44 |
|
|
- also added more configuration option |
45 |
|
|
- added /usr/share/php/ in phpbasedir [SME: 7977] |
46 |
unnilennium |
1.5 |
- patch cleanup, createlinks added to spec |
47 |
unnilennium |
1.4 |
|
48 |
unnilennium |
1.3 |
* Sun Oct 27 2013 JP Pialasse <tests@pialasse.com> 1.0-10.sme |
49 |
unnilennium |
1.2 |
- rewritten for epel version of wordpress |
50 |
|
|
- added createlinks and conf-wordpress event |
51 |
|
|
- start cleaning spec file |
52 |
unnilennium |
1.3 |
- modified php base dir |
53 |
unnilennium |
1.2 |
|
54 |
|
|
|
55 |
unnilennium |
1.1 |
* Wed Sep 04 2013 Stephane de Labrusse <stephdl@de-labrusse.fr> 1.0.5 |
56 |
|
|
- add www:www permission on /opt/wordpress folder to allow automatic update by FTP |
57 |
|
|
|
58 |
|
|
* Wed Jun 05 2013 Stephane de Labrusse <stephdl@de-labrusse.fr> 1.0.4 |
59 |
|
|
- add a tmp folder in httpd.conf |
60 |
|
|
* Mon Jun 03 2013 Stephane de Labrusse <stephdl@de-labrusse.fr> 1.0-3 |
61 |
|
|
- backup html-folder, mysql-base, and config-file during erase and upgrade process |
62 |
|
|
|
63 |
|
|
* Thu May 29 2013 Stephane de Labrusse <stephdl@de-labrusse.fr> |
64 |
|
|
- require sme8 due to wordpress 3.5 needs php version > 5.2 |
65 |
|
|
|
66 |
|
|
* Sat Nov 29 2008 Stephen Noble <support@dungog.net> 1.0-2 |
67 |
|
|
- http alias 80opt removed |
68 |
|
|
|
69 |
|
|
* Fri Jul 06 2007 Stephen Noble <support@dungog.net> 1.0-1 |
70 |
|
|
- http alias, auto setup, template wp-config.php |
71 |
|
|
|
72 |
|
|
* Mon Dec 11 2006 Stephen Noble <support@dungog.net> |
73 |
|
|
- rpm %post events reordered, to enable clean install |
74 |
|
|
- [0.9-5] |
75 |
|
|
|
76 |
|
|
* Thu Nov 9 2006 Stephen Noble <support@dungog.net> |
77 |
|
|
- http alias corrected |
78 |
|
|
- [0.9-4] |
79 |
|
|
|
80 |
|
|
* Thu Nov 9 2006 Stephen Noble <support@dungog.net> |
81 |
|
|
- http PublicAccess setting added |
82 |
|
|
- [0.9-3] |
83 |
|
|
|
84 |
|
|
* Thu May 4 2006 Stephen Noble <support@dungog.net> |
85 |
|
|
- httpd fragment modified |
86 |
|
|
- rpm doesn't change file permissions |
87 |
|
|
- [0.9-2] |
88 |
|
|
|
89 |
|
|
* Sun Apr 16 2006 Stephen Noble <support@dungog.net> |
90 |
|
|
- initial release |
91 |
|
|
- [0.9-1] |
92 |
|
|
|
93 |
|
|
%prep |
94 |
|
|
%setup |
95 |
|
|
%patch0 -p1 |
96 |
|
|
%patch1 -p1 |
97 |
unnilennium |
1.2 |
%patch2 -p1 |
98 |
unnilennium |
1.4 |
%patch3 -p1 |
99 |
unnilennium |
1.6 |
%patch4 -p1 |
100 |
stephdl |
1.7 |
%patch5 -p1 |
101 |
unnilennium |
1.2 |
|
102 |
unnilennium |
1.1 |
%build |
103 |
unnilennium |
1.4 |
perl createlinks |
104 |
|
|
#mkdir -p root/etc/e-smith/db/accounts/defaults/wordpress |
105 |
unnilennium |
1.2 |
#echo "reserved" > root/etc/e-smith/db/accounts/defaults/wordpress/type |
106 |
|
|
# |
107 |
|
|
#mkdir -p root/etc/e-smith/db/configuration/defaults/wordpress |
108 |
|
|
#echo "Wordpress weblog" > root/etc/e-smith/db/configuration/defaults/wordpress/Name |
109 |
|
|
#echo "global" > root/etc/e-smith/db/configuration/defaults/wordpress/PublicAccess |
110 |
|
|
#echo "enabled" > root/etc/e-smith/db/configuration/defaults/wordpress/status |
111 |
|
|
#echo "wordpress" > root/etc/e-smith/db/configuration/defaults/wordpress/DbName |
112 |
|
|
#echo "wordpress" > root/etc/e-smith/db/configuration/defaults/wordpress/DbUser |
113 |
|
|
#echo "en" > root/etc/e-smith/db/configuration/defaults/wordpress/WpLang |
114 |
|
|
# |
115 |
|
|
#mkdir -p root/etc/e-smith/templates.metadata/etc/e-smith/sql/init |
116 |
|
|
#echo "PERMS=0750" > root/etc/e-smith/templates.metadata/etc/e-smith/sql/init/80wordpress |
117 |
|
|
# |
118 |
|
|
##only needed so it is removed afterwards |
119 |
|
|
#mkdir -p root/opt/wordpress |
120 |
|
|
#touch root/opt/wordpress/wp-config.php |
121 |
unnilennium |
1.1 |
|
122 |
|
|
%install |
123 |
|
|
rm -rf $RPM_BUILD_ROOT |
124 |
|
|
(cd root ; find . -depth -print | cpio -dump $RPM_BUILD_ROOT) |
125 |
|
|
rm -f %{name}-%{version}-filelist |
126 |
|
|
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
127 |
|
|
> %{name}-%{version}-filelist |
128 |
|
|
echo "%doc COPYING" >> %{name}-%{version}-filelist |
129 |
|
|
|
130 |
|
|
%clean |
131 |
|
|
cd .. |
132 |
|
|
rm -rf %{name}-%{version} |
133 |
|
|
|
134 |
|
|
%pre |
135 |
|
|
%preun |
136 |
|
|
|
137 |
|
|
%post |
138 |
unnilennium |
1.2 |
#/etc/e-smith/events/actions/initialize-default-databases |
139 |
|
|
#/sbin/e-smith/expand-template /etc/e-smith/sql/init/80wordpress |
140 |
|
|
#/etc/rc.d/init.d/mysql.init start |
141 |
|
|
#/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf |
142 |
|
|
#/sbin/e-smith/expand-template /opt/wordpress/wp-config.php |
143 |
|
|
#/usr/bin/sv h /service/httpd-e-smith |
144 |
|
|
# |
145 |
|
|
#echo "" |
146 |
|
|
#echo "see http://wiki.contribs.org/Wordpress" |
147 |
|
|
#echo "see config show wordpress" |
148 |
|
|
#/sbin/e-smith/config show wordpress |
149 |
|
|
#echo " " |
150 |
|
|
|
151 |
|
|
# this one under I am not sure if it is a good thing ..................... !!!!!! |
152 |
|
|
#/bin/chown -R www:www /opt/wordpress/ |
153 |
unnilennium |
1.1 |
|
154 |
|
|
%postun |
155 |
|
|
#uninstall |
156 |
unnilennium |
1.2 |
#if [ $1 = 0 ] ; then |
157 |
|
|
# /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf |
158 |
|
|
# /usr/bin/sv h /service/httpd-e-smith |
159 |
|
|
#fi |
160 |
unnilennium |
1.1 |
|
161 |
|
|
%files -f %{name}-%{version}-filelist |
162 |
|
|
%defattr(-,root,root) |
163 |
|
|
|