Source: aaru5
Section: utils
Priority: optional
Maintainer: gmipf <gmipf64@gmail.com>
# The manpage is GENERATED at build time by running the shipped binary's --help
# (debian/rules -> debian/aaru5-manpage.sh), so whatever the binary needs in
# order to start must be here, not only in Depends.
#
# The single-file ELF's DT_NEEDED lists nothing exotic (libc, libstdc++, libz),
# but it dlopens libicui18n/libicuuc at run time — measured with `strings`, and
# invisible to every dependency scanner: the same trap as with the GUI packages.
# libicu-dev pulls whichever libicu<N> the series carries, so this stays
# series-agnostic (the runtime package name is soname-versioned and would not).
#
# gawk: the generator's parser uses awk, and Debian/Ubuntu point /usr/bin/awk at
# mawk by default; installing gawk moves the alternative.
Build-Depends: debhelper-compat (= 13),
               gawk,
               libicu-dev
Standards-Version: 4.6.2
Homepage: https://github.com/aaru-dps/Aaru
Rules-Requires-Root: no
Vcs-Git: https://github.com/gmipf/packaging-media-preservation.git
Vcs-Browser: https://github.com/gmipf/packaging-media-preservation

Package: aaru5
# arm64: the orig tarball (Debtransform-Tar) is the linux_amd64 tarball; the
# linux_arm64 tarball travels as a Debtransform-Files extra and debian/rules
# extracts it over the tree (binary + libe_sqlite3.so sidecar) on an arm64 build.
# arm64 ships UNTESTED (no hardware drive-access proof).
Architecture: amd64 arm64
# ${shlibs:Depends}: the Aaru 5.4.x binary (self-contained single-file .NET 8,
# the runtime linked in) is dynamically linked against the standard C/C++
# runtime, which dh_shlibdeps resolves straight from the ELF. What the runtime
# dlopens it cannot see, so that is declared by hand (parity with the RPM's
# Requires): without ICU the binary does not start, without libssl it aborts at
# the first checksum (measured 2026-11-19). ${dep:icu} is filled in per series
# at build (debian/rules), because the ICU runtime package carries its soname
# in its name.
Depends: ${shlibs:Depends}, ${misc:Depends}, ${dep:icu}, libssl3, libcap2-bin
Description: Aaru 5.x stable data-preservation CLI (MPF-compatible)
 Aaru is a cross-platform data-preservation suite: it dumps optical and
 removable media (CD, DVD, HD-DVD, Blu-ray, UMD, floppy, magneto-optical) to
 byte-perfect images, decodes filesystems, validates checksums and writes
 CICM metadata.
 .
 This package ships the stable 5.4.x command-line release as aaru5 (binary
 /usr/bin/aaru5), the Aaru series the Media Preservation Frontend (MPF)
 drives for floppy and optical dumping. It installs alongside a rolling
 aaru (v6 alpha) package without conflict: separate binary name, library
 directory and manpage. Point MPF's Aaru path at /usr/bin/aaru5.
 .
 The upstream self-contained .NET binary is repackaged unchanged. On install
 it is given the cap_sys_rawio file capability so vendor SCSI passthrough
 commands work without sudo; a shipped udev rule tags floppy drives with
 uaccess, so the user logged in at the local desktop seat can dump them
 without root and without joining any group. Headless, SSH and cron sessions
 have no seat and therefore no ACL; dump as root there.
