]> git.proxmox.com Git - mirror_zfs-debian.git/blob - config/tgz.am
Merge branch 'upstream'
[mirror_zfs-debian.git] / config / tgz.am
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
11 if CONFIG_KERNEL
12 name=${PACKAGE}-modules; \
13 version=${ZFS_META_VERSION}-${ZFS_META_RELEASE}; \
14 release=`echo ${LINUX_VERSION} | $(SED) -e "s/-/_/g"`; \
15 arch=`$(RPM) -qp $${name}-$${version}.src.rpm --qf %{arch} | tail -1`; \
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
20 endif
21
22 tgz-utils: tgz-local rpm-utils
23 if CONFIG_USER
24 name=${PACKAGE}; \
25 version=${ZFS_META_VERSION}-${ZFS_META_RELEASE}; \
26 arch=`$(RPM) -qp $${name}-$${version}.src.rpm --qf %{arch} | tail -1`; \
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
32 endif
33
34 tgz: tgz-modules tgz-utils