Difference between revisions of "Debian"

From Gramps
Jump to: navigation, search
(Add reference to Debian maintainer's guid)
m (update for Ubuntu 8.04)
Line 1: Line 1:
Instructions on creating the Debian <tt>.deb</tt> package:
+
Instructions on creating the Debian <tt>.deb</tt> package for Ubuntu:
  
* ensure you have a working build environment; for example, see [[Running a development version of Gramps]]
+
* Ensure you have a working build environment; for example, see [[Running a development version of Gramps]].
* in addition, you'll need several more tools:
+
* For Ubuntu 7.04 or 7.10, install these tools:
  sudo apt-get install devscripts
+
  sudo apt-get install devscripts dpkg-dev fakeroot debhelper libgconf2-dev
sudo apt-get install dpkg-dev
+
* For Ubuntu 8.04, install these tools:
sudo apt-get install fakeroot
+
  sudo apt-get install devscripts dpkg-dev fakeroot debhelper libgconf2-dev python-xml
  sudo apt-get install debhelper
+
* Check out the necessary version; for example, to build the <tt>.deb</tt> file for GRAMPS version 2.2.9, you'll want to run:
sudo apt-get install libgconf2-dev
 
* check out the necessary version; for example, to build the <tt>.deb</tt> file for GRAMPS version 2.2.9, you'll want to run:
 
 
  mkdir ~/gramps
 
  mkdir ~/gramps
 
  cd ~/gramps
 
  cd ~/gramps
 
  svn co https://gramps.svn.sourceforge.net/svnroot/gramps/tags/gramps-2.2.9
 
  svn co https://gramps.svn.sourceforge.net/svnroot/gramps/tags/gramps-2.2.9
* confirm that everything builds:
+
* Confirm that everything builds:
 
  ./autogen.sh
 
  ./autogen.sh
 
  make
 
  make
* create the <tt>.deb</tt> package:
+
* Create the <tt>.deb</tt> package:
 
  cd debian
 
  cd debian
 
  export DEBEMAIL='[email protected]'
 
  export DEBEMAIL='[email protected]'
Line 24: Line 22:
 
: Remember to modify '''<tt>DEBEMAIL</tt>''' and '''<tt>DEBFULLNAME</tt>''' to reflect your e-mail and name.
 
: Remember to modify '''<tt>DEBEMAIL</tt>''' and '''<tt>DEBFULLNAME</tt>''' to reflect your e-mail and name.
  
* release the <tt>.deb</tt> files:
+
* Release the <tt>.deb</tt> files:
 
  cd ..
 
  cd ..
 
  ls *.deb
 
  ls *.deb

Revision as of 05:18, 5 May 2008

Instructions on creating the Debian .deb package for Ubuntu:

sudo apt-get install devscripts dpkg-dev fakeroot debhelper libgconf2-dev
  • For Ubuntu 8.04, install these tools:
sudo apt-get install devscripts dpkg-dev fakeroot debhelper libgconf2-dev python-xml
  • Check out the necessary version; for example, to build the .deb file for GRAMPS version 2.2.9, you'll want to run:
mkdir ~/gramps
cd ~/gramps
svn co https://gramps.svn.sourceforge.net/svnroot/gramps/tags/gramps-2.2.9
  • Confirm that everything builds:
./autogen.sh
make
  • Create the .deb package:
cd debian
export DEBEMAIL='[email protected]'
export DEBFULLNAME='Stephane Charette'
dch -v 2.2.9-1 "New upstream release"
cd ..
dpkg-buildpackage -rfakeroot
Remember to modify DEBEMAIL and DEBFULLNAME to reflect your e-mail and name.
  • Release the .deb files:
cd ..
ls *.deb
Note the 2 files gramps_2.2.9-1_all.deb and gramps-help_2.2.9-1_all.deb, both of which need to be uploaded to ftp://upload.sourceforge.net/incoming/.
  • The details on how things are going to be packaged into deb files, what are the dependencies, the pre- and post- install and removal scripts etc are under debian/ directory. Please refer to the Debian New Maintainers' Guide for further details.