|
@@ -1,4 +1,5 @@
|
|
-%define contentdir /var/www
|
|
|
|
|
|
+%define contentdir %{_datadir}/apache2
|
|
|
|
+%define docroot /var/www/apache2
|
|
%define suexec_caller apache
|
|
%define suexec_caller apache
|
|
%define mmn 20051115
|
|
%define mmn 20051115
|
|
%define pkgname apache2
|
|
%define pkgname apache2
|
|
@@ -6,7 +7,7 @@
|
|
Summary: Apache HTTP Server
|
|
Summary: Apache HTTP Server
|
|
Name: %{pkgname}
|
|
Name: %{pkgname}
|
|
Version: 2.2.25
|
|
Version: 2.2.25
|
|
-Release: 1%{_dist_release}
|
|
|
|
|
|
+Release: 2%{_dist_release}
|
|
URL: http://httpd.apache.org/
|
|
URL: http://httpd.apache.org/
|
|
|
|
|
|
Vendor: Project Vine
|
|
Vendor: Project Vine
|
|
@@ -56,7 +57,9 @@ BuildRequires: db4-devel, expat-devel
|
|
BuildRequires: findutils, perl, openldap-devel, zlib-devel
|
|
BuildRequires: findutils, perl, openldap-devel, zlib-devel
|
|
BuildRequires: apr-devel, apr-util-devel
|
|
BuildRequires: apr-devel, apr-util-devel
|
|
BuildRequires: pcre-devel, sqlite3-devel
|
|
BuildRequires: pcre-devel, sqlite3-devel
|
|
|
|
+BuildRequires: www-common
|
|
Requires: mailcap, gawk, file, findutils, apr, apr-util
|
|
Requires: mailcap, gawk, file, findutils, apr, apr-util
|
|
|
|
+Requires(pre): www-common
|
|
Requires(pre): chkconfig, mktemp, fileutils
|
|
Requires(pre): chkconfig, mktemp, fileutils
|
|
Requires(pre): sh-utils, textutils, shadow-utils
|
|
Requires(pre): sh-utils, textutils, shadow-utils
|
|
Requires(post): alternatives
|
|
Requires(post): alternatives
|
|
@@ -177,7 +180,7 @@ AP_CONFOPTS="\
|
|
--with-apr=%{_prefix} --with-apr-util=%{_prefix} \
|
|
--with-apr=%{_prefix} --with-apr-util=%{_prefix} \
|
|
--enable-suexec --with-suexec \
|
|
--enable-suexec --with-suexec \
|
|
--with-suexec-caller=%{suexec_caller} \
|
|
--with-suexec-caller=%{suexec_caller} \
|
|
- --with-suexec-docroot=%{contentdir} \
|
|
|
|
|
|
+ --with-suexec-docroot=%{docroot} \
|
|
--with-suexec-logfile=%{_localstatedir}/log/apache2/suexec.log \
|
|
--with-suexec-logfile=%{_localstatedir}/log/apache2/suexec.log \
|
|
--with-suexec-bin=%{_libdir}/%{pkgname}/suexec \
|
|
--with-suexec-bin=%{_libdir}/%{pkgname}/suexec \
|
|
--with-suexec-uidmin=500 --with-suexec-gidmin=500 \
|
|
--with-suexec-uidmin=500 --with-suexec-gidmin=500 \
|
|
@@ -246,7 +249,7 @@ mv $RPM_BUILD_ROOT%{_sbindir}/{ab,htdbm,logresolve,htpasswd,htdigest} \
|
|
# Make the MMN accessible to module packages
|
|
# Make the MMN accessible to module packages
|
|
echo %{mmn} > $RPM_BUILD_ROOT%{_includedir}/apache2/.mmn
|
|
echo %{mmn} > $RPM_BUILD_ROOT%{_includedir}/apache2/.mmn
|
|
|
|
|
|
-# docroot
|
|
|
|
|
|
+# contentdir
|
|
# mkdir $RPM_BUILD_ROOT%{contentdir}/html
|
|
# mkdir $RPM_BUILD_ROOT%{contentdir}/html
|
|
install -m 644 $RPM_SOURCE_DIR/index.html.ja \
|
|
install -m 644 $RPM_SOURCE_DIR/index.html.ja \
|
|
$RPM_BUILD_ROOT%{contentdir}/error/noindex.html
|
|
$RPM_BUILD_ROOT%{contentdir}/error/noindex.html
|
|
@@ -255,6 +258,9 @@ rm -r $RPM_BUILD_ROOT%{contentdir}/manual/style
|
|
install -m 644 $RPM_SOURCE_DIR/vine.png \
|
|
install -m 644 $RPM_SOURCE_DIR/vine.png \
|
|
$RPM_BUILD_ROOT%{contentdir}/icons
|
|
$RPM_BUILD_ROOT%{contentdir}/icons
|
|
|
|
|
|
|
|
+# docroot
|
|
|
|
+mkdir -p $RPM_BUILD_ROOT%{docroot}/html
|
|
|
|
+
|
|
# logs
|
|
# logs
|
|
# rmdir $RPM_BUILD_ROOT%{_sysconfdir}/apache2/logs
|
|
# rmdir $RPM_BUILD_ROOT%{_sysconfdir}/apache2/logs
|
|
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/log/apache2
|
|
mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/log/apache2
|
|
@@ -331,14 +337,10 @@ rm -f $RPM_BUILD_ROOT%{_sysconfdir}/apache2/conf/mime.types \
|
|
$RPM_BUILD_ROOT%{_libdir}/apache2/modules/*.exp \
|
|
$RPM_BUILD_ROOT%{_libdir}/apache2/modules/*.exp \
|
|
$RPM_BUILD_ROOT%{_libdir}/apache2/build/config.nice \
|
|
$RPM_BUILD_ROOT%{_libdir}/apache2/build/config.nice \
|
|
$RPM_BUILD_ROOT%{_sbindir}/{apache2,checkgid,dbmmanage,envvars*} \
|
|
$RPM_BUILD_ROOT%{_sbindir}/{apache2,checkgid,dbmmanage,envvars*} \
|
|
|
|
+ $RPM_BUILD_ROOT%{docroot}/html/* \
|
|
$RPM_BUILD_ROOT%{contentdir}/html/* \
|
|
$RPM_BUILD_ROOT%{contentdir}/html/* \
|
|
$RPM_BUILD_ROOT%{contentdir}/cgi-bin/*
|
|
$RPM_BUILD_ROOT%{contentdir}/cgi-bin/*
|
|
|
|
|
|
-%pre
|
|
|
|
-# Add the "apache" user
|
|
|
|
-/usr/sbin/useradd -c "Apache" -u 48 \
|
|
|
|
- -s /sbin/nologin -r -d %{contentdir} apache 2> /dev/null || :
|
|
|
|
-
|
|
|
|
%triggerpostun -- apache < 2.0
|
|
%triggerpostun -- apache < 2.0
|
|
/sbin/chkconfig --add apache2
|
|
/sbin/chkconfig --add apache2
|
|
|
|
|
|
@@ -448,9 +450,11 @@ rm -rf $RPM_BUILD_ROOT
|
|
%config(noreplace) %{contentdir}/error/*.var
|
|
%config(noreplace) %{contentdir}/error/*.var
|
|
%config(noreplace) %{contentdir}/error/include/*.html
|
|
%config(noreplace) %{contentdir}/error/include/*.html
|
|
|
|
|
|
|
|
+%dir %{docroot}/html
|
|
|
|
+
|
|
%attr(0700,root,root) %dir %{_localstatedir}/log/apache2
|
|
%attr(0700,root,root) %dir %{_localstatedir}/log/apache2
|
|
|
|
|
|
-%attr(0700,apache,apache) %dir %{_localstatedir}/lib/dav
|
|
|
|
|
|
+%attr(0700,www-data,www-data) %dir %{_localstatedir}/lib/dav
|
|
|
|
|
|
%{_mandir}/man1/*
|
|
%{_mandir}/man1/*
|
|
|
|
|
|
@@ -467,10 +471,10 @@ rm -rf $RPM_BUILD_ROOT
|
|
%attr(0700,root,root) %dir %{_sysconfdir}/apache2/conf/ssl.*
|
|
%attr(0700,root,root) %dir %{_sysconfdir}/apache2/conf/ssl.*
|
|
%config %{_sysconfdir}/apache2/conf/Makefile
|
|
%config %{_sysconfdir}/apache2/conf/Makefile
|
|
%config %{_sysconfdir}/apache2/conf/ssl.*/*
|
|
%config %{_sysconfdir}/apache2/conf/ssl.*/*
|
|
-%attr(0700,apache,root) %dir %{_localstatedir}/cache/mod_ssl
|
|
|
|
-%attr(0600,apache,root) %ghost %{_localstatedir}/cache/mod_ssl/scache.dir
|
|
|
|
-%attr(0600,apache,root) %ghost %{_localstatedir}/cache/mod_ssl/scache.pag
|
|
|
|
-%attr(0600,apache,root) %ghost %{_localstatedir}/cache/mod_ssl/scache.sem
|
|
|
|
|
|
+%attr(0700,www-data,root) %dir %{_localstatedir}/cache/mod_ssl
|
|
|
|
+%attr(0600,www-data,root) %ghost %{_localstatedir}/cache/mod_ssl/scache.dir
|
|
|
|
+%attr(0600,www-data,root) %ghost %{_localstatedir}/cache/mod_ssl/scache.pag
|
|
|
|
+%attr(0600,www-data,root) %ghost %{_localstatedir}/cache/mod_ssl/scache.sem
|
|
|
|
|
|
%files devel
|
|
%files devel
|
|
%defattr(-,root,root)
|
|
%defattr(-,root,root)
|
|
@@ -482,6 +486,16 @@ rm -rf $RPM_BUILD_ROOT
|
|
%{_libdir}/apache2/build/*.sh
|
|
%{_libdir}/apache2/build/*.sh
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Wed Dec 25 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.2.25-2
|
|
|
|
+- merge VineSeed spec file
|
|
|
|
+ * Wed Oct 24 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 2.2.23-2
|
|
|
|
+ - rebuild with pcre-8.31
|
|
|
|
+
|
|
|
|
+ * Wed Mar 21 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 2.2.23-1
|
|
|
|
+ - update to 2.2.23
|
|
|
|
+ - add R(pre): www-common, BR: www-common
|
|
|
|
+ - move apache contents to %{contentdir}
|
|
|
|
+
|
|
* Sat Sep 28 2013 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.2.25-1
|
|
* Sat Sep 28 2013 Satoshi IWAMOTO <satoshi.iwamoto@nifty.ne.jp> 2.2.25-1
|
|
- new upstream release with security fix (CVE-2013-1862,1896)
|
|
- new upstream release with security fix (CVE-2013-1862,1896)
|
|
- drop patch100 (is included in new release)
|
|
- drop patch100 (is included in new release)
|