Unofficial Debian packages for Laurent Bercot's skaware software suites.
This repository contains build infrastructure for building Debian packages for skarnet.org software and dependencies (which, at this point in time, includes BearSSL).
Clone this git repository, and initialise submodules:
$ git clone https://github.com/s6-debs/s6-debs
$ cd s6-debs
$ git submodule init
$ git submodule update
The Makefiles in this repository use the sbuild(1)
tool to build packages
within a clean chroot environment, and dpkg-parsechangelog(1)
for extracting
versioning information of packages. This requires the dpkg-dev
, sbuild,
schroot
, debootstrap
and debhelper
packages to be installed on the host
build machine.
Once these packages are installed, a build chroot must be created for sbuild
.
This can be achieved by running a command similar to:
# sbuild-createchroot --include=debhelper,dh-exec,quilt,fakeroot,perl-openssl-defaults,lintian buster /srv/chroots/buster
Substitute buster
for the Debian distribution for which you want to build the
packages.
Note that the --include=...
argument is optional, and is specified here in
order to include a number of common build dependencies in the base chroot so
that they are not redownloaded every time a package is built.
You may also provide the URL of a Debian mirror as a further argument, in which
case, debootstrap
will use that mirror instead of the default of
http://deb.debian.org/debian
, which may be desirable in order to use a
geographically closer Debian mirror than the default.
You should then add your user to the sbuild
group in order to permit them to
run the sbuild
command. More information can be found on the Debian wiki page
for sbuild
.
These packages can also be built by invoking debuild
directly in each
package's directory on the host system, though this does not automatically
install dependencies nor guarantee a clean build environment, and is therefore
not supported by the build Makefiles in this repository.
By default, the Makefiles will attempt to build packages for Debian Bullseye. If
you wish to build for a different Debian release, then set the DIST
variable
on the make
command line.
Invoking make
will by default build the entire suite of packages, however
individual packages may be specified as a make target, e.g. make skalibs
to
build skalibs for Bullseye, or make DIST=buster s6
to build s6 for Buster. The
build artefacts can then be found in the generated build-out
directory under
the repository root.
If you wish to compile in your host environment without the use of sbuild
,
then you should change to the directory of the package you wish to build (e.g.
cd skalibs
), run make origtgz
to generate a source tarball, then change into
the submodule directory and run debuild
.