Creating Debian Packages: Difference between revisions
From IHRIS Wiki
(Added easy way) |
|||
Line 1: | Line 1: | ||
== Super Simple == | |||
# Add http://www.intrahealth.org/debian/ ./ to your sources.list file. | |||
# If you don't have mysql-server installed, you'll want to install it. Alternatively, you can use mysql on another host (though this is not tested). | |||
# Run “aptitude install ihris-manage”. | |||
# Visit http://localhost/iHRIS/Manage | |||
# You should have the bare-bones installation running. If you want to modify the apache setup, change /etc/apache2/conf.d/ | |||
== Not So Hard Way == | == Not So Hard Way == | ||
# Install [http://bazaar-vcs.org/ Bazaar] and [https://edge.launchpad.net/bzr-builddeb bzr-builddeb] (“apt-get install bzr-builddeb dpatch debhelper”) | # Install [http://bazaar-vcs.org/ Bazaar] and [https://edge.launchpad.net/bzr-builddeb bzr-builddeb] as well as the build dependencies dpatch and debhelper. (“apt-get install bzr-builddeb dpatch debhelper”) | ||
# Check out [http://code.launchpad.net/~hexmode my debian build scripts]. I suggest doing this in a separate directory. For example: | # Check out [http://code.launchpad.net/~hexmode my debian build scripts]. I suggest doing this in a separate directory. For example: | ||
<pre> | <pre> | ||
Line 9: | Line 17: | ||
$ bzr co http://bazaar.launchpad.net/~hexmode/ihris-common/debian-dev ihris-common | $ bzr co http://bazaar.launchpad.net/~hexmode/ihris-common/debian-dev ihris-common | ||
$ bzr co http://bazaar.launchpad.net/~hexmode/ihris-manage/debian-dev ihris-manage | $ bzr co http://bazaar.launchpad.net/~hexmode/ihris-manage/debian-dev ihris-manage | ||
</pre># In each | </pre># In each directory, run “bzr builddeb”. | ||
<pre> | |||
$ (cd i2ce; bzr builddeb) | |||
$ (cd ihris-common; bzr builddeb) | |||
$ (cd ihris-manage; bzr builddeb) | |||
</pre># You should now have a subdirectory named build-area with three .deb files in it. Before installing them, you'll need to install the |
Revision as of 14:19, 6 October 2007
Super Simple
- Add http://www.intrahealth.org/debian/ ./ to your sources.list file.
- If you don't have mysql-server installed, you'll want to install it. Alternatively, you can use mysql on another host (though this is not tested).
- Run “aptitude install ihris-manage”.
- Visit http://localhost/iHRIS/Manage
- You should have the bare-bones installation running. If you want to modify the apache setup, change /etc/apache2/conf.d/
Not So Hard Way
- Install Bazaar and bzr-builddeb as well as the build dependencies dpatch and debhelper. (“apt-get install bzr-builddeb dpatch debhelper”)
- Check out my debian build scripts. I suggest doing this in a separate directory. For example:
$ mkdir build $ cd build $ bzr co http://bazaar.launchpad.net/~hexmode/i2ce/debian-dev i2ce $ bzr co http://bazaar.launchpad.net/~hexmode/ihris-common/debian-dev ihris-common $ bzr co http://bazaar.launchpad.net/~hexmode/ihris-manage/debian-dev ihris-manage
# In each directory, run “bzr builddeb”.
$ (cd i2ce; bzr builddeb) $ (cd ihris-common; bzr builddeb) $ (cd ihris-manage; bzr builddeb)
# You should now have a subdirectory named build-area with three .deb files in it. Before installing them, you'll need to install the