pali pushed to cherokee (el5). "Merge branch 'master' into f14"
notifications at fedoraproject.org
notifications at fedoraproject.org
Wed Apr 15 21:00:17 UTC 2015
>From 96c76909566b19324fd2258eb7443553e713c0fe Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Dan=20Hor=C3=A1k?= <dan at danny.cz>
Date: Wed, 23 Mar 2011 19:07:34 +0100
Subject: rebuilt for mysql 5.5.10 (soname bump in libmysqlclient)
diff --git a/cherokee.spec b/cherokee.spec
index c13654e..5de6436 100644
--- a/cherokee.spec
+++ b/cherokee.spec
@@ -3,7 +3,7 @@
Name: cherokee
Version: 1.2.1
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Flexible and Fast Webserver
Group: Applications/Internet
@@ -178,6 +178,9 @@ fi
%changelog
+* Wed Mar 23 2011 Dan Horák <dan at danny.cz> - 1.2.1-2
+- rebuilt for mysql 5.5.10 (soname bump in libmysqlclient)
+
* Fri Feb 22 2011 Pavel Lisý <pali at fedoraproject.org> - 1.2.1-1
- Resolves bz 678243
- Resolves bz 680051
--
cgit v0.10.2
>From 4a055ad4684eedfac41c6a4ca5937fd115bf3943 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pavel=20Lis=C3=BD?= <pali at fedoraproject.org>
Date: Tue, 13 Sep 2011 09:10:34 +0200
Subject: Latest 1.2.x upstream release Resolves bz 713306 Resolves bz 710473
Resolves bz 728741 Resolves bz 720515 Resolves bz 701196 Resolves bz 712555
diff --git a/.gitignore b/.gitignore
index d7cee14..cbcfe3e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,3 +4,4 @@ cherokee-1.0.8.tar.gz
cherokee-1.0.20.tar.gz
clog
cherokee-1.2.1.tar.gz
+/cherokee-1.2.99.tar.gz
diff --git a/cherokee.service b/cherokee.service
index 03a0279..727165c 100644
--- a/cherokee.service
+++ b/cherokee.service
@@ -1,9 +1,10 @@
[Unit]
-Description=Cherokee web server
+Description=Cherokee Lightweight Web Server
After=syslog.target network.target
[Service]
Type=forking
+PIDFile=/var/run/cherokee
ExecStart=/usr/sbin/cherokee -d -C /etc/cherokee/cherokee.conf
[Install]
diff --git a/cherokee.spec b/cherokee.spec
index c13654e..cb0503d 100644
--- a/cherokee.spec
+++ b/cherokee.spec
@@ -1,8 +1,10 @@
%define home %{_var}/lib/%{name}
%define shortversion %(echo %{version} | grep -oE '[0-9]+\.[0-9]+')
+%define opensslversion 1.0.0d
+%{!?_unitdir:%define _unitdir /lib/systemd/system}
Name: cherokee
-Version: 1.2.1
+Version: 1.2.99
Release: 1%{?dist}
Summary: Flexible and Fast Webserver
@@ -14,18 +16,29 @@ BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
Source1: %{name}.init
Source2: %{name}.logrotate
Source3: %{name}.service
+%if "%{dist}" == ".el5"
+Source100: http://www.openssl.org/source/openssl-%{opensslversion}.tar.gz
+%endif
# Drop privileges to cherokee:cherokee after startup
Patch0: 01-drop-privileges.patch
-BuildRequires: openssl-devel pam-devel mysql-devel pcre
+BuildRequires: pam-devel mysql-devel pcre
+BuildRequires: php-cli GeoIP-devel openldap-devel
# BuildRequires: pcre-devel
BuildRequires: gettext
# For spawn-fcgi
Requires: spawn-fcgi
+
+%if "%{dist}" == ".f15" || "%{dist}" == ".f16"
+Requires(post): systemd-units
+Requires(preun): systemd-units
+Requires(postun): systemd-units
+%else
Requires(post): chkconfig
Requires(preun): chkconfig
Requires(preun): initscripts
+%endif
Provides: webserver
@@ -49,11 +62,34 @@ This package holds the development files for cherokee.
%prep
+%if "%{dist}" == ".el5"
+%setup -q -a 100
+%else
%setup -q
+%endif
%patch0 -p1 -b .privs
%build
-%configure --with-wwwroot=%{_var}/www/%{name} --enable-tls=openssl --enable-pthreads --enable-trace --disable-static --disable-rpath
+%if "%{dist}" == ".el5"
+pushd openssl-%{opensslversion}
+./config --prefix=/usr --openssldir=%{_sysconfdir}/pki/tls shared
+RPM_OPT_FLAGS="$RPM_OPT_FLAGS -Wa,--noexecstack"
+make depend
+make all
+mkdir ./lib
+for lib in *.a ; do
+ ln -s ../$lib ./lib
+done
+popd
+%endif
+
+%configure --with-wwwroot=%{_var}/www/%{name} \
+%if "%{dist}" == ".el5"
+ --with-libssl=$(pwd)/openssl-%{opensslversion} --enable-static-module=libssl \
+%else
+ --with-libssl \
+%endif
+ --enable-trace --enable-backtraces --disable-static
# Get rid of rpath
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
@@ -66,12 +102,15 @@ make install DESTDIR=%{buildroot}
%{__install} -d %{buildroot}%{_sysconfdir}/logrotate.d/
%{__install} -D -m 0644 pam.d_cherokee %{buildroot}%{_sysconfdir}/pam.d/%{name}
-%{__install} -D -m 0755 %{SOURCE1} %{buildroot}%{_sysconfdir}/init.d/%{name}
%{__install} -D -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
%{__install} -d %{buildroot}%{_var}/{log,lib}/%{name}/
%{__install} -d %{buildroot}%{_sysconfdir}/pki/%{name}
-%{__install} -d %{buildroot}%{_sysconfdir}/systemd/system
-%{__install} -D -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/systemd/system/%{name}.service
+%if "%{dist}" == ".f15" || "%{dist}" == ".f16"
+%{__install} -d %{buildroot}%{_unitdir}
+%{__install} -D -m 0644 %{SOURCE3} %{buildroot}%{_unitdir}/%{name}.service
+%else
+%{__install} -D -m 0755 %{SOURCE1} %{buildroot}%{_sysconfdir}/init.d/%{name}
+%endif
%{__sed} -i -e 's#log/%{name}\.access#log/%{name}/access_log#' \
-e 's#log/%{name}\.error#log/%{name}/error_log#' \
@@ -113,15 +152,43 @@ if [ $1 = 0 ] ; then
fi
%post
+%if "%{dist}" == ".f15" || "%{dist}" == ".f16"
+if [ $1 -eq 1 ] ; then
+ # Initial installation: enabled by default
+ /bin/systemctl enable cherokee.service >/dev/null 2>&1 || :
+fi
+%else
/sbin/ldconfig
/sbin/chkconfig --add %{name}
+%endif
-%postun -p /sbin/ldconfig
+%if "%{dist}" == ".f15" || "%{dist}" == ".f16"
+%preun
+if [ $1 -eq 0 ] ; then
+ # Package removal, not upgrade
+ /bin/systemctl --no-reload disable cherokee.service > /dev/null 2>&1 || :
+ /bin/systemctl stop cherokee.service > /dev/null 2>&1 || :
+fi
+%endif
+
+%postun
+%if "%{dist}" == ".f15" || "%{dist}" == ".f16"
+/bin/systemctl daemon-reload >/dev/null 2>&1 || :
+if [ $1 -ge 1 ] ; then
+ # Package upgrade, not uninstall
+ /bin/systemctl try-restart cherokee.service >/dev/null 2>&1 || :
+fi
+%else
+/sbin/ldconfig
+%endif
%files
%defattr(-,root,root,-)
+%if "%{dist}" == ".f15" || "%{dist}" == ".f16"
+%{_unitdir}/%{name}.service
+%else
%{_sysconfdir}/init.d/%{name}
-%{_sysconfdir}/systemd/system/%{name}.service
+%endif
%dir %{_sysconfdir}/%{name}
%dir %{_sysconfdir}/pki/%{name}
%attr(0644,%{name},%{name}) %config(noreplace) %{_sysconfdir}/%{name}/cherokee.conf
@@ -176,8 +243,19 @@ fi
%{_datadir}/aclocal/%{name}.m4
%{_libdir}/lib%{name}-*.so
-
%changelog
+* Tue Sep 10 2011 Pavel Lisý <pali at fedoraproject.org> - 1.2.99-1
+- Latest 1.2.x upstream release
+- Resolves bz 713306
+- Resolves bz 710473
+- Resolves bz 728741
+- Resolves bz 720515
+- Resolves bz 701196
+- Resolves bz 712555
+
+* Wed Aug 10 2011 Pavel Lisý <pali at fedoraproject.org> - 1.2.98-1
+- Latest 1.2.x upstream release
+
* Fri Feb 22 2011 Pavel Lisý <pali at fedoraproject.org> - 1.2.1-1
- Resolves bz 678243
- Resolves bz 680051
diff --git a/sources b/sources
index 1129365..31ff142 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-2204b9da5b910a8fe251f5dee4506155 cherokee-1.2.1.tar.gz
+c83115c3eebb29e6f2b4cc6fe699affe cherokee-1.2.99.tar.gz
--
cgit v0.10.2
http://pkgs.fedoraproject.org/cgit/cherokee.git/commit/?h=el5&id=7ac9a45cc6081a7ca2593ca3255a012240758b14
More information about the scm-commits
mailing list