nginx-vl.spec 44 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405
  1. %bcond_with systemd
  2. # build mod_wsgi
  3. %bcond_with wsgi
  4. # build http_geoip_module
  5. %bcond_without geoip
  6. %bcond_without geoip2
  7. # build naxsi module
  8. %bcond_with naxsi
  9. # build modsecurity module
  10. %bcond_without modsecurity
  11. # build brotli module
  12. %bcond_without brotli
  13. # build ipset module
  14. %bcond_without ipset
  15. %global nginx_modulesdir %{_libdir}/nginx/modules
  16. %global nginx_modconfdir %{_sysconfdir}/nginx/modules.d
  17. %define nginx_user www-data
  18. %define nginx_group %{nginx_user}
  19. %define nginx_home %{_localstatedir}/lib/nginx
  20. %define nginx_home_tmp %{nginx_home}/tmp
  21. %define nginx_home_cache %{nginx_home}/cache
  22. %define nginx_logdir %{_localstatedir}/log/nginx
  23. %define nginx_confdir %{_sysconfdir}/nginx
  24. %define nginx_datadir %{_datadir}/nginx
  25. %define nginx_webroot %{nginx_datadir}/html
  26. Summary: Robust, small and high performance http and reverse proxy server
  27. Summary(ja): 堅牢・軽量・高性能な HTTP およびリバースプロキシサーバ
  28. Name: nginx
  29. Group: servers
  30. %global nginx_version 1.28.0
  31. Version: %{nginx_version}
  32. # do not reset or decrease.
  33. Release: 28%{?_dist_release}%{?with_systemd:.systemd}
  34. Vendor: Project Vine
  35. Distribution: Vine Linux
  36. Packager: daisuke
  37. # BSD License (two clause)
  38. # http://www.freebsd.org/copyright/freebsd-license.html
  39. License: BSD
  40. URL: https://nginx.org/
  41. Source0: https://nginx.org/download/nginx-%{version}.tar.gz
  42. Source1: %{name}.init
  43. Source2: %{name}.logrotate
  44. Source3: nginx-virtual.conf.template
  45. Source4: nginx-ssl.conf
  46. Source5: %{name}.sysconfig
  47. Source10: nginx-vine.conf
  48. Source11: nginx-default-vine
  49. Source20: proxy_cache.conf
  50. Source21: nginx.service
  51. Source22: nginx-upgrade
  52. Source23: nginx-upgrade.8
  53. Source100: nginx-index.html
  54. Source101: poweredby-vine.png
  55. Source102: nginx-logo.png
  56. Source103: nginx-50x.html
  57. Source104: nginx-404.html
  58. %define ngx_fancyindex_version 0.5.2
  59. Source1000: https://github.com/aperezdc/ngx-fancyindex/releases/download/v%{ngx_fancyindex_version}/ngx-fancyindex-0.5.2.tar.xz
  60. # https://github.com/giom/nginx_accept_language_module
  61. %define nginx_accept_language_module_version 2f69842
  62. Source1010: giom-nginx_accept_language_module-%{nginx_accept_language_module_version}.tar.gz
  63. %define passenger_version 6.0.27
  64. Source1020: https://github.com/phusion/passenger/releases/download/release-%{passenger_version}/passenger-%{passenger_version}.tar.gz
  65. # https://github.com/gnosek/nginx-upstream-fair
  66. %define upstream_fair_version a18b409
  67. Source1030: gnosek-nginx-upstream-fair-%{upstream_fair_version}.tar.gz
  68. %define mod_wsgi_version 6975f0ec7eeb
  69. Source2000: lifeeth-mod_wsgi-%{mod_wsgi_version}.tar.bz2
  70. %define nginx_dav_ext_module_version 3.0.0
  71. Source2010: https://github.com/arut/nginx-dav-ext-module/archive/v%{nginx_dav_ext_module_version}.tar.gz#/nginx-dav-ext-module-%{nginx_dav_ext_module_version}.tar.gz
  72. %if %{with naxsi}
  73. %global with_naxsi 1
  74. %endif
  75. %global naxsi_version 0.56
  76. %global naxsi_srcversion untagged-afabfc163946baa8036f
  77. Source2020: https://github.com/nbs-system/naxsi/archive/%{naxsi_srcversion}.tar.gz#/naxsi-%{naxsi_srcversion}.tar.gz
  78. Source2021: naxsi_params
  79. %if %{with geoip2}
  80. %global with_geoip2 1
  81. %global geoip2_version 3.4
  82. Source2030: https://github.com/leev/ngx_http_geoip2_module/archive/%{geoip2_version}.tar.gz#/ngx_http_geoip2_module-%{geoip2_version}.tar.gz
  83. Patch2030: ngx_http_geoip2_module-3.4_HEAD.patch
  84. %endif
  85. %if %{with modsecurity}
  86. %global with_modsecurity 1
  87. %global modsecurity_version 1.0.4
  88. %global modsecurity_hash ef64996aedd4bb5fa1831631361244813d48b82f
  89. Source2040: https://github.com/SpiderLabs/ModSecurity-nginx/releases/download/v%{modsecurity_version}/modsecurity-nginx-v%{modsecurity_version}.tar.gz
  90. #Source2040: https://github.com/SpiderLabs/ModSecurity-nginx/archive/%{modsecurity_hash}.tar.gz
  91. %endif
  92. %if %{with brotli}
  93. %global with_brotli 1
  94. %global brotli_version 1.0.0~rc
  95. %global brotli_commit a71f9312c2deb28875acc7bacfdd5695a111aa53
  96. Source2050: https://github.com/google/ngx_brotli/archive/%{brotli_commit}.tar.gz#/ngx_brotli-%{brotli_commit}.tar.gz
  97. %endif
  98. %if %{with ipset}
  99. %global with_ipset 1
  100. %global ipset_version 1.0.3
  101. Source2060: https://github.com/GetPageSpeed/nginx_ipset_access_module/archive/refs/tags/v%{ipset_version}.tar.gz#/nginx_ipset_access_module-%{ipset_version}.tar.gz
  102. %endif
  103. # removes -Werror in upstream build scripts. -Werror conflicts with
  104. # -D_FORTIFY_SOURCE=2 causing warnings to turn into errors.
  105. Patch0: 0001-remove-Werror-in-upstream-build-scripts.patch
  106. # downstream patch - fix PIDFile race condition (rhbz#1869026)
  107. # rejected upstream: https://trac.nginx.org/nginx/ticket/1897
  108. Patch1: 0002-fix-PIDFile-handling.patch
  109. # to fix https://github.com/gnosek/nginx-upstream-fair/pull/23
  110. Patch101: gnosek-nginx-upstream-fair-pull-23.patch
  111. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  112. BuildRequires: libboost-devel
  113. BuildRequires: libxcrypt-devel
  114. BuildRequires: libnsl2-devel
  115. BuildRequires: pcre2-devel
  116. BuildRequires: zlib-devel
  117. BuildRequires: openssl-devel
  118. BuildRequires: libxml2-devel
  119. BuildRequires: libxslt-devel
  120. BuildRequires: curl-devel
  121. BuildRequires: perl >= 2:5.34.0
  122. # for /usr/sbin/useradd
  123. Requires(pre): shadow-utils
  124. %if %{with systemd}
  125. BuildRequires: systemd
  126. Requires(post): systemd
  127. Requires(preun): systemd
  128. Requires(postun): systemd
  129. %else
  130. Requires(post): chkconfig
  131. # for /sbin/service
  132. Requires(preun): chkconfig, initscripts
  133. Requires(postun): initscripts
  134. %endif
  135. %if "%{_dist_release}" > "vl6"
  136. Requires(pre): www-common
  137. %endif
  138. Provides: webserver
  139. %description
  140. Nginx [engine x] is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3
  141. proxy server written by Igor Sysoev.
  142. %description -l ja
  143. Nginx [engine x/エンジンX] は Igor Sysoev により開発された以下の機能をもつ
  144. 堅牢・軽量・高性能なHTTPサーバかつリバースプロキシサーバです。
  145. - HTTP(S) サーバ
  146. - HTTP(S) リバースプロキシサーバ
  147. - IMAP/POP3 プロキシサーバ
  148. %package passenger
  149. Summary: mod_passenger for Nginx
  150. Summary(ja): Nginx用Passenger
  151. Version: %{passenger_version}
  152. Group: servers
  153. BuildRequires: ruby, rubygem-rake
  154. Requires: ruby, rubygem-rake
  155. BuildRequires: ruby-devel, ruby-rubygems
  156. Requires: ruby-rubygems
  157. Requires: %{name} = %{nginx_version}-%{release}
  158. %description passenger
  159. Nginx [engine x] is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3
  160. This package contains nginx server with passenger support.
  161. %description -l ja passenger
  162. Nginx [engine x/エンジンX] は Igor Sysoev により開発された以下の機能をもつ
  163. 堅牢・軽量・高性能なHTTPサーバかつリバースプロキシサーバです。
  164. - HTTP(S) サーバ
  165. - HTTP(S) リバースプロキシサーバ
  166. - IMAP/POP3 プロキシサーバ
  167. このパッケージには Passenger サポートを含んだ nginxサーバが入っています。
  168. %if %{with geoip}
  169. %package geoip
  170. Summary: Nginx HTTP geoip module
  171. Group: servers
  172. BuildRequires: GeoIP-devel
  173. Requires: %{name} = %{nginx_version}-%{release}
  174. Requires: GeoIP
  175. %description geoip
  176. %{summary}.
  177. %endif
  178. %package image-filter
  179. Summary: Nginx HTTP image filter module
  180. Group: servers
  181. BuildRequires: gd-devel
  182. Requires: %{name} = %{nginx_version}-%{release}
  183. Requires: gd
  184. %description image-filter
  185. %{summary}.
  186. %package perl
  187. Summary: Nginx HTTP perl module
  188. Group: servers
  189. BuildRequires: perl
  190. BuildRequires: perl(ExtUtils::Embed)
  191. Requires: %{name} = %{nginx_version}-%{release}
  192. Requires: perl >= 2:5.34.0
  193. %description perl
  194. %{summary}.
  195. %package xslt-filter
  196. Summary: Nginx XSLT module
  197. Group: servers
  198. BuildRequires: libxslt-devel
  199. Requires: %{name} = %{nginx_version}-%{release}
  200. %description xslt-filter
  201. %{summary}.
  202. %package mail
  203. Summary: Nginx mail modules
  204. Group: servers
  205. Requires: %{name} = %{nginx_version}-%{release}
  206. %description mail
  207. %{summary}.
  208. %package stream
  209. Summary: Nginx stream modules
  210. Group: servers
  211. Requires: %{name} = %{nginx_version}-%{release}
  212. %description stream
  213. %{summary}.
  214. %package dav-ext
  215. Summary: Nginx dav-ext modules
  216. Version: %{nginx_dav_ext_module_version}
  217. Group: servers
  218. Requires: %{name} = %{nginx_version}-%{release}
  219. %description dav-ext
  220. %{summary}.
  221. %if %{with geoip2}
  222. %package http-geoip2
  223. Summary: Nginx HTTP geoip2 modules
  224. Version: %{geoip2_version}
  225. Group: servers
  226. BuildRequires: libmaxminddb-devel
  227. Requires: %{name} = %{nginx_version}-%{release}
  228. %description http-geoip2
  229. %{summary}.
  230. %package stream-geoip2
  231. Summary: Nginx stream geoip2 modules
  232. Version: %{geoip2_version}
  233. Group: servers
  234. BuildRequires: libmaxminddb-devel
  235. Requires: %{name} = %{nginx_version}-%{release}
  236. Requires: %{name}-stream = %{nginx_version}-%{release}
  237. %description stream-geoip2
  238. %{summary}.
  239. %endif
  240. %if %{with naxsi}
  241. %package naxsi
  242. Summary: an open-source, high performance, low rules maintenance WAF for NGINX
  243. Summary(ja): NGiNXのためのOSS・高パフォーマンス・低メンテナンスコストなWAF
  244. Version: %{naxsi_version}
  245. Group: servers
  246. License: GPL3
  247. Requires: %{name} = %{nginx_version}-%{release}
  248. %description naxsi
  249. NAXSI means Nginx Anti XSS & SQL Injection.
  250. Technically, it is a third party nginx module, available as a package for
  251. many UNIX-like platforms. This module, by default, reads a small subset of
  252. simple (and readable) rules containing 99% of known patterns involved in
  253. website vulnerabilities. For example, <, | or drop are not supposed to be
  254. part of a URI.
  255. Being very simple, those patterns may match legitimate queries, it is
  256. the Naxsi's administrator duty to add specific rules that will whitelist
  257. legitimate behaviours. The administrator can either add whitelists manually
  258. by analyzing nginx's error log, or (recommended) start the project with an intensive auto-learning phase that will automatically generate whitelisting
  259. rules regarding a website's behaviour.
  260. In short, Naxsi behaves like a DROP-by-default firewall, the only task is
  261. to add required ACCEPT rules for the target website to work properly.
  262. %endif
  263. %if %{with modsecurity}
  264. %package modsecurity
  265. Summary: The ModSecurity-nginx connector
  266. Summary(ja): ModSecurity Nginxコネクター
  267. Version: %{modsecurity_version}
  268. Group: servers
  269. License: ASL 2.0
  270. BuildRequires: libmodsecurity-devel
  271. Requires: %{name} = %{nginx_version}-%{release}
  272. %description modsecurity
  273. The ModSecurity-nginx connector is the connection point between
  274. nginx and libmodsecurity (ModSecurity v3). Said another way, this
  275. project provides a communication channel between nginx and libmodsecurity.
  276. This connector is required to use LibModSecurity with nginx.
  277. %endif
  278. %if %{with brotli}
  279. %package brotli
  280. Summary: brotli compression module for Nginx
  281. Summary(ja): Nginx用brotli圧縮モジュール
  282. Version: %{brotli_version}
  283. Group: servers
  284. License: BSD
  285. BuildRequires: brotli-devel
  286. Requires: %{name} = %{nginx_version}-%{release}
  287. %description brotli
  288. ngx_brotli is a set of two nginx modules:
  289. - ngx_brotli filter module - used to compress responses on-the-fly,
  290. - ngx_brotli static module - used to serve pre-compressed files.
  291. %endif
  292. %if %{with ipset}
  293. %package ipset
  294. Summary: ipset module for Nginx
  295. Summary(ja): Nginx用ipsetモジュール
  296. Version: %{ipset_version}
  297. Group: servers
  298. License: BSD
  299. BuildRequires: ipset-devel
  300. Requires: %{name} = %{nginx_version}-%{release}
  301. %description ipset
  302. A high‑performance NGINX module that lets you whitelist or blacklist client
  303. IP addresses using the Linux ipset kernel facility.
  304. All look‑ups are made in userspace via libipset and cached per worker thread
  305. to minimise overhead.
  306. %endif
  307. %debug_package
  308. %if %{with systemd}
  309. %define rundir /run
  310. %else
  311. %define rundir %{_localstatedir}/run
  312. %endif
  313. %prep
  314. %setup -q -a 1000 -a 1010 -a 1020 -a 1030 %{?with_wsgi:-a 2000} -a 2010 %{?with_naxsi:-a 2020} %{?with_geoip2:-a 2030} %{?with_modsecurity:-a 2040} %{?with_brotli:-a 2050} %{?with_ipset:-a 2060}
  315. %patch0 -p1
  316. %patch1 -p1
  317. # pushd passenger-%{passenger_version}/ext/
  318. # %patch100 -p2
  319. # popd
  320. pushd gnosek-nginx-upstream-fair-%{upstream_fair_version}
  321. %patch101 -p1
  322. popd
  323. pushd passenger-%{passenger_version}
  324. #patch1000 -p1
  325. popd
  326. %if %{with modsecurity}
  327. rm -rf modsecurity-doc
  328. mkdir -p modsecurity-doc
  329. pushd ModSecurity-nginx-v%{modsecurity_version}
  330. #pushd ModSecurity-nginx-%{modsecurity_hash}
  331. cp LICENSE README.md ../modsecurity-doc/
  332. popd
  333. %endif
  334. %if %{with geoip2}
  335. pushd ngx_http_geoip2_module-%{geoip2_version}
  336. %patch2030 -p1
  337. popd
  338. %endif
  339. %build
  340. %set_build_flags
  341. # nginx does not utilize a standard configure script. It has its own
  342. # and the standard configure options cause the nginx configure script
  343. # to error out. This is is also the reason for the DESTDIR environment
  344. # variable. The configure script(s) have been patched (Patch1 and
  345. # Patch2) in order to support installing into a build environment.
  346. export DESTDIR=%{buildroot}
  347. CONFIGOPTS="\
  348. --user=%{nginx_user} \
  349. --group=%{nginx_group} \
  350. --prefix=%{nginx_datadir} \
  351. --sbin-path=%{_sbindir}/%{name} \
  352. --modules-path=%{nginx_modulesdir} \
  353. --conf-path=%{nginx_confdir}/%{name}.conf \
  354. --error-log-path=%{nginx_logdir}/error.log \
  355. --http-log-path=%{nginx_logdir}/access.log \
  356. --http-client-body-temp-path=%{nginx_home_tmp}/client_body \
  357. --http-proxy-temp-path=%{nginx_home_tmp}/proxy \
  358. --http-fastcgi-temp-path=%{nginx_home_tmp}/fastcgi \
  359. --pid-path=%{rundir}/%{name}.pid \
  360. --lock-path=%{_localstatedir}/lock/subsys/%{name} \
  361. --with-file-aio \
  362. --with-ipv6 \
  363. --with-http_ssl_module \
  364. --with-http_v2_module \
  365. --with-http_realip_module \
  366. --with-http_addition_module \
  367. --with-http_xslt_module=dynamic \
  368. --with-http_image_filter_module=dynamic \
  369. %if %{with geoip}
  370. --with-http_geoip_module=dynamic \
  371. %endif
  372. --with-http_sub_module \
  373. --with-http_dav_module \
  374. --with-http_flv_module \
  375. --with-http_mp4_module \
  376. --with-http_gunzip_module \
  377. --with-http_gzip_static_module \
  378. --with-http_auth_request_module \
  379. --with-http_random_index_module \
  380. --with-http_secure_link_module \
  381. --with-http_degradation_module \
  382. --with-http_stub_status_module \
  383. --with-http_perl_module=dynamic \
  384. --with-mail=dynamic \
  385. --with-mail_ssl_module \
  386. --with-stream=dynamic \
  387. --with-stream_ssl_preread_module \
  388. --add-module=ngx-fancyindex-%{ngx_fancyindex_version} \
  389. --add-module=giom-nginx_accept_language_module-%{nginx_accept_language_module_version} \
  390. --add-module=gnosek-nginx-upstream-fair-%{upstream_fair_version} \
  391. %if %{with wsgi}
  392. --add-module=lifeeth-mod_wsgi-%{mod_wsgi_version} \
  393. %endif
  394. --add-dynamic-module=nginx-dav-ext-module-%{nginx_dav_ext_module_version} \
  395. %if %{with naxsi}
  396. --add-dynamic-module=naxsi-%{naxsi_srcversion}/naxsi_src \
  397. %endif
  398. %if %{with geoip2}
  399. --add-dynamic-module=ngx_http_geoip2_module-%{geoip2_version} \
  400. %endif
  401. %if %{with modsecurity}
  402. --add-dynamic-module=ModSecurity-nginx-v%{modsecurity_version} \
  403. %endif
  404. %if %{with brotli}
  405. --with-compat \
  406. --add-dynamic-module=ngx_brotli-%{brotli_commit} \
  407. %endif
  408. %if %{with ipset}
  409. --add-dynamic-module=nginx_ipset_access_module-%{ipset_version} \
  410. %endif
  411. --add-dynamic-module=passenger-%{passenger_version}/src/nginx_module \
  412. %ifarch i686
  413. --with-cpu-opt=pentiumpro \
  414. --with-zlib-asm=pentiumpro \
  415. --with-md5-asm \
  416. --with-sha1-asm \
  417. %endif
  418. "
  419. ./configure \
  420. $CONFIGOPTS \
  421. --with-cc-opt="%{optflags}"
  422. %make_build
  423. %install
  424. rm -rf %{buildroot}
  425. %make_install INSTALLDIRS=vendor
  426. find %{buildroot} -type f -name .packlist -exec rm -f {} \;
  427. find %{buildroot} -type f -name perllocal.pod -exec rm -f {} \;
  428. find %{buildroot} -type f -empty -exec rm -f {} \;
  429. find %{buildroot} -type f -exec chmod 0644 {} \;
  430. find %{buildroot} -type f -name '*.so' -exec chmod 0755 {} \;
  431. chmod 0755 %{buildroot}%{_sbindir}/nginx
  432. %if %{with systemd}
  433. install -p -d -m 0755 %{buildroot}%{_unitdir}
  434. install -p -D -m 0644 %{SOURCE21} \
  435. %{buildroot}%{_unitdir}/nginx.service
  436. install -p -D -m 0755 %{SOURCE22} %{buildroot}%{_bindir}/nginx-upgrade
  437. install -p -D -m 0644 %{SOURCE23} %{buildroot}%{_mandir}/man8/nginx-upgrade.8
  438. %else
  439. %{__install} -p -D -m 0755 %{SOURCE1} %{buildroot}%{_initrddir}/%{name}
  440. %endif
  441. %{__install} -p -D -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
  442. sed -i -e 's|@rundir@|%{rundir}|g' %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
  443. %{__install} -p -D -m 0644 %{SOURCE5} %{buildroot}%{_sysconfdir}/sysconfig/%{name}
  444. %{__install} -p -d -m 0755 %{buildroot}%{nginx_confdir}/conf.d
  445. %{__install} -p -d -m 0755 %{buildroot}%{nginx_confdir}/sites.d
  446. %{__install} -p -m 0644 %{SOURCE3} %{buildroot}%{nginx_confdir}/sites.d/virtual.conf.template
  447. %{__install} -p -m 0644 %{SOURCE4} %{buildroot}%{nginx_confdir}/conf.d/ssl.conf
  448. %{__sed} \
  449. -e 's/__NGINXUSER__/%{nginx_user}/g' \
  450. %if %{with systemd}
  451. -e 's|/var/run/nginx.pid|/run/nginx.pid|g' \
  452. %endif
  453. %{SOURCE10} > %{buildroot}%{nginx_confdir}/nginx.conf
  454. %{__cp} %{buildroot}%{nginx_confdir}/nginx.conf %{buildroot}%{nginx_confdir}/nginx.conf.default
  455. %{__install} -p -m 0644 %{SOURCE11} %{buildroot}%{nginx_confdir}/sites.d/default
  456. %{__install} -p -m 0644 %{SOURCE20} %{buildroot}%{nginx_confdir}/conf.d/proxy_cache.conf
  457. %{__install} -p -d -m 0755 %{buildroot}%{nginx_home_cache}
  458. %{__install} -p -d -m 0755 %{buildroot}%{nginx_home_tmp}
  459. %{__install} -p -d -m 0755 %{buildroot}%{nginx_logdir}
  460. %{__install} -p -d -m 0755 %{buildroot}%{nginx_webroot}
  461. %{__install} -p -m 0644 %{SOURCE100} %{buildroot}%{nginx_webroot}/index.html
  462. %{__install} -p -m 0644 %{SOURCE101} %{buildroot}%{nginx_webroot}/poweredby.png
  463. %{__install} -p -m 0644 %{SOURCE102} %{buildroot}%{nginx_webroot}/nginx-logo.png
  464. %{__install} -p -m 0644 %{SOURCE103} %{buildroot}%{nginx_webroot}/50x.html
  465. %{__install} -p -m 0644 %{SOURCE104} %{buildroot}%{nginx_webroot}/404.html
  466. %{__install} -p -d -m 0755 %{buildroot}%{nginx_modulesdir}
  467. %{__install} -p -d -m 0755 %{buildroot}%{nginx_modconfdir}
  468. %if %{with wsgi}
  469. %{__install} -p -m 0644 \
  470. lifeeth-mod_wsgi-%{mod_wsgi_version}/conf/wsgi_vars \
  471. %{buildroot}%{nginx_confdir}
  472. cp -f lifeeth-mod_wsgi-%{mod_wsgi_version}/README README.mod_wsgi
  473. %endif
  474. # upstream fair module document
  475. cp -f gnosek-nginx-upstream-fair-%{upstream_fair_version}/README README.upstream_fair
  476. # document for nginx-dav-ext-module
  477. cp -f nginx-dav-ext-module-%{nginx_dav_ext_module_version}/LICENSE LICENSE.dav-ext-module
  478. cp -f nginx-dav-ext-module-%{nginx_dav_ext_module_version}/README.rst README.dav-ext-module.rst
  479. # configuration for dynamic modules
  480. %if %{with geoip}
  481. echo 'load_module "%{nginx_modulesdir}/ngx_http_geoip_module.so";' \
  482. > %{buildroot}%{nginx_modconfdir}/geoip.conf
  483. %endif
  484. echo 'load_module "%{nginx_modulesdir}/ngx_http_image_filter_module.so";' \
  485. > %{buildroot}%{nginx_modconfdir}/image-filter.conf
  486. echo 'load_module "%{nginx_modulesdir}/ngx_http_perl_module.so";' \
  487. > %{buildroot}%{nginx_modconfdir}/perl.conf
  488. echo 'load_module "%{nginx_modulesdir}/ngx_http_xslt_filter_module.so";' \
  489. > %{buildroot}%{nginx_modconfdir}/xslt-filter.conf
  490. echo 'load_module "%{nginx_modulesdir}/ngx_mail_module.so";' \
  491. > %{buildroot}%{nginx_modconfdir}/mail.conf
  492. echo 'load_module "%{nginx_modulesdir}/ngx_stream_module.so";' \
  493. > %{buildroot}%{nginx_modconfdir}/stream.conf
  494. echo 'load_module "%{nginx_modulesdir}/ngx_http_dav_ext_module.so";' \
  495. > %{buildroot}%{nginx_modconfdir}/dav-ext.conf
  496. echo 'load_module "%{nginx_modulesdir}/ngx_http_passenger_module.so";' \
  497. > %{buildroot}%{nginx_modconfdir}/passenger.conf
  498. %if %{with geoip2}
  499. # geoip2 module
  500. cp -f ngx_http_geoip2_module-%{geoip2_version}/LICENSE LICENSE.geoip2
  501. cp -f ngx_http_geoip2_module-%{geoip2_version}/README.md README.geoip2.md
  502. echo 'load_module "%{nginx_modulesdir}/ngx_http_geoip2_module.so";' \
  503. > %{buildroot}%{nginx_modconfdir}/http-geoip2.conf
  504. echo 'load_module "%{nginx_modulesdir}/ngx_stream_geoip2_module.so";' \
  505. > %{buildroot}%{nginx_modconfdir}/stream-geoip2.conf
  506. %endif
  507. %if %{with naxsi}
  508. # NAXSI module
  509. cp -f naxsi-%{naxsi_srcversion}/LICENSE LICENSE.naxsi
  510. cp -f naxsi-%{naxsi_srcversion}/README.md README.naxsi.md
  511. install -p -m0644 naxsi-%{naxsi_srcversion}/naxsi_config/naxsi_core.rules \
  512. %{buildroot}%{nginx_confdir}/
  513. install -p -m0644 %{SOURCE2021} %{buildroot}%{nginx_confdir}/naxsi_params
  514. echo 'load_module "%{nginx_modulesdir}/ngx_http_naxsi_module.so";' \
  515. > %{buildroot}%{nginx_modconfdir}/naxsi.conf
  516. %endif
  517. %if %{with modsecurity}
  518. # modsecurity module
  519. echo 'load_module "%{nginx_modulesdir}/ngx_http_modsecurity_module.so";' \
  520. > %{buildroot}%{nginx_modconfdir}/modsecurity.conf
  521. %endif
  522. %if %{with brotli}
  523. # brotli module
  524. cat <<EOF > %{buildroot}%{nginx_modconfdir}/brotli.conf
  525. load_module %{nginx_modulesdir}/ngx_http_brotli_filter_module.so;
  526. load_module %{nginx_modulesdir}/ngx_http_brotli_static_module.so;
  527. EOF
  528. %endif
  529. %if %{with ipset}
  530. # ipset module
  531. cat <<EOF > %{buildroot}%{nginx_modconfdir}/ipset.conf
  532. load_module %{nginx_modulesdir}/ngx_http_ipset_access.so;
  533. EOF
  534. %endif
  535. touch %{buildroot}%{nginx_confdir}/conf.d/virtual.conf
  536. # convert to UTF-8 all files that give warnings.
  537. for textfile in CHANGES
  538. do
  539. mv $textfile $textfile.old
  540. iconv --from-code ISO8859-1 --to-code UTF-8 --output $textfile $textfile.old
  541. rm -f $textfile.old
  542. done
  543. %pre
  544. if [ -L %{_sbindir}/nginx ]; then
  545. update-alternatives --remove nginx %{_sbindir}/nginx.normal ||:
  546. update-alternatives --remove nginx %{_sbindir}/nginx.passenger ||:
  547. rm -f %{_sbindir}/nginx
  548. fi
  549. %post
  550. %if %{with systemd}
  551. %systemd_post nginx.service
  552. %else
  553. if [ $1 == 1 ]; then
  554. /sbin/chkconfig --add %{name}
  555. fi
  556. %endif
  557. %preun
  558. %if %{with systemd}
  559. %systemd_preun nginx.service
  560. %else
  561. if [ $1 = 0 -o -x /bin/systemctl ]; then
  562. /sbin/service %{name} stop >/dev/null 2>&1
  563. /sbin/chkconfig --del %{name}
  564. fi
  565. %endif
  566. %postun
  567. %if %{with systemd}
  568. %systemd_postun nginx.service
  569. if [ $1 -ge 1 ]; then
  570. /usr/bin/nginx-upgrade >/dev/null 2>&1 || :
  571. fi
  572. %else
  573. if [ $1 == 2 ]; then
  574. /sbin/service %{name} upgrade || :
  575. fi
  576. %endif
  577. %if %{with systemd}
  578. %if %{with geoip}
  579. %post geoip
  580. if [ $1 -eq 1 ]; then
  581. systemctl reload nginx.service >/dev/null 2>&1 || :
  582. fi
  583. %endif
  584. %post image-filter
  585. if [ $1 -eq 1 ]; then
  586. systemctl reload nginx.service >/dev/null 2>&1 || :
  587. fi
  588. %post perl
  589. if [ $1 -eq 1 ]; then
  590. systemctl reload nginx.service >/dev/null 2>&1 || :
  591. fi
  592. %post xslt-filter
  593. if [ $1 -eq 1 ]; then
  594. systemctl reload nginx.service >/dev/null 2>&1 || :
  595. fi
  596. %post mail
  597. if [ $1 -eq 1 ]; then
  598. systemctl reload nginx.service >/dev/null 2>&1 || :
  599. fi
  600. %post stream
  601. if [ $1 -eq 1 ]; then
  602. systemctl reload nginx.service >/dev/null 2>&1 || :
  603. fi
  604. %post dav-ext
  605. if [ $1 -eq 1 ]; then
  606. systemctl reload nginx.service >/dev/null 2>&1 || :
  607. fi
  608. %post http-geoip2
  609. if [ $1 -eq 1 ]; then
  610. systemctl reload nginx.service >/dev/null 2>&1 || :
  611. fi
  612. %post stream-geoip2
  613. if [ $1 -eq 1 ]; then
  614. systemctl reload nginx.service >/dev/null 2>&1 || :
  615. fi
  616. %if %{with naxsi}
  617. %post naxsi
  618. if [ $1 -eq 1 ]; then
  619. systemctl reload nginx.service >/dev/null 2>&1 || :
  620. fi
  621. %endif
  622. %if %{with modsecurity}
  623. %post modsecurity
  624. if [ $1 -eq 1 ]; then
  625. systemctl reload nginx.service >/dev/null 2>&1 || :
  626. fi
  627. %endif
  628. %if %{with brotli}
  629. %post brotli
  630. if [ $1 -eq 1 ]; then
  631. systemctl reload nginx.service >/dev/null 2>&1 || :
  632. fi
  633. %endif
  634. %if %{with ipset}
  635. %post ipset
  636. if [ $1 -eq 1 ]; then
  637. systemctl reload nginx.service >/dev/null 2>&1 || :
  638. fi
  639. %endif
  640. %endif
  641. %files
  642. %license LICENSE
  643. %doc CHANGES README
  644. %doc README.upstream_fair
  645. %doc %{?with_wsgi:README.mod_wsgi}
  646. %{nginx_datadir}/
  647. %{_sbindir}/%{name}
  648. %{_mandir}/man3/%{name}.3pm.gz
  649. %if %{with systemd}
  650. %{_bindir}/nginx-upgrade
  651. %{_mandir}/man8/nginx-upgrade.8*
  652. %{_unitdir}/nginx.service
  653. %else
  654. %{_initrddir}/%{name}
  655. %endif
  656. %dir %{nginx_modulesdir}
  657. %dir %{nginx_modconfdir}
  658. %dir %{nginx_confdir}
  659. %dir %{nginx_confdir}/conf.d
  660. %config(noreplace) %{nginx_confdir}/conf.d/*.conf
  661. %ghost %config(noreplace) %{nginx_confdir}/conf.d/virtual.conf
  662. %config(noreplace) %{nginx_confdir}/sites.d/*
  663. %config(noreplace) %{nginx_confdir}/win-utf
  664. %config(noreplace) %{nginx_confdir}/%{name}.conf.default
  665. %config(noreplace) %{nginx_confdir}/mime.types.default
  666. %config(noreplace) %{nginx_confdir}/fastcgi_params
  667. %config(noreplace) %{nginx_confdir}/fastcgi_params.default
  668. %config(noreplace) %{nginx_confdir}/koi-win
  669. %config(noreplace) %{nginx_confdir}/koi-utf
  670. %config(noreplace) %{nginx_confdir}/%{name}.conf
  671. %config(noreplace) %{nginx_confdir}/mime.types
  672. %config(noreplace) %{nginx_confdir}/fastcgi.conf
  673. %config(noreplace) %{nginx_confdir}/fastcgi.conf.default
  674. %config(noreplace) %{nginx_confdir}/scgi_params
  675. %config(noreplace) %{nginx_confdir}/scgi_params.default
  676. %config(noreplace) %{nginx_confdir}/uwsgi_params
  677. %config(noreplace) %{nginx_confdir}/uwsgi_params.default
  678. %if %{with wsgi}
  679. %config(noreplace) %{nginx_confdir}/wsgi_vars
  680. %endif
  681. %config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
  682. %config(noreplace) %{_sysconfdir}/sysconfig/%{name}
  683. %attr(-,%{nginx_user},%{nginx_group}) %dir %{nginx_home}
  684. %attr(-,%{nginx_user},%{nginx_group}) %dir %{nginx_home_tmp}
  685. %attr(-,%{nginx_user},%{nginx_group}) %dir %{nginx_home_cache}
  686. %attr(-,%{nginx_user},%{nginx_group}) %dir %{nginx_logdir}
  687. %files passenger
  688. %doc passenger-%{passenger_version}/doc/*.md
  689. %doc passenger-%{passenger_version}/doc/templates
  690. %doc passenger-%{passenger_version}/doc/images
  691. %config(noreplace) %{nginx_modconfdir}/passenger.conf
  692. %{nginx_modulesdir}/ngx_http_passenger_module.so
  693. %if %{with geoip}
  694. %files geoip
  695. %config(noreplace) %{nginx_modconfdir}/geoip.conf
  696. %{nginx_modulesdir}/ngx_http_geoip_module.so
  697. %endif
  698. %files image-filter
  699. %config(noreplace) %{nginx_modconfdir}/image-filter.conf
  700. %{nginx_modulesdir}/ngx_http_image_filter_module.so
  701. %files perl
  702. %config(noreplace) %{nginx_modconfdir}/perl.conf
  703. %{nginx_modulesdir}/ngx_http_perl_module.so
  704. %dir %{perl_vendorarch}/auto/%{name}
  705. %{perl_vendorarch}/%{name}.pm
  706. %{perl_vendorarch}/auto/%{name}/%{name}.so
  707. %files xslt-filter
  708. %config(noreplace) %{nginx_modconfdir}/xslt-filter.conf
  709. %{nginx_modulesdir}/ngx_http_xslt_filter_module.so
  710. %files mail
  711. %config(noreplace) %{nginx_modconfdir}/mail.conf
  712. %{nginx_modulesdir}/ngx_mail_module.so
  713. %files stream
  714. %config(noreplace) %{nginx_modconfdir}/stream.conf
  715. %{nginx_modulesdir}/ngx_stream_module.so
  716. %files dav-ext
  717. %license LICENSE.dav-ext-module
  718. %doc README.dav-ext-module.rst
  719. %config(noreplace) %{nginx_modconfdir}/dav-ext.conf
  720. %{nginx_modulesdir}/ngx_http_dav_ext_module.so
  721. %if %{with geoip2}
  722. %files http-geoip2
  723. %license LICENSE.geoip2
  724. %doc README.geoip2.md
  725. %{nginx_modulesdir}/ngx_http_geoip2_module.so
  726. %config(noreplace) %{nginx_modconfdir}/http-geoip2.conf
  727. %files stream-geoip2
  728. %license LICENSE.geoip2
  729. %doc README.geoip2.md
  730. %{nginx_modulesdir}/ngx_stream_geoip2_module.so
  731. %config(noreplace) %{nginx_modconfdir}/stream-geoip2.conf
  732. %endif
  733. %if %{with naxsi}
  734. %files naxsi
  735. %license LICENSE.naxsi
  736. %doc README.naxsi.md
  737. %{nginx_modulesdir}/ngx_http_naxsi_module.so
  738. %config(noreplace) %{nginx_modconfdir}/naxsi.conf
  739. %config(noreplace) %{nginx_confdir}/naxsi_params
  740. %config(noreplace) %{nginx_confdir}/naxsi_core.rules
  741. %endif
  742. %if %{with modsecurity}
  743. %files modsecurity
  744. %license modsecurity-doc/LICENSE
  745. %doc modsecurity-doc/README.md
  746. %{nginx_modulesdir}/ngx_http_modsecurity_module.so
  747. %config(noreplace) %{nginx_modconfdir}/modsecurity.conf
  748. %endif
  749. %if %{with brotli}
  750. %files brotli
  751. %config(noreplace) %{nginx_modconfdir}/brotli.conf
  752. %{nginx_modulesdir}/ngx_http_brotli_filter_module.so
  753. %{nginx_modulesdir}/ngx_http_brotli_static_module.so
  754. %endif
  755. %if %{with ipset}
  756. %files ipset
  757. %config(noreplace) %{nginx_modconfdir}/ipset.conf
  758. %{nginx_modulesdir}/ngx_http_ipset_access.so
  759. %endif
  760. %changelog
  761. * Mon Jun 9 2025 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.28.0-28
  762. - added ipset module.
  763. * Thu May 22 2025 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.28.0-27
  764. - updated modsecurity-nginx to 1.0.4.
  765. * Thu Apr 24 2025 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.28.0-26
  766. - updated to 1.28.0.
  767. * Thu Feb 6 2025 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.26.3-25
  768. - updated to 1.26.3.
  769. * Tue Dec 17 2024 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.26.2-24
  770. - fixed buffer size for zlib-ng.
  771. * Fri Aug 16 2024 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.26.2-23
  772. - updated to 1.26.2.
  773. * Mon Oct 16 2023 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.24.0-22
  774. - added Patch10000 to fix CVE-2023-44487.
  775. * Thu Aug 31 2023 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.24.0-21
  776. - added brotli module.
  777. * Thu Apr 27 2023 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.24.0-20
  778. - updated to 1.24.0.
  779. * Thu Oct 20 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.22.1-19
  780. - updated to 1.22.1.
  781. - updated passenger to 6.0.15.
  782. * Tue May 31 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.22.0-18
  783. - updated to 1.22.0.
  784. * Sat May 21 2022 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.20.2-17
  785. - updated modsecurity-nginx to 1.0.3.
  786. * Fri Nov 19 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.20.2-16
  787. - rebuilt with perl-5.34.0.
  788. * Wed Nov 17 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.20.2-15
  789. - updated to 1.20.2.
  790. - updated passenger to 6.0.12.
  791. - dropped Patch1000: fixed in upstream.
  792. * Fri Nov 12 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.20.1-14
  793. - fixed path to nginx.pid.
  794. - fixed systemd-unit.
  795. - dropped Patch1000.
  796. - imported Patch1000 from upstream.
  797. * Thu Oct 07 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.20.1-13
  798. - rebuilt with openssl-3.0.0.
  799. * Sun Jul 11 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.20.1-12
  800. - updated ModSecurity-nginx to 1.0.2.
  801. - dropped Patch2040.
  802. * Fri May 28 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.20.1-11
  803. - updated to 1.20.1.
  804. * Wed Apr 21 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.20.0-10
  805. - updated to 1.20.0.
  806. * Wed Feb 17 2021 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.18.0-9
  807. - updated Patch2040.
  808. * Wed Oct 14 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.18.0-8
  809. - added Patch2040 to fix several bugs.
  810. * Tue May 19 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.18.0-7
  811. - updated to 1.18.0.
  812. - disabled NAXSI as default.
  813. * Sun Apr 05 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.16.1-6
  814. - added systemd support (disabled as default).
  815. * Mon Mar 09 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.16.1-5
  816. - updated modsecurity module to 1.0.1.
  817. - dropped Patch2040 and 2041: fixed in upstream.
  818. * Wed Nov 13 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.16.1-4
  819. - added Patch2041.
  820. * Thu Oct 24 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.16.1-3
  821. - added Patch2040.
  822. * Wed Oct 23 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.16.1-2
  823. - added ModSecurity module.
  824. * Sat Aug 24 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.16.1-1
  825. - updated to 1.16.1.
  826. - made to install NAXSI as a dynamic module.
  827. * Wed Aug 07 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.16.0-3
  828. - added NAXSI module.
  829. * Sun May 19 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.16.0-2
  830. - rebuilt with perl-5.26.
  831. * Sun May 05 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.16.0-1
  832. - updated to 1.16.0.
  833. - updated passenger to 6.0.2.
  834. - updated nginx-dav-ext-module to 3.0.0.
  835. - dropped Patch1001: fixed in upstream.
  836. * Tue Nov 06 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.15.5-1
  837. - updated to 1.15.5.
  838. - updated passenger to 5.3.6.
  839. - updated ngx_fancyindex_version to 0.4.3.
  840. * Mon Mar 05 2018 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.13.9-1
  841. - updated to 1.13.9.
  842. - updated ngx-fancyindex to 0.4.2.
  843. - updated nginx-accept_language_module to git HEAD.
  844. - updated nginx-upstream-fair to git HEAD.
  845. - updated passenger to 5.2.1.
  846. - added Source2010 (nginx-dav-ext-module).
  847. - enabled --with-stream and --with-stream_ssl_preread_module.
  848. * Fri Sep 8 2017 Munehiro Yamamoto <munepi@vinelinux.org> 1.13.5-1
  849. - updated to 1.13.5
  850. - updated passenger to 5.1.8
  851. * Fri Aug 11 2017 Munehiro Yamamoto <munepi@vinelinux.org> 1.13.4-1
  852. - updated to 1.13.4
  853. - updated passenger to 5.1.7
  854. * Fri Jul 14 2017 Munehiro Yamamoto <munepi@vinelinux.org> 1.13.3-1
  855. - updated to 1.13.3
  856. * Sat Jul 1 2017 Munehiro Yamamoto <munepi@vinelinux.org> 1.13.2-1
  857. - updated to 1.13.2
  858. * Sun Jun 18 2017 Munehiro Yamamoto <munepi@vinelinux.org> 1.13.1-1
  859. - updated to 1.13.1
  860. - updated passenger to 5.1.5
  861. * Wed Apr 26 2017 Munehiro Yamamoto <munepi@vinelinux.org> 1.13.0-1
  862. - updated to 1.13.0
  863. * Wed Apr 5 2017 Munehiro Yamamoto <munepi@vinelinux.org> 1.11.13-1
  864. - updated to 1.11.13
  865. * Sat Mar 25 2017 Munehiro Yamamoto <munepi@vinelinux.org> 1.11.12-1
  866. - updated to 1.11.12
  867. * Tue Mar 7 2017 Munehiro Yamamoto <munepi@vinelinux.org> 1.11.10-1
  868. - updated to 1.11.10
  869. - updated passenger to 5.1.2
  870. * Tue Jan 31 2017 Munehiro Yamamoto <munepi@vinelinux.org> 1.11.9-1
  871. - updated to 1.11.9
  872. * Wed Dec 28 2016 Munehiro Yamamoto <munepi@vinelinux.org> 1.11.8-1
  873. - updated to 1.11.8
  874. * Sat Nov 19 2016 Munehiro Yamamoto <munepi@vinelinux.org> 1.11.6-1
  875. - updated to 1.11.6
  876. - applied gnosek-nginx-upstream-fair-pull-23.patch against nginx-1.11.6
  877. * Mon Sep 5 2016 Munehiro Yamamoto <munepi@vinelinux.org> 1.11.3-1
  878. - updated to 1.11.3
  879. - updated passenger to 5.0.30
  880. * Fri Sep 02 2016 Toshiaki Ara <ara_t@384.jp> 1.10.1-2
  881. - rebuild with gcc-5.4.0
  882. * Tue Jun 7 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.10.1-1
  883. - updated to 1.10.1.
  884. - updated passenger to 5.0.28.
  885. * Wed Apr 20 2016 Munehiro Yamamoto <munepi@vinelinux.org> 1.9.15-1
  886. - updated to 1.9.15
  887. * Thu Apr 7 2016 Munehiro Yamamoto <munepi@vinelinux.org> 1.9.14-1
  888. - updated to 1.9.14
  889. - updated passenger to 5.0.27
  890. * Wed Apr 6 2016 Munehiro Yamamoto <munepi@vinelinux.org> 1.9.13-1
  891. - new upstream release
  892. * Mon Mar 14 2016 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.9.12-1
  893. - updated to 1.9.12.
  894. - updated passenger to 5.0.26.
  895. * Wed Feb 17 2016 Munehiro Yamamoto <munepi@vinelinux.org> 1.9.11-1
  896. - new upstream release
  897. * Wed Feb 3 2016 Munehiro Yamamoto <munepi@vinelinux.org> 1.9.10-1
  898. - update to 1.9.10
  899. - update passenger to 5.0.24
  900. * Sun Jan 10 2016 Munehiro Yamamoto <munepi@vinelinux.org> 1.9.9-2
  901. - update passenger to 5.0.23
  902. * Sun Dec 20 2015 Munehiro Yamamoto <munepi@vinelinux.org> 1.9.9-1
  903. - new upstream release
  904. * Sat Dec 5 2015 Munehiro Yamamoto <munepi@vinelinux.org> 1.9.7-1
  905. - new upstream release
  906. * Sat Oct 10 2015 Munehiro Yamamoto <munepi@vinelinux.org> 1.9.5-1
  907. - new upstream release
  908. * Sun Aug 23 2015 Munehiro Yamamoto <munepi@vinelinux.org> 1.9.4-1
  909. - new upstream release
  910. * Thu Jul 16 2015 Munehiro Yamamoto <munepi@vinelinux.org> 1.9.3-1
  911. - update to 1.9.3
  912. - update passenger to 5.0.11
  913. * Thu Jun 25 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.9.2-2
  914. - updated Source4 (ssl.conf).
  915. * Wed Jun 17 2015 Munehiro Yamamoto <munepi@vinelinux.org> 1.9.2-1
  916. - update to 1.9.2
  917. - update passenger to 5.0.10
  918. - update ngx-fancyindex to 0.3.5
  919. * Thu Sep 25 2014 Daisuke SUZUKI <daisuke@vinelinux.org> 1.6.2-1
  920. - update to 1.6.2
  921. - update passenger to 4.0.52
  922. * Fri Aug 08 2014 Daisuke SUZUKI <daisuke@vinelinux.org> 1.6.1-1
  923. - new upstream release
  924. * Mon Jun 30 2014 Daisuke SUZUKI <daisuke@vinelinux.org> 1.6.0-3
  925. - rebuild with new environment
  926. * Mon Jun 23 2014 Daisuke SUZUKI <daisuke@vinelinux.org> 1.6.0-2
  927. - update passenger to 4.0.45
  928. * Fri Apr 25 2014 Daisuke SUZUKI <daisuke@linux.or.jp> 1.6.0-1
  929. - update to 1.6.0 (stable)
  930. * Thu Feb 20 2014 Daisuke SUZUKI <daisuke@linux.or.jp> 1.5.10-2
  931. - update fancyindex to 0.3.3
  932. * Wed Feb 12 2014 Daisuke SUZUKI <daisuke@linux.or.jp> 1.5.10-1
  933. - update to 1.5.10
  934. - update passenger to 4.0.37
  935. * Sat Jan 04 2014 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.5.6-2
  936. - rebuilt with GeoIP-1.6.0.
  937. - added Patch100.
  938. * Tue Oct 29 2013 Daisuke SUZUKI <daisuke@linux.or.jp> 1.5.6-1
  939. - update to 1.5.6
  940. - update passenger to 4.0.21
  941. * Wed Oct 02 2013 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.4.1-2
  942. - rebuilt with gd-2.1.0.
  943. * Wed May 08 2013 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4.1-1
  944. - update to 1.4.1
  945. * Mon Apr 29 2013 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4.0-1
  946. - update to 1.4.0
  947. - enable SPDY module
  948. * Wed Feb 13 2013 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.7-1
  949. - new upstream release
  950. - update passenger to 3.0.19
  951. - update ngx-fancyindex to upstream git master
  952. * Thu Nov 29 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.5-1
  953. - new upstream release
  954. - update passenger to 3.0.17
  955. * Wed Oct 24 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.4-3
  956. - rebuild with pcre-8.31
  957. * Tue Oct 09 2012 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.2.4-2
  958. - added http_geoip_module.
  959. * Tue Sep 25 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.4-1
  960. - update to 1.2.4
  961. * Thu Jul 19 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.2-1
  962. - update to 1.2.2
  963. * Thu Jun 28 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.1-1
  964. - update to 1.2.1
  965. - change nginx user from nginx to www-data
  966. - R(pre): www-common
  967. * Wed Apr 25 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 1.2.0-1
  968. - update to 1.2.0
  969. - update passenger to 3.0.12
  970. - drop http_upstream_keepalive
  971. * Mon Mar 19 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.14-1
  972. - new upstream release
  973. * Thu Feb 23 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.12-1
  974. - update to 1.0.12
  975. * Tue Jan 10 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.11-1
  976. - update to 1.0.11
  977. - update passenger to 3.0.11
  978. * Mon Nov 21 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.10-1
  979. - update to 1.0.10
  980. * Tue Sep 27 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.6-2
  981. - update passenger to 3.0.9
  982. * Tue Aug 30 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.6-1
  983. - update to 1.0.6
  984. * Thu Jun 09 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.4-1
  985. - update to 1.0.4
  986. * Wed May 18 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.2-3
  987. - add gnosek-nginx-upstream-fair module
  988. - add ngx_http_upstream_keepalive module
  989. * Wed May 11 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.2-2
  990. - add nginx-passenger sub pakckage
  991. - use alternatives to choose nginx with or without passenger
  992. - add BR: ruby, rubygems, rubygem-rake
  993. * Wed May 11 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.2-1
  994. - update to 1.0.2
  995. * Wed May 04 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.1-1
  996. - update to 1.0.1
  997. * Sun May 01 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.0-2
  998. - add bcond_with wsgi for mod_wsgi
  999. - add bcond_with passenger
  1000. - you need to install rake.gem to build with this option.
  1001. - add Provides: webserver
  1002. * Tue Apr 12 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 1.0.0-1
  1003. - new upstream release 1.0.0!
  1004. * Sun Mar 27 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 0.8.54-2
  1005. - rebuild with perl-5.12.3
  1006. * Mon Jan 17 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 0.8.54-1
  1007. - update to 0.8.54
  1008. * Sun Nov 28 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 0.8.53-1
  1009. - update to 0.8.53
  1010. - add nginx_accept_language_module
  1011. * Fri Sep 24 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 0.8.50-1
  1012. - update to 0.8.50
  1013. - update ngx-fancyindex to 0.3
  1014. - add BR: libxml2-devel, libxslt-devel
  1015. - add scgi_params* and uwsgi_params* to %%files
  1016. * Sat Apr 17 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 0.8.35-1
  1017. - update to 0.8.35 (development version)
  1018. - add sites.d/ to store vitualhost settings
  1019. - split out default server settings to sites.d/default
  1020. - add fancyindex module
  1021. * Fri Dec 04 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.7.63-1
  1022. - new upstream release
  1023. * Sun Sep 20 2009 Shu KONNO <owa@bg.wakwak.com> 0.7.62-1
  1024. - update to 0.7.62 (included security fix: VU#180065)
  1025. * Wed Aug 26 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.7.61-4
  1026. - fix typo
  1027. * Thu Aug 06 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.7.61-3
  1028. - add translated descriptions
  1029. * Sat Jul 25 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.7.61-2
  1030. - update 404.html/50x.html to use powered by vine logo.
  1031. * Wed Jul 15 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 0.7.61-1
  1032. - initial build for Vine Linux
  1033. - update to 0.7.61
  1034. * Sun May 17 2009 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.6.36-2
  1035. - init script updates from Gena Makhomed
  1036. - remove nginx-upstream-fair
  1037. * Sat Apr 11 2009 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.6.36-1
  1038. - update to 0.6.36
  1039. * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.35-3
  1040. - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
  1041. * Thu Feb 19 2009 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.6.35-2
  1042. - rebuild
  1043. * Thu Feb 19 2009 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.6.35-1
  1044. - update to 0.6.35
  1045. * Sat Jan 17 2009 Tomas Mraz <tmraz@redhat.com> - 0.6.34-2
  1046. - rebuild with new openssl
  1047. * Tue Dec 30 2008 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.6.34-1
  1048. - update to 0.6.34
  1049. * Thu Dec 4 2008 Michael Schwendt <mschwendt@fedoraproject.org> - 0.6.33-2
  1050. - Fix inclusion of /usr/share/nginx tree => no unowned directories.
  1051. * Sun Nov 23 2008 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.6.33-1
  1052. - update to 0.6.33
  1053. * Tue Jul 22 2008 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.6.32-1
  1054. - update to 0.6.32
  1055. - nginx now supports DESTDIR so removed the patches that enabled it
  1056. * Mon May 26 2008 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.6.31-3
  1057. - init script fixes
  1058. - resolve 'listen 80 default' [#447873]
  1059. * Mon May 12 2008 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.6.31-2
  1060. - update to 0.6.31
  1061. * Sun May 11 2008 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.6.30-2
  1062. - upate to new upstream stable branch 0.6
  1063. - added 3rd party module nginx-upstream-fair
  1064. - added default webpages
  1065. * Sun Apr 20 2008 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.5.35-2
  1066. - update init script to match recommended guidelines
  1067. - add /etc/nginx/conf.d support [#443280]
  1068. - use /etc/sysconfig/nginx to determine nginx.conf [#442708]
  1069. * Tue Mar 18 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.5.35-3
  1070. - add Requires for versioned perl (libperl.so)
  1071. - drop silly file Requires
  1072. * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.5.35-2
  1073. - Autorebuild for GCC 4.3
  1074. * Sat Jan 19 2008 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.5.35-1
  1075. - update to 0.5.35
  1076. * Sat Dec 15 2007 Jeremy Hinegardner <jeremy at hinegardner dot org> - 0.5.34-1
  1077. - update to 0.5.34
  1078. * Wed Dec 05 2007 Release Engineering <rel-eng at fedoraproject dot org> - 0.5.33-2
  1079. - Rebuild for deps
  1080. * Sun Nov 11 2007 Jeremy Hinegardner <jeremy@hinegardner.org> - 0.5.33-1
  1081. - update to 0.5.33
  1082. * Mon Sep 24 2007 Jeremy Hinegardner <jeremy@hinegardner.org> - 0.5.32-1
  1083. - updated to 0.5.32
  1084. - fixed rpmlint UTF-8 complaints.
  1085. * Sat Aug 18 2007 Jeremy Hinegardner <jeremy@hinegardner.org> - 0.5.31-2
  1086. - added --with-http_stub_status_module build option.
  1087. - added --with-http_sub_module build option.
  1088. - added use of pcre-config --cflags
  1089. * Fri Aug 17 2007 Jeremy Hinegardner <jeremy@hinegardner.org> - 0.5.31-1
  1090. - Update to 0.5.31
  1091. - specify license is BSD
  1092. * Sat Aug 11 2007 Jeremy Hinegardner <jeremy@hinegardner.org> - 0.5.30-2
  1093. - Add BuildRequires: perl-devel - fixing rawhide build
  1094. * Mon Jul 30 2007 Jeremy Hinegardner <jeremy@hinegardner.org> - 0.5.30-1
  1095. - Update to 0.5.30
  1096. * Tue Jul 24 2007 Jeremy Hinegardner <jeremy@hinegardner.org> - 0.5.29-1
  1097. - Update to 0.5.29
  1098. * Wed Jul 18 2007 Jeremy Hinegardner <jeremy@hinegardner.org> - 0.5.28-1
  1099. - Update to 0.5.28
  1100. * Mon Jul 09 2007 Jeremy Hinegardner <jeremy@hinegardner.org> - 0.5.27-1
  1101. - Update to 0.5.27
  1102. * Mon Jun 18 2007 Jeremy Hinegardner <jeremy@hinegardner.org> - 0.5.26-1
  1103. - Update to 0.5.26
  1104. * Sat Apr 28 2007 Jeremy Hinegardner <jeremy@hinegardner.org> - 0.5.19-1
  1105. - Update to 0.5.19
  1106. * Mon Apr 02 2007 Jeremy Hinegardner <jeremy@hinegardner.org> - 0.5.17-1
  1107. - Update to 0.5.17
  1108. * Mon Mar 26 2007 Jeremy Hinegardner <jeremy@hinegardner.org> - 0.5.16-1
  1109. - Update to 0.5.16
  1110. - add ownership of /usr/share/nginx/html (#233950)
  1111. * Fri Mar 23 2007 Jeremy Hinegardner <jeremy@hinegardner.org> - 0.5.15-3
  1112. - fixed package review bugs (#235222) given by ruben@rubenkerkhof.com
  1113. * Thu Mar 22 2007 Jeremy Hinegardner <jeremy@hinegardner.org> - 0.5.15-2
  1114. - fixed package review bugs (#233522) given by kevin@tummy.com
  1115. * Thu Mar 22 2007 Jeremy Hinegardner <jeremy@hinegardner.org> - 0.5.15-1
  1116. - create patches to assist with building for Fedora
  1117. - initial packaging for Fedora