Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:internet24
Apache2
apache22-prefork.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File apache22-prefork.spec of Package Apache2
%define contentdir /srv/www %define apacheuser wwwrun %define apachegroup wwwuser Name: apache22-prefork License: Apache Vendor: IMS Internet-Media-Service GmbH Group: Productivity/Networking/Web/Servers Version: 2.2.8 Release: 6.ims Source0: http://www.apache.org/dist/httpd-%{version}.tar.bz2 Source1: vhosts.template Source2: apache22.init.d Source3: httpd64.conf Source4: passwd URL: http://www.apache.org Summary: Apache 2.2.x HTTP Server BuildRoot: %{_tmppath}/%{name}-%{version}-build Provides: Webserver Requires: cronolog openssl %description Apache is a powerful, full-featured, efficient, and freely-available Web server. Apache is also the most popular Web server on the Internet. %package devel Group: Development/Libraries Summary: Development tools for the Apache HTTP server. Requires: %{name} = %{version} %description devel The httpd-devel package contains the APXS binary and other files that you need to build Dynamic Shared Objects (DSOs) for Apache. If you are installing the Apache HTTP server and you want to be able to compile or develop additional modules for Apache, you need to install this package. %prep %setup -q -n httpd-%{version} #./buildconf %build ./configure \ --prefix=%{_sysconfdir}/apache2 \ --exec-prefix=%{_prefix} \ --bindir=%{_bindir} \ --sbindir=%{_sbindir} \ --mandir=%{_mandir} \ --libdir=%{_libdir} \ --sysconfdir=%{_sysconfdir}/apache2/conf \ --includedir=%{_includedir}/apache2 \ --libexecdir=%{_libdir}/apache2/modules \ --datadir=%{contentdir} \ --enable-mods-shared=all \ --with-mpm=prefork \ --enable-suexec --with-suexec \ --with-suexec-caller=%{apacheuser} \ --with-suexec-docroot=%{contentdir} \ --with-suexec-logfile=%{_localstatedir}/log/apache2/suexec.log \ --with-suexec-bin=%{_sbindir}/suexec \ --with-suexec-uidmin=1000 --with-suexec-gidmin=1000 \ --enable-ssl --with-ssl \ $* %{__perl} -pi -e "s:\@exp_installbuilddir\@:%{_libdir}/apache2/build:g" \ support/apxs.in make %{?_smp_mflags} %install make DESTDIR=$RPM_BUILD_ROOT install mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/cache/mod_ssl touch $RPM_BUILD_ROOT%{_localstatedir}/cache/mod_ssl/scache.{dir,pag,sem} mv $RPM_BUILD_ROOT%{contentdir}/build $RPM_BUILD_ROOT%{_libdir}/apache2/build sed -e "s|%{contentdir}/build|%{_libdir}/apache2/build|g" \ -e "/AP_LIBS/d" -e "/abs_srcdir/d" \ -e "/^EXTRA_INCLUDES/s|-I$RPM_BUILD_DIR[^ ]* ||g" \ -e "s|/usr/src/packages/BUILD/httpd-%{version}/srclib/apr/include|%{_includedir}/apache2|g" \ -e "s|/usr/src/packages/BUILD/httpd-%{version}/srclib/apr-util/include|%{_includedir}/apache2|g" \ -e "s|/usr/src/packages/BUILD/httpd-%{version}/srclib/apr/libtool|%{_libdir}/apache2/build/libtool|g" \ < ./build/config_vars.mk \ > $RPM_BUILD_ROOT%{_libdir}/apache2/build/config_vars.mk sed -e "s|%{contentdir}/build|%{_libdir}/apache2/build|g" \ -e "s|/usr/src/packages/BUILD/httpd-%{version}/srclib/apr|%{_libdir}/apache2/build|g" \ < ./srclib/apr/apr-1-config \ > $RPM_BUILD_ROOT%{_bindir}/apr-1-config sed -e "s|apr_builddir=/usr/src/packages/BUILD/httpd-%{version}/srclib/apr|apr_builddir=%{_libdir}/apache2/build|g" \ -e "s|apr_builders=/usr/src/packages/BUILD/httpd-%{version}/srclib/apr|apr_builddirs=%{_libdir}/apache2/build|g" \ < ./srclib/apr/build/apr_rules.mk \ > $RPM_BUILD_ROOT%{_libdir}/apache2/build/apr_rules.mk sed -e "s|%{contentdir}/build|%{_libdir}/apache2/build|g" \ < ./include/ap_config_layout.h \ > $RPM_BUILD_ROOT%{_includedir}/apache2/ap_config_layout.h sed -e "s|/srv/www/build|%{_libdir}/apache2/build|g" \ < ./support/apxs \ > $RPM_BUILD_ROOT%{_sbindir}/apxs #echo %{mmn} > $RPM_BUILD_ROOT%{_includedir}/apache2/.mmn rm -rf $RPM_BUILD_ROOT%{contentdir}/htdocs rm -rf $RPM_BUILD_ROOT%{contentdir}/cgi-bin rm -rf $RPM_BUILD_ROOT%{contentdir}/manual rm -rf $RPM_BUILD_ROOT%{contentdir}/error echo "<html><body></body></html>" > $RPM_BUILD_ROOT%{contentdir}/index.html mkdir -p $RPM_BUILD_ROOT%{_localstatedir}/log/apache2 mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/apache2/conf/vhosts.d rmdir $RPM_BUILD_ROOT%{_sysconfdir}/apache2/logs ln -s %{_localstatedir}/log/apache2 $RPM_BUILD_ROOT/etc/apache2/logs ln -s %{_localstatedir}/run $RPM_BUILD_ROOT/etc/apache2/run ln -s %{_libdir}/apache2/modules $RPM_BUILD_ROOT/etc/apache2/modules ln -s %{_libdir}/apache2/build $RPM_BUILD_ROOT/etc/apache2/build mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/init.d install -m 755 %{S:2} $RPM_BUILD_ROOT/etc/init.d/apache2 rm $RPM_BUILD_ROOT%{_sysconfdir}/apache2/conf/*.conf install -m 644 %{S:3} $RPM_BUILD_ROOT%{_sysconfdir}/apache2/conf/httpd.conf install -m 644 %{S:1} $RPM_BUILD_ROOT%{_sysconfdir}/apache2/conf/vhosts.d install -m 600 %{S:4} $RPM_BUILD_ROOT%{_sysconfdir}/apache2/conf/passwd mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/apache2/conf/modules.d %pre # Add the "apache" user and "wwwuser" group /usr/sbin/groupadd %{apachegroup} /usr/sbin/useradd -c "Apache User" -u 48 \ -s /sbin/nologin -g %{apachegroup} -r -d %{_sysconfdir}/apache2 %{apacheuser} 2> /dev/null || : %post /sbin/chkconfig --add apache2 %preun %{?stop_on_removal:%stop_on_removal apache2} /sbin/chkconfig --del apache2 exit 0 %postun /usr/sbin/userdel %{apacheuser} /usr/sbin/groupdel %{apachegroup} exit 0 %clean rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_DIR/httpd-%{version} %files %defattr(-,root,root) %config %{_sysconfdir}/init.d/apache2 %config(noreplace) %{_sysconfdir}/apache2/conf/httpd.conf %config(noreplace) %{_sysconfdir}/apache2/conf/passwd %{_sysconfdir}/apache2 %attr(0700,wwwrun,root) %dir %{_localstatedir}/cache/mod_ssl %attr(0600,wwwrun,root) %ghost %{_localstatedir}/cache/mod_ssl/scache.dir %attr(0600,wwwrun,root) %ghost %{_localstatedir}/cache/mod_ssl/scache.pag %attr(0600,wwwrun,root) %ghost %{_localstatedir}/cache/mod_ssl/scache.sem %{_sbindir}/ab %{_sbindir}/htdbm %{_sbindir}/htdigest %{_sbindir}/htpasswd %{_sbindir}/logresolve %{_sbindir}/httpd %{_sbindir}/apachectl %{_sbindir}/rotatelogs %{_sbindir}/htcacheclean %{_sbindir}/httxt2dbm %{contentdir}/index.html %attr(4510,root,%{apachegroup}) %{_sbindir}/suexec %{_libdir}/apache2 %{_localstatedir}/log/apache2 %{_mandir}/man1/dbmmanage.1.gz %{_mandir}/man1/htdbm.1.gz %{_mandir}/man1/htdigest.1.gz %{_mandir}/man1/htpasswd.1.gz %{_mandir}/man8/ab.8.gz %{_mandir}/man8/apachectl.8.gz %{_mandir}/man8/httpd.8.gz %{_mandir}/man8/logresolve.8.gz %{_mandir}/man8/rotatelogs.8.gz %{_mandir}/man8/suexec.8.gz %{_mandir}/man8/htcacheclean.8.gz %{_libdir}/libapr* %{_bindir}/apr-1-config %{_bindir}/apu-1-config %{contentdir}/icons %files devel %defattr(-,root,root) %{_includedir}/apache2 %{_sysconfdir}/apache2/build %{_sbindir}/apxs %{_sbindir}/checkgid %{_sbindir}/dbmmanage %{_sbindir}/envvars* %{_mandir}/man8/apxs.8* %{_libdir}/apache2/build %{_libdir}/pkgconfig/apr-1.pc %{_libdir}/pkgconfig/apr-util-1.pc %{_libdir}/apr* %Changelog * Wed Apr 16 2008 Joerg Queisser <queisser@internet24.de> - Anpassungen an den Konfigurationsfiles * Thu Feb 21 2008 Joerg Queisser <queisser@internet24.de> - Auf Apache 2.2.8 umgestellt * Wed Nov 07 2007 Joerg Queisser <queisser@internet24.de> - Start
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor