~ubuntu-branches/ubuntu/natty/nginx/natty-updates

« back to all changes in this revision

Viewing changes to modules/nginx-echo/util/build.sh

  • Committer: Bazaar Package Importer
  • Author(s): Michael Lustfield, Micheal Lustfield, Kartik Mistry
  • Date: 2011-03-03 23:39:07 UTC
  • mfrom: (4.2.29 sid)
  • Revision ID: james.westby@ubuntu.com-20110303233907-y48yifhfnn5qjuxz
Tags: 0.8.54-4
[Micheal Lustfield]
* debian/nginx-{full,light,extras}.default:
  + Added comment about alternative to ULIMIT.
* debian/nginx-{full,light,extras}.init.d:
  + Added quotes around a test variable. (Closes: #610946, LP: #699736)
* debian/patches/609343-log-time-iso8601.diff:
  + Added patch to add $time_iso8601 variable to logs. (Closes: #609343)
* Clean up old logrotate files. (Closes: #608983, Closes: #610289)
  + Added Files:
    - debian/nginx-common.preinst
  + Modified Files:
    - debian/rules
  + Moved debian/nginx-common.logrotate to debian/logrotate.
* Added common files to nginx-common package. (Closes: #610290)
  + Removed Files:
    - debian/nginx-full.dirs
    - debian/nginx-light.dirs
    - debian/nginx-full.install
    - debian/nginx-light.install
    - debian/nginx-extras.install
    - debian/nginx.*
  + Added Files:
    - debian/nginx-common.default
    - debian/nginx-common.dirs
    - debian/nginx-common.init.d
    - debian/nginx-common.install
    - debian/nginx-common.manpages
    - debian/logrotate
  + Modified Files:
    - debian/nginx-extras.dirs
    - debian/control
    - debian/rules
* debian/nginx-*.install: (Closes: #609797)
  + Removed NEWS.Debian from nginx-{full,light,extras}.install.
  + Added NEWS.Debian to nginx-common.install.
* nginx-common.postinst:
  + Enforce /var/log/nginx mode and user:group. (Closes: #610983)
  + Enforce /var/log/nginx/*.log mode and user:group. (Closes: #612832)
* debian/rules:
  + Added --with-file-aio to nginx-extras. (Closes: #613175)
  + Removed split clients and user id modules from nginx-light.
* debian/conf/sites-available/default:
  + Fixed a minor typo ( s/Quickstart/QuickStart/ ). (Closes: #613355)
* debian/conf/mime.types:
  + Changed xml type to application/xhtml+xml. (Closes: #613851)
* debian/help/docs/fcgiwrap:
  + Removed Ubuntu specific line in docs. (Closes: #614987)
* debian/conf/sites-available/default:
  + Fixed a pointer to a file. (Closes: #614980)

[Kartik Mistry]
* debian/*.lintian-overrides:
  + Add Lintian overrides for nginx man page. We've manpage in nginx-common
    binary

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#!/bin/bash
2
 
 
3
 
# this file is mostly meant to be used by the author himself.
4
 
 
5
 
root=`pwd`
6
 
cd ~/work
7
 
version=$1
8
 
opts=$2
9
 
home=~
10
 
 
11
 
if [ ! -s "nginx-$version.tar.gz" ]; then
12
 
    wget "http://sysoev.ru/nginx/nginx-$version.tar.gz" -O nginx-$version.tar.gz || exit 1
13
 
    tar -xzvf nginx-$version.tar.gz || exit 1
14
 
    if [ "$version" = "0.8.41" ]; then
15
 
        cp $root/../no-pool-nginx/nginx-$version-no_pool.patch ./
16
 
        patch -p0 < nginx-$version-no_pool.patch || exit 1
17
 
    fi
18
 
fi
19
 
 
20
 
#tar -xzvf nginx-$version.tar.gz || exit 1
21
 
#cp $root/../no-pool-nginx/nginx-0.8.41-no_pool.patch ./
22
 
#patch -p0 < nginx-0.8.41-no_pool.patch || exit 1
23
 
 
24
 
cd nginx-$version/
25
 
if [[ "$BUILD_CLEAN" -eq 1 || ! -f Makefile \
26
 
        || "$root/config" -nt Makefile
27
 
        || "$root/util/build.sh" -nt Makefile ]]; then
28
 
    ./configure --prefix=/opt/nginx \
29
 
            --with-cc-opt="-DDEBUG_MALLOC" \
30
 
            --with-http_stub_status_module \
31
 
            --without-mail_pop3_module \
32
 
            --without-mail_imap_module \
33
 
            --without-mail_smtp_module \
34
 
            --without-http_upstream_ip_hash_module \
35
 
            --without-http_empty_gif_module \
36
 
            --without-http_memcached_module \
37
 
            --without-http_referer_module \
38
 
            --without-http_autoindex_module \
39
 
            --without-http_auth_basic_module \
40
 
            --without-http_userid_module \
41
 
          --with-http_addition_module \
42
 
          --add-module=$root/../ndk-nginx-module \
43
 
          --add-module=$root/../set-misc-nginx-module \
44
 
          --add-module=$root/../eval-nginx-module \
45
 
          --add-module=$root/../xss-nginx-module \
46
 
          --add-module=$root/../rds-json-nginx-module \
47
 
          --add-module=$root/../headers-more-nginx-module \
48
 
          --add-module=$root $opts \
49
 
          --with-debug
50
 
          #--add-module=$root/../lz-session-nginx-module \
51
 
          #--add-module=$home/work/ndk \
52
 
          #--add-module=$home/work/ndk/examples/http/set_var \
53
 
          #--add-module=$root/../eval-nginx-module \
54
 
          #--add-module=/home/agentz/work/nginx_eval_module-1.0.1 \
55
 
  #--without-http_ssi_module  # we cannot disable ssi because echo_location_async depends on it (i dunno why?!)
56
 
 
57
 
fi
58
 
if [ -f /opt/nginx/sbin/nginx ]; then
59
 
    rm -f /opt/nginx/sbin/nginx
60
 
fi
61
 
if [ -f /opt/nginx/logs/nginx.pid ]; then
62
 
    kill `cat /opt/nginx/logs/nginx.pid`
63
 
fi
64
 
make -j3
65
 
make install
66