CPack/DEB: Setting custom fields in debian control files
I have a use-case where I need to set custom fields in the control files generated by CPackDeb.
I'm trying to replicate a similar control file to the one in this IPK, which includes some of these additional fields. The graphical package manager provided by NI uses some of these fields (e.g. UserVisible
, DisplayName
, DisplayVersion
) to determine how to present the packages to the user during installation, and it is preferable for us to set them as well.
Package: ni-serial
Version: 23.8.0.49246-0+f94
Architecture: x64-PXI
Maintainer: National Instruments <LinuxMaintainers@ni.com>
Source: ni-serial
Section: Drivers
Priority: extra
Depends: ni-843x-dkms (>= 23.8.0), ni-843x-libs (>= 23.8.0)
Recommends: ni-visa (>= 23.8.0), lvrt
Homepage: https://www.ni.com/linux/
DisplayVersion: 2023 Q4
DisplayName: NI-Serial
UserVisible: yes
Description: Provides Driver Support for NI's Serial hardware (metapackage)
Provides driver support for NI-Serial PCI, PCIe, PXI and PXIe devices.
Is there an existing mechanism to accomplish this which I am missing? CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA
had my hopes up but appears to be structured towards adding additional files, not fields/key-value pairs.