The dist directory contains files & scripts for building distributable packages.

RPM packaging

Tools for making rpms are in dist/rpm. To build, go to that directory and run one of the two shell scripts. The build doesn't have any requirements other than rpmbuild itself (note: if you have trouble finding it, the OS package containing rpmbuild is often hyphenated as rpm-build.) The whole procedure looks like this
$ ./setup-here.sh
$ rpmbuild -ba SPECS/it-core.spec
This creates four RPMs. Paths given below are typical and may vary on some distributions: All RPMs require PHP 5+, Apache 2+, MySQL 5+, and php-mysql. The subpackages each require the main it-core but are otherwise independent.

Installation would look like this:

$ cd BUILD/noarch
$ sudo rpm -Uvh it-core-<version>.rpm
$ sudo /etc/init.d/httpd restart
$ sudo rpm -Uvh it-core-doc-<version>.rpm
$ sudo rpm -Uvh it-core-fannie-<version>.rpm
$ sudo rpm -Uvh it-core-is4c-nf-<version>.rpm
Any of the last three lines could be omitted, although omitting all three would be kind of silly.

DEB Packaging

The dist/deb contains a single alien-based script for converting .rpm files to .deb files. To create deb packges:
  1. Set up a dkpg+alien environment ($deity help you if you're on an rpm-based system and have to do this from source packages)
  2. Build RPMs under dist/rpm as described above.
  3. Go to dist/deb and run the make-debs.sh script. This script requires both a version number and a build number (e.g., if the RPM is it-core-0.1.0-1.noarch.rpm, run make-debs.sh 0.1.0 1).