/[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.5 by unnilennium, Tue Nov 5 06:51:47 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 12
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-12.sme
32    - error in config file  [SME: 7978]
33    - also added more configuration option
34    - added /usr/share/php/ in phpbasedir [SME: 7977]
35    - patch cleanup, createlinks added to spec
36    
37    * Sun Oct 27 2013 JP Pialasse <tests@pialasse.com> 1.0-10.sme
38    - rewritten for epel version of wordpress
39    - added createlinks and conf-wordpress event
40    - start cleaning spec file
41    - modified php base dir
42    
43    
44  * 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
45  - 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
46    
# Line 68  smserver rpm to setup mysql database and Line 83  smserver rpm to setup mysql database and
83  %setup  %setup
84  %patch0 -p1  %patch0 -p1
85  %patch1 -p1  %patch1 -p1
86  %build  %patch2 -p1
87  mkdir -p          root/etc/e-smith/db/accounts/defaults/wordpress  %patch3 -p1
 echo "reserved" > root/etc/e-smith/db/accounts/defaults/wordpress/type  
88    
89  mkdir -p                  root/etc/e-smith/db/configuration/defaults/wordpress  %build
90  echo "Wordpress weblog" > root/etc/e-smith/db/configuration/defaults/wordpress/Name  perl createlinks
91  echo "global"           > root/etc/e-smith/db/configuration/defaults/wordpress/PublicAccess  #mkdir -p         root/etc/e-smith/db/accounts/defaults/wordpress
92  echo "enabled"          > root/etc/e-smith/db/configuration/defaults/wordpress/status  #echo "reserved" > root/etc/e-smith/db/accounts/defaults/wordpress/type
93  echo "wordpress"        > root/etc/e-smith/db/configuration/defaults/wordpress/DbName  #
94  echo "wordpress"        > root/etc/e-smith/db/configuration/defaults/wordpress/DbUser  #mkdir -p                  root/etc/e-smith/db/configuration/defaults/wordpress
95  echo "en"               > root/etc/e-smith/db/configuration/defaults/wordpress/WpLang  #echo "Wordpress weblog" > root/etc/e-smith/db/configuration/defaults/wordpress/Name
96    #echo "global"           > root/etc/e-smith/db/configuration/defaults/wordpress/PublicAccess
97  mkdir -p                   root/etc/e-smith/templates.metadata/etc/e-smith/sql/init  #echo "enabled"          > root/etc/e-smith/db/configuration/defaults/wordpress/status
98  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
99    #echo "wordpress"        > root/etc/e-smith/db/configuration/defaults/wordpress/DbUser
100  #only needed so it is removed afterwards  #echo "en"               > root/etc/e-smith/db/configuration/defaults/wordpress/WpLang
101  mkdir -p   root/opt/wordpress  #
102  touch      root/opt/wordpress/wp-config.php  #mkdir -p                   root/etc/e-smith/templates.metadata/etc/e-smith/sql/init
103    #echo "PERMS=0750"       >  root/etc/e-smith/templates.metadata/etc/e-smith/sql/init/80wordpress
104    #
105    ##only needed so it is removed afterwards
106    #mkdir -p   root/opt/wordpress
107    #touch      root/opt/wordpress/wp-config.php
108    
109  %install  %install
110  rm -rf $RPM_BUILD_ROOT  rm -rf $RPM_BUILD_ROOT
# Line 103  rm -rf %{name}-%{version} Line 122  rm -rf %{name}-%{version}
122  %preun  %preun
123    
124  %post  %post
125  /etc/e-smith/events/actions/initialize-default-databases  #/etc/e-smith/events/actions/initialize-default-databases
126  /sbin/e-smith/expand-template /etc/e-smith/sql/init/80wordpress  #/sbin/e-smith/expand-template /etc/e-smith/sql/init/80wordpress
127  /etc/rc.d/init.d/mysql.init start  #/etc/rc.d/init.d/mysql.init start
128  /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf  #/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
129  /sbin/e-smith/expand-template /opt/wordpress/wp-config.php  #/sbin/e-smith/expand-template /opt/wordpress/wp-config.php
130  /usr/bin/sv h /service/httpd-e-smith  #/usr/bin/sv h /service/httpd-e-smith
131    #
132  echo ""  #echo ""
133  echo "see http://wiki.contribs.org/Wordpress"  #echo "see http://wiki.contribs.org/Wordpress"
134  echo "see config show wordpress"  #echo "see config show wordpress"
135  /sbin/e-smith/config show wordpress  #/sbin/e-smith/config show wordpress
136  echo " "  #echo " "
137  /bin/chown -R www:www /opt/wordpress/  
138    # this one under I am not sure if it is a good thing ..................... !!!!!!
139    #/bin/chown -R www:www /opt/wordpress/
140    
141  %postun  %postun
142  #uninstall  #uninstall
143  if [ $1 = 0 ] ; then  #if [ $1 = 0 ] ; then
144   /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf  # /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
145   /usr/bin/sv h /service/httpd-e-smith  # /usr/bin/sv h /service/httpd-e-smith
146  fi  #fi
147    
148  %files -f %{name}-%{version}-filelist  %files -f %{name}-%{version}-filelist
149  %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