OnWorks Linux and Windows Online WorkStations

Logo

Free Hosting Online for WorkStations

< Previous | Contents | Next >

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.


image

$ 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

set_7.4.5.orig.tar.gz

[...]

$ tar xvf set_7.4.5.orig.tar.gz

[...]

social-engineer-toolkit-7.4.5/src/wireless/wifiattack.py

$ cp -a set-7.4.4/debian social-engineer-toolkit-7.4.5/debian

$ cd social-engineer-toolkit-7.4.5

$ dch -v 7.4.5-0buxy1 ”New upstream release”


That’s it. You can now build the updated package.

Depending on the kind of changes that the new upstream version introduces, you may also need to change build dependencies and run-time dependencies, and install new files. Those are much more involved operations that are not covered by this book.


Top OS Cloud Computing at OnWorks: