| 20 | |
| 21 | |
| 22 | == Python SSL Backport Packaging == |
| 23 | As 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 | |
| 25 | To 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 | {{{ |
| 28 | sudo aptitude install python-all-dev fakeroot |
| 29 | sudo easy_install stdeb |
| 30 | wget http://pypi.python.org/packages/source/s/ssl/ssl-1.14.tar.gz#md5=4e08aae0cd2c7388d1b4bbb7f374b14a |
| 31 | tar xvfz ssl-1.14.tar.gz |
| 32 | cd ssl-1.14 |
| 33 | stdeb_run_setup |
| 34 | cd deb_dist/ssl-1.14 |
| 35 | dpkg-buildpackage -rfakeroot -uc -us |
| 36 | sudo dpkg -i ../python-ssl_1.14-1_amd64.deb |
| 37 | }}} |
| 38 | |
| 39 | For complete bcfg2 goodness, you'll also want to package stdeb using stdeb: |
| 40 | {{{ |
| 41 | aptitude install apt-file |
| 42 | wget http://pypi.python.org/packages/source/s/stdeb/stdeb-0.3.tar.gz#md5=e692f745597dcdd9343ce133e3b910d0 |
| 43 | tar xvfz stdeb-0.3.tar.gz |
| 44 | cd stdeb-0.3 |
| 45 | stdeb_run_setup |
| 46 | cd deb_dist/stdeb-0.3 |
| 47 | dpkg-buildpackage -rfakeroot -uc -us |
| 48 | sudo dpkg -i ../python-stdeb_0.3-1_all.deb |
| 49 | }}} |