~ubuntu-branches/debian/sid/subversion/sid

« back to all changes in this revision

Viewing changes to tools/dist/make-deps-tarball.sh

  • Committer: Package Import Robot
  • Author(s): James McCoy
  • Date: 2015-08-07 21:32:47 UTC
  • mfrom: (0.2.15) (4.1.7 experimental)
  • Revision ID: package-import@ubuntu.com-20150807213247-ozyewtmgsr6tkewl
Tags: 1.9.0-1
* Upload to unstable
* New upstream release.
  + Security fixes
    - CVE-2015-3184: Mixed anonymous/authenticated path-based authz with
      httpd 2.4
    - CVE-2015-3187: svn_repos_trace_node_locations() reveals paths hidden
      by authz
* Add >= 2.7 requirement for python-all-dev Build-Depends, needed to run
  tests.
* Remove Build-Conflicts against ruby-test-unit.  (Closes: #791844)
* Remove patches/apache_module_dependency in favor of expressing the
  dependencies in authz_svn.load/dav_svn.load.
* Build-Depend on apache2-dev (>= 2.4.16) to ensure ap_some_authn_required()
  is available when building mod_authz_svn and Depend on apache2-bin (>=
  2.4.16) for runtime support.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/sh
2
 
#
3
 
#
4
 
# Licensed to the Apache Software Foundation (ASF) under one
5
 
# or more contributor license agreements.  See the NOTICE file
6
 
# distributed with this work for additional information
7
 
# regarding copyright ownership.  The ASF licenses this file
8
 
# to you under the Apache License, Version 2.0 (the
9
 
# "License"); you may not use this file except in compliance
10
 
# with the License.  You may obtain a copy of the License at
11
 
#
12
 
#   http://www.apache.org/licenses/LICENSE-2.0
13
 
#
14
 
# Unless required by applicable law or agreed to in writing,
15
 
# software distributed under the License is distributed on an
16
 
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
17
 
# KIND, either express or implied.  See the License for the
18
 
# specific language governing permissions and limitations
19
 
# under the License.
20
 
#
21
 
#
22
 
set -e
23
 
 
24
 
APR=apr-1.4.6
25
 
APR_UTIL=apr-util-1.4.1
26
 
NEON=neon-0.29.6
27
 
SERF=serf-0.3.1
28
 
ZLIB=zlib-1.2.7
29
 
SQLITE_VERSION=3071400
30
 
SQLITE=sqlite-amalgamation-$SQLITE_VERSION
31
 
 
32
 
HTTPD=httpd-2.2.22
33
 
HTTPD_OOPS=
34
 
APR_ICONV=apr-iconv-1.2.1
35
 
APR_ICONV_OOPS=
36
 
 
37
 
WIN32_APR_VIA_HTTPD=1
38
 
 
39
 
BASEDIR=`pwd`
40
 
TEMPDIR=$BASEDIR/temp
41
 
 
42
 
APACHE_MIRROR=http://archive.apache.org/dist
43
 
 
44
 
create_deps() {
45
 
    SVN_VERSION="$1"
46
 
    set -x
47
 
 
48
 
    mkdir -p $TEMPDIR
49
 
    cd $TEMPDIR
50
 
    wget -qnc $APACHE_MIRROR/apr/$APR.tar.bz2
51
 
    wget -qnc $APACHE_MIRROR/apr/$APR_UTIL.tar.bz2
52
 
    if [ -n "$WIN32_APR_VIA_HTTPD" ]; then
53
 
      wget -qnc $APACHE_MIRROR/httpd/$HTTPD-win32-src$HTTPD_OOPS.zip
54
 
    else
55
 
      wget -qnc $APACHE_MIRROR/apr/$APR-win32-src.zip
56
 
      wget -qnc $APACHE_MIRROR/apr/$APR_UTIL-win32-src.zip
57
 
      wget -qnc $APACHE_MIRROR/apr/$APR_ICONV-win32-src$APR_ICONV_OOPS.zip
58
 
    fi
59
 
    wget -qnc http://webdav.org/neon/$NEON.tar.gz
60
 
    wget -qnc http://serf.googlecode.com/files/$SERF.tar.bz2
61
 
    wget -qnc http://www.zlib.net/$ZLIB.tar.bz2
62
 
    wget -qnc http://www.sqlite.org/$SQLITE.zip
63
 
 
64
 
    mkdir $BASEDIR/unix-dependencies
65
 
    cd $BASEDIR/unix-dependencies
66
 
    tar zxf $TEMPDIR/$NEON.tar.gz
67
 
    tar jxf $TEMPDIR/$ZLIB.tar.bz2
68
 
    tar jxf $TEMPDIR/$SERF.tar.bz2
69
 
    unzip -q $TEMPDIR/$SQLITE.zip
70
 
    mv $NEON neon
71
 
    mv $ZLIB zlib
72
 
    mv $SERF serf
73
 
    mv $SQLITE sqlite-amalgamation
74
 
    tar jxf $TEMPDIR/$APR.tar.bz2
75
 
    tar jxf $TEMPDIR/$APR_UTIL.tar.bz2
76
 
    mv $APR apr
77
 
    mv $APR_UTIL apr-util
78
 
    cd $TEMPDIR
79
 
 
80
 
    mkdir $BASEDIR/win32-dependencies
81
 
    cd $BASEDIR/win32-dependencies
82
 
    tar zxf $TEMPDIR/$NEON.tar.gz
83
 
    tar jxf $TEMPDIR/$ZLIB.tar.bz2
84
 
    tar jxf $TEMPDIR/$SERF.tar.bz2
85
 
    unzip -q $TEMPDIR/$SQLITE.zip
86
 
    mv $NEON neon
87
 
    mv $ZLIB zlib
88
 
    mv $SERF serf
89
 
    mv $SQLITE sqlite-amalgamation
90
 
    if [ -n "$WIN32_APR_VIA_HTTPD" ]; then
91
 
      unzip -q $TEMPDIR/$HTTPD-win32-src$HTTPD_OOPS.zip
92
 
      for i in apr apr-util apr-iconv; do
93
 
        mv $HTTPD/srclib/$i .
94
 
      done
95
 
      rm -rf $HTTPD
96
 
    else
97
 
      unzip -q $TEMPDIR/$APR-win32-src.zip
98
 
      unzip -q $TEMPDIR/$APR_UTIL-win32-src.zip
99
 
      unzip -q $TEMPDIR/$APR_ICONV-win32-src$APR_ICONV_OOPS.zip
100
 
      mv $APR apr
101
 
      mv $APR_UTIL apr-util
102
 
      mv $APR_ICONV apr-iconv
103
 
    fi
104
 
 
105
 
    cd $BASEDIR
106
 
    mv unix-dependencies subversion-$SVN_VERSION
107
 
    tar jcf subversion-deps-$SVN_VERSION.tar.bz2 subversion-$SVN_VERSION
108
 
    tar zcf subversion-deps-$SVN_VERSION.tar.gz subversion-$SVN_VERSION
109
 
    rm -rf subversion-$SVN_VERSION
110
 
    mv win32-dependencies subversion-$SVN_VERSION
111
 
    zip -qr subversion-deps-$SVN_VERSION.zip subversion-$SVN_VERSION
112
 
    rm -rf subversion-$SVN_VERSION
113
 
}
114
 
 
115
 
if [ -z "$1" ]; then
116
 
  echo "Please provide a Subversion release number."
117
 
  echo "Example: ./`basename $0` 1.6.19"
118
 
  exit 1
119
 
fi
120
 
 
121
 
create_deps "$1"