Packaging/Package Requirements
From GEANT2-JRA1 Wiki
Contents |
[edit]
Package Requirements
[edit]
For Tomcat services
- Package should depend on Sun Java package
- Package should depend on Tomcat package
- Service will be installed in /var/lib/tomcat5(5)/webapps
- Services that need exist should depend on the perfSONAR package (in repositories)
- package should have minimal write permissions on files, dirs, only where needed
- Read permissions will be minimized for config files and security related files.
[edit]
For All packages
- Configuration files will go into /etc/<servicename> (or create a symlink tot the config files in this folder)
- startup script will be placed in /etc/init.d/<servicename>
- Services will have a minimal config file, and examples if available in /usr/share/doc/<servicename>/examples.
- Configuration files should be marked as configuration files by the pacakge manager, so updates/upgrades safe the config files.
- Packages should be created confirming to the Filesystem Hierarchy Standard as much as possible. For example dynamic link files should be put in /usr/lib.
[edit]
Package information
Tomcat Package dependecies:
- Deb based: tomcat5.5
- RPM based: tomcat5
packages using exist should depend on:
- DEB based: tomcat5.5-exist
- RPM based: tomcat5-exist
Tomcat service Installation path:
- Deb based: /var/lib/tomcat5.5/webapps/<servicename>
- RPM based: /var/lib/tomcat5/webapps/<servicename>
Write permissions:
file writable by tomcat should be UID:
- Deb based: tomcat55
- RPM based: tomcat
