freebsd-dev/contrib/debian/openzfs-zfs-dkms.config
Umer Saleem 4d631a509d
Add native Debian Packaging for Linux
Currently, the Debian packages are generated from ALIEN that converts
RPMs to Debian packages. This commit adds native Debian packaging for
Debian based systems.

This packaging is a fork of Debian zfs-linux 2.1.6-2 release.
(source: https://salsa.debian.org/zfsonlinux-team/zfs)

Some updates have been made to keep the footprint minimal that
include removing the tests, translation files, patches directory etc.
All credits go to Debian ZFS on Linux Packaging Team.

For copyright information, please refer to contrib/debian/copyright.

scripts/debian-packaging.sh can be used to invoke the build.

Reviewed-by: Mo Zhou <cdluminate@gmail.com>
Reviewed-by: Ryan Moeller <ryan@iXsystems.com>
Signed-off-by: Umer Saleem <usaleem@ixsystems.com>
Closes #13451
2022-10-27 15:38:45 -07:00

32 lines
603 B
Bash

#!/bin/sh
set -e
# Source debconf library
. /usr/share/debconf/confmodule
db_input critical zfs-dkms/note-incompatible-licenses || true
db_go
kernelbits=unknown
if [ -r /proc/kallsyms ]; then
addrlen=$(head -1 /proc/kallsyms|awk '{print $1}'|wc -c)
if [ $addrlen = 17 ]; then
kernelbits=64
elif [ $addrlen = 9 ]; then
kernelbits=32
fi
fi
if [ $kernelbits != 64 ]; then
if [ $kernelbits = 32 ]; then
db_input critical zfs-dkms/stop-build-for-32bit-kernel || true
db_go || true
else
db_input critical zfs-dkms/stop-build-for-unknown-kernel || true
db_go || true
fi
fi
#DEBHELPER#