Changes

Jump to navigation Jump to search
no edit summary
Line 2: Line 2:  
This can be done on SME 8 by installing only cvs as follows.
 
This can be done on SME 8 by installing only cvs as follows.
    +
== Setting up your build server ==
 +
This How-to is primarily based on SME8, and that you have your development SME8 server up and running. This can be a dedicated machine or a virtual machine
   −
Using SME 8
+
==== Create a new 'builder' user ====
 +
We will create a new user account that we use for our building purposes. The new user account can be created, as usual, through the server-manager, In this How-To we will have named our new user account 'builder'
   −
Create a new user, eg builder
+
==== Grant shell access ====
 +
The 'builder' account needs to be able to login and have shell access. For this you will need to grant permissions. Type the following commands from the root account:
 +
chsh -s /bin/bash builder
 +
db accounts setprop builder Shell /bin/bash
    +
After issuing the above commands, the user 'builder' should be able to login on the console. Please login as user 'builder' for the the rest of the instructions assume you are loged in as user 'builder'
   −
* You will need to alter your user account to enable regular login. If you want to enable account "builder", then you would type the following commands from the root account:
+
==== Install CVS ====
 +
SME Server uses CVS for maintaining code and packages. By default, CVS is not installed on SME8 (not required for normal SME Server operation). To install CVS on SME8 issue the following command:
 +
yum install cvs
   −
chsh -s /bin/bash builder
+
==== Create a development directory ====
 +
The user 'builder needs a dedicated development directory. In this How-To we will use ~/home/smeserver. To create the directory ~/home/smeserver please issue the following command as user 'builder':
 +
mkdir ~/home/smeserver
 +
cd ~/home/smeserver
   −
db accounts setprop builder Shell /bin/bash
+
This is all what is required to setup your server to be able to start working on patches and packages
   −
* Install CVS
     −
yum install cvs
+
== Retrieve code ==
 +
==== Getting the right module ====
 +
In this How-To we want to work on the package 'e-smith-base'. We first need to download (with CVS this is called retrieving) the code for 'e-smith-base' from the SME Server CVS repository. For this issue the following command:
 +
cvs -z3 -d:pserver:anonymous@smeserver.cvs.sourceforge.net:/cvsroot/smeserver checkout -P e-smith-base
    +
Next to a selective retrieve as per above, you can also retrieve the whole CVS tree.
 +
cd ~/home/smeserver
 +
cvs -z3 -d:pserver:anonymous@smeserver.cvs.sourceforge.net:/cvsroot/smeserver co -P rpms
   −
* create a development directory, eg ~/home/smeserver
+
WIP Up to here [HF]
 
  −
mkdir ~/home/smeserver
  −
 
  −
cd ~/home/smeserver
  −
 
  −
* Download the module you want to work on, eg e-smith-base
  −
 
  −
cvs -z3 -d:pserver:anonymous@smeserver.cvs.sourceforge.net:/cvsroot/smeserver checkout -P e-smith-base
  −
 
  −
* Alternatively retrieve the whole CVS tree
  −
 
  −
cd ~/home/smeserver
  −
 
  −
cvs -z3 -d:pserver:anonymous@smeserver.cvs.sourceforge.net:/cvsroot/smeserver co -P rpms
      
You can now retrieve one of the packages from SourceForge. In this case, we want to modify the e-smith-base package for SME8, so let's retrieve it from SourceForge:
 
You can now retrieve one of the packages from SourceForge. In this case, we want to modify the e-smith-base package for SME8, so let's retrieve it from SourceForge:

Navigation menu