]>
Commit | Line | Data |
---|---|---|
c9c0d073 BB |
1 | tgz-local: |
2 | @(if test "${HAVE_ALIEN}" = "no"; then \ | |
3 | echo -e "\n" \ | |
4 | "*** Required util ${ALIEN} missing. Please install the\n" \ | |
5 | "*** package for your distribution which provides ${ALIEN},\n" \ | |
6 | "*** re-run configure, and try again.\n"; \ | |
7 | exit 1; \ | |
8 | fi) | |
9 | ||
10 | tgz-modules: tgz-local rpm-modules | |
b2c5198b | 11 | if CONFIG_KERNEL |
c9c0d073 BB |
12 | name=${PACKAGE}-modules; \ |
13 | version=${ZFS_META_VERSION}-${ZFS_META_RELEASE}; \ | |
14 | release=`echo ${LINUX_VERSION} | $(SED) -e "s/-/_/g"`; \ | |
bd2f5ac9 | 15 | arch=`$(RPM) -qp $${name}-$${version}.src.rpm --qf %{arch} | tail -1`; \ |
c9c0d073 BB |
16 | pkg1=$${name}-$${version}_$${release}.$${arch}.rpm; \ |
17 | pkg2=$${name}-devel-$${version}_$${release}.$${arch}.rpm; \ | |
18 | fakeroot $(ALIEN) --scripts --to-tgz $$pkg1 $$pkg2; \ | |
19 | $(RM) $$pkg1 $$pkg2 | |
b2c5198b | 20 | endif |
c9c0d073 BB |
21 | |
22 | tgz-utils: tgz-local rpm-utils | |
b2c5198b | 23 | if CONFIG_USER |
c9c0d073 BB |
24 | name=${PACKAGE}; \ |
25 | version=${ZFS_META_VERSION}-${ZFS_META_RELEASE}; \ | |
bd2f5ac9 | 26 | arch=`$(RPM) -qp $${name}-$${version}.src.rpm --qf %{arch} | tail -1`; \ |
c9c0d073 BB |
27 | pkg1=$${name}-$${version}.$${arch}.rpm; \ |
28 | pkg2=$${name}-devel-$${version}.$${arch}.rpm; \ | |
29 | pkg3=$${name}-test-$${version}.$${arch}.rpm; \ | |
30 | fakeroot $(ALIEN) --scripts --to-tgz $$pkg1 $$pkg2 $$pkg3; \ | |
31 | $(RM) $$pkg1 $$pkg2 $$pkg3 | |
b2c5198b | 32 | endif |
c9c0d073 BB |
33 | |
34 | tgz: tgz-modules tgz-utils |