Building a Debian package

NoteNOTE
 

For reasons explained in the Section called Integrity of the executable in the chapter called Security Design>, we do not recommend to distribute binary packages to third parties. On the other hand, it is perfectly ok to use a self-built binary package install/distribute samhain on your machine/within your own network.

First run ./configure in the source directory (reminder: use ./configure --prefix=USR, NOT ./configure --prefix=/usr for standard paths), then do a make deb. The .deb package and the corresponding .dsc file will be in the directory above the source directory (this is just how Debian package building works).

You will need the following additional Debian packages in order to build a Debian package: file, fakeroot, cpio, debmake, dpkg-dev, devscripts, and patch.

You will also need gnupg and have a keypair created for the user as that you are building, because Debian will insist on signing the package.

The Debian package thus created will not initialize the database automatically upon installation. It will be located in the parent directory of the source directory (that's just the way the Debian build system works).