nginx-vl.spec 42 KB

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