Skip to the text
KDOS
Menu
kdos.dev KDOS from Scratch KDOS 0.2 · 4dd4a10 · 2026-11-30 Contents Index

102.6. afflib-3.7.22

Advanced Forensic Format (AFF) image library, the aff tools and affuse

3.7.22-1 · BSD-4-Clause AND LicenseRef-Public-Domain · 2.5 SBU · 1.1 MiB, 39 files · 41_system, 930 of 1047 · ports/core/security/afflib

Homepage: https://github.com/sshock/AFFLIBv3

Depends on: autoconf, automake, libtool, pkgconf, zlib, openssl, libmd, expat, readline, fuse.

Required by (1): sleuthkit.

Sources: afflib-3.7.22.tar.gz (574.5 KiB). Every step kpkg takes applies to this port.

Optional, off in KDOS. These switches in build.sh turn off a feature whose library is a port here. The recipe may turn each off on purpose, or because the library was not yet a port when the recipe was written; this list cannot tell which.

Install: script/chroot/exec.sh bash -c 'source script/phases/41_system/phase.env && kpkg install afflib'

build.sh:

autoreconf -f -i

export CXXFLAGS="$CXXFLAGS -fno-devirtualize-speculatively"

./configure \
	--prefix=/usr \
	--libdir=/usr/lib \
	--disable-static \
	--disable-python \
	--disable-s3 \
	--without-curl \
	--with-expat \
	--enable-fuse

for have in HAVE_LIBZ HAVE_LIBCRYPTO HAVE_LIBEXPAT HAVE_LIBREADLINE USE_FUSE; do
	if ! grep -q "^#define $have 1" affconfig.h; then
		echo "afflib: configure did not find $have" >&2
		exit 1
	fi
done

make CFLAGS="$CFLAGS" CXXFLAGS="$CXXFLAGS"
make DESTDIR=$PKG install

Programs: affcat, affcompare, affconvert, affcopy, affcrypto, affdiskprint, affinfo, affix, affrecover, affsegment, affsign, affstats, affuse, affverify, affxml.

Libraries: libafflib.so.

Directories: /usr/include/afflib, /usr/share/licenses/afflib.