~ubuntu-branches/ubuntu/wily/spl-linux/wily

« back to all changes in this revision

Viewing changes to config/deb.am

  • Committer: Package Import Robot
  • Author(s): Aron Xu
  • Date: 2013-04-02 01:03:05 UTC
  • Revision ID: package-import@ubuntu.com-20130402010305-bt9to0tn48joen5q
Tags: upstream-0.6.1
ImportĀ upstreamĀ versionĀ 0.6.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
###############################################################################
 
2
# Copyright (C) 2010 Lawrence Livermore National Security, LLC.
 
3
# Written by Brian Behlendorf <behlendorf1@llnl.gov>.
 
4
###############################################################################
 
5
# Build targets for DEB packages.
 
6
#
 
7
# Long term native distro specific Debian style packaging should be added.
 
8
# In the short term RPM packages are built and converted to DEB packages
 
9
# using alien.  If someone familiar with Debian style packaging were to
 
10
# update the build system to correctly build Debian style packages I would
 
11
# happily take it.  Until then we will have to make due with alien.
 
12
#
 
13
###############################################################################
 
14
 
 
15
deb-local:
 
16
        @(if test "${HAVE_DPKGBUILD}" = "no"; then \
 
17
                echo -e "\n" \
 
18
        "*** Required util ${DPKGBUILD} missing.  Please install the\n" \
 
19
        "*** package for your distribution which provides ${DPKGBUILD},\n" \
 
20
        "*** re-run configure, and try again.\n"; \
 
21
                exit 1; \
 
22
        fi; \
 
23
        if test "${HAVE_ALIEN}" = "no"; then \
 
24
                echo -e "\n" \
 
25
        "*** Required util ${ALIEN} missing.  Please install the\n" \
 
26
        "*** package for your distribution which provides ${ALIEN},\n" \
 
27
        "*** re-run configure, and try again.\n"; \
 
28
                exit 1; \
 
29
        fi)
 
30
 
 
31
deb-kmod: deb-local rpm-kmod
 
32
if CONFIG_KERNEL
 
33
        name=${PACKAGE}; \
 
34
        version=${VERSION}-${RELEASE}; \
 
35
        arch=`$(RPM) -qp $${name}-kmod-$${version}.src.rpm --qf %{arch} | tail -1`; \
 
36
        pkg1=kmod-$${name}*$${version}.$${arch}.rpm; \
 
37
        fakeroot $(ALIEN) --scripts --to-deb $$pkg1; \
 
38
        $(RM) $$pkg1
 
39
endif
 
40
 
 
41
deb-utils: deb-local rpm-utils
 
42
if CONFIG_USER
 
43
        name=${PACKAGE}; \
 
44
        version=${VERSION}-${RELEASE}; \
 
45
        arch=`$(RPM) -qp $${name}-$${version}.src.rpm --qf %{arch} | tail -1`; \
 
46
        pkg1=$${name}-$${version}.$${arch}.rpm; \
 
47
        fakeroot $(ALIEN) --scripts --to-deb $$pkg1; \
 
48
        $(RM) $$pkg1
 
49
endif
 
50
 
 
51
deb: deb-kmod deb-utils