User Tools

Site Tools


public:techstuff:packaging:inspircd

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
public:techstuff:packaging:inspircd [2012/10/24 14:40] – created nathanpublic:techstuff:packaging:inspircd [2020/04/25 13:05] (current) – external edit 127.0.0.1
Line 2: Line 2:
  
 We want the latest inspircd2.0 branch for debian stable. Stable only has 1.1.22. Instead we'll grab 2.0 from testing, update it to the latest release, and backport it to stable. We want the latest inspircd2.0 branch for debian stable. Stable only has 1.1.22. Instead we'll grab 2.0 from testing, update it to the latest release, and backport it to stable.
- 
-===== Pre-requisites ===== 
-  * A fully set up install of pbuilder for debian stable 
- 
-  * These packages: devscripts build-essential wget fakeroot 
- 
-  * stable and testing in your sources.list file. To avoid complications we will also make apt prefer testing packages. Edit your /etc/apt/preferences as show below. 
- 
-<code> 
-Explanation: see http://www.argon.org/~roderick/apt-pinning.html                       
-Package: *                                                                       
-Pin: release o=Debian,a=testing                                                  
-Pin-Priority: 900                                                                
-                                                                                 
-Package: *                                                                       
-Pin: release o=Debian,a=unstable                                                 
-Pin-Priority: 300                                                                
-                                                                                 
-Package: *                                                                       
-Pin: release o=Debian                                                            
-Pin-Priority: -1                                                                 
-</code> 
- 
-  * To do the package building correctly you will also want to export these variables from your .bashrc 
- 
-<code> 
-export DEBFULLNAME='Some Guy' 
-export DEBEMAIL='some.guy@gmail.com' 
-</code> 
- 
-===== Building the package ===== 
  
 <code> <code>
Line 41: Line 10:
  
   * Change into the source directory created by apt   * Change into the source directory created by apt
-  * Lock the debian watch file (debian/watch) down to the 2.0 release as show below.+  * Lock the debian watch file (debian/watch) down to the latest release as show below.
  
 <code> <code>
-https://github.com/inspircd/inspircd/downloads /downloads/inspircd/inspircd/InspIRCd-(2\.0\..+)\.tar\.bz2+http://inspircd.github.com/downloadshttps://github.com/inspircd/inspircd/archive/v(2\.0\..+).tar.gz
 </code> </code>
  
Line 56: Line 25:
  
 <code> <code>
-uupdate ../inspircd_2.0.9.orig.tar.bz2+cd inspircd-2.0.5 
 +uupdate ../inspircd_2.0.10.orig.tar.gz
 </code> </code>
 +
 +  * Change to the new source and remove any patches [these should be upstream by now]
 +
 +<code>
 +cd ../inspircd-2.0.10
 +rm debian/patch/*.diff
 +vim debian/patch/series
 +</code>
 +
 +  * Now is a good time to add any extra modules you want to include. In my case I add chatlog.
  
   * Write a changelog entry for our update   * Write a changelog entry for our update
  
 <code> <code>
-cd ../inspircd-2.0.9 
 dch -e dch -e
 </code> </code>
  
 +  * Build the dsc file so we can use pbuilder
  
 +<code>
 +debuild -i -us -uc -S
 +</code>
 +
 +  * Jump back up a directory and get pbuilder to build the deb.
 +
 +<code>
 +cd ..
 +pbuilder-dist squeeze build inspircd_<version>.dsc
 +</code>
public/techstuff/packaging/inspircd.1351089633.txt.gz · Last modified: 2020/04/25 13:05 (external edit)