# Note: the same file as control.no_dkms. The irrelevant
# package will be empty and should be ignored
Source: xpmem
Priority: optional
Maintainer: Tzafrir Cohen <nvidia@cohens.org.il>
Build-Depends: debhelper (>= 10),
 dh-dkms <!modules> | dkms (<< 3.0) <!modules>,
Standards-Version: 4.4.1
Section: kernel
Homepage: https://github.com/openucx/xpmem/
#Vcs-Browser: https://salsa.debian.org/debian/xpmem-lib
#Vcs-Git: https://salsa.debian.org/debian/xpmem-lib.git

Package: xpmem
Section: kernel
Architecture: all
Depends: ${misc:Depends}
Breaks: knem
Replaces: knem
Description: kernel module for user-space process remapping - scripts
 XPMEM is a Linux kernel module that enables a process to map the
 memory of another process into its virtual address space.
 .
 This package includes required user-space files for using the module.

Package: libxpmem-dev
Build-Profiles: <!modules>
Section: libdevel
Architecture: any
Multi-Arch: same
Depends: libxpmem0 (= ${binary:Version}), ${misc:Depends}
Description: libxpmem - development headers
 XPMEM is a Linux kernel module that enables a process to map the
 memory of another process into its virtual address space.
 .
 This package includes development headers for the userspace library.

Package: libxpmem0
Build-Profiles: <!modules>
Section: libs
Architecture: any
Multi-Arch: same
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: libxpmem - userspace library of XPMEM
 XPMEM is a Linux kernel module that enables a process to map the
 memory of another process into its virtual address space.
 .
 This package includes the userspace library.

Package: xpmem-dkms
Architecture: all
Build-Profiles: <!modules>
Depends: ${misc:Depends}
Breaks: knem-dkms
Replaces: knem-dkms
Description: kernel module for user-space process remapping - DKMS
 XPMEM is a Linux kernel module that enables a process to map the
 memory of another process into its virtual address space.
 .
 This package includes a DKMS package for installing the module.

Package: xpmem-modules
Architecture: any
Build-Profiles: <modules>
Depends: ${misc:Depends}, ${shlib:Depends}
Breaks: knem-modules
Replaces: knem-modules
Multi-Arch:same
Description: kernel module for user-space process remapping
 XPMEM is a Linux kernel module that enables a process to map the
 memory of another process into its virtual address space.
 .
 This package includes the pre-built kernel modules:
 @KERNEL_DIR@ .
