Talk:Deb Package

From MapbenderWiki

Jump to: navigation, search

Contents

How to build a package for Mapbender_2.6.1.zip

wget http://www.mapbender.org/download/mapbender_2.6.1.zip
unzip mapbender_2.6.1.zip 
mv mapbender_2.6.1 mapbender-2.6.1
cd mapbender-2.6.1/
dh_make --createorig
vim changelog 
vim debian/rules
* uncomment clean 
* uncomment make
* add Mapbender-files(in future better do this with a make-file)	cp -a conf debian/mapbender/var/www/mapbender/
vim debian/control
* set Architecture: all 

dpkg-buildpackage -sa -rfakeroot
dpkg -c ../mapbender_2.6.1-1_all.deb 


What we have to do ?

makefile

  • a makefile makes sense if you would like to get your project into other distributions like redhad, suse..
  • provide a makefile to get all the Mpabender-files instead of cp in debian/rules
  • for help have a look at autoconf automake


Apache ALIAS and Database

  • have a look at debconf
  • have a look at other projects like mediawiki or typo3 (how are they doing it)


lintian

  • check the quality of your package with lintian

Notice

  • don't put the folder debian into the tar-ball

Uninstall

  • provide a clean uninstall routine

Find a sponsor

Views
Personal tools