[From nobody Fri Jun 12 19:43:07 2026
Received: (at submit) by bugs.debian.org; 1 Dec 2015 08:07:44 +0000
X-Spam-Checker-Version: SpamAssassin 3.4.0-bugs.debian.org_2005_01_02
 (2014-02-07) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-2.8 required=4.0 tests=BAYES_00,DIGITS_LETTERS,
 DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FOURLA,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,
 RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_PASS autolearn=no autolearn_force=no
 version=3.4.0-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 52; hammy, 150; neutral, 449; spammy,
 0. spammytokens: hammytokens:0.000-+--UD:init.d, 0.000-+--initd, 
 0.000-+--init.d, 0.000-+--gitweb, 0.000-+--prerm
Return-path: &lt;rockdrilla@gmail.com&gt;
Received: from mail-lf0-f42.google.com ([209.85.215.42])
 by buxtehude.debian.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84) (envelope-from &lt;rockdrilla@gmail.com&gt;)
 id 1a3fyS-0006bp-Cf
 for submit@bugs.debian.org; Tue, 01 Dec 2015 08:07:44 +0000
Received: by lffu14 with SMTP id u14so229725172lff.1
 for &lt;submit@bugs.debian.org&gt;; Tue, 01 Dec 2015 00:07:36 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=from:to:subject:date:message-id:user-agent:mime-version
 :content-transfer-encoding:content-type;
 bh=+90qRvsocVVdEdLskN6QbZLv6zgmHR4prcL0yCmUOJg=;
 b=IZ0BfolGOkJeDO3cZLktDIq7Dh4F/fNjwom8BE/OiyeE+14fuRUsinternIhz4BqQk
 s7lQqj6rKU7XXuslvY84QXpaiCjjft5EEUFXfbpnKVDyFs4cZHkzlkR9RUyLHcdP336O
 DyVIUTG5KPsUeEiOLCJdZo0xHtwe+ApltGsVYNJCTeuoDesuCw/YaHYICimpbahHhH2R
 jWSiG+U++xvpoFDsSh1mICqmUTHNEiZXoTeudgrmyVjpohnMre5UMkh4lLUa653XmzWO
 +pS9FdUqyxGfZ2ok/MpoXzGzv8JLnPlPbttNjTSTwvrnXkpvyPZZ+bhIoVo3R74ec6hn
 w3LQ==
X-Received: by 10.25.144.65 with SMTP id s62mr15096444lfd.104.1448957256492;
 Tue, 01 Dec 2015 00:07:36 -0800 (PST)
Received: from strontium.localnet ([178.234.89.54])
 by smtp.gmail.com with ESMTPSA id a190sm7937852lfa.32.2015.12.01.00.07.35
 for &lt;submit@bugs.debian.org&gt;
 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128);
 Tue, 01 Dec 2015 00:07:35 -0800 (PST)
From: Konstantin Demin &lt;rockdrilla@gmail.com&gt;
To: submit@bugs.debian.org
Subject: nginx: provide vanilla-like build
Date: Tue, 01 Dec 2015 11:07:34 +0300
Message-ID: &lt;1708138.Jr99qpINtk@strontium&gt;
User-Agent: KMail/5.0.2 (Linux/4.2.6-krd.13; KDE/5.16.0; x86_64; ; )
MIME-Version: 1.0
Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset=&quot;utf-8&quot;
Delivered-To: submit@bugs.debian.org

Source: nginx
Version: 1.9.6-2
Severity: wishlist

introduce build flavour &quot;standard&quot;

* introduce &quot;standard&quot; build: only vanilla source, no 3rd-party modules at all.
  reason: Nginx Inc. provides support only for vanilla-based build.
* provide packages: &quot;nginx-standard&quot; and &quot;nginx-standard-dbg&quot;.
* make &quot;nginx-standard&quot; as default/first choice
  when installing &quot;nginx&quot; meta-package.
* fix other package dependencies (mostly &quot;Conflicts&quot;)

Signed-off-by: Konstantin Demin &lt;rockdrilla@gmail.com&gt;
---
 debian/control                          | 72 ++++++++++++++++++++++++++-------
 debian/nginx-common.preinst             |  2 +
 debian/nginx-standard.dirs              |  1 +
 debian/nginx-standard.install           |  1 +
 debian/nginx-standard.lintian-overrides |  1 +
 debian/nginx-standard.manpages          |  1 +
 debian/nginx-standard.postinst          | 37 +++++++++++++++++
 debian/nginx-standard.prerm             | 22 ++++++++++
 debian/rules                            | 25 +++++++++++-
 debian/tests/control                    |  3 ++
 10 files changed, 150 insertions(+), 15 deletions(-)
 create mode 100644 debian/nginx-standard.dirs
 create mode 100644 debian/nginx-standard.install
 create mode 100644 debian/nginx-standard.lintian-overrides
 create mode 100644 debian/nginx-standard.manpages
 create mode 100644 debian/nginx-standard.postinst
 create mode 100644 debian/nginx-standard.prerm

diff --git a/debian/control b/debian/control
index de705d4..865a64d 100644
--- a/debian/control
+++ b/debian/control
@@ -31,12 +31,14 @@ Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/nginx.git;a=summar
 
 Package: nginx
 Architecture: all
-Depends: nginx-full   (&gt;= ${source:Version}) |
-         nginx-light  (&gt;= ${source:Version}) |
-         nginx-extras (&gt;= ${source:Version}) ,
-         nginx-full   (&lt;&lt; ${source:Version}.1~) |
-         nginx-light  (&lt;&lt; ${source:Version}.1~) |
-         nginx-extras (&lt;&lt; ${source:Version}.1~) ,
+Depends: nginx-standard (&gt;= ${source:Version}) |
+         nginx-light    (&gt;= ${source:Version}) |
+         nginx-full     (&gt;= ${source:Version}) |
+         nginx-extras   (&gt;= ${source:Version}) ,
+         nginx-standard (&lt;&lt; ${source:Version}.1~) |
+         nginx-light    (&lt;&lt; ${source:Version}.1~) |
+         nginx-full     (&lt;&lt; ${source:Version}.1~) |
+         nginx-extras   (&lt;&lt; ${source:Version}.1~) ,
          ${misc:Depends}
 Description: small, powerful, scalable web/proxy server
  Nginx (&quot;engine X&quot;) is a high-performance web and reverse proxy server
@@ -63,11 +65,13 @@ Depends: lsb-base (&gt;= 3.2-14), ${misc:Depends}, python
 Replaces: nginx (&lt;&lt; 0.8.54-4),
           nginx-extras (&lt;&lt; 0.8.54-4),
           nginx-full (&lt;&lt; 0.8.54-4),
-          nginx-light (&lt;&lt; 0.8.54-4)
+          nginx-light (&lt;&lt; 0.8.54-4),
+          nginx-standard (&lt;&lt; 0.8.54-4)
 Breaks: nginx (&lt;&lt; 0.8.54-4),
         nginx-extras (&lt;&lt; 0.8.54-4),
         nginx-full (&lt;&lt; 0.8.54-4),
-        nginx-light (&lt;&lt; 0.8.54-4)
+        nginx-light (&lt;&lt; 0.8.54-4),
+        nginx-standard (&lt;&lt; 0.8.54-4)
 Suggests: fcgiwrap, nginx-doc, ssl-cert
 Description: small, powerful, scalable web/proxy server - common files
  Nginx (&quot;engine X&quot;) is a high-performance web and reverse proxy server
@@ -77,12 +81,52 @@ Description: small, powerful, scalable web/proxy server - common files
  This package contains base configuration files used by all versions of
  nginx.
 
+Package: nginx-standard
+Architecture: any
+Depends: nginx-common (= ${source:Version}), ${misc:Depends}, ${shlibs:Depends}
+Breaks: nginx (&lt;&lt; 1.4.5-1)
+Provides: httpd, httpd-cgi, nginx
+Conflicts: nginx-light, nginx-full, nginx-extras
+Suggests: nginx-doc (= ${source:Version})
+Description: nginx web/proxy server (standard version)
+ Nginx (&quot;engine X&quot;) is a high-performance web and reverse proxy server
+ created by Igor Sysoev. It can be used both as a standalone web server
+ and as a proxy to reduce the load on back-end HTTP or mail servers.
+ .
+ This package provides a standard version of nginx with the standard modules.
+ .
+ STANDARD HTTP MODULES: Core, Access, Auth Basic, Auto Index, Browser, Empty
+ GIF, FastCGI, Geo, Limit Connections, Limit Requests, Map, Memcached, Proxy,
+ Referer, Rewrite, SCGI, Split Clients, UWSGI.
+ .
+ OPTIONAL HTTP MODULES: Addition, Auth Request, Charset, WebDAV, FLV, GeoIP,
+ Gunzip, Gzip, Gzip Precompression, Headers, Image Filter, Index, Log, MP4,
+ Random Index, Real IP, Secure Link, HTTP/2, SSI, SSL, Stream,
+ Stub Status, Substitution, Thread Pool, Upstream, User ID, XSLT, Degradation.
+ .
+ MAIL MODULES: Mail Core, Auth HTTP, Proxy, SSL, IMAP, POP3, SMTP.
+
+Package: nginx-standard-dbg
+Architecture: any
+Section: debug
+Priority: extra
+Depends: nginx-standard (= ${binary:Version}), ${misc:Depends}
+Conflicts: nginx-light-dbg, nginx-full-dbg, nginx-extras-dbg
+Description: nginx web/proxy server (standard version) - debugging symbols
+ Nginx (&quot;engine X&quot;) is a high-performance web and reverse proxy server
+ created by Igor Sysoev. It can be used both as a standalone web server
+ and as a proxy to reduce the load on back-end HTTP or mail servers.
+ .
+ This package provides debugging symbols for nginx-standard, to assist in
+ debugging issues that you may find. It should not be required for normal
+ operation.
+
 Package: nginx-full
 Architecture: any
 Depends: nginx-common (= ${source:Version}), ${misc:Depends}, ${shlibs:Depends}
 Breaks: nginx (&lt;&lt; 1.4.5-1)
 Provides: httpd, httpd-cgi, nginx
-Conflicts: nginx-extras, nginx-light
+Conflicts: nginx-standard, nginx-light, nginx-extras
 Suggests: nginx-doc (= ${source:Version})
 Description: nginx web/proxy server (standard version)
  Nginx (&quot;engine X&quot;) is a high-performance web and reverse proxy server
@@ -112,7 +156,7 @@ Architecture: any
 Section: debug
 Priority: extra
 Depends: nginx-full (= ${binary:Version}), ${misc:Depends}
-Conflicts: nginx-extras-dbg, nginx-light-dbg
+Conflicts: nginx-standard-dbg, nginx-light-dbg, nginx-extras-dbg
 Description: nginx web/proxy server (standard version) - debugging symbols
  Nginx (&quot;engine X&quot;) is a high-performance web and reverse proxy server
  created by Igor Sysoev. It can be used both as a standalone web server
@@ -127,7 +171,7 @@ Priority: extra
 Depends: nginx-common (= ${source:Version}), ${misc:Depends}, ${shlibs:Depends}
 Breaks: nginx (&lt;&lt; 1.4.5-1)
 Provides: httpd, httpd-cgi, nginx
-Conflicts: nginx-extras, nginx-full
+Conflicts: nginx-standard, nginx-full, nginx-extras
 Suggests: nginx-doc (= ${source:Version})
 Description: nginx web/proxy server (basic version)
  Nginx (&quot;engine X&quot;) is a high-performance web and reverse proxy server
@@ -150,7 +194,7 @@ Architecture: any
 Section: debug
 Priority: extra
 Depends: nginx-light (= ${binary:Version}), ${misc:Depends}
-Conflicts: nginx-extras-dbg, nginx-full-dbg
+Conflicts: nginx-standard-dbg, nginx-full-dbg, nginx-extras-dbg
 Description: nginx web/proxy server (basic version) - debugging symbols
  Nginx (&quot;engine X&quot;) is a high-performance web and reverse proxy server
  created by Igor Sysoev. It can be used both as a standalone web server
@@ -169,7 +213,7 @@ Depends: nginx-common (= ${source:Version}),
          ${shlibs:Depends}
 Breaks: nginx (&lt;&lt; 1.4.5-1)
 Provides: httpd, httpd-cgi, nginx
-Conflicts: nginx-full, nginx-light
+Conflicts: nginx-standard, nginx-light, nginx-full
 Suggests: nginx-doc (= ${source:Version})
 Description: nginx web/proxy server (extended version)
  Nginx (&quot;engine X&quot;) is a high-performance web and reverse proxy server
@@ -200,7 +244,7 @@ Architecture: any
 Section: debug
 Priority: extra
 Depends: nginx-extras (= ${binary:Version}), ${misc:Depends}
-Conflicts: nginx-full-dbg, nginx-light-dbg
+Conflicts: nginx-standard-dbg, nginx-light-dbg, nginx-full-dbg
 Description: nginx web/proxy server (extended version) - debugging symbols
  Nginx (&quot;engine X&quot;) is a high-performance web and reverse proxy server
  created by Igor Sysoev. It can be used both as a standalone web server
diff --git a/debian/nginx-common.preinst b/debian/nginx-common.preinst
index 037c80f..7c17da9 100644
--- a/debian/nginx-common.preinst
+++ b/debian/nginx-common.preinst
@@ -15,6 +15,7 @@ case &quot;$1&quot; in
   install)
     # If we are doing a fresh install, then these files are no longer needed.
     # They were around for a very short time and are best simply removed.
+    rm -f /etc/logrotate.d/nginx-standard
     rm -f /etc/logrotate.d/nginx-full
     rm -f /etc/logrotate.d/nginx-light
     rm -f /etc/logrotate.d/nginx-extras
@@ -27,6 +28,7 @@ case &quot;$1&quot; in
       rm -f /etc/ufw/applications.d/nginx/ufw.profile
       rmdir /etc/ufw/applications.d/nginx
     fi
+    rm -f /etc/logrotate.d/nginx-standard
     rm -f /etc/logrotate.d/nginx-full
     rm -f /etc/logrotate.d/nginx-light
     rm -f /etc/logrotate.d/nginx-extras
diff --git a/debian/nginx-standard.dirs b/debian/nginx-standard.dirs
new file mode 100644
index 0000000..236670a
--- /dev/null
+++ b/debian/nginx-standard.dirs
@@ -0,0 +1 @@
+usr/sbin
diff --git a/debian/nginx-standard.install b/debian/nginx-standard.install
new file mode 100644
index 0000000..568d979
--- /dev/null
+++ b/debian/nginx-standard.install
@@ -0,0 +1 @@
+debian/build-standard/objs/nginx usr/sbin
diff --git a/debian/nginx-standard.lintian-overrides b/debian/nginx-standard.lintian-overrides
new file mode 100644
index 0000000..17c36eb
--- /dev/null
+++ b/debian/nginx-standard.lintian-overrides
@@ -0,0 +1 @@
+nginx-standard: spelling-error-in-binary usr/sbin/nginx tEH the
diff --git a/debian/nginx-standard.manpages b/debian/nginx-standard.manpages
new file mode 100644
index 0000000..f818566
--- /dev/null
+++ b/debian/nginx-standard.manpages
@@ -0,0 +1 @@
+debian/build-standard/objs/nginx.8
diff --git a/debian/nginx-standard.postinst b/debian/nginx-standard.postinst
new file mode 100644
index 0000000..bd9c818
--- /dev/null
+++ b/debian/nginx-standard.postinst
@@ -0,0 +1,37 @@
+#!/bin/sh
+set -e
+
+case &quot;$1&quot; in
+  abort-upgrade|abort-remove|abort-deconfigure|configure)
+    ;;
+
+  *)
+    echo &quot;postinst called with unknown argument \`$1'&quot; &gt;&amp;2
+    exit 1
+    ;;
+esac
+
+if [ -x /etc/init.d/nginx ]; then
+  if [ -f /run/nginx.pid ] &amp;&amp; pidof /usr/sbin/nginx &gt;/dev/null; then
+    NGX_PID=`cat /run/nginx.pid`
+    if kill -s USR2 $NGX_PID 2&gt;/dev/null; then
+      while [ ! -s /run/nginx.pid.oldbin ] || [ ! -s /run/nginx.pid ]; do
+        cnt=`expr $cnt + 1`
+        if [ $cnt -gt 10 ]; then
+          kill -s KILL $NGX_PID
+          invoke-rc.d nginx start
+          exit 0
+        fi
+        sleep 1
+      done
+      NGX_OLD_PID=`cat /run/nginx.pid.oldbin`
+      kill -s QUIT $NGX_OLD_PID
+    fi
+  else
+    invoke-rc.d nginx start || exit $?
+  fi
+fi
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/nginx-standard.prerm b/debian/nginx-standard.prerm
new file mode 100644
index 0000000..a2e3838
--- /dev/null
+++ b/debian/nginx-standard.prerm
@@ -0,0 +1,22 @@
+#!/bin/sh
+set -e
+
+case &quot;$1&quot; in
+  remove|remove-in-favour|deconfigure|deconfigure-in-favour)
+    if [ -x /etc/init.d/nginx ]; then
+      invoke-rc.d nginx stop || exit $?
+    fi
+    ;;
+
+  upgrade|failed-upgrade)
+    ;;
+
+  *)
+    echo &quot;prerm called with unknown argument \`$1'&quot; &gt;&amp;2
+    exit 1
+    ;;
+esac
+
+#DEBHELPER#
+
+exit 0
diff --git a/debian/rules b/debian/rules
index 1cdef59..3dbb71d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -10,7 +10,7 @@ debian_ldflags:=$(shell dpkg-buildflags --get LDFLAGS)
 DEBIAN_NGINX_PERL_LDFLAGS:= $(shell DEB_BUILD_MAINT_OPTIONS=hardening=+all,-pie dpkg-buildflags --get LDFLAGS)
 export DEBIAN_NGINX_PERL_LDFLAGS
 
-FLAVOURS := full light extras
+FLAVOURS := standard light full extras
 
 MODULESDIR = $(CURDIR)/debian/modules
 BASEDIR = $(CURDIR)
@@ -49,6 +49,29 @@ common_configure_flags := \
 			--with-http_realip_module \
 			--with-http_auth_request_module
 
+standard_configure_flags := \
+			$(common_configure_flags) \
+			--with-http_addition_module \
+			--with-http_dav_module \
+			--with-http_flv_module \
+			--with-http_geoip_module \
+			--with-http_gzip_static_module \
+			--with-http_gunzip_module \
+			--with-http_image_filter_module \
+			--with-http_mp4_module \
+			--with-http_random_index_module \
+			--with-http_secure_link_module \
+			--with-http_degradation_module \
+			--with-http_v2_module \
+			--with-http_sub_module \
+			--with-http_xslt_module \
+			--with-mail \
+			--with-mail_ssl_module \
+			--with-stream \
+			--with-stream_ssl_module \
+			--with-threads \
+			--with-file-aio
+
 light_configure_flags := \
 			$(common_configure_flags) \
 			--with-http_gzip_static_module \
diff --git a/debian/tests/control b/debian/tests/control
index 8d0e384..ad5dbc8 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -10,3 +10,6 @@ Test-Command: curl --silent --fail -o /dev/null -w &quot;response_code: %{http_code}\
 Restrictions: allow-stderr isolation-container
 Depends: nginx-extras, curl
 
+Test-Command: curl --silent --fail -o /dev/null -w &quot;response_code: %{http_code}\n&quot; http://127.0.0.1/
+Restrictions: allow-stderr isolation-container
+Depends: nginx-standard, curl
-- 
2.6.2
]