Applying patches to Debian pptpd
by Louis Savarese and James Cameron
2005-08-08
How to install pptpd on Debian is described in Debian pptpd HOWTO. Given a patch to
pptpd, how do you rebuild Debian pptpd as a package?
- be in an appropriate working directory;
- ensure your /etc/apt/sources.list has deb-src lines,
- get the source to the package;
- get and install the packages required to rebuild the package;
- get and install Debian packaging utilities;
| apt-get install devscripts build-essential fakeroot
|
- change to the directory containing the unpacked source;
- download the patch to this directory;
| wget [...]pptpd-1.2.3-loopback.patch
|
- apply the patch;
| patch < pptpd-1.2.3-loopback.patch
|
- change the package version;
| dch --newversion 1.2.1-4.0 add loopback patch
|
- build the package;
Note: this builds a .deb file and places it in the parent
directory. You can adjust which flags are passed to the configure
script by looking at the file debian/rules.
- install the package;
| dpkg --install ../pptpd_1.2.1-4.0_i386.deb
|
(Derived from a post by
Louis
which was a follow up to a post by
James.)
If you have
comments on this document, please send them to the
author at quozl at laptop dot org. But if you
need help, use
the mailing list
(
subscribe,
archives)
so that we can share the load.
| Date | Change |
| 2005-08-08 |
First draft, from mailing list.
|