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