explicitly called, they are probably a side effect of another explicit command, in which case, please
refer to their documentation to learn more about how to change the default behavior. With pack-
ages using
dh
, you might need to add an override for the
dh_auto_configure
or
dh_auto_build
commands (see their respective manual pages for explanations on how to achieve this).
To make those explanations more concrete, let’s apply them to our sample use case. You decided
to modify libfreefare to pass the --enable-debug option to the
./configure
script so that you
could get a more verbose output from your near field communication (NFC) tools and file a better
bug report about your non-recognized Mifare NFC card. Since the package uses
dh
to drive the
build process, you add (or in this case modify) the override_dh_auto_configure target. Here is the
corresponding extract of libfreefare’s
debian/rules
file:
override_dh_auto_configure:
dh_auto_configure -- --without-cutter --disable-silent-rules --enable-debug
Packaging a New Upstream Version
Let’s take a look at an example at this point, as we discuss packaging upstream versions. Let’s say
you are a SET power-user and you noticed a new upstream release (7.4.5) that is not yet available
in Kali (which only has version 7.4.4). You want to build an updated package and try it out. This is a
minor version bump and you thus don’t expect the update to require any change at the packaging
level.
To update the source package, you extract the new source tarball next to the current source pack-
age and you copy the
debian
directory from the current source package to the new one. Then
you bump the version in
debian/changelog
.
$
apt source set
Reading package lists... Done
NOTICE: ’set’ packaging is maintained in the ’Git’ version control system at:
https://gitlab.com/kalilinux/packages/set.git
Please use:
git clone https://gitlab.com/kalilinux/packages/set.git
to retrieve the latest (possibly unreleased) updates to the package.
Need to get 42.3 MB of source archives.
[...]
dpkg-source: warning: failed to verify signature on ./set_7.4.4-0kali1.dsc
dpkg-source: info: extracting set in set-7.4.4
dpkg-source: info: unpacking set_7.4.4.orig.tar.gz
dpkg-source: info: unpacking set_7.4.4-0kali1.debian.tar.xz
dpkg-source: info: applying edit-config-file
dpkg-source: info: applying fix-path-interpreter.patch
$
wget https://github.com/trustedsec/social-engineer-toolkit/archive/7.4.5.tar.gz -O
å