Skip to content
Mahara RPM packaging
Shell
Find file
Latest commit e9e5a5e Aug 11, 2011 @0x616469 0x616469 Removed logrotate from the package. All log files are placed in /var/…
…log/httpd/

and will be rotated by the logrotate configuration for apache
(/etc/logrotate.d/httpd).
Failed to load latest commit information.
LICENSE added Apache License file Aug 4, 2011
Makefile added changelog to rpm spec Jul 7, 2011
Makefile.in fixed path to main makefile Jul 7, 2011
README
README.liip change Liip README Jul 7, 2011
TODO removed todo that has been implemented Jul 22, 2011
git-arch.sh fixed issues with submodules. Submodule paths were not correctly tran… Jul 18, 2011
mahara-site.spec.in Removed logrotate from the package. All log files are placed in /var/… Aug 11, 2011
mahara.conf
mahara.cron fix path to cron job Aug 4, 2011
setup.sh added shell script for the initial packaging setup Jul 7, 2011

README

This readme provides some basic information on how to setup up RPM packaging
for a Mahara project.
The packaging mechanism allows you to wrap your Mahara project into an
RPM package and thus gives you easy deployments and dependency management.

Prerequisits
============
These scripts have been tested on CentOS. They should work out of the box on
RedHat. To use them on Fedora you might have change the RPM spec file
specifically you will need to adapt the dependencies to work on Fedora.
To be able to build RPM packages you will need to install the package
rpm-build
which is available from the standard repository.

Next you will of course need to have git clone of mahara:
git clone git://gitorious.org/mahara/mahara.git

You probably should have at least a local branch to manage any
customisations you intend to do. In the project directory do:
git checkout -b my-mahara-project -t origin/1.4_STABLE

Now you need to add the rpm packaging code as a submodule:
git submodule add git://github.com/liip/mahararpmpkg.git htdocs/rpm

git submodule init
git submodule update

Next go to the 'htdocs' directory and run the following command to setup you
project:
rpm/setup.sh

This asks you for the project name, your full name and your email address
which are necessary to setup the packaging.
After running this command succesfully you will have a Makefile and a
changelog in your 'htdocs' directory. Both files should be committed to
version control.

Before you can build your first package you need to create an annotated tag.
The packaging mechanism uses the latest tag to create a version number.

git tag -a -s mah14-mysite-site-2011070701

How you actually name your tags is mostly up to you. But you must add the
date at the end in the form YYYYMMDDNN where 'NN' is just a counter that
allows you to create several releases on the same day.

Once you created a tag you can start building your first package by simply
typing 'make' in your 'htdocs' directory.
After the build process has run through you'll have an RPM package in
/tmp/<my-mahara-projcet>/RPMS/noarch/

You can now install this package on a RedHat or CentOS server.
After the installation you still need to do the following steps:
* create a database user and database
* edit the Mahara config.php and add database information and dataroot
* edit apache conf in /etc/httpd/conf.d/<my-mahara-project>.conf and set the
  servername

Something went wrong with that request. Please try again.