This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
public:techstuff:packaging:inspircd [2012/10/24 14:40] – created nathan | public: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 / | ||
- | |||
- | < | ||
- | Explanation: | ||
- | Package: * | ||
- | Pin: release o=Debian, | ||
- | Pin-Priority: | ||
- | | ||
- | Package: * | ||
- | Pin: release o=Debian, | ||
- | Pin-Priority: | ||
- | | ||
- | Package: * | ||
- | Pin: release o=Debian | ||
- | Pin-Priority: | ||
- | </ | ||
- | |||
- | * To do the package building correctly you will also want to export these variables from your .bashrc | ||
- | |||
- | < | ||
- | export DEBFULLNAME=' | ||
- | export DEBEMAIL=' | ||
- | </ | ||
- | |||
- | ===== Building the package ===== | ||
< | < | ||
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/ | + | * Lock the debian watch file (debian/ |
< | < | ||
- | https:// | + | http://inspircd.github.com/downloads/ https://github.com/ |
</ | </ | ||
Line 56: | Line 25: | ||
< | < | ||
- | uupdate ../ | + | cd inspircd-2.0.5 |
+ | uupdate ../ | ||
</ | </ | ||
+ | |||
+ | * Change to the new source and remove any patches [these should be upstream by now] | ||
+ | |||
+ | < | ||
+ | cd ../ | ||
+ | rm debian/ | ||
+ | vim debian/ | ||
+ | </ | ||
+ | |||
+ | * 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 | ||
< | < | ||
- | cd ../ | ||
dch -e | dch -e | ||
</ | </ | ||
+ | * Build the dsc file so we can use pbuilder | ||
+ | < | ||
+ | debuild -i -us -uc -S | ||
+ | </ | ||
+ | |||
+ | * Jump back up a directory and get pbuilder to build the deb. | ||
+ | |||
+ | < | ||
+ | cd .. | ||
+ | pbuilder-dist squeeze build inspircd_< | ||
+ | </ |