apache2-vl.spec 25 KB

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