]> git.proxmox.com Git - mirror_zfs-debian.git/blame - config/deb.am
New upstream version 0.7.5
[mirror_zfs-debian.git] / config / deb.am
CommitLineData
c9c0d073
BB
1deb-local:
2 @(if test "${HAVE_DPKGBUILD}" = "no"; then \
3 echo -e "\n" \
4 "*** Required util ${DPKGBUILD} missing. Please install the\n" \
5 "*** package for your distribution which provides ${DPKGBUILD},\n" \
6 "*** re-run configure, and try again.\n"; \
7 exit 1; \
8 fi; \
9 if test "${HAVE_ALIEN}" = "no"; then \
10 echo -e "\n" \
11 "*** Required util ${ALIEN} missing. Please install the\n" \
12 "*** package for your distribution which provides ${ALIEN},\n" \
13 "*** re-run configure, and try again.\n"; \
14 exit 1; \
15 fi)
16
f3757573 17deb-kmod: deb-local rpm-kmod
f3757573
BB
18 name=${PACKAGE}; \
19 version=${VERSION}-${RELEASE}; \
20 arch=`$(RPM) -qp $${name}-kmod-$${version}.src.rpm --qf %{arch} | tail -1`; \
21 pkg1=kmod-$${name}*$${version}.$${arch}.rpm; \
c06d4368 22 fakeroot $(ALIEN) --bump=0 --scripts --to-deb $$pkg1; \
f3757573 23 $(RM) $$pkg1
8ec27e97
AX
24
25
26deb-dkms: deb-local rpm-dkms
27 name=${PACKAGE}; \
28 version=${VERSION}-${RELEASE}; \
29 arch=`$(RPM) -qp $${name}-dkms-$${version}.src.rpm --qf %{arch} | tail -1`; \
30 pkg1=$${name}-dkms-$${version}.$${arch}.rpm; \
31 fakeroot $(ALIEN) --bump=0 --scripts --to-deb $$pkg1; \
32 $(RM) $$pkg1
c9c0d073
BB
33
34deb-utils: deb-local rpm-utils
35 name=${PACKAGE}; \
f3757573 36 version=${VERSION}-${RELEASE}; \
bd2f5ac9 37 arch=`$(RPM) -qp $${name}-$${version}.src.rpm --qf %{arch} | tail -1`; \
c9c0d073 38 pkg1=$${name}-$${version}.$${arch}.rpm; \
ea04106b
AX
39 pkg2=libnvpair1-$${version}.$${arch}.rpm; \
40 pkg3=libuutil1-$${version}.$${arch}.rpm; \
41 pkg4=libzfs2-$${version}.$${arch}.rpm; \
42 pkg5=libzpool2-$${version}.$${arch}.rpm; \
43 pkg6=libzfs2-devel-$${version}.$${arch}.rpm; \
44 pkg7=$${name}-test-$${version}.$${arch}.rpm; \
45 pkg8=$${name}-dracut-$${version}.$${arch}.rpm; \
e10b0808 46 pkg9=$${name}-initramfs-$${version}.$${arch}.rpm; \
cae5b340
AX
47## Arguments need to be passed to dh_shlibdeps. Alien provides no mechanism
48## to do this, so we install a shim onto the path which calls the real
49## dh_shlibdeps with the required arguments.
50 path_prepend=`mktemp -d /tmp/intercept.XXX`; \
51 echo "#$(SHELL)" > $${path_prepend}/dh_shlibdeps; \
52 echo "`which dh_shlibdeps` -- \
53 -xlibuutil1linux -xlibnvpair1linux -xlibzfs2linux -xlibzpool2linux" \
54 >> $${path_prepend}/dh_shlibdeps; \
55## These -x arguments are passed to dpkg-shlibdeps, which exclude the
56## Debianized packages from the auto-generated dependencies of the new debs,
57## which should NOT be mixed with the alien-generated debs created here
58 chmod +x $${path_prepend}/dh_shlibdeps; \
59 env PATH=$${path_prepend}:$${PATH} \
ea04106b 60 fakeroot $(ALIEN) --bump=0 --scripts --to-deb \
e10b0808 61 $$pkg1 $$pkg2 $$pkg3 $$pkg4 $$pkg5 $$pkg6 $$pkg7 \
cae5b340
AX
62 $$pkg8 $$pkg9; \
63 $(RM) $${path_prepend}/dh_shlibdeps; \
64 rmdir $${path_prepend}; \
e10b0808
AX
65 $(RM) $$pkg1 $$pkg2 $$pkg3 $$pkg4 $$pkg5 $$pkg6 $$pkg7 \
66 $$pkg8 $$pkg9;
c9c0d073 67
8ec27e97 68deb: deb-kmod deb-dkms deb-utils