[ATrpms-devel] dovecot src RPMs
Axel Thimm
Axel.Thimm at ATrpms.net
Wed Sep 20 15:47:57 CEST 2006
On Wed, Sep 20, 2006 at 03:36:38PM +0200, Axel Thimm wrote:
> On Wed, Sep 20, 2006 at 03:16:12PM +0200, Magnus Stenman wrote:
> > I cannot test that right now, all available servers are in production
> >
> > but, if i look in the CPIO archive inside the RPM, /usr/lib/dovecot/
> > seems to have rwxrwx--- (770)
> >
> >
> > that is in dovecot-1.0-0_22.rc7.el4.at.i386.rpm
> >
> >
> > the problem might not occur on an upgrade, just new installs, i'm not
> > quite sure. (did a big upgrade last night on a box and cannot recall
> > having to do that particular fix. but things were a bit chaotic at the time)
>
> I think I see what's wrong. There is no /usr/lib/dovecot at all
> meaning that it is not registered against rpm's database, it's missing
> a %dir %{_libdir}/dovecot.
>
> Depending on your umasks settings /usr/lib/dovecot will have random
> permissions. :/
>
> Will fix asap, thanks!
Just for reference here is the fix:
--- /usr/src/at/.archives/dovecot-1.0-0_22.rc7.at.spec 2006-09-01 11:49:29.000000000 +0200
+++ dovecot.spec 2006-09-20 15:46:07.000000000 +0200
@@ -7,3 +7,3 @@
Version: 1.0
-Release: 0_22.rc7%{?dist}
+Release: 0_23.rc7%{?dist}
License: LGPL
@@ -153,3 +153,3 @@
%pre
-/usr/sbin/useradd -c "dovecot" -u %{dovecot_uid} -s /sbin/nologin -r -d /usr/libexec/dovecot dovecot 2>/dev/null || :
+/usr/sbin/useradd -c "dovecot" -u %{dovecot_uid} -s /sbin/nologin -r -d %{_libexec}/dovecot dovecot 2>/dev/null || :
@@ -182,3 +182,3 @@
if ! test -f /var/run/dovecot/login/ssl-parameters.dat; then
- /usr/libexec/dovecot/ssl-build-param &>/dev/null
+ %{_libexec}/dovecot/ssl-build-param &>/dev/null
fi
@@ -213,7 +213,4 @@
%attr(0600,root,root) %ghost %config(missingok,noreplace) %verify(not md5 size mtime) %{ssldir}/private/dovecot.pem
-%dir %{_libexecdir}/%{name}
-%{_libexecdir}/%{name}/*
-%{_libdir}/%{name}/imap/*
-%{_libdir}/%{name}/lda/*
-%{_libdir}/%{name}/*
+%{_libexecdir}/%{name}
+%{_libdir}/%{name}
%{_sbindir}/dovecot
@@ -229,2 +226,5 @@
%changelog
+* Wed Sep 20 2006 Axel Thimm <Axel.Thimm at ATrpms.net> - 1.0-0_23.rc7
+- Fix libexec references and unowned directories.
+
* Wed Aug 30 2006 Axel Thimm <Axel.Thimm at ATrpms.net> - 1.0-0_21.rc7
--
Axel.Thimm at ATrpms.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.atrpms.net/pipermail/atrpms-devel/attachments/20060920/13a5d567/attachment-0001.bin
More information about the atrpms-devel
mailing list