[
KLOE Online Page ] [ Index ] [ Bottom ]

Getting-Started with KLOE online software rules and methods

This is a Getting-Started about how to use the software management tools to develop, use and distrubute software in the KLOE Online UNIX environment. The main concepts, organisation, rules and tools are already described in KLOE memo #40. In the meantime I have introduced some small modifications which are described in an up-to-date document.

This Getting-Started will use the package skel to demonstrate the general concept and to get familiar with the tools and skills needed to manage and distribute the software. The package skel is also a set of skeleton files which can be used to create a package from scratch. Just follow all the instructions and links and you will quickly learn and understand.


==) Index


==) Package import and installation

On the LNF UNIX cluster an Anonymous FTP service has been enabled on hpkloe01.lnf.infn.it to allow easy distribution of software packages which are located under the root for KLOE online software /kloe/soft/onl.

If you do not have direct access to this root because you are outside LNF or the system has no NFS access like most of the real-time systems you must install the software packages on your local system first. But to get familiar it is recommanded to make the installation in you home directory ... otherwise go directly to the next chapter


==) Package management tools setup at login

To have the package manage setup at login time put the line
source /kloe/soft/onl/manage/v1/mgr/setup.csh
into your tcsh startup script e.g. ~.tcshrc or ~/.cshrc. If necessary replace kloe/soft/onl with your local root for the online software. And if you want to use a none default flavor put
setenv MANAGEFLAVOR HP-RT
source /kloe/soft/onl/manage/v1/mgr/setup.csh
instead. Then type
tcsh> uname
to retrieve your system name which is the default flavor. If you work for example on a cross development environment like for HP-RT the default system name is not appropriate. You can do the same with:
tcsh> packman -f HP-RT

==) Package configuration

Now let's have a look to the stucture and how the package configuration is done:

==) Package setup


==) Package building

For global package building a Makefile must exist as mgr/Makefile. Have a look to this makefile to get further information about the rules. In this case it calls another Makefile ../src/Makefile which is written in a special way to create all flavor dependent files in $SKELBIN. Now type
tcsh> gmake
tcsh> myskel
to completely build the package and run myskel which is defined as alias in requirements. You can also move to ../src. and do a make there ... it's actually the same. Note that we should use Gnu-Make available as gmake on most systems.

==) Package export and backup

To make a backup of the package an appropriate tag should exist in the global Makefile skel/v1/mgr/Makefile. Then with the command:
tcsh> cd $SKELMGR
tcsh> gmake tar
a compressed tar file will be created in the $MANAGESAVE directory.

In a second step the compressed tar file can then be moved from the backup directory $MANAGESAVE to the official distribution place $MANAGEFTP which is accessabile via Anonymous FTP with:

tcsh> packman -e skel v1
Important Note The envirnonment variables MANAGESAVE and MANAGEFTP are defined in the requirements file of package manage. This scheme allows enough flexibility in case it must be modified in future.


[ KLOE Online Page ] [ Top ] [ Index ]

Suggestions, comments or questions? Please contact:


18/3/96