~ubuntu-branches/ubuntu/feisty/apache2/feisty

« back to all changes in this revision

Viewing changes to debian/scripts/source.unpack

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Barth
  • Date: 2006-12-09 21:05:45 UTC
  • mfrom: (0.6.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20061209210545-h70s0xaqc2v8vqr2
Tags: 2.2.3-3.2
* Non-maintainer upload.
* 043_ajp_connection_reuse: Patch from upstream Bugzilla, fixing a critical
  issue with regard to connection reuse in mod_proxy_ajp.
  Closes: #396265

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 -maxdepth 1 -type f|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