/[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.2 by unnilennium, Sun Oct 27 21:17:36 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 6
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  BuildArchitectures: noarch  BuildArchitectures: noarch
20  BuildRoot: /var/tmp/%{name}-%{version}  BuildRoot: /var/tmp/%{name}-%{version}
21  BuildRequires: e-smith-devtools >= 1.13.1-03  BuildRequires: e-smith-devtools >= 1.13.1-03
# Line 26  AutoReqProv: no Line 27  AutoReqProv: no
27  smserver rpm to setup mysql database and web link for wordpress weblog  smserver rpm to setup mysql database and web link for wordpress weblog
28    
29  %changelog  %changelog
30    * Sun Oct 27 2013 JP Pialasse <tests@pialasse.com> 1.0-6.sme
31    - rewritten for epel version of wordpress
32    - added createlinks and conf-wordpress event
33    - start cleaning spec file
34    
35    
36  * 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
37  - 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
38    
# Line 68  smserver rpm to setup mysql database and Line 75  smserver rpm to setup mysql database and
75  %setup  %setup
76  %patch0 -p1  %patch0 -p1
77  %patch1 -p1  %patch1 -p1
78  %build  %patch2 -p1
 mkdir -p          root/etc/e-smith/db/accounts/defaults/wordpress  
 echo "reserved" > root/etc/e-smith/db/accounts/defaults/wordpress/type  
79    
80  mkdir -p                  root/etc/e-smith/db/configuration/defaults/wordpress  
81  echo "Wordpress weblog" > root/etc/e-smith/db/configuration/defaults/wordpress/Name  %build
82  echo "global"           > root/etc/e-smith/db/configuration/defaults/wordpress/PublicAccess  #mkdir -p          root/etc/e-smith/db/accounts/defaults/wordpress
83  echo "enabled"          > root/etc/e-smith/db/configuration/defaults/wordpress/status  #echo "reserved" > root/etc/e-smith/db/accounts/defaults/wordpress/type
84  echo "wordpress"        > root/etc/e-smith/db/configuration/defaults/wordpress/DbName  #
85  echo "wordpress"        > root/etc/e-smith/db/configuration/defaults/wordpress/DbUser  #mkdir -p                  root/etc/e-smith/db/configuration/defaults/wordpress
86  echo "en"               > root/etc/e-smith/db/configuration/defaults/wordpress/WpLang  #echo "Wordpress weblog" > root/etc/e-smith/db/configuration/defaults/wordpress/Name
87    #echo "global"           > root/etc/e-smith/db/configuration/defaults/wordpress/PublicAccess
88  mkdir -p                   root/etc/e-smith/templates.metadata/etc/e-smith/sql/init  #echo "enabled"          > root/etc/e-smith/db/configuration/defaults/wordpress/status
89  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
90    #echo "wordpress"        > root/etc/e-smith/db/configuration/defaults/wordpress/DbUser
91  #only needed so it is removed afterwards  #echo "en"               > root/etc/e-smith/db/configuration/defaults/wordpress/WpLang
92  mkdir -p   root/opt/wordpress  #
93  touch      root/opt/wordpress/wp-config.php  #mkdir -p                   root/etc/e-smith/templates.metadata/etc/e-smith/sql/init
94    #echo "PERMS=0750"       >  root/etc/e-smith/templates.metadata/etc/e-smith/sql/init/80wordpress
95    #
96    ##only needed so it is removed afterwards
97    #mkdir -p   root/opt/wordpress
98    #touch      root/opt/wordpress/wp-config.php
99    
100  %install  %install
101  rm -rf $RPM_BUILD_ROOT  rm -rf $RPM_BUILD_ROOT
# Line 103  rm -rf %{name}-%{version} Line 113  rm -rf %{name}-%{version}
113  %preun  %preun
114    
115  %post  %post
116  /etc/e-smith/events/actions/initialize-default-databases  #/etc/e-smith/events/actions/initialize-default-databases
117  /sbin/e-smith/expand-template /etc/e-smith/sql/init/80wordpress  #/sbin/e-smith/expand-template /etc/e-smith/sql/init/80wordpress
118  /etc/rc.d/init.d/mysql.init start  #/etc/rc.d/init.d/mysql.init start
119  /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf  #/sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
120  /sbin/e-smith/expand-template /opt/wordpress/wp-config.php  #/sbin/e-smith/expand-template /opt/wordpress/wp-config.php
121  /usr/bin/sv h /service/httpd-e-smith  #/usr/bin/sv h /service/httpd-e-smith
122    #
123  echo ""  #echo ""
124  echo "see http://wiki.contribs.org/Wordpress"  #echo "see http://wiki.contribs.org/Wordpress"
125  echo "see config show wordpress"  #echo "see config show wordpress"
126  /sbin/e-smith/config show wordpress  #/sbin/e-smith/config show wordpress
127  echo " "  #echo " "
128  /bin/chown -R www:www /opt/wordpress/  
129    # this one under I am not sure if it is a good thing ..................... !!!!!!
130    #/bin/chown -R www:www /opt/wordpress/
131    
132  %postun  %postun
133  #uninstall  #uninstall
134  if [ $1 = 0 ] ; then  #if [ $1 = 0 ] ; then
135   /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf  # /sbin/e-smith/expand-template /etc/httpd/conf/httpd.conf
136   /usr/bin/sv h /service/httpd-e-smith  # /usr/bin/sv h /service/httpd-e-smith
137  fi  #fi
138    
139  %files -f %{name}-%{version}-filelist  %files -f %{name}-%{version}-filelist
140  %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