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.
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.
13 ###############################################################################
16 @(if test "${HAVE_ALIEN}" = "no"; then \
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"; \
24 tgz-modules: tgz-local rpm-modules
25 name=${PACKAGE}-modules; \
26 version=${SPL_META_VERSION}-${SPL_META_RELEASE}; \
27 release=`echo ${LINUX_VERSION} | $(SED) -e "s/-/_/g"`; \
28 arch=`$(RPM) -qp $${name}-$${version}.src.rpm --qf %{arch}`; \
29 pkg1=$${name}-$${version}_$${release}.$${arch}.rpm; \
30 pkg2=$${name}-devel-$${version}_$${release}.$${arch}.rpm; \
31 fakeroot $(ALIEN) --scripts --to-tgz $$pkg1 $$pkg2; \
34 tgz-utils: tgz-local rpm-utils
36 version=${SPL_META_VERSION}-${SPL_META_RELEASE}; \
37 arch=`$(RPM) -qp $${name}-$${version}.src.rpm --qf %{arch}`; \
38 pkg1=$${name}-$${version}.$${arch}.rpm; \
39 fakeroot $(ALIEN) --scripts --to-tgz $$pkg1; \
42 tgz: tgz-modules tgz-utils