/[smecontribs]/rpms/smeserver-wordpress/contribs8/smeserver-wordpress.spec
ViewVC logotype

Diff of /rpms/smeserver-wordpress/contribs8/smeserver-wordpress.spec

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

Revision 1.1 by unnilennium, Sun Oct 27 18:04:33 2013 UTC Revision 1.4 by unnilennium, Tue Nov 5 06:29:52 2013 UTC
# Line 4  Line 4 
4    
5  %define name smeserver-wordpress  %define name smeserver-wordpress
6  %define version 1.0  %define version 1.0
7  %define release 5  %define release 11
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}
# Line 15  Group: SMEserver/addon Line 15  Group: SMEserver/addon
15  Source: %{name}-%{version}.tar.gz  Source: %{name}-%{version}.tar.gz
16  Patch0:  smeserver-wordpress-1.0-rm80opt.patch  Patch0:  smeserver-wordpress-1.0-rm80opt.patch
17  Patch1:  smeserver-wordpress-1.0-tmp_folder.patch  Patch1:  smeserver-wordpress-1.0-tmp_folder.patch
18    Patch2: smeserver-wordpress-1.0-wpEPEL.patch
19    Patch3: smeserver-wordpress-1.0-patch3.patch
20  BuildArchitectures: noarch  BuildArchitectures: noarch
21  BuildRoot: /var/tmp/%{name}-%{version}  BuildRoot: /var/tmp/%{name}-%{version}
22  BuildRequires: e-smith-devtools >= 1.13.1-03  BuildRequires: e-smith-devtools >= 1.13.1-03
# Line 26  AutoReqProv: no Line 28  AutoReqProv: no
28  smserver rpm to setup mysql database and web link for wordpress weblog  smserver rpm to setup mysql database and web link for wordpress weblog
29    
30  %changelog  %changelog
31    * Tue Nov 5 2013 JP Pialasse <tests@pialasse.com> 1.0-11.sme
32    - error in config file  [SME: 7978]
33    - also added more configuration option
34    - added /usr/share/php/ in phpbasedir [SME: 7977]
35    
36    * Sun Oct 27 2013 JP Pialasse <tests@pialasse.com> 1.0-10.sme
37    - rewritten for epel version of wordpress
38    - added createlinks and conf-wordpress event
39    - start cleaning spec file
40    - modified php base dir
41    
42    
43  * Wed Sep 04 2013 Stephane de Labrusse <stephdl@de-labrusse.fr> 1.0.5  * Wed Sep 04 2013 Stephane de Labrusse <stephdl@de-labrusse.fr> 1.0.5
44  - add www:www permission on /opt/wordpress folder to allow automatic update by FTP  - add www:www permission on /opt/wordpress folder to allow automatic update by FTP
45    
# Line 68  smserver rpm to setup mysql database and Line 82  smserver rpm to setup mysql database and
82  %setup  %setup
83  %patch0 -p1  %patch0 -p1
84  %patch1 -p1  %patch1 -p1
85  %build  %patch2 -p1
86  mkdir -p          root/etc/e-smith/db/accounts/defaults/wordpress  %patch3 -p1
 echo "reserved" > root/etc/e-smith/db/accounts/defaults/wordpress/type  
87    
88  mkdir -p                  root/etc/e-smith/db/configuration/defaults/wordpress  %build
89  echo "Wordpress weblog" > root/etc/e-smith/db/configuration/defaults/wordpress/Name  perl createlinks
90  echo "global"           > root/etc/e-smith/db/configuration/defaults/wordpress/PublicAccess  #mkdir -p         root/etc/e-smith/db/accounts/defaults/wordpress
91  echo "enabled"          > root/etc/e-smith/db/configuration/defaults/wordpress/status  #echo "reserved" > root/etc/e-smith/db/accounts/defaults/wordpress/type
92  echo "wordpress"        > root/etc/e-smith/db/configuration/defaults/wordpress/DbName  #
93  echo "wordpress"        > root/etc/e-smith/db/configuration/defaults/wordpress/DbUser  #mkdir -p                  root/etc/e-smith/db/configuration/defaults/wordpress
94  echo "en"               > root/etc/e-smith/db/configuration/defaults/wordpress/WpLang  #echo "Wordpress weblog" > root/etc/e-smith/db/configuration/defaults/wordpress/Name
95    #echo "global"           > root/etc/e-smith/db/configuration/defaults/wordpress/PublicAccess
96  mkdir -p                   root/etc/e-smith/templates.metadata/etc/e-smith/sql/init  #echo "enabled"          > root/etc/e-smith/db/configuration/defaults/wordpress/status
97  echo "PERMS=0750"       >  root/etc/e-smith/templates.metadata/etc/e-smith/sql/init/80wordpress  #echo "wordpress"        > root/etc/e-smith/db/configuration/defaults/wordpress/DbName
98    #echo "wordpress"        > root/etc/e-smith/db/configuration/defaults/wordpress/DbUser
99  #only needed so it is removed afterwards  #echo "en"               > root/etc/e-smith/db/configuration/defaults/wordpress/WpLang
100  mkdir -p   root/opt/wordpress  #
101  touch      root/opt/wordpress/wp-config.php  #mkdir -p                   root/etc/e-smith/templates.metadata/etc/e-smith/sql/init
102    #echo "PERMS=0750"       >  root/etc/e-smith/templates.metadata/etc/e-smith/sql/init/80wordpress
103    #
104    ##only needed so it is removed afterwards
105    #mkdir -p   root/opt/wordpress
106    #touch      root/opt/wordpress/wp-config.php
107    
108  %install  %install
109  rm -rf $RPM_BUILD_ROOT  rm -rf $RPM_BUILD_ROOT
# Line 103  rm -rf %{name}-%{version} Line 121  rm -rf %{name}-%{version}
121  %preun  %preun
122    
123  %post  %post
124  /etc/e-smith/events/actions/initialize-default-databases  #/etc/e-smith/events/actions/initialize-default-databases
125  /sbin/e-smith/expand-template /etc/e-smith/sql/init/80wordpress  #/sbin/e-smith/expand-template /etc/e-smith/sql/init/80wordpress
126  /etc/rc.d/init.d/mysql.init start  #/etc/rc.d/init.d/mysql.init start
127  /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf  #/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
128  /sbin/e-smith/expand-template /opt/wordpress/wp-config.php  #/sbin/e-smith/expand-template /opt/wordpress/wp-config.php
129  /usr/bin/sv h /service/httpd-e-smith  #/usr/bin/sv h /service/httpd-e-smith
130    #
131  echo ""  #echo ""
132  echo "see http://wiki.contribs.org/Wordpress"  #echo "see http://wiki.contribs.org/Wordpress"
133  echo "see config show wordpress"  #echo "see config show wordpress"
134  /sbin/e-smith/config show wordpress  #/sbin/e-smith/config show wordpress
135  echo " "  #echo " "
136  /bin/chown -R www:www /opt/wordpress/  
137    # this one under I am not sure if it is a good thing ..................... !!!!!!
138    #/bin/chown -R www:www /opt/wordpress/
139    
140  %postun  %postun
141  #uninstall  #uninstall
142  if [ $1 = 0 ] ; then  #if [ $1 = 0 ] ; then
143   /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf  # /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
144   /usr/bin/sv h /service/httpd-e-smith  # /usr/bin/sv h /service/httpd-e-smith
145  fi  #fi
146    
147  %files -f %{name}-%{version}-filelist  %files -f %{name}-%{version}-filelist
148  %defattr(-,root,root)  %defattr(-,root,root)


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

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