~ubuntu-branches/ubuntu/oneiric/iptables/oneiric

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Bazaar Package Importer
  • Author(s): Jamie Strandboge, Lorenzo De Liso, Jamie Strandboge
  • Date: 2010-11-12 15:58:40 UTC
  • mfrom: (5.1.8 upstream) (2.1.11 sid)
  • Revision ID: james.westby@ubuntu.com-20101112155840-jm07l9o9722h0bvm
Tags: 1.4.10-1ubuntu1
[ Lorenzo De Liso ]
* Merge from debian unstable (LP: #671652), remaining changes:
  - Don't fail to run iptables-save if iptables module isn't loaded.
  - Revert changes between 1.4.1.1-3 and 1.4.1.1-4, thus bringing back
    the howtos.
  - Added linuxdoc-tools to Build-Depends
  - Modified debian/iptables{,-dev}.install to match DM syntax
    (removed debian/tmp)
  - Added -fno-strict-aliasing -Werror switches to regular_CFLAGS
    for catching errors early
  - Removed unused TC_NUM_RULES() and TC_GET_RULE()
* debian/patches/03-compilation-error.patch: updated
* debian/patches/0600-makefile_jedi_handwaving.patch: updated
* Dropped changes:
  - debian/patches/0902-docs-version-reference.diff: modifies files inside
    the debian/ directory and hence is not needed

[ Jamie Strandboge ]
* debian/patches/9000-howtos.patch:
  - combine 0102-howtos.patch and 0103-sgml_errors.patch into this patch
    and apply after the Debian patches for easier maintenance
  - add DEP-3 comments
* debian/patches/9001-build-libipq_pic.la.patch:
  - Build libipq_pic.la with -fPIC
  - add DEP-3 comments
* debian/iptables-dev.install: install lib/*.la in usr/lib
* merge debian/patches/9002-xt_recent-reap.patch:
  - support for the xt_recent filter --reap switch (refreshed and updated)
  - add DEP-3 comments
* debian/patches/9003-compilation-error.patch:
  - renamed 03-compilation-error.patch as 9003-compilation-error.patch
  - apply after Debian patches for easier maintenance
  - add DEP-3 comments
* debian/iptables.doc-base.{nat|packet-filter}: update for 2.6
* Dropped changes:
  - Replaced ipt_DSCP.h by xpt_DSCP.h in ipt_ECN.h and ipt_echn.h (applied
    upstream)
  - 9001-build-libipq_pic.a.patch (using la instead)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#!/usr/bin/make -f
2
2
 
3
 
configure :=  --with-xtlibdir=/lib/xtables --enable-libipq \
4
 
         --enable-devel --libdir=/lib
5
 
install :=  --exclude=-multi
 
3
_shlibdeps := -a -Xlib/xtables
 
4
_configure := --with-xtlibdir=/lib/xtables \
 
5
        --enable-libipq --enable-devel --libdir=/lib
6
6
 
7
7
%:
8
8
        dh $@
9
9
 
10
 
binary binary-arch binary-indep: install
 
10
binary: binary-arch binary-indep
 
11
binary-arch binary-indep: install
 
12
binary-arch:
 
13
        dh $@ --before dh_shlibdeps
 
14
        dpkg-gensymbols -piptables
 
15
        dh_shlibdeps $(_shlibdeps)
 
16
        dh $@ --remaining
11
17
 
12
18
ifneq ($(USE_BUILD_DIR),TRUE)
13
 
 
14
19
include debian/builddir.mk
15
 
 
16
20
else
17
 
 
18
 
include /usr/share/quilt/quilt.make
19
 
 
20
 
build: patch debian/stamp-build
 
21
build: debian/stamp-build
21
22
debian/stamp-build:
22
23
        dh build --before dh_auto_configure
23
24
        autoreconf -fi
24
 
        dh_auto_configure -- $(configure)
25
 
        dh build --after dh_auto_configure
 
25
        dh_auto_configure -- $(_configure)
 
26
        dh build --remaining
26
27
        touch $@
27
 
 
28
28
install: build debian/stamp-install
29
29
debian/stamp-install:
30
 
        dh install --before dh_install
31
 
        dh_install $(install)
32
 
 
33
 
        #fixme# excluding the *-multi binaries fails on buildds
34
 
        find debian/iptables/sbin -type f -name \*-multi | xargs -r rm -v
35
 
 
36
 
        find
37
 
 
38
 
        # BTS 509386
39
 
        mv debian/iptables/usr/sbin/iptables-xml debian/iptables/usr/bin
40
 
 
41
 
        dh install --after dh_install
 
30
        install -v -D iptables-apply debian/tmp/usr/sbin/iptables-apply
 
31
#       dh_makeshlibs
 
32
        dh install
42
33
        touch $@
43
 
 
44
34
endif