]>
Commit | Line | Data |
---|---|---|
c9c0d073 BB |
1 | deb-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 | ||
17 | deb-modules: deb-local rpm-modules | |
b2c5198b | 18 | if CONFIG_KERNEL |
c9c0d073 BB |
19 | name=${PACKAGE}-modules; \ |
20 | version=${ZFS_META_VERSION}-${ZFS_META_RELEASE}; \ | |
21 | release=`echo ${LINUX_VERSION} | $(SED) -e "s/-/_/g"`; \ | |
bd2f5ac9 | 22 | arch=`$(RPM) -qp $${name}-$${version}.src.rpm --qf %{arch} | tail -1`; \ |
c9c0d073 BB |
23 | pkg1=$${name}-$${version}_$${release}.$${arch}.rpm; \ |
24 | pkg2=$${name}-devel-$${version}_$${release}.$${arch}.rpm; \ | |
25 | fakeroot $(ALIEN) --scripts --to-deb $$pkg1 $$pkg2; \ | |
26 | $(RM) $$pkg1 $$pkg2 | |
b2c5198b | 27 | endif |
c9c0d073 BB |
28 | |
29 | deb-utils: deb-local rpm-utils | |
b2c5198b | 30 | if CONFIG_USER |
c9c0d073 BB |
31 | name=${PACKAGE}; \ |
32 | version=${ZFS_META_VERSION}-${ZFS_META_RELEASE}; \ | |
bd2f5ac9 | 33 | arch=`$(RPM) -qp $${name}-$${version}.src.rpm --qf %{arch} | tail -1`; \ |
c9c0d073 BB |
34 | pkg1=$${name}-$${version}.$${arch}.rpm; \ |
35 | pkg2=$${name}-devel-$${version}.$${arch}.rpm; \ | |
36 | pkg3=$${name}-test-$${version}.$${arch}.rpm; \ | |
ae26d046 MAR |
37 | pkg4=$${name}-dracut-$${version}.$${arch}.rpm; \ |
38 | fakeroot $(ALIEN) --scripts --to-deb $$pkg1 $$pkg2 $$pkg3 $$pkg4; \ | |
39 | $(RM) $$pkg1 $$pkg2 $$pkg3 $$pkg4 | |
b2c5198b | 40 | endif |
c9c0d073 BB |
41 | |
42 | deb: deb-modules deb-utils |