]> git.proxmox.com Git - mirror_zfs.git/blame - config/deb.am
Fix 'zpool clear' on readonly pools
[mirror_zfs.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
b2c5198b 18if CONFIG_KERNEL
f3757573
BB
19 name=${PACKAGE}; \
20 version=${VERSION}-${RELEASE}; \
21 arch=`$(RPM) -qp $${name}-kmod-$${version}.src.rpm --qf %{arch} | tail -1`; \
22 pkg1=kmod-$${name}*$${version}.$${arch}.rpm; \
1a33036d 23 fakeroot $(ALIEN) --bump=0 --scripts --to-deb $$pkg1; \
f3757573 24 $(RM) $$pkg1
b2c5198b 25endif
c9c0d073
BB
26
27deb-utils: deb-local rpm-utils
b2c5198b 28if CONFIG_USER
c9c0d073 29 name=${PACKAGE}; \
f3757573 30 version=${VERSION}-${RELEASE}; \
bd2f5ac9 31 arch=`$(RPM) -qp $${name}-$${version}.src.rpm --qf %{arch} | tail -1`; \
c9c0d073 32 pkg1=$${name}-$${version}.$${arch}.rpm; \
c9b5cc8c
TF
33 pkg2=libnvpair1-$${version}.$${arch}.rpm; \
34 pkg3=libuutil1-$${version}.$${arch}.rpm; \
35 pkg4=libzfs2-$${version}.$${arch}.rpm; \
36 pkg5=libzpool2-$${version}.$${arch}.rpm; \
37 pkg6=libzfs2-devel-$${version}.$${arch}.rpm; \
38 pkg7=$${name}-test-$${version}.$${arch}.rpm; \
39 pkg8=$${name}-dracut-$${version}.$${arch}.rpm; \
48511ea6 40 pkg9=$${name}-initramfs-$${version}.$${arch}.rpm; \
c9b5cc8c 41 fakeroot $(ALIEN) --bump=0 --scripts --to-deb \
48511ea6
TF
42 $$pkg1 $$pkg2 $$pkg3 $$pkg4 $$pkg5 $$pkg6 $$pkg7 \
43 $$pkg8 $$pkg9;
44 $(RM) $$pkg1 $$pkg2 $$pkg3 $$pkg4 $$pkg5 $$pkg6 $$pkg7 \
45 $$pkg8 $$pkg9;
b2c5198b 46endif
c9c0d073 47
f3757573 48deb: deb-kmod deb-utils