~ubuntu-branches/ubuntu/trusty/xtables-addons/trusty

« back to all changes in this revision

Viewing changes to debian/xtables-addons-dkms.postinst

  • Committer: Package Import Robot
  • Author(s): Pierre Chifflier, Pierre Chifflier, Dmitry Smirnov
  • Date: 2011-12-05 22:10:25 UTC
  • mfrom: (1.3.6)
  • Revision ID: package-import@ubuntu.com-20111205221025-ogq3g7zsm912lmsh
Tags: 1.40-1
[ Pierre Chifflier ]
* Add patch to avoid calling depmod during build
* Add VCS links
* Change license for packaging files to GPL-2+ (with agreement of all
  authors).
* Add Dmitry Smirnov as co-maintainer
  - Merge all changes
* Imported Upstream version 1.40 (2011-11-30)
  Fixes:
  - build: the code actually requires at least iptables 1.4.5
    (would yield a compile error otherwise), make sure configure
    checks for it; update INSTALL
  - xt_ECHO: fix kernel warning about RTAX_HOPLIMIT being used
  - xt_ipv4options: fix an infinite loop
  Changes:
  - xt_ECHO: now calculates UDP checksum
  - Linux kernel versions below 2.6.32 are no longer officially
    supported, and will not be part of compilation testing.
  - update to ipset 6.10
  Enhancements:
  - xt_ECHO: IPv6 support

[Dmitry Smirnov] <onlyjob@member.fsf.org>
* Major repackaging (Closes: #638061)
  * Obsolete ipset_v4 replaced with new ipset_v6 (Closes: #648083)
  * debian/copyright updated for DEP5 compatibility
  * debian/control updated
    - Standards version update
    - Depends update
    - Build-depends tightening
  * debian/watch fixed
  * debian/rules rewrite
    - get-orig-source target added
    - build-time cleanup (make clean) is fixed
    - second build do not fail
    - offload most tasks to debhelper (with minimum overrides)
    - standalone debian/rules for xtables-addons-source
    - using CFLAGS/Hardening if provided by DPKG
    - dynamically prepare DKMS config during build
    - configure for Kbuild only if headers available
  * lintianization
    - override for package-name-doesnt-match-sonames
  * DKMS package cleanup
    - broken post-init script removed
    - only clean source is packaged
    - improved configuration
  * source package cleanup
    - module-assistant rules use debhelper more
    - using CFLAGS if provided by DPKG
  * lintian override
  * DKMS config sanitation (all argument in double quotes)
  * patch to avoid build-time depmod invocation
* Imported Upstream version 1.39 (2011-09-21)
  - libxt_ACCOUNT: fix compilation after missing libxtables_CFLAGS
  - build: fix compilation after missing libxtables_CFLAGS in submodules
  - build: add missing linux/version.h includes where needed
  - Remove unsupported ipset 4.x from the Xtables-addons distribution
  - ipset: move ipset_errcode from src to library to avoid undefined reference
  - update to ipset 6.9.1
  - xt_CHECKSUM: abort build when the feature is already provided by mainline
  - xt_SYSRQ: fix UDPLITE header lookup in IPv6
  - xt_TARPIT: fix kernel warning about RTAX_HOPLIMIT being used
  - xt_TEE: abort build when the feature is already provided by mainline
  - xt_ipp2p: support UDPLITE
  - xt_pknock: support UDPLITE
  - xt_psd: restore functionality with UDP
  - xt_psd: support UDPLITE
  - support for Linux 3.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
# Copyright (C) 2002-2005 Flavio Stanchina
3
 
# Copyright (C) 2005-2006 Aric Cyr
4
 
# Copyright (C) 2007 Mario Limonciello
5
 
# Copyright (C) 2009 Alberto Milone
6
 
 
7
 
set -e
8
 
 
9
 
NAME=xtables-addons
10
 
PACKAGE_NAME=$NAME-dkms
11
 
CVERSION=`dpkg-query -W -f='${Version}' $PACKAGE_NAME | awk -F "-" '{print $1}' | cut -d\: -f2`
12
 
ARCH=`dpkg --print-architecture`
13
 
 
14
 
dkms_configure () {
15
 
        for POSTINST in /usr/lib/dkms/common.postinst "/usr/share/$PACKAGE_NAME/postinst"; do
16
 
                if [ -f "$POSTINST" ]; then
17
 
                        "$POSTINST" "$NAME" "$CVERSION" "/usr/share/$PACKAGE_NAME" "$ARCH" "$2"
18
 
                        return $?
19
 
                fi
20
 
                echo "WARNING: $POSTINST does not exist." >&2
21
 
        done
22
 
        echo "ERROR: DKMS version is too old and $PACKAGE_NAME was not" >&2
23
 
        echo "built with legacy DKMS support." >&2
24
 
        echo "You must either rebuild $PACKAGE_NAME with legacy postinst" >&2
25
 
        echo "support or upgrade DKMS to a more current version." >&2
26
 
        return 1
27
 
}
28
 
 
29
 
case "$1" in
30
 
        configure)
31
 
                dkms_configure
32
 
        ;;
33
 
 
34
 
        abort-upgrade|abort-remove|abort-deconfigure)
35
 
        ;;
36
 
 
37
 
        *)
38
 
                echo "postinst called with unknown argument \`$1'" >&2
39
 
                exit 1
40
 
        ;;
41
 
esac
42
 
 
43
 
# dh_installdeb will replace this with shell code automatically
44
 
# generated by other debhelper scripts.
45
 
 
46
 
#DEBHELPER#
47
 
 
48
 
exit 0