]> git.proxmox.com Git - mirror_spl-debian.git/blame - config/tgz.am
Fix HAVE_MUTEX_OWNER_TASK_STRUCT autotools check on PPC64
[mirror_spl-debian.git] / config / tgz.am
CommitLineData
287b2fb1
BB
1###############################################################################
2# Copyright (C) 2010 Lawrence Livermore National Security, LLC.
3# Written by Brian Behlendorf <behlendorf1@llnl.gov>.
4###############################################################################
5# Build targets for TGZ packages.
6#
7# Long term native distro specific Slackware style packaging should be added.
8# In the short term RPM packages are built and converted to TGZ packages
9# using alien. If someone familiar with Slackware style packaging were to
10# update the build system to correctly build Slackware style packages I would
11# happily take it. Until then we will have to make due with alien.
12#
13###############################################################################
14
15tgz-local:
16 @(if test "${HAVE_ALIEN}" = "no"; then \
17 echo -e "\n" \
18 "*** Required util ${ALIEN} missing. Please install the\n" \
19 "*** package for your distribution which provides ${ALIEN},\n" \
20 "*** re-run configure, and try again.\n"; \
21 exit 1; \
22 fi)
23
24tgz-modules: tgz-local rpm-modules
016432fb 25if CONFIG_KERNEL
287b2fb1
BB
26 name=${PACKAGE}-modules; \
27 version=${SPL_META_VERSION}-${SPL_META_RELEASE}; \
28 release=`echo ${LINUX_VERSION} | $(SED) -e "s/-/_/g"`; \
a32661a6 29 arch=`$(RPM) -qp $${name}-$${version}.src.rpm --qf %{arch} | tail -1`; \
287b2fb1
BB
30 pkg1=$${name}-$${version}_$${release}.$${arch}.rpm; \
31 pkg2=$${name}-devel-$${version}_$${release}.$${arch}.rpm; \
32 fakeroot $(ALIEN) --scripts --to-tgz $$pkg1 $$pkg2; \
33 $(RM) $$pkg1 $$pkg2
016432fb 34endif
287b2fb1
BB
35
36tgz-utils: tgz-local rpm-utils
016432fb 37if CONFIG_USER
287b2fb1
BB
38 name=${PACKAGE}; \
39 version=${SPL_META_VERSION}-${SPL_META_RELEASE}; \
a32661a6 40 arch=`$(RPM) -qp $${name}-$${version}.src.rpm --qf %{arch} | tail -1`; \
287b2fb1
BB
41 pkg1=$${name}-$${version}.$${arch}.rpm; \
42 fakeroot $(ALIEN) --scripts --to-tgz $$pkg1; \
43 $(RM) $$pkg1
016432fb 44endif
287b2fb1
BB
45
46tgz: tgz-modules tgz-utils