Source: mhvtl
Section: admin
Priority: optional
Maintainer: Matej Kenda <matejken@gmail.com>
Build-Depends:
 debhelper-compat (= 13),
 dh-dkms,
 zlib1g-dev,
 liblz4-dev,
 libzstd-dev,
 libssl-dev,
 pkg-config,
 systemd-dev | systemd (<< 253-2~),
 libudev-dev,
 libtcmu2
Standards-Version: 4.7.2
Homepage: https://github.com/markh794/mhvtl
Vcs-Git: https://github.com/matejk/mhvtl.git
Vcs-Browser: https://github.com/matejk/mhvtl
Rules-Requires-Root: no

Package: mhvtl
Architecture: any
Pre-Depends: ${misc:Pre-Depends}
Depends:
 mhvtl-dkms (= ${binary:Version}) | mhvtl-tcmu (= ${binary:Version}),
 sg3-utils,
 ${misc:Depends},
 ${shlibs:Depends}
Recommends: lsscsi, mt-st, mtx
Description: virtual tape library for Linux
 mhvtl emulates a SCSI medium changer and SCSI tape drives entirely in
 software. It consists of a pseudo HBA kernel module and a pair of
 user-space daemons, vtllibrary and vtltape, which act as the SCSI
 targets. Tape media is stored as regular files on disk.
 .
 It is used to test and develop backup and archival software without
 physical tape hardware. It emulates LTO, DLT and AIT tape drives, and
 tape libraries from vendors such as IBM, HP, Quantum and Spectra Logic.
 .
 This package provides the user-space daemons, command line tools and
 systemd units. The kernel module is supplied by mhvtl-dkms; with
 mhvtl-tcmu the devices are presented through the kernel's LIO target
 instead, and no mhvtl kernel module is needed.

Package: mhvtl-tcmu
Architecture: any
Depends:
 mhvtl (= ${binary:Version}),
 ${misc:Depends},
 ${shlibs:Depends}
Suggests: targetcli-fb
Description: virtual tape library for Linux - TCMU backend and iSCSI export
 mhvtl emulates a SCSI medium changer and SCSI tape drives entirely in
 software, for testing backup and archival applications without physical
 tape hardware.
 .
 This package presents the libraries and drives through the kernel's LIO
 target (target_core_user) instead of the mhvtl kernel module, and exports
 them to remote initiators over iSCSI. It contains mhvtl_tcmu_handler,
 which creates a LIO user backstore per device, and mhvtl-fabrics, which
 builds iSCSI targets from /etc/mhvtl/fabrics.conf. Set MHVTL_BACKEND=tcmu
 in /etc/mhvtl/mhvtl.conf to use it.

Package: mhvtl-dkms
Section: kernel
Architecture: all
Depends:
 dkms,
 ${misc:Depends}
Recommends: linux-headers-generic | linux-headers-amd64 | linux-headers
Description: virtual tape library for Linux - kernel module source
 mhvtl emulates a SCSI medium changer and SCSI tape drives entirely in
 software, for testing backup and archival applications without physical
 tape hardware.
 .
 This package provides the source of the mhvtl pseudo HBA kernel module.
 DKMS builds it for the running kernel on installation and rebuilds it
 whenever a new kernel is installed. Kernel headers matching the running
 kernel must be present for the build to succeed.
