SPECS: up-imapproxy.spec - updated to 1.2.4 - add patch for CVE-20...
glen
glen at pld-linux.org
Mon Mar 20 15:16:45 CET 2006
Author: glen Date: Mon Mar 20 14:16:45 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- updated to 1.2.4
- add patch for CVE-2005-2661
- run as imapproxy uid/gid
- fix broken upgrade
- add service restart on upgrade
---- Files affected:
SPECS:
up-imapproxy.spec (1.12 -> 1.13)
---- Diffs:
================================================================
Index: SPECS/up-imapproxy.spec
diff -u SPECS/up-imapproxy.spec:1.12 SPECS/up-imapproxy.spec:1.13
--- SPECS/up-imapproxy.spec:1.12 Mon Mar 20 14:42:14 2006
+++ SPECS/up-imapproxy.spec Mon Mar 20 15:16:40 2006
@@ -1,19 +1,29 @@
# $Revision$, $Date$
-# TODO: update to 1.2.4 _and_ fix CVE-2005-2661
Summary: Imapproxy Daemon
Summary(pl): Serwer proxy dla protokołu IMAP
Name: up-imapproxy
-Version: 1.2.3
+Version: 1.2.4
Release: 1
License: GPL
Group: Networking/Daemons
Source0: http://www.imapproxy.org/downloads/%{name}-%{version}.tar.gz
-# Source0-md5: ad4dafd1417903feb1e09ec569ff1ad5
+# Source0-md5: ad68dd2258255ac6ef87165f518390e9
Source1: %{name}.init
+Patch0: %{name}-config.patch
+Patch1: %{name}-CVE-2005-2661.patch
URL: http://www.imapproxy.org/
BuildRequires: libwrap-devel
BuildRequires: ncurses-devel
BuildRequires: openssl-devel >= 0.9.7d
+BuildRequires: rpmbuild(macros) >= 1.268
+Requires(post,preun): rc-scripts
+Requires(postun): /usr/sbin/groupdel
+Requires(postun): /usr/sbin/userdel
+Requires(pre): /bin/id
+Requires(pre): /usr/bin/getgid
+Requires(pre): /usr/sbin/groupadd
+Requires(pre): /usr/sbin/useradd
+Requires: libwrap
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -26,6 +36,8 @@
%prep
%setup -q
+%patch0 -p1
+%patch1 -p1
%build
%configure
@@ -44,26 +56,46 @@
%clean
rm -rf $RPM_BUILD_ROOT
+%pre
+%groupadd -g 150 imapproxy
+%useradd -u 150 -c "IMAP proxy daemon" -g imapproxy imapproxy
+
%post
/sbin/chkconfig --add imapproxy
+%service imapproxy restart "IMAP proxy daemon"
%preun
-/sbin/chkconfig --del imapproxy
+if [ "$1" = "0" ]; then
+ %service imapproxy stop
+ /sbin/chkconfig --del imapproxy
+fi
+
+%postun
+if [ "$1" = "0" ]; then
+ %userremove imapproxy
+ %groupremove imapproxy
+fi
%files
%defattr(644,root,root,755)
%doc README README.ssl ChangeLog
%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/imapproxy.conf
%attr(754,root,root) /etc/rc.d/init.d/imapproxy
-%attr(750,root,root) %{_sbindir}/*
+%attr(755,root,root) %{_sbindir}/*
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
-
%changelog
* %{date} PLD Team <feedback at pld-linux.org>
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.13 2006/03/20 14:16:40 glen
+- updated to 1.2.4
+- add patch for CVE-2005-2661
+- run as imapproxy uid/gid
+- fix broken upgrade
+- add service restart on upgrade
+
Revision 1.12 2006/03/20 13:42:14 qboosh
- added security todo
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/up-imapproxy.spec?r1=1.12&r2=1.13&f=u
More information about the pld-cvs-commit
mailing list