]> git.proxmox.com Git - mirror_spl-debian.git/blame - config/tgz.am
dch: close a bug and refresh timestamp.
[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
493972c8 24tgz-kmod: tgz-local rpm-kmod
016432fb 25if CONFIG_KERNEL
493972c8
BB
26 name=${PACKAGE}; \
27 version=${VERSION}-${RELEASE}; \
28 arch=`$(RPM) -qp $${name}-kmod-$${version}.src.rpm --qf %{arch} | tail -1`; \
29 pkg1=kmod-$${name}*$${version}.$${arch}.rpm; \
30 fakeroot $(ALIEN) --scripts --to-tgz $$pkg1; \
31 $(RM) $$pkg1
016432fb 32endif
287b2fb1
BB
33
34tgz-utils: tgz-local rpm-utils
016432fb 35if CONFIG_USER
287b2fb1 36 name=${PACKAGE}; \
493972c8 37 version=${VERSION}-${RELEASE}; \
a32661a6 38 arch=`$(RPM) -qp $${name}-$${version}.src.rpm --qf %{arch} | tail -1`; \
287b2fb1
BB
39 pkg1=$${name}-$${version}.$${arch}.rpm; \
40 fakeroot $(ALIEN) --scripts --to-tgz $$pkg1; \
41 $(RM) $$pkg1
016432fb 42endif
287b2fb1 43
493972c8 44tgz: tgz-kmod tgz-utils