-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsnapcraft.yaml
148 lines (134 loc) · 5.67 KB
/
snapcraft.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
name: nginx-hda-bundle
version: "1.17.3"
summary: Nginx HDA Bundle - Dynamic Modules Power
description: "For more details please visit: https://github.com/cryptofuture/nginx-hda-bundle/"
grade: devel
confinement: devmode
apps:
first-run:
command: bin/first-run.sh
start:
plugs: [network-bind]
command: bin/start.sh
start-www:
plugs: [network-bind]
command: bin/start-www-data.sh
reload:
plugs: [network-bind]
command: bin/reload.sh
reload-www:
plugs: [network-bind]
command: bin/reload-www-data.sh
stop:
plugs: [network-bind]
command: bin/stop.sh
stop-www:
plugs: [network-bind]
command: bin/stop-www-data.sh
parts:
wrappers:
plugin: dump
source: extras
modules:
plugin: dump
source: .
stage: [modules]
prime: [-*]
binary:
plugin: dump
source: binary
install: |
mkdir -p $SNAPCRAFT_PART_INSTALL/modules/ngx_brotli/deps/brotli $SNAPCRAFT_PART_INSTALL/modules/ngx_pagespeed
tar zxf brotli.tar.gz -C $SNAPCRAFT_PART_INSTALL/modules/ngx_brotli/deps/brotli --strip-components=1
case $(uname -m) in
x86_64|amd64)
tar zxf 1.13.35.2-x64.tar.gz -C $SNAPCRAFT_PART_INSTALL/modules/ngx_pagespeed
;;
i386|i586|i686)
tar zxf 1.13.35.2-ia32.tar.gz -C $SNAPCRAFT_PART_INSTALL/modules/ngx_pagespeed
;;
*)
false
esac
prime: [-*]
nginx:
after: [modules, binary, wrappers]
plugin: autotools
prepare: |
echo 'Preparing build'
echo "deb-src http://ppa.launchpad.net/maxmind/ppa/ubuntu bionic main " >> /etc/apt/sources.list
echo "deb http://ppa.launchpad.net/maxmind/ppa/ubuntu bionic main " >> /etc/apt/sources.list
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys DE1997DCDE742AFA
apt update
source: nginx-1.17.3.tar.gz
build-packages:
- libgd-dev
- libgeoip-dev
- libpcre3-dev
- libperl-dev
- libssl-dev
- libxslt1-dev
- lsb-release
- zlib1g-dev
- libluajit-5.1-dev
- tar
- libpq-dev
- libpam0g-dev
- uuid-dev
- libmaxminddb-dev
configflags:
- --with-http_ssl_module
- --with-http_realip_module
- --with-http_addition_module
- --with-http_sub_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
- --with-stream=dynamic
- --with-stream_ssl_module
- --with-stream_ssl_preread_module
- --with-stream_geoip_module=dynamic
- --with-http_perl_module=dynamic
- --with-mail=dynamic
- --with-mail_ssl_module
- --add-dynamic-module=$SNAPCRAFT_STAGE/modules/njs/nginx
- --add-dynamic-module=$SNAPCRAFT_STAGE/modules/ngx_pagespeed
- --add-dynamic-module=$SNAPCRAFT_STAGE/modules/headers-more-nginx-module
- --add-dynamic-module=$SNAPCRAFT_STAGE/modules/lua-nginx-module
- --add-dynamic-module=$SNAPCRAFT_STAGE/modules/naxsi/naxsi_src/
- --add-dynamic-module=$SNAPCRAFT_STAGE/modules/nginx-length-hiding-filter-module
- --add-dynamic-module=$SNAPCRAFT_STAGE/modules/Session-Binding-Proxy/nginx_session_binding_proxy_module
- --add-dynamic-module=$SNAPCRAFT_STAGE/modules/ngx_devel_kit
- --add-dynamic-module=$SNAPCRAFT_STAGE/modules/ngx_http_upstream_order
- --add-dynamic-module=$SNAPCRAFT_STAGE/modules/rds-json-nginx-module
- --add-dynamic-module=$SNAPCRAFT_STAGE/modules/testcookie-nginx-module
- --add-dynamic-module=$SNAPCRAFT_STAGE/modules/ngx_brotli
- --add-dynamic-module=$SNAPCRAFT_STAGE/modules/ngx_postgres
- --add-dynamic-module=$SNAPCRAFT_STAGE/modules/nchan
- --add-dynamic-module=$SNAPCRAFT_STAGE/modules/ngx_http_auth_pam_module
- --add-dynamic-module=$SNAPCRAFT_STAGE/modules/echo-nginx-module
- --add-dynamic-module=$SNAPCRAFT_STAGE/modules/nginx-upstream-fair
- --add-dynamic-module=$SNAPCRAFT_STAGE/modules/ngx_cache_purge
- --add-dynamic-module=$SNAPCRAFT_STAGE/modules/ngx-fancyindex
- --add-dynamic-module=$SNAPCRAFT_STAGE/modules/nginx-upload-progress-module
- --add-dynamic-module=$SNAPCRAFT_STAGE/modules/ngx_http_substitutions_filter_module
- --add-dynamic-module=$SNAPCRAFT_STAGE/modules/graphite-nginx-module
- --add-dynamic-module=$SNAPCRAFT_STAGE/modules/nginx-module-vts
- --add-dynamic-module=$SNAPCRAFT_STAGE/modules/nginx-ct
- --add-dynamic-module=$SNAPCRAFT_STAGE/modules/nginx-rtmp-module
- --add-dynamic-module=$SNAPCRAFT_STAGE/modules/nginx-ts-module
- --add-dynamic-module=$SNAPCRAFT_STAGE/modules/nginx-module-sts
- --add-dynamic-module=$SNAPCRAFT_STAGE/modules/nginx-module-stream-sts
- --add-dynamic-module=$SNAPCRAFT_STAGE/modules/ngx_http_geoip2_module
- --with-threads
- --with-http_slice_module
- --with-file-aio
- --with-http_v2_module
organize:
sbin: bin