Changes between Version 10 and Version 11 of BuildingDebianPackages


Ignore:
Timestamp:
05/23/09 21:09:48 (14 years ago)
Author:
dclark
Comment:

Added how to create python module .debs for backported ssl

Legend:

Unmodified
Added
Removed
Modified
  • BuildingDebianPackages

    v10 v11  
    11= Building Debian Packages = 
    22 
     3== Bcfg2 Packaging == 
    34 * Install packages necessary for building bcfg2 [[BR]] 
    45   {{{apt-get build-dep bcfg2 bcfg2-server}}} [[BR]] 
     
    1718 * run "fakeroot dpkg-buildpackage -uc -us" 
    1819 * enjoy your freshly built packages 
     20  
     21  
     22== Python SSL Backport Packaging == 
     23As of Bcfg2 1.0, Bcfg2 has switched to the in-tree ssl module included with python 2.6. A backport exists for 2.3, 2.4, and 2.5. With this, M2Crypto is not needed, and tlslite is no longer included with bcfg2 sources. The ssl module can be found [http://pypi.python.org/pypi/ssl/1.14 here]. See [wiki:Authentication] for details.  
     24 
     25To build a package of the ssl backport for .deb based distributions that don't ship with python 2.6, you can follow these instructions, which use [http://github.com/astraw/stdeb/tree/master stdeb]. Alternatively if you happen to have .deb packaging skills, it would be great to get policy-complaint .debs into the major deb-based distributions. 
     26 
     27{{{ 
     28sudo aptitude install python-all-dev fakeroot 
     29sudo easy_install stdeb 
     30wget http://pypi.python.org/packages/source/s/ssl/ssl-1.14.tar.gz#md5=4e08aae0cd2c7388d1b4bbb7f374b14a 
     31tar xvfz ssl-1.14.tar.gz 
     32cd ssl-1.14 
     33stdeb_run_setup 
     34cd deb_dist/ssl-1.14 
     35dpkg-buildpackage -rfakeroot -uc -us 
     36sudo dpkg -i ../python-ssl_1.14-1_amd64.deb 
     37}}} 
     38 
     39For complete bcfg2 goodness, you'll also want to package stdeb using stdeb: 
     40{{{ 
     41aptitude install apt-file 
     42wget http://pypi.python.org/packages/source/s/stdeb/stdeb-0.3.tar.gz#md5=e692f745597dcdd9343ce133e3b910d0 
     43tar xvfz stdeb-0.3.tar.gz 
     44cd stdeb-0.3 
     45stdeb_run_setup 
     46cd deb_dist/stdeb-0.3 
     47dpkg-buildpackage -rfakeroot -uc -us 
     48sudo dpkg -i ../python-stdeb_0.3-1_all.deb 
     49}}}