Skip to content

Instantly share code, notes, and snippets.

@kura
Created July 15, 2016 17:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kura/687f4d990aff8bcb053ae31fdc2b4b80 to your computer and use it in GitHub Desktop.
Save kura/687f4d990aff8bcb053ae31fdc2b4b80 to your computer and use it in GitHub Desktop.
brotli.patch
diff -ruN nginx-1.11.2/debian/rules nginx-1.11.2.patched/debian/rules
--- nginx-1.11.2/debian/rules 2016-07-05 16:29:08.000000000 +0000
+++ nginx-1.11.2.patched/debian/rules 2016-07-15 16:46:05.690243981 +0000
@@ -27,18 +27,8 @@
--user=nginx \
--group=nginx \
--with-http_ssl_module \
- --with-http_realip_module \
- --with-http_addition_module \
- --with-http_sub_module \
- --with-http_dav_module \
- --with-http_flv_module \
- --with-http_mp4_module \
- --with-http_gunzip_module \
--with-http_gzip_static_module \
- --with-http_random_index_module \
- --with-http_secure_link_module \
--with-http_stub_status_module \
- --with-http_auth_request_module \
--with-http_xslt_module=dynamic \
--with-http_image_filter_module=dynamic \
--with-http_geoip_module=dynamic \
@@ -48,17 +38,19 @@
--with-stream \
--with-stream_ssl_module \
--with-http_slice_module \
- --with-mail \
- --with-mail_ssl_module \
--with-file-aio \
--with-ipv6 \
$(WITH_HTTP2) \
+ --add-module=debian/extra/ngx_brotli \
--with-cc-opt="$(CFLAGS)" \
--with-ld-opt="$(LDFLAGS)"
%:
dh $@
+override_dh_shlibdeps:
+ dh_shlibdeps --dpkg-shlibdeps-params=--ignore-missing-info
+
override_dh_auto_configure: configure_debug
override_dh_strip:
diff -ruN nginx-1.11.2/src/http/ngx_http_header_filter_module.c nginx-1.11.2.patched/src/http/ngx_http_header_filter_module.c
--- nginx-1.11.2/src/http/ngx_http_header_filter_module.c 2016-07-05 15:56:15.000000000 +0000
+++ nginx-1.11.2.patched/src/http/ngx_http_header_filter_module.c 2016-07-15 16:45:34.750255537 +0000
@@ -46,8 +46,8 @@
};
-static char ngx_http_server_string[] = "Server: nginx" CRLF;
-static char ngx_http_server_full_string[] = "Server: " NGINX_VER CRLF;
+static char ngx_http_server_string[] = "Server: " CRLF;
+static char ngx_http_server_full_string[] = "Server: " CRLF;
static ngx_str_t ngx_http_status_lines[] = {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment