TL;DR This post will walk you through creating a debian package from a simple hello world C program using debuild. Setup On a debian-based system, install the following programs: $ sudo apt-get install devscripts build-essential lintian Create an APT repository in less than 10 seconds, free. The debuild tool debuild is a convenient wrapper around dpkg-buildpackage, fakeroot, lintian.
This guide describes the steps required to build Openswan debs on a Ubuntu Lucid system.
Prerequisites
Install the build dependencies (for Ubuntu Openswan package)
Get the Openswan sourcesSet custom build variables (optional)
Example :
For OCF support for IKE (optional) :
Apply a patch to enable OCF in the ipsec module :
Edit the changelog
Automatically :
or for OCF builds :
or manually :
If building with OCF support enabled edit debian/changelog to look like this :
Update the changelog and NEWS timestamp :
Build the binary debsBuild the source debs (optional: to upload to a PPA)Install the debsClone this wiki locallyComments are closed.
|
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
December 2022
Categories |