This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
public:techstuff:packaging:transmission [2012/12/29 08:52] – created nathan | public:techstuff:packaging:transmission [2020/04/25 13:05] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Transmission ====== | ====== Transmission ====== | ||
- | | + | ===== Dependencies ===== |
- | * uscan --verbose | + | |
- | * cd transmission-< | + | ==== Build deb ==== |
- | * dch -e | + | |
- | * debuild -i -us -uc -S | + | |
- | * cd .. | + | * Copy the link to the dsc file from the right hand side |
- | | + | * use dget to fetch the sources |
+ | |||
+ | dget http:// | ||
+ | |||
+ | * Update the sources. This uses the debian/ | ||
+ | |||
+ | uscan --verbose | ||
+ | |||
+ | Note: Currently the watch file (debian/ | ||
+ | |||
+ | Note: At this point you probably want to remove the patches in debian/ | ||
+ | |||
+ | * Build the dsc file so we can use pbuilder | ||
+ | |||
+ | debuild -i -us -uc -S | ||
+ | |||
+ | |||
+ | |||
+ | ==== libevent ==== | ||
+ | |||
+ | * Use this command to list the package for each version of debian. | ||
+ | |||
+ | rmadison libevent | ||
+ | |||
+ | * At the moment libevent from backports is a new enough version so we'll just grab those straight into our repo. We need libevent-dev which depends on all of libevent, so we need those packages too. | ||
+ | |||
+ | cd / | ||
+ | | ||
+ | apt-get download libevent-2.0.5=2.0.16-stable-1~bpo60+1 | ||
+ | apt-get download libevent-core-2.0-5=2.0.16-stable-1~bpo60+1 | ||
+ | |||
+ | |||
+ | * Update the repo. | ||
+ | |||
+ | cd / | ||
+ | apt-ftparchive packages . > Packages | ||
+ | |||
+ | * Note the package version from the Packages file. | ||
+ | |||
+ | less Packages | ||
+ | |||
+ | * In our case libevent-2.0-5=2.0.16-stable-1~bpo60+1 | ||
+ | |||
+ | ===== Build deb ===== | ||
+ | |||
+ | |||
+ | * First check the available versions. | ||
+ | |||
+ | rmadison transmission | ||
+ | |||
+ | * To make life easier we'll grab the squeeze package and update it rather than backport a sid package. | ||
+ | |||
+ | apt-get | ||
+ | |||
+ | * Update the sources. This uses the debian/ | ||
+ | |||
+ | | ||
+ | |||
+ | * First we need to update the dependencies. Edit debian/ | ||
+ | |||
+ | | ||
+ | vim debian/ | ||
+ | |||
+ | * Add a changelog entry for the new upstream version. | ||
+ | |||
+ | | ||
+ | |||
+ | * Build the dsc file so we can use pbuilder | ||
+ | |||
+ | | ||
+ | |||
+ | * Jump back up a directory and get pbuilder to build the deb. | ||
+ | |||
+ | | ||
+ | pbuilder-dist | ||
+ | |||
+ | ===== Troubleshooting ===== | ||
+ | |||
+ | * You may need to remove patches that have since been upstreamed when you update the code. |