~ubuntu-branches/ubuntu/saucy/apache2/saucy

« back to all changes in this revision

Viewing changes to debian/scripts/source.unpack

  • Committer: Bazaar Package Importer
  • Author(s): Thom May
  • Date: 2004-10-13 19:46:10 UTC
  • Revision ID: james.westby@ubuntu.com-20041013194610-ccvqcz8vflh5zqrm
Tags: 2.0.50-12ubuntu4
Security Release. Patch from upstream for the following:
CAN-2004-0885SSLCypherSuite can be bypassed during renegotiation.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash
 
2
. debian/scripts/vars
 
3
mkdir -p $STAMP_DIR/upstream/tarballs/ $SOURCE_DIR
 
4
AP2_VERSION=`dpkg-parsechangelog | sed -n 's/^Version: //p;' | sed -e 's/-.*//;'`
 
5
for f in `find upstream/tarballs -type f -maxdepth 1|sort`;do
 
6
        stampfile=$STAMP_DIR/upstream/tarballs/`basename $f`
 
7
        if [ ! -e $stampfile ];then
 
8
                case $f in
 
9
                        *.gz|*.tgz|*.Z) cmd=zcat;;
 
10
                        *.bz)           cmd=bzcat;;
 
11
                        *.bz2)          cmd=bzcat;;
 
12
                        *)              cmd=cat;;
 
13
                esac
 
14
                echo -n "Extracting upstream tarball $f"
 
15
                if $cmd $f|(cd ${SOURCE_DIR:-.};tar xvf -) >$stampfile.log;then
 
16
                        if [ x$SOURCE_DIR = x ];then
 
17
                                mkdir -p $STAMP_DIR/upstream/files/tarballs
 
18
                                cp $stampfile.log $STAMP_DIR/upstream/files/tarballs/`basename $f`.list
 
19
                        fi
 
20
                        if [ ! -L $SOURCE_DIR/apache2 ]; then
 
21
                                if [ -d httpd-2.0 ]; then 
 
22
                                        ln -s httpd-2.0 $SOURCE_DIR/apache2 ;
 
23
                                else 
 
24
                                        ln -s httpd-$AP2_VERSION $SOURCE_DIR/apache2;
 
25
                                fi;
 
26
                        fi
 
27
                                
 
28
                        echo " successful."
 
29
                        touch $stampfile
 
30
                else
 
31
                        echo " failed!"
 
32
                        exit 1
 
33
                fi
 
34
        else
 
35
                echo "upstream tarball $f already extracted!"
 
36
        fi
 
37
done
 
38