~ubuntu-branches/ubuntu/quantal/hardening-wrapper/quantal

« back to all changes in this revision

Viewing changes to debian/hardening-wrapper.preinst

  • Committer: Bazaar Package Importer
  • Author(s): Kees Cook
  • Date: 2009-12-19 18:00:22 UTC
  • mto: This revision was merged to the branch mainline in revision 13.
  • Revision ID: james.westby@ubuntu.com-20091219180022-6pgp1t7aozcolnyc
Tags: 1.18
* debian/{control,rules}: add "hardening-includes" for use in other
  Debian rules files.
* debian/rules, hardening.make: relocate/enhance architecture logic
  to common makefile include file.
* tests/*: update to test both wrapper and include style.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/sh -e
 
2
 
 
3
dodiv()
 
4
{
 
5
        dpkg-divert --package hardening-wrapper --add --rename \
 
6
                --divert /usr/bin/"$1".real /usr/bin/"$1"
 
7
}
 
8
 
 
9
if [ "install" = "$1" ] || [ "upgrade" = "$1" ]; then
 
10
        for ver in 4.1 4.2 4.3 4.4
 
11
        do
 
12
                for i in gcc g++
 
13
                do
 
14
                        dodiv "$i-$ver"
 
15
                done
 
16
        done
 
17
        dodiv ld
 
18
fi
 
19
 
 
20
#DEBHELPER#