Changes

Jump to navigation Jump to search
76 bytes removed ,  12:44, 16 September 2007
m
Reformatted headers to be conform other SME Server Wiki pages
Line 1: Line 1: −
===Generic Instructions for building a Web Application RPM===
+
=Generic Instructions for building a Web Application RPM=
    
RPMS make installation more reliable and removal much easier.
 
RPMS make installation more reliable and removal much easier.
Line 5: Line 5:  
This guide aims to create a common structure for building rpms
 
This guide aims to create a common structure for building rpms
   −
====Build environment====
+
==Build environment==
   −
=====Local Server=====
+
===Local Server===
 
Create a build environment on your local server, refer to the SME Server Developer's Guide: [http://mirror.contribs.org/smeserver/contribs/gordonr/devguide/html/p1082.htm How to create an SME Server package - step by step]
 
Create a build environment on your local server, refer to the SME Server Developer's Guide: [http://mirror.contribs.org/smeserver/contribs/gordonr/devguide/html/p1082.htm How to create an SME Server package - step by step]
   −
=====SME Build Server=====
+
===SME Build Server===
 
When you are comfortable building rpms, you are encouraged to put your source files on
 
When you are comfortable building rpms, you are encouraged to put your source files on
 
the SME Build Server, this allows others to more easily update and improve your rpms.
 
the SME Build Server, this allows others to more easily update and improve your rpms.
Line 16: Line 16:  
http://wiki.contribs.org/ReleasingContribs#Submitting_a_contrib_to_the_SME_Server_repository
 
http://wiki.contribs.org/ReleasingContribs#Submitting_a_contrib_to_the_SME_Server_repository
   −
====The Application RPM====
+
==The Application RPM==
   −
=====Application source=====
+
===Application source===
 
Download the application source, eg foo.tar.gz and place in the SOURCES directory
 
Download the application source, eg foo.tar.gz and place in the SOURCES directory
   −
=====SPEC file=====
+
===SPEC file===
 
Edit the following sample .spec file and place in the SPECS directory
 
Edit the following sample .spec file and place in the SPECS directory
   Line 80: Line 80:  
  %defattr(-,root,root)
 
  %defattr(-,root,root)
   −
=====Build the RPM=====
+
===Build the RPM===
 
rpmbuild -ba /home/e-smith/files/users/jim/home/rpms/SPECS/foo.spec
 
rpmbuild -ba /home/e-smith/files/users/jim/home/rpms/SPECS/foo.spec
      −
=====Notes=====
+
===Notes===
 
   
Add workarounds and alternate methods here ...
 
Add workarounds and alternate methods here ...
    
Permissions, may need tweaking but usually not many need changing, you don't want the webserver changing the distribution files
 
Permissions, may need tweaking but usually not many need changing, you don't want the webserver changing the distribution files
   −
====SME Intergration RPM====
+
==SME Intergration RPM==
   −
=====Create database=====
+
===Create database===
 
* Create password
 
* Create password
   Line 138: Line 137:  
The %post section of the spec file run the commands to initialise db values and create the db structure
 
The %post section of the spec file run the commands to initialise db values and create the db structure
   −
=====Webserver templates=====
+
===Webserver templates===
    
* The alias fragment tailored to suit the application
 
* The alias fragment tailored to suit the application
Line 273: Line 272:  
  }
 
  }
   −
=====System file templates=====
+
===System file templates===
    
You may need to create a fragment for a system file such as crontab.
 
You may need to create a fragment for a system file such as crontab.
Line 279: Line 278:  
http://mirror.contribs.org/smeserver/contribs/gordonr/devguide/html/c610.htm
 
http://mirror.contribs.org/smeserver/contribs/gordonr/devguide/html/c610.htm
   −
=====Application templates=====
+
===Application templates===
    
Place a copy of the application config file in the templates directory, <br>
 
Place a copy of the application config file in the templates directory, <br>
Line 322: Line 321:  
  }
 
  }
   −
=====Spec file=====
+
===Spec file===
    
  %define name smeserver-foo
 
  %define name smeserver-foo
Line 406: Line 405:  
  %defattr(-,root,root)
 
  %defattr(-,root,root)
   −
====Further Information====
+
==Further Information===
   −
=====Developer guide=====
+
===Developer guide===
 
http://wiki.contribs.org/SME_Server:Documentation:Developers_Manual
 
http://wiki.contribs.org/SME_Server:Documentation:Developers_Manual
   −
=====New DB settings=====
+
===New DB settings===
    
* To disable foo. (default is enabled)
 
* To disable foo. (default is enabled)
Line 448: Line 447:  
  sv h /service/httpd-e-smith
 
  sv h /service/httpd-e-smith
   −
=====Related applications=====
+
===Related applications===
 
* eaccelerator
 
* eaccelerator
  

Navigation menu