apache2-vl.spec 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850
  1. %define contentdir %{_datadir}/apache2
  2. %define docroot /var/www/apache2
  3. %define suexec_caller www-data
  4. %define mmn 20051115
  5. %define mmnisa %{mmn}%{__isa_name}%{__isa_bits}
  6. %define pkgname apache2
  7. %define vstring Vine
  8. Summary: Apache HTTP Server
  9. Name: %{pkgname}
  10. Version: 2.4.9
  11. Release: 1%{_dist_release}
  12. URL: http://httpd.apache.org/
  13. Vendor: Project Vine
  14. Distribution: Vine Linux
  15. Packager: daisuke
  16. Source0: http://www.apache.org/dist/httpd/httpd-%{version}.tar.bz2
  17. Source2: index.html
  18. Source3: apache2.logrotate
  19. Source4: apache2.init
  20. Source6: poweredby-vine.png
  21. Source7: apache2.tmpfiles
  22. Source10: httpd.conf
  23. Source11: 00-base.conf
  24. Source12: 00-mpm.conf
  25. Source13: 00-lua.conf
  26. Source14: 01-cgi.conf
  27. Source15: 00-dav.conf
  28. Source16: 00-proxy.conf
  29. Source17: 00-ssl.conf
  30. Source18: 01-ldap.conf
  31. Source19: 00-proxyhtml.conf
  32. Source20: userdir.conf
  33. Source21: ssl.conf
  34. Source22: welcome.conf
  35. Source23: manual.conf
  36. Source25: 01-session.conf
  37. # Documentation
  38. Source30: README.confd
  39. Source31: README.confmod
  40. # add vine entry to config.layout
  41. Source100: vine-config.layout
  42. # build/scripts patches
  43. Patch1: httpd-2.4.1-apctl.patch
  44. Patch2: httpd-2.4.1-apxs.patch
  45. Patch3: httpd-2.4.1-deplibs.patch
  46. # Features/functional changes
  47. Patch23: httpd-2.4.4-export.patch
  48. Patch24: httpd-2.4.1-corelimit.patch
  49. Patch26: httpd-2.4.4-r1337344+.patch
  50. Patch27: httpd-2.4.2-icons.patch
  51. Patch30: httpd-2.4.4-cachehardmax.patch
  52. Patch31: httpd-2.4.6-sslmultiproxy.patch
  53. Patch32: httpd-2.4.7-r1537535.patch
  54. Patch33: httpd-2.4.9-r1573626.patch
  55. # Bug fixes
  56. Patch55: httpd-2.4.4-malformed-host.patch
  57. Patch56: httpd-2.4.4-mod_unique_id.patch
  58. # Security fixes
  59. License: Apache Software License
  60. Group: System Environment/Daemons
  61. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  62. BuildRequires: db4-devel, expat-devel, xmlto
  63. BuildRequires: findutils, perl, openldap-devel, zlib-devel
  64. BuildRequires: apr-devel, apr-util-devel
  65. BuildRequires: pcre-devel, sqlite3-devel
  66. BuildRequires: lua-devel, libxml2-devel
  67. BuildRequires: www-common
  68. Requires: mailcap, gawk, file, findutils, apr, apr-util
  69. Requires(pre): www-common
  70. Requires(pre): chkconfig, mktemp, fileutils
  71. Requires(pre): sh-utils, textutils, shadow-utils
  72. Requires(post): alternatives
  73. Provides: webserver
  74. Provides: httpd = %{version}
  75. Provides: httpd-mmn = %{mmn}
  76. Obsoletes: apache2-apr, apache2-apr-devel
  77. Obsoletes: apache < 2.0, apache-devel < 2.0
  78. %description
  79. Apache is a powerful, full-featured, efficient, and freely-available
  80. Web server. Apache is also the most popular Web server on the
  81. Internet.
  82. %package devel
  83. Group: Development/Libraries
  84. Summary: Development tools for the Apache HTTP server.
  85. Requires: libtool, httpd = %{version}
  86. Requires: apr-devel, apr-util-devel
  87. %description devel
  88. The httpd-devel package contains the APXS binary and other files
  89. that you need to build Dynamic Shared Objects (DSOs) for Apache.
  90. If you are installing the Apache HTTP server and you want to be
  91. able to compile or develop additional modules for Apache, you need
  92. to install this package.
  93. %package manual
  94. Group: Applications/Documentation
  95. Summary: Documentation for the Apache HTTP server.
  96. %description manual
  97. The httpd-manual package contains the complete manual and
  98. reference guide for the Apache HTTP server. The information can
  99. also be found at http://httpd.apache.org/docs/.
  100. %package -n mod_ssl-apache2
  101. Group: System Environment/Daemons
  102. Summary: SSL/TLS module for the Apache HTTP server
  103. Epoch: 1
  104. BuildRequires: openssl-devel
  105. Requires(pre): openssl, dev, /bin/cat
  106. Requires: httpd, make, httpd-mmn = %{mmn}
  107. %description -n mod_ssl-apache2
  108. The mod_ssl module provides strong cryptography for the Apache Web
  109. server via the Secure Sockets Layer (SSL) and Transport Layer
  110. Security (TLS) protocols.
  111. %prep
  112. %setup -q -n httpd-%{version}
  113. %patch1 -p1 -b .apctl
  114. %patch2 -p1 -b .apxs
  115. %patch3 -p1 -b .deplibs
  116. %patch23 -p1 -b .export
  117. %patch24 -p1 -b .corelimit
  118. %patch26 -p1 -b .r1337344+
  119. %patch27 -p1 -b .icons
  120. %patch30 -p1 -b .cachehardmax
  121. %patch31 -p1 -b .sslmultiproxy
  122. %patch32 -p1 -b .r1537535
  123. %patch33 -p1 -b .r1573626
  124. %patch55 -p1 -b .malformedhost
  125. %patch56 -p1 -b .uniqueid
  126. # Patch in the vendor string
  127. sed -i '/^#define PLATFORM/s/Unix/%{vstring}/' os/unix/os.h
  128. # Prevent use of setcap in "install-suexec-caps" target.
  129. sed -i '/suexec/s,setcap ,echo Skipping setcap for ,' Makefile.in
  130. # add Vine configure's option to config.layout
  131. sed -e "s|${prefix}/lib|${prefix}/%{_lib}|" \
  132. < $RPM_SOURCE_DIR/vine-config.layout >> config.layout
  133. %build
  134. # remove bundled apr, apr-util, pcre
  135. rm -rf srclib/{apr,apr-util,pcre}
  136. # regenerate configure scripts
  137. autoheader && autoconf || exit 1
  138. CFLAGS="$RPM_OPT_FLAGS"
  139. SH_LDFLAGS="-Wl,-z,relro"
  140. export CFLAGS SH_LDFLAGS
  141. AP_CONFOPTS="\
  142. --prefix=%{_sysconfdir}/apache2 \
  143. --exec-prefix=%{_prefix} \
  144. --bindir=%{_bindir} \
  145. --sbindir=%{_sbindir} \
  146. --mandir=%{_mandir} \
  147. --libdir=%{_libdir} \
  148. --sysconfdir=%{_sysconfdir}/apache2/conf \
  149. --includedir=%{_includedir}/apache2 \
  150. --libexecdir=%{_libdir}/apache2/modules \
  151. --datadir=%{contentdir} \
  152. --with-installbuilddir=%{_libdir}/apache2/build \
  153. --enable-layout=Vine \
  154. --with-program-name=apache2 \
  155. --with-ldap \
  156. --enable-ldap --enable-authnz-ldap \
  157. --enable-mods-shared=all \
  158. --enable-cache=shared \
  159. --enable-cgi=shared \
  160. --enable-cgid=shared \
  161. --enable-rewrite=shared \
  162. --enable-disk-cache=shared \
  163. --enable-file-cache=shared \
  164. --enable-mem-cache=shared \
  165. --enable-authn-anon --enable-authn-alias \
  166. --with-apr=%{_prefix} --with-apr-util=%{_prefix} \
  167. --enable-suexec --with-suexec \
  168. --enable-suexec-capabilities \
  169. --with-suexec-caller=%{suexec_caller} \
  170. --with-suexec-docroot=%{docroot} \
  171. --with-suexec-logfile=%{_localstatedir}/log/apache2/suexec.log \
  172. --with-suexec-bin=%{_libdir}/%{pkgname}/suexec \
  173. --with-suexec-uidmin=500 --with-suexec-gidmin=500 \
  174. --with-pcre \
  175. --enable-pie \
  176. --enable-ssl --with-ssl \
  177. --enable-deflate \
  178. --enable-proxy --enable-proxy-connect \
  179. --enable-proxy-http --enable-proxy-ftp \
  180. --enable-case-filter --enable-case-filter-in \
  181. --enable-mpms-shared=all"
  182. ./configure ${AP_CONFOPTS}
  183. make %{?_smp_mflags}
  184. %install
  185. rm -rf $RPM_BUILD_ROOT
  186. make DESTDIR=$RPM_BUILD_ROOT install
  187. # create apache2ctl symlink
  188. ln -sf apachectl $RPM_BUILD_ROOT%{_sbindir}/apache2ctl
  189. # install conf file/directory
  190. mkdir $RPM_BUILD_ROOT%{_sysconfdir}/apache2/conf.d \
  191. $RPM_BUILD_ROOT%{_sysconfdir}/apache2/conf.modules.d \
  192. $RPM_BUILD_ROOT%{_sysconfdir}/apache2/sites.d
  193. install -m 644 $RPM_SOURCE_DIR/README.confd \
  194. $RPM_BUILD_ROOT%{_sysconfdir}/apache2/conf.d/README
  195. install -m 644 $RPM_SOURCE_DIR/README.confmod \
  196. $RPM_BUILD_ROOT%{_sysconfdir}/apache2/conf.modules.d/README
  197. for f in 00-base.conf 00-mpm.conf 00-lua.conf 01-cgi.conf 00-dav.conf \
  198. 00-proxy.conf 00-ssl.conf 01-ldap.conf 00-proxyhtml.conf \
  199. 01-ldap.conf 01-session.conf; do
  200. install -m 644 -p $RPM_SOURCE_DIR/$f \
  201. $RPM_BUILD_ROOT%{_sysconfdir}/apache2/conf.modules.d/$f
  202. done
  203. for f in welcome.conf ssl.conf manual.conf userdir.conf; do
  204. install -m 644 -p $RPM_SOURCE_DIR/$f \
  205. $RPM_BUILD_ROOT%{_sysconfdir}/apache2/conf.d/$f
  206. done
  207. # Split-out extra config shipped as default in conf.d:
  208. for f in autoindex; do
  209. mv docs/conf/extra/httpd-${f}.conf \
  210. $RPM_BUILD_ROOT%{_sysconfdir}/apache2/conf.d/${f}.conf
  211. done
  212. # Extra config trimmed:
  213. rm -v docs/conf/extra/httpd-{ssl,userdir}.conf
  214. rm $RPM_BUILD_ROOT%{_sysconfdir}/apache2/conf/*.conf
  215. install -m 644 -p $RPM_SOURCE_DIR/httpd.conf \
  216. $RPM_BUILD_ROOT%{_sysconfdir}/apache2/conf/httpd.conf
  217. ln -sf httpd.conf $RPM_BUILD_ROOT%{_sysconfdir}/apache2/conf/apache2.conf
  218. # tmpfiles.d configuration
  219. mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/tmpfiles.d
  220. install -m 644 -p $RPM_SOURCE_DIR/apache2.tmpfiles \
  221. $RPM_BUILD_ROOT%{_prefix}/lib/tmpfiles.d/apache2.conf
  222. # Other directories
  223. mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/lib/dav \
  224. $RPM_BUILD_ROOT/run/apache2/htcacheclean
  225. # Create cache directory
  226. mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/cache/apache2 \
  227. $RPM_BUILD_ROOT%{_localstatedir}/cache/apache2/proxy \
  228. $RPM_BUILD_ROOT%{_localstatedir}/cache/apache2/ssl
  229. # Make the MMN accessible to module packages
  230. echo %{mmnisa} > $RPM_BUILD_ROOT%{_includedir}/apache2/.mmn
  231. mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/rpm
  232. cat > $RPM_BUILD_ROOT%{_sysconfdir}/rpm/macros.apache2 <<EOF
  233. %%_httpd_mmn %{mmnisa}
  234. %%_httpd_apxs %%{_bindir}/apxs
  235. %%_httpd_modconfdir %%{_sysconfdir}/apache2/conf.modules.d
  236. %%_httpd_confdir %%{_sysconfdir}/apache2/conf.d
  237. %%_httpd_contentdir %{contentdir}
  238. %%_httpd_moddir %%{_libdir}/apache2/modules
  239. %%_apache2_mmn %{mmnisa}
  240. %%_apache2_apxs %%{_bindir}/apxs
  241. %%_apache2_modconfdir %%{_sysconfdir}/apache2/conf.modules.d
  242. %%_apache2_confdir %%{_sysconfdir}/apache2/conf.d
  243. %%_apache2_contentdir %{contentdir}
  244. %%_apache2_moddir %%{_libdir}/apache2/modules
  245. EOF
  246. # Handle contentdir
  247. mkdir $RPM_BUILD_ROOT%{contentdir}/noindex
  248. install -m 644 -p $RPM_SOURCE_DIR/index.html \
  249. $RPM_BUILD_ROOT%{contentdir}/noindex/index.html
  250. install -m 644 -p $RPM_SOURCE_DIR/poweredby-vine.png \
  251. $RPM_BUILD_ROOT%{contentdir}/icons/
  252. rm -rf %{contentdir}/htdocs
  253. # remove manual sources
  254. find $RPM_BUILD_ROOT%{contentdir}/manual \( \
  255. -name \*.xml -o -name \*.xml.* -o -name \*.ent -o -name \*.xsl -o -name \*.dtd \
  256. \) -print0 | xargs -0 rm -f
  257. # Strip the manual down just to English and replace the typemaps with flat files:
  258. set +x
  259. for f in `find $RPM_BUILD_ROOT%{contentdir}/manual -name \*.html -type f`; do
  260. if test -f ${f}.en; then
  261. cp ${f}.en ${f}
  262. rm ${f}.*
  263. fi
  264. done
  265. set -x
  266. # Clean Document Root
  267. rm -v $RPM_BUILD_ROOT%{docroot}/html/*.html
  268. rm -v $RPM_BUILD_ROOT/var/www/cgi-bin/*
  269. # symlinks for /etc/apache2
  270. ln -s ../..%{_localstatedir}/log/apache2 $RPM_BUILD_ROOT/etc/apache2/logs
  271. ln -s /run/apache2 $RPM_BUILD_ROOT/etc/apache2/run
  272. ln -s ../..%{_libdir}/apache2/modules $RPM_BUILD_ROOT/etc/apache2/modules
  273. # install SYSV init stuff
  274. mkdir -p $RPM_BUILD_ROOT/etc/rc.d/init.d
  275. install -m755 $RPM_SOURCE_DIR/apache2.init \
  276. $RPM_BUILD_ROOT/etc/rc.d/init.d/apache2
  277. %{__perl} -pi -e "s:\@docdir\@:%{_docdir}/%{name}-%{version}:g" \
  278. $RPM_BUILD_ROOT/etc/rc.d/init.d/apache2
  279. # Install logrotate config
  280. mkdir -p $RPM_BUILD_ROOT/etc/logrotate.d
  281. install -m 644 -p $RPM_SOURCE_DIR/apache2.logrotate \
  282. $RPM_BUILD_ROOT/etc/logrotate.d/apache2
  283. # fix man page paths
  284. sed -e "s|/usr/local/apache2/conf/httpd.conf|/etc/apache2/conf/httpd.conf|" \
  285. -e "s|/usr/local/apache2/conf/mime.types|/etc/mime.types|" \
  286. -e "s|/usr/local/apache2/conf/magic|/etc/apache2/conf/magic|" \
  287. -e "s|/usr/local/apache2/logs/error_log|/var/log/apache2/error_log|" \
  288. -e "s|/usr/local/apache2/logs/access_log|/var/log/apache2/access_log|" \
  289. -e "s|/usr/local/apache2/logs/httpd.pid|/run/apache2/apache2.pid|" \
  290. -e "s|/usr/local/apache2|/etc/httpd|" < docs/man/httpd.8 \
  291. > $RPM_BUILD_ROOT%{_mandir}/man8/httpd.8
  292. # Make ap_config_layout.h libdir-agnostic
  293. sed -i '/.*DEFAULT_..._LIBEXECDIR/d;/DEFAULT_..._INSTALLBUILDDIR/d' \
  294. $RPM_BUILD_ROOT%{_includedir}/apache2/ap_config_layout.h
  295. # Fix path to instdso in special.mk
  296. sed -i '/instdso/s,top_srcdir,top_builddir,' \
  297. $RPM_BUILD_ROOT%{_libdir}/apache2/build/special.mk
  298. # Remove unpackaged files
  299. rm -vf \
  300. $RPM_BUILD_ROOT%{_libdir}/*.exp \
  301. $RPM_BUILD_ROOT/etc/apache2/conf/mime.types \
  302. $RPM_BUILD_ROOT%{_libdir}/apache2/modules/*.exp \
  303. $RPM_BUILD_ROOT%{_libdir}/apache2/build/config.nice \
  304. $RPM_BUILD_ROOT%{_bindir}/{ap?-config,dbmmanage} \
  305. $RPM_BUILD_ROOT%{_sbindir}/{checkgid,envvars*} \
  306. $RPM_BUILD_ROOT%{contentdir}/htdocs/* \
  307. $RPM_BUILD_ROOT%{_mandir}/man1/dbmmanage.* \
  308. $RPM_BUILD_ROOT%{contentdir}/cgi-bin/*
  309. rm -rf $RPM_BUILD_ROOT/etc/apache2/conf/{original,extra}
  310. %triggerpostun -- apache < 2.0
  311. /sbin/chkconfig --add apache2
  312. %post
  313. /sbin/chkconfig --add apache2
  314. %preun
  315. if [ $1 = 0 ]; then
  316. /sbin/service apache2 stop > /dev/null 2>&1
  317. /sbin/chkconfig --del apache2
  318. fi
  319. %postun
  320. if [ "$1" -ge 1 ]; then
  321. /sbin/service apache2 condrestart
  322. fi
  323. /sbin/ldconfig
  324. %define sslcert %{_sysconfdir}/pki/tls/certs/localhost.crt
  325. %define sslkey %{_sysconfdir}/pki/tls/private/localhost.key
  326. %post -n mod_ssl-apache2
  327. umask 077
  328. if [ -f %{sslkey} -o -f %{sslcert} ]; then
  329. exit 0
  330. fi
  331. %{_bindir}/openssl genrsa \
  332. -rand /proc/apm:/proc/cpuinfo:/proc/dma:/proc/filesystems:/proc/interrupts:/proc/ioports:/proc/pci:/proc/rtc:/proc/uptime \
  333. 2048 > %{sslkey} 2> /dev/null ||:
  334. FQDN=`hostname` ||:
  335. if [ "x${FQDN}" = "x" ]; then
  336. FQDN=localhost.localdomain
  337. fi
  338. cat << EOF | %{_bindir}/openssl req -new -key %{sslkey} \
  339. -x509 -sha256 -days 3650 -set_serial $RANDOM -extensions v3_req \
  340. -out %{sslcert} 2>/dev/null ||:
  341. --
  342. SomeState
  343. SomeCity
  344. SomeOrganization
  345. SomeOrganizationalUnit
  346. ${FQDN}
  347. root@${FQDN}
  348. EOF
  349. %clean
  350. rm -rf $RPM_BUILD_ROOT
  351. %files
  352. %defattr(-,root,root)
  353. %doc ABOUT_APACHE README CHANGES LAYOUT LICENSE
  354. %doc migration.html migration.css
  355. %doc docs/conf/extra/*.conf
  356. %dir %{_sysconfdir}/apache2
  357. %{_sysconfdir}/apache2/modules
  358. %{_sysconfdir}/apache2/logs
  359. %{_sysconfdir}/apache2/run
  360. %dir %{_sysconfdir}/apache2/conf
  361. %config(noreplace) %{_sysconfdir}/apache2/conf/httpd.conf
  362. %config(noreplace) %{_sysconfdir}/apache2/conf/apache2.conf
  363. %config(noreplace) %{_sysconfdir}/apache2/conf/magic
  364. %config(noreplace) %{_sysconfdir}/logrotate.d/apache2
  365. %config %{_sysconfdir}/rc.d/init.d/apache2
  366. %dir %{_sysconfdir}/apache2/conf.d
  367. %{_sysconfdir}/apache2/conf.d/README
  368. %config(noreplace) %{_sysconfdir}/apache2/conf.d/*.conf
  369. %exclude %{_sysconfdir}/apache2/conf.d/ssl.conf
  370. %exclude %{_sysconfdir}/apache2/conf.d/manual.conf
  371. %dir %{_sysconfdir}/apache2/conf.modules.d
  372. %{_sysconfdir}/apache2/conf.modules.d/README
  373. %config(noreplace) %{_sysconfdir}/apache2/conf.modules.d/*.conf
  374. %exclude %{_sysconfdir}/apache2/conf.modules.d/00-ssl.conf
  375. %dir %{_sysconfdir}/apache2/sites.d
  376. %{_prefix}/lib/tmpfiles.d/apache2.conf
  377. %{_bindir}/ab
  378. %{_bindir}/ht*
  379. %{_bindir}/logresolve
  380. %{_sbindir}/ht*
  381. %{_sbindir}/apache2
  382. %{_sbindir}/apachectl
  383. %{_sbindir}/apache2ctl
  384. %{_sbindir}/rotatelogs
  385. %{_sbindir}/fcgistarter
  386. %attr(4510,root,%{suexec_caller}) %{_sbindir}/suexec
  387. %dir %{_libdir}/apache2
  388. %dir %{_libdir}/apache2/modules
  389. %{_libdir}/apache2/modules/mod_*.so
  390. %exclude %{_libdir}/apache2/modules/mod_ssl.so
  391. %dir %{contentdir}
  392. %dir %{contentdir}/icons
  393. %dir %{contentdir}/error
  394. %dir %{contentdir}/error/include
  395. %dir %{contentdir}/noindex
  396. %{contentdir}/icons/*
  397. %{contentdir}/error/README
  398. %{contentdir}/error/*.var
  399. %{contentdir}/error/include/*.html
  400. %{contentdir}/noindex/index.html
  401. %dir %{docroot}/html
  402. %dir /var/www/cgi-bin
  403. %attr(0710,root,www-data) %dir /run/apache2
  404. %attr(0700,www-data,www-data) %dir /run/apache2/htcacheclean
  405. %attr(0700,root,root) %dir %{_localstatedir}/log/apache2
  406. %attr(0700,www-data,www-data) %dir %{_localstatedir}/lib/dav
  407. %attr(0700,www-data,www-data) %dir %{_localstatedir}/cache/apache2
  408. %attr(0700,www-data,www-data) %dir %{_localstatedir}/cache/apache2/proxy
  409. %{_mandir}/man1/*
  410. %exclude %{_mandir}/man1/apxs*
  411. %{_mandir}/man8/*
  412. %files manual
  413. %defattr(-,root,root)
  414. %{contentdir}/manual
  415. %config(noreplace) %{_sysconfdir}/apache2/conf.d/manual.conf
  416. %files -n mod_ssl-apache2
  417. %defattr(-,root,root)
  418. %{_libdir}/apache2/modules/mod_ssl.so
  419. %config(noreplace) %{_sysconfdir}/apache2/conf.modules.d/00-ssl.conf
  420. %config(noreplace) %{_sysconfdir}/apache2/conf.d/ssl.conf
  421. %attr(0700,www-data,www-data) %dir %{_localstatedir}/cache/apache2/ssl
  422. %files devel
  423. %defattr(-,root,root)
  424. %{_includedir}/apache2
  425. %{_bindir}/apxs
  426. %{_mandir}/man1/apxs*
  427. %dir %{_libdir}/apache2/build
  428. %{_libdir}/apache2/build/*.mk
  429. %{_libdir}/apache2/build/*.sh
  430. %{_sysconfdir}/rpm/macros.apache2
  431. %changelog
  432. * Wed Jun 25 2014 Daisuke SUZUKI <daisuke@vinelinux.org> 2.4.9-1
  433. - update to 2.4.9
  434. - remove suffix '2' from {htdigest,htpasswd,rotatelogs}2
  435. - use /run instead of /var/run
  436. - remove /etc/apache2/conf/ssl* , use /etc/pki now.
  437. - move suexec from %%{_libdir}/apache2 to %%{_sbindir}
  438. - split all LoadModules to conf.modules.d/*.conf
  439. - split module configs to conf.d/*.conf
  440. - cleanup docroot, move apache specific files to %%{_datadir}/apache2
  441. - add BR: lua-devel, libxml2-devel
  442. - add /etc/apache2/sites.d for virtual host settings.
  443. * Wed Dec 25 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.2.25-2
  444. - merge VineSeed spec file
  445. * Wed Oct 24 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 2.2.23-2
  446. - rebuild with pcre-8.31
  447. * Wed Mar 21 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 2.2.23-1
  448. - update to 2.2.23
  449. - add R(pre): www-common, BR: www-common
  450. - move apache contents to %{contentdir}
  451. * Sat Sep 28 2013 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.2.25-1
  452. - new upstream release with security fix (CVE-2013-1862,1896)
  453. - drop patch100 (is included in new release)
  454. * Fri May 17 2013 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.2.24-2
  455. - add patch100 for fix CVE-2013-1862 (mod_rewrite)
  456. * Wed Feb 27 2013 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.2.24-1
  457. - new upstream release with security fix (CVE-2012-3499, 4558)
  458. * Sun Sep 16 2012 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.2.23-1
  459. - new upstream release with security fix (CVE-2012-3502,CVE-2012-2687)
  460. - update patch22 to fit new release
  461. - update man filename convert list
  462. * Wed Mar 21 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 2.2.22-1
  463. - update to 2.2.22
  464. - CVE-2012-0021 (mod_log_config)
  465. - CVE-2012-0031
  466. - CVE-2012-0053
  467. - remove upstreamed patches
  468. * Fri Dec 9 2011 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.2.21-5
  469. - add patch120 for fix CVE-2011-4317 (mod_rewrite/mod_proxy)
  470. * Fri Nov 18 2011 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.2.21-4
  471. - add patch110 for fix CVE-2011-3607-4415 (ModSetEnvIf)
  472. * Wed Oct 12 2011 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.2.21-3
  473. - add patch70 for fix byterange filter
  474. * Tue Oct 11 2011 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.2.21-2
  475. - add Patch100 for fix CVE-2011-3368 (mod_proxy)
  476. * Wed Sep 14 2011 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.2.21-1
  477. - new upstream release with security fix (CVE-2011-3348)
  478. - regression fixes of CVE-2011-3192 byterange fix in 2.2.20
  479. * Tue Sep 6 2011 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.2.20-3
  480. - update Patch101 (Thanks to debian team)
  481. * Sat Sep 3 2011 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.2.20-2
  482. - add Patch101 for fix CVE-2011-3192 regression
  483. * Thu Sep 1 2011 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.2.20-1
  484. - new upstream release with security fix (CVE-2011-3192)
  485. - drop patch100 (is included in new release)
  486. * Thu Aug 25 2011 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.2.19-2
  487. - add patch100 for fix CVE-2011-3192 (Range Header DoS)
  488. * Mon May 23 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 2.2.19-1
  489. - update to 2.2.19
  490. * Sat Apr 30 2011 Daisuke SUZUKI <daisuke@linux.or.jp> 2.2.14-9
  491. - remove old Obsoletes/Conflicts
  492. * Tue Jan 11 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.2.14-8
  493. - rebuild with openssl-1.0.0c
  494. * Sat Aug 21 2010 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.2.14-7
  495. - add patch120 for fix CVE-2010-1452 (mod_dav/mod_cache) from mdk2010
  496. * Wed Aug 18 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.2.14-6
  497. - add R(post): alternatives
  498. * Sat Mar 20 2010 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> - 2.2.14-5
  499. - add patch110 for fix CVE-2010-0434 from mdk 2010
  500. * Sun Mar 7 2010 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> - 2.2.14-4
  501. - add patch100 for fix CVE-2010-0408 (mod_proxy_ajp)
  502. * Fri Feb 5 2010 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 2.2.14-3
  503. - rebuilt with rpm-4.8.0-3 (on ppc)
  504. * Tue Feb 02 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.2.14-2
  505. - rebuild with db4-4.8.0
  506. * Tue Jan 05 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 2.2.14-1
  507. - new upstream release with security fix
  508. (CVE-2009-2699, CVE-2009-3095, CVE-2009-3094)
  509. - fix ssl.conf (2.2.13-1 includes wrong file)
  510. * Sun Aug 09 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.2.13-1
  511. - new upstream release
  512. * Wed Jul 29 2009 Daisuke SUZUKI <daisuke@linux.or.jp> 2.2.12-1
  513. - new upstream release
  514. (including security fix for CVE-2009-1890, CVE-2009-1191,
  515. CVE-2009-1195, CVE-2009-1955, CVE-2009-1956, CVE-2009-0023)
  516. * Fri Jan 09 2009 NAKAMURA Kenta <kenta@vinelinux.org> 2.2.11-2
  517. - rebuilt with openldap-2.4.11
  518. * Fri Jan 2 2009 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.2.11-1
  519. - new upstream release
  520. * Sat Oct 18 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.2.10-1
  521. - new upstream release (including security fix for CVE-2008-2939)
  522. * Fri Jun 20 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.2.9-1
  523. - new upstream release (including security fix for CVE-2008-2364, CVE-2007-6420)
  524. - built with db4-4.6.21, apr 1.3.0
  525. * Sun Apr 27 2008 Tomohiro 'Tomo-p' KATO <tomop@teamgedoh.net> 2.2.8-1
  526. - add Patch60 (to fix bug#31418).
  527. * Thu Feb 21 2008 AKIYAMA Kazuhito <akiyama@yb3.so-net.ne.jp> 2.2.8-0vl2
  528. - rebuild with expat-2.0.1
  529. * Tue Jan 22 2008 Daisuke SUZUKI <daisuke@linux.or.jp> 2.2.8-0vl1
  530. - new upstream release
  531. * Sat Nov 3 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.2.6-0vl2
  532. - added postun script from VinePlus/4.0 package
  533. * Tue Sep 11 2007 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.2.3-0vl3.2
  534. - add postun script to restart daemon with message
  535. * Sun Jul 01 2007 NAKAMURA Kenta <kenta@vinelinux.org> 2.2.3-0vl8
  536. - updated Patch2: httpd-2.2.3-apxs.patch
  537. * Sun Jun 24 2007 NAKAMURA Kenta <kenta@vinelinux.org> 2.2.3-0vl7
  538. - modified libdir in config.layout for lib64 architecture
  539. * Sun May 27 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.2.3-0vl6
  540. - rebuilt with openssl-0.9.8e
  541. * Thu May 10 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.2.3-0vl5
  542. - rebuilt with new toolchain and db4-4.3.x
  543. * Wed Feb 7 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.2.3-0vl4
  544. - added BuildRequires: pcre-devel, sqlite3-devel <BTS:VineLinux:474>
  545. * Mon Sep 11 2006 Kazutaka HARADA <kazutaka@dc4.so-net.ne.jp> 2.2.3-0vl3
  546. - change manual Group to Applications/Documentation. <BTS:VineLinux:163>
  547. * Sun Aug 27 2006 NAKAMURA Kenta <kenta@vinelinux.org> 2.2.3-0vl2
  548. - rebuilt with openldap-2.3.27-0vl1
  549. * Sat Jul 29 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.2.3-0vl1
  550. - new upstream release including security fix (CVE-2006-3747)
  551. * Sun May 28 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.2.2-0vl1
  552. - new upstream release
  553. - update to 2.2.2
  554. - remove apr/apr-devel subpackage,
  555. use external apr/apr-util instead of internal one.
  556. * Sun May 28 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0.58-0vl1
  557. - new upstream release
  558. - use apache2.prefork as default.
  559. * Thu Mar 23 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0.55-0vl3
  560. - rebuild to use new _localstatedir (rpm-4.4.2-0vl11)
  561. - remove unpackaged files in %%install section
  562. * Fri Jan 27 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0.55-0vl2
  563. - fix logrotate configuration (use apache2.pid instead of httpd.pid)
  564. (BTS:10)
  565. - use Epoch instead of Serial
  566. * Sat Oct 15 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0.55-0vl1
  567. - new upstream release
  568. - drop obsolete security patches which is merged in upstream
  569. * Sat Oct 08 2005 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0.54-0vl1
  570. - new upstream release
  571. * Sun Sep 11 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.0.53-0vl2
  572. - added Patch122 to 125 for secutiry fix
  573. (CAN-2004-{1268,2088,2700,2728})
  574. - fix %install section
  575. * Sun Apr 10 2005 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.0.53-0vl1
  576. - new upstream release
  577. * Sat Nov 06 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0.52-0vl1
  578. - new upstream release
  579. * Sun Oct 24 2004 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.0.50-0vl4
  580. - rebuilt with db4-4.2.52
  581. * Sat Sep 4 2004 USAMI Kosuke <usami-k@yc5.so-net.ne.jp> - 2.0.50-0vl3
  582. - separate apr, apr-devel packages
  583. - add BuildPreReq: zlib-devel
  584. * Sun Jul 11 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 2.0.50-0vl2
  585. - fix %%files to include instdso.sh
  586. thanks to jax <jax AT morejams DOT no-ip DOT com>
  587. - add %%{?_smp_mflags} to make option.
  588. * Sun Jul 4 2004 IWAI, Masaharu <iwai@alib.jp> 2.0.50-0vl1
  589. - new upstream version
  590. * Sun Nov 23 2003 IWAI, Masaharu <iwai@alib.jp> 2.0.48-0vl1
  591. - new upstream version
  592. * Mon Sep 15 2003 IWAI, Masaharu <iwai@alib.jp> 2.0.47-0vl1
  593. - new upstream version
  594. - update apxs patch (Patch101)
  595. - fix dependency:
  596. - change file name to package name in Requires and {Build,}Prereq
  597. - add BuildPrereq: openldap-devel
  598. - update %%files section
  599. - rename httpd.8 manpage
  600. * Mon May 12 2003 Satoshi MACHINO <machino@vinelinux.org> 2.0.45-0vl1
  601. - new upstream version
  602. - used vine-config.layout in srclib
  603. * Mon May 12 2003 Satoshi MACHINO <machino@vinelinux.org> 2.0.44-0vl9
  604. - rebuild
  605. * Sun Apr 6 2003 Kazuhisa TAKEI <takei@vinelinux.org> 2.0.44-0vl8
  606. - change pkg name from mod_ssl to mod_ssl-apache2
  607. - remove "apache-manual" entry from Obsoletes:
  608. * Thu Apr 3 2003 Kazuhisa TAKEI <takei@vinelinux.org> 2.0.44-0vl7
  609. - remove "mod_dav" and "apache-devel" from Obsoletes:
  610. - enable MPMS(worker %mpms )
  611. * Sun Mar 30 2003 Kazuhisa TAKEI <takei@vinelinux.org> 2.0.44-0vl6
  612. - add correct config_vars.mk
  613. * Sun Mar 30 2003 Kazuhisa TAKEI <takei@vinelinux.org> 2.0.44-0vl5
  614. - apply apxs's patch ( from Debian)
  615. * Sun Mar 30 2003 Kazuhisa TAKEI <takei@vinelinux.org> 2.0.44-0vl4
  616. - add apr-config,apu-config to devel's %file
  617. * Sun Mar 30 2003 Kazuhisa TAKEI <takei@vinelinux.org> 2.0.44-0vl3
  618. - change apxs path ( /usr/sbin -> /usr/bin
  619. - add symlink under /etc/apache2/conf
  620. (logs, run), httpd.conf -> apache2.conf
  621. - fixed apache2 initscript.
  622. * Sat Mar 29 2003 Kazuhisa TAKEI <takei@vinelinux.org> 2.0.44-0vl2
  623. - build Vine Linux
  624. - new upstream version
  625. - sharing with apache1
  626. * Wed Sep 4 2002 Nalin Dahyabhai <nalin@redhat.com> 2.0.40-8
  627. - link httpd with libssl to avoid library loading/unloading weirdness
  628. * Tue Sep 3 2002 Joe Orton <jorton@redhat.com> 2.0.40-7
  629. - add LoadModule lines for proxy modules in httpd.conf (#73349)
  630. - fix permissions of conf/ssl.*/ directories; add Makefiles for
  631. certificate management (#73352)
  632. * Mon Sep 2 2002 Joe Orton <jorton@redhat.com> 2.0.40-6
  633. - provide "httpd-mmn" to manage module ABI compatibility
  634. * Sun Sep 1 2002 Joe Orton <jorton@redhat.com> 2.0.40-5
  635. - fix SSL session cache (#69699)
  636. - revert addition of LDAP support to apr-util
  637. * Mon Aug 26 2002 Joe Orton <jorton@redhat.com> 2.0.40-4
  638. - set SIGXFSZ disposition to "ignored" (#69520)
  639. - make dummy connections to the first listener in config (#72692)
  640. * Mon Aug 26 2002 Joe Orton <jorton@redhat.com> 2.0.40-3
  641. - allow "apachectl configtest" on a 1.3 httpd.conf
  642. - add mod_deflate
  643. - enable LDAP support in apr-util
  644. - don't package everything in /var/www/error as config(noreplace)
  645. * Wed Aug 21 2002 Bill Nottingham <notting@redhat.com> 2.0.40-2
  646. - add trigger (#68657)
  647. * Mon Aug 12 2002 Joe Orton <jorton@redhat.com> 2.0.40-1
  648. - update to 2.0.40
  649. * Wed Jul 24 2002 Joe Orton <jorton@redhat.com> 2.0.36-8
  650. - improve comment on use of UserDir in default config (#66886)
  651. * Wed Jul 10 2002 Joe Orton <jorton@redhat.com> 2.0.36-7
  652. - use /sbin/nologin as shell for apache user (#68371)
  653. - add patch from CVS to fix possible infinite loop when processing
  654. internal redirects
  655. * Wed Jun 26 2002 Gary Benson <gbenson@redhat.com> 2.0.36-6
  656. - modify init script to detect 1.3.x httpd.conf's and direct users
  657. to the migration guide
  658. * Tue Jun 25 2002 Gary Benson <gbenson@redhat.com> 2.0.36-5
  659. - patch apachectl to detect 1.3.x httpd.conf's and direct users
  660. to the migration guide
  661. - ship the migration guide
  662. * Fri Jun 21 2002 Joe Orton <jorton@redhat.com>
  663. - move /etc/httpd2 back to /etc/httpd
  664. - add noindex.html page and poweredby logo; tweak default config
  665. to load noindex.html if no default "/" page is present.
  666. - add patch to prevent mutex errors on graceful restart
  667. * Fri Jun 21 2002 Tim Powers <timp@redhat.com> 2.0.36-4
  668. - automated rebuild
  669. * Wed Jun 12 2002 Joe Orton <jorton@redhat.com> 2.0.36-3
  670. - add patch to fix SSL mutex handling
  671. * Wed Jun 12 2002 Joe Orton <jorton@redhat.com> 2.0.36-2
  672. - improved config directory patch
  673. * Mon May 20 2002 Joe Orton <jorton@redhat.com>
  674. - initial build; based heavily on apache.spec and mod_ssl.spec
  675. - fixes: #65214, #58490, #57376, #61265, #65518, #58177, #57245