sudo apt-get build-dep openvpn
dpkg-buildpackage -uc -b
dpkg-source -x openvpn-XXX.dsc
cd openvpn-XXX
dpkg-buildpackage -uc -b
./debian/rules clean
# init patch file
quilt new <patch name>.patch
# edit per file
quilt add /path/to/file
emacs /path/to/file # edit
quilt refresh
# write header to identify what is done in patch file
quilt -e header
quilt refresh
# finalize
quilt pop
To test patch
# apply patch in order written in debian/patches/series
quilt push
# revert patch in reverse order written in debian/patches/series
quilt pop