Projects
Kolab:3.4
mod_nss
mod_nss.spec
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File mod_nss.spec of Package mod_nss (Revision 7)
Currently displaying revision
7
,
Show latest
%if 0%{?suse_version} %global httpd_name apache2 %else %global httpd_name httpd %endif %global _ap_sysconfdir %{_sysconfdir}/%{httpd_name} %{!?_httpd_apxs: %{expand: %%global _httpd_apxs %%{_sbindir}/apxs}} %{!?_httpd_mmn: %{expand: %%global _httpd_mmn %%(cat %{_includedir}/%{httpd_name}/.mmn || echo missing-%{httpd_name}-devel)}} %{!?_httpd_confdir: %{expand: %%global _httpd_confdir %%{_ap_sysconfdir}/conf.d}} # /etc/httpd/conf.d with httpd < 2.4 and defined as /etc/httpd/conf.modules.d with httpd >= 2.4 %{!?_httpd_modconfdir: %{expand: %%global _httpd_modconfdir %%{_ap_sysconfdir}/conf.d}} %if 0%{?suse_version} %{!?_httpd_moddir: %{expand: %%global _httpd_moddir %%{_libdir}/%{httpd_name}}} %else %{!?_httpd_moddir: %{expand: %%global _httpd_moddir %%{_libdir}/%{httpd_name}/modules}} %endif %if 0%{?suse_version} Name: apache2-mod_nss %else Name: mod_nss %endif Version: 1.0.8 Release: 19.1%{?dist} Summary: SSL/TLS module for the Apache HTTP server Group: System Environment/Daemons License: ASL 2.0 URL: http://directory.fedoraproject.org/wiki/Mod_nss Source: http://directory.fedoraproject.org/sources/mod_nss-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) %if 0%{?suse_version} BuildRequires: bison BuildRequires: findutils BuildRequires: flex BuildRequires: libapr-util1-devel BuildRequires: libapr1-devel BuildRequires: mozilla-nspr-devel >= 4.6.3 BuildRequires: mozilla-nss-devel >= 3.12.6 %else BuildRequires: apr-devel BuildRequires: apr-util-devel BuildRequires: nspr-devel >= 4.6.3 BuildRequires: nss-devel >= 3.12.6 %endif BuildRequires: gcc-c++ BuildRequires: %{httpd_name}-devel BuildRequires: pkgconfig %if 0%{?suse_version} < 1 Requires: httpd-mmn = %{_httpd_mmn} Requires(post): httpd Requires(post): nss-tools Requires: nss >= 3.12.6 %else Requires: mozilla-nss-tools %endif Patch1: mod_nss-conf.patch Patch2: mod_nss-gencert.patch Patch3: mod_nss-wouldblock.patch # Add options for tuning client negotiate in NSS Patch4: mod_nss-negotiate.patch Patch5: mod_nss-reverseproxy.patch Patch6: mod_nss-pcachesignal.h Patch7: mod_nss-reseterror.patch Patch8: mod_nss-lockpcache.patch Patch9: mod_nss-httpd24.patch Patch10: mod_nss-overlapping_memcpy.patch %description The mod_nss module provides strong cryptography for the Apache Web server via the Secure Sockets Layer (SSL) and Transport Layer Security (TLS) protocols using the Network Security Services (NSS) security library. %prep %setup -q -n mod_nss-%{version} %patch1 -p1 -b .conf %patch2 -p1 -b .gencert %patch3 -p1 -b .wouldblock %patch4 -p1 -b .negotiate %patch5 -p1 -b .reverseproxy %patch6 -p1 -b .pcachesignal.h %patch7 -p1 -b .reseterror %patch8 -p1 -b .lockpcache %if 0%{?fedora} >= 18 || 0%{?rhel} >= 6 %patch9 -p1 -b .httpd24 %endif %patch10 -p1 -b .overlap # Touch expression parser sources to prevent regenerating it touch nss_expr_*.[chyl] %build CFLAGS="$RPM_OPT_FLAGS" APXS=%{_httpd_apxs} export CFLAGS APXS NSPR_INCLUDE_DIR=`/usr/bin/pkg-config --variable=includedir nspr` NSPR_LIB_DIR=`/usr/bin/pkg-config --variable=libdir nspr` NSS_INCLUDE_DIR=`/usr/bin/pkg-config --variable=includedir nss` NSS_LIB_DIR=`/usr/bin/pkg-config --variable=libdir nss` NSS_BIN=`/usr/bin/pkg-config --variable=exec_prefix nss` %if 0%{?suse_version} C_INCLUDE_PATH="/usr/include/nss3:/usr/include/nspr4:/usr/include/apache2-prefork/" export C_INCLUDE_PATH %endif %configure \ --with-nss-lib=$NSS_LIB_DIR \ --with-nss-inc=$NSS_INCLUDE_DIR \ --with-nspr-lib=$NSPR_LIB_DIR \ --with-nspr-inc=$NSPR_INCLUDE_DIR \ --with-apr-config make %{?_smp_mflags} all %install # The install target of the Makefile isn't used because that uses apxs # which tries to enable the module in the build host httpd instead of in # the build root. rm -rf %{buildroot} mkdir -p %{buildroot}/%{_ap_sysconfdir}/alias mkdir -p %{buildroot}%{_ap_sysconfdir}/conf mkdir -p %{buildroot}%{_httpd_confdir} mkdir -p %{buildroot}/%{_libdir}/%{httpd_name} %if 0%{?suse_version} < 1 mkdir -p %{buildroot}/%{_libdir}/%{httpd_name}/modules %endif mkdir -p %{buildroot}%{_sbindir} %if 0%{?suse_version} sed -i -e "s|\@apache_lib\@|%{_libdir}\/apache2|g" nss.conf %else sed -i -e "s|\@apache_lib\@|modules|g" nss.conf sed -i -e "s|/var/log/apache2|logs|g" nss.conf sed -i \ -e "s|\@apache_prefix\@|/var/www|g" \ -e "s|/etc/httpd/cgi-bin|/var/www/cgi-bin|g" \ -e "s|\@apache_conf\@|/etc/httpd|g" \ -e "s|/etc/httpd/conf/alias|/etc/httpd/alias|g" nss.conf %endif %if "%{_httpd_modconfdir}" != "%{_httpd_confdir}" # httpd >= 2.4.x mkdir -p %{buildroot}%{_httpd_modconfdir} sed -n /^LoadModule/p nss.conf > 10-nss.conf sed -i /^LoadModule/d nss.conf install -m 644 10-nss.conf %{buildroot}%{_httpd_modconfdir} %endif install -m 644 nss.conf %{buildroot}%{_httpd_confdir} install -m 755 .libs/libmodnss.so %{buildroot}%{_httpd_moddir} install -m 755 nss_pcache %{buildroot}%{_sbindir}/ install -m 755 gencert %{buildroot}%{_sbindir}/ ln -s ../../../%{_libdir}/libnssckbi.so %{buildroot}/%{_ap_sysconfdir}/alias/ touch %{buildroot}/%{_ap_sysconfdir}/alias/secmod.db touch %{buildroot}/%{_ap_sysconfdir}/alias/cert8.db touch %{buildroot}/%{_ap_sysconfdir}/alias/key3.db touch %{buildroot}/%{_ap_sysconfdir}/alias/install.log perl -pi -e "s:$NSS_LIB_DIR:$NSS_BIN:" %{buildroot}/%{_sbindir}/gencert %clean rm -rf %{buildroot} %post umask 077 if [ "$1" -eq 1 ] ; then if [ ! -e %{_ap_sysconfdir}/alias/key3.db ]; then %{_sbindir}/gencert %{_ap_sysconfdir}/alias > %{_ap_sysconfdir}/alias/install.log 2>&1 echo "" echo "%{name} certificate database generated." echo "" fi # Make sure that the database ownership is setup properly. /bin/find %{_ap_sysconfdir}/alias -user root -name "*.db" -exec /bin/chgrp apache {} \; /bin/find %{_ap_sysconfdir}/alias -user root -name "*.db" -exec /bin/chmod g+r {} \; fi %files %defattr(-,root,root,-) %doc README LICENSE docs/mod_nss.html %config(noreplace) %{_httpd_confdir}/nss.conf %if "%{_httpd_modconfdir}" != "%{_httpd_confdir}" %config(noreplace) %{_httpd_modconfdir}/10-nss.conf %endif %{_httpd_moddir}/libmodnss.so %dir %{_ap_sysconfdir}/alias/ %ghost %attr(0640,root,apache) %config(noreplace) %{_ap_sysconfdir}/alias/secmod.db %ghost %attr(0640,root,apache) %config(noreplace) %{_ap_sysconfdir}/alias/cert8.db %ghost %attr(0640,root,apache) %config(noreplace) %{_ap_sysconfdir}/alias/key3.db %ghost %config(noreplace) %{_ap_sysconfdir}/alias/install.log %{_ap_sysconfdir}/alias/libnssckbi.so %{_sbindir}/nss_pcache %{_sbindir}/gencert %changelog * Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.8-19.1 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild * Mon Jun 18 2012 Joe Orton <jorton@redhat.com> - 1.0.8-18.1 - fix build for RHEL7 * Fri Jun 15 2012 Rob Crittenden <rcritten@redhat.com> - 1.0.8-18 - Actually apply the patch to use memmove in place of memcpy since the buffers can overlap (#669118) * Tue Jun 12 2012 Nathan Kinder <nkinder@redhat.com> - 1.0.8-17 - Port mod_nss to work with httpd 2.4 * Mon Apr 23 2012 Joe Orton <jorton@redhat.com> - 1.0.8-16 - packaging fixes/updates (#803072) * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.8-15 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild * Wed Mar 7 2011 Rob Crittenden <rcritten@redhat.com> - 1.0.8-14 - Add Requires(post) for nss-tools, gencert needs it (#652007) * Wed Mar 2 2011 Rob Crittenden <rcritten@redhat.com> - 1.0.8-13 - Lock around the pipe to nss_pcache for retrieving the token PIN (#677701) * Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.8-12 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild * Wed Jan 12 2011 Rob Crittenden <rcritten@redhat.com> - 1.0.8-11 - Use memmove in place of memcpy since the buffers can overlap (#669118) * Wed Sep 29 2010 jkeating - 1.0.8-10 - Rebuilt for gcc bug 634757 * Thu Sep 23 2010 Rob Crittenden <rcritten@redhat.com> - 1.0.8-9 - Revert mod_nss-wouldblock patch - Reset NSPR error before calling PR_Read(). This should fix looping in #620856 * Fri Sep 17 2010 Rob Crittenden <rcritten@redhat.com> - 1.0.8-8 - Fix hang when handling large POST under some conditions (#620856) * Tue Jun 22 2010 Rob Crittenden <rcritten@redhat.com> - 1.0.8-7 - Remove file Requires on libnssckbi.so (#601939) * Fri May 14 2010 Rob Crittenden <rcritten@redhat.com> - 1.0.8-6 - Ignore SIGHUP in nss_pcache (#591889). * Thu May 13 2010 Rob Crittenden <rcritten@redhat.com> - 1.0.8-5 - Use remote hostname set by mod_proxy to compare to CN in peer cert (#591224) * Thu Mar 18 2010 Rob Crittenden <rcritten@redhat.com> - 1.0.8-4 - Patch to add configuration options for new NSS negotiation API (#574187) - Add (pre) for Requires on httpd so we can be sure the user and group are already available - Add file Requires on libnssckbi.so so symlink can't fail - Use _sysconfdir macro instead of /etc - Set minimum level of NSS to 3.12.6 * Mon Jan 25 2010 Rob Crittenden <rcritten@redhat.com> - 1.0.8-3 - The location of libnssckbi moved from /lib[64] to /usr/lib[64] (556744) * Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.8-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild * Mon Mar 2 2009 Rob Crittenden <rcritten@redhat.com> - 1.0.8-1 - Update to 1.0.8 - Add patch that fixes NSPR layer bug * Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.7-11 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild * Mon Aug 11 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.0.7-10 - fix license tag * Mon Jul 28 2008 Rob Crittenden <rcritten@redhat.com> - 1.0.7-9 - rebuild to bump NVR * Mon Jul 14 2008 Rob Crittenden <rcritten@redhat.com> - 1.0.7-8 - Don't force module de-init during the configuration stage (453508) * Thu Jul 10 2008 Rob Crittenden <rcritten@redhat.com> - 1.0.7-7 - Don't inherit the MP cache in multi-threaded mode (454701) - Don't initialize NSS in each child if SSL isn't configured * Wed Jul 2 2008 Rob Crittenden <rcritten@redhat.com> - 1.0.7-6 - Update the patch for FIPS to include fixes for nss_pcache, enforce the security policy and properly initialize the FIPS token. * Mon Jun 30 2008 Rob Crittenden <rcritten@redhat.com> - 1.0.7-5 - Include patch to fix NSSFIPS (446851) * Mon Apr 28 2008 Rob Crittenden <rcritten@redhat.com> - 1.0.7-4 - Apply patch so that mod_nss calls NSS_Init() after Apache forks a child and not before. This is in response to a change in the NSS softtokn code and should have always been done this way. (444348) - The location of libnssckbi moved from /usr/lib[64] to /lib[64] - The NSS database needs to be readable by apache since we need to use it after the root priviledges are dropped. * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 1.0.7-3 - Autorebuild for GCC 4.3 * Thu Oct 18 2007 Rob Crittenden <rcritten@redhat.com> 1.0.7-2 - Register functions needed by mod_proxy if mod_ssl is not loaded. * Fri Jun 1 2007 Rob Crittenden <rcritten@redhat.com> 1.0.7-1 - Update to 1.0.7 - Remove Requires for nss and nspr since those are handled automatically by versioned libraries - Updated URL and Source to reference directory.fedoraproject.org * Mon Apr 9 2007 Rob Crittenden <rcritten@redhat.com> 1.0.6-2 - Patch to properly detect the Apache model and set up NSS appropriately - Patch to punt if a bad password is encountered - Patch to fix crash when password.conf is malformatted - Don't enable ECC support as NSS doesn't have it enabled (3.11.4-0.7) * Mon Oct 23 2006 Rob Crittenden <rcritten@redhat.com> 1.0.6-1 - Update to 1.0.6 * Fri Aug 04 2006 Rob Crittenden <rcritten@redhat.com> 1.0.3-4 - Include LogLevel warn in nss.conf and use separate log files * Fri Aug 04 2006 Rob Crittenden <rcritten@redhat.com> 1.0.3-3 - Need to initialize ECC certificate and key variables * Fri Aug 04 2006 Jarod Wilson <jwilson@redhat.com> 1.0.3-2 - Use %%ghost for db files and install.log * Tue Jun 20 2006 Rob Crittenden <rcritten@redhat.com> 1.0.3-1 - Initial build
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.