]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blame - spl/config/deb.am
x86/msr-index: Cleanup bit defines
[mirror_ubuntu-bionic-kernel.git] / spl / config / deb.am
CommitLineData
70e083d2
TG
1###############################################################################
2# Copyright (C) 2010 Lawrence Livermore National Security, LLC.
3# Written by Brian Behlendorf <behlendorf1@llnl.gov>.
4###############################################################################
5# Build targets for DEB packages.
6#
7# Long term native distro specific Debian style packaging should be added.
8# In the short term RPM packages are built and converted to DEB packages
9# using alien. If someone familiar with Debian style packaging were to
10# update the build system to correctly build Debian style packages I would
11# happily take it. Until then we will have to make due with alien.
12#
13###############################################################################
14
15deb-local:
16 @(if test "${HAVE_DPKGBUILD}" = "no"; then \
17 echo -e "\n" \
18 "*** Required util ${DPKGBUILD} missing. Please install the\n" \
19 "*** package for your distribution which provides ${DPKGBUILD},\n" \
20 "*** re-run configure, and try again.\n"; \
21 exit 1; \
22 fi; \
23 if test "${HAVE_ALIEN}" = "no"; then \
24 echo -e "\n" \
25 "*** Required util ${ALIEN} missing. Please install the\n" \
26 "*** package for your distribution which provides ${ALIEN},\n" \
27 "*** re-run configure, and try again.\n"; \
28 exit 1; \
29 fi)
30
31deb-kmod: deb-local rpm-kmod
70e083d2
TG
32 name=${PACKAGE}; \
33 version=${VERSION}-${RELEASE}; \
34 arch=`$(RPM) -qp $${name}-kmod-$${version}.src.rpm --qf %{arch} | tail -1`; \
35 pkg1=kmod-$${name}*$${version}.$${arch}.rpm; \
36 fakeroot $(ALIEN) --bump=0 --scripts --to-deb $$pkg1; \
37 $(RM) $$pkg1
86e3c28a
CIK
38
39deb-dkms: deb-local rpm-dkms
40 name=${PACKAGE}; \
41 version=${VERSION}-${RELEASE}; \
42 arch=`$(RPM) -qp $${name}-dkms-$${version}.src.rpm --qf %{arch} | tail -1`; \
43 pkg1=$${name}-dkms-$${version}.$${arch}.rpm; \
44 fakeroot $(ALIEN) --bump=0 --scripts --to-deb $$pkg1; \
45 $(RM) $$pkg1
70e083d2
TG
46
47deb-utils: deb-local rpm-utils
70e083d2
TG
48 name=${PACKAGE}; \
49 version=${VERSION}-${RELEASE}; \
50 arch=`$(RPM) -qp $${name}-$${version}.src.rpm --qf %{arch} | tail -1`; \
51 pkg1=$${name}-$${version}.$${arch}.rpm; \
52 fakeroot $(ALIEN) --bump=0 --scripts --to-deb $$pkg1; \
53 $(RM) $$pkg1
70e083d2 54
86e3c28a 55deb: deb-kmod deb-dkms deb-utils