Am 06.06.2013 10:54, schrieb Paul J Stevens: > Harry, > are you on 32-bit perhaps?
no, Fedora x86_64 only since years with no single i686 package
3.9.4-200.fc18.x86_64
dbmail-3.0.2-7.fc18.20130420.rh.22b964b653ba149b63b9b6787aeac7803c2121e5.x86_64
this is the last version for me where the patches
for Precedence/List headers are included as well
sorting in roundcubemail is not broken and which
does not crash permenently
see spec-file below with changelog at the end
[root@testserver:~]$ cat /rpmbuild/SPECS/dbmail.spec
%global _hardened_build 1
%global debug_package %{nil}
%define registry_uid 38
%define registry_name dbmail
%define services dbmail-imapd dbmail-pop3d dbmail-lmtpd
dbmail-timsieved
%define git 22b964b653ba149b63b9b6787aeac7803c2121e5
Name: dbmail
Version: 3.0.2
Release: 7%{?dist}.%git
Summary: A database backed mail storage system
Group: System Environment/Daemons
License: GPLv2+ and MIT
URL: http://www.dbmail.org
Source0: http://www.dbmail.org/download/3.0/dbmail-%{git}.tar.bz2
Source1: dbmail-imapd.service
Source2: dbmail-lmtpd.service
Source3: dbmail-pop3d.service
Source4: dbmail-timsieved.service
Source5: dbmail.cron
Source6: dbmail.logrotate
Source8: dbmail.sysconfig
Source9: dbmail.tmpfiles.d
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u}
-n)
BuildRequires: gmime-devel
BuildRequires: fileutils
BuildRequires: openssl-devel
BuildRequires: glib2-devel
BuildRequires: mhash-devel
BuildRequires: libsieve-devel
BuildRequires: libzdb-devel
BuildRequires: libevent-devel
BuildRequires: openldap-devel
BuildRequires: asciidoc
BuildRequires: xmlto
BuildRequires: jemalloc-devel
Requires: glib2
Requires: logrotate
Requires: vixie-cron
Requires: /usr/sbin/sendmail
Requires: libzdb
Requires: sqlite
Requires: systemd-units
Provides: dbmail-sqlite = %{version}
Provides: dbmail-pgsql = %{version}
Provides: dbmail-mysql = %{version}
Obsoletes: dbmail-sqlite
Obsoletes: dbmail-pgsql
Obsoletes: dbmail-mysql
Requires(pre): shadow-utils, systemd-units
Requires(post): shadow-utils, systemd-units
Requires(preun): shadow-utils, systemd-units
%description
Dbmail is the name of a group of programs that enable the possiblilty of
storing and retrieving mail messages from a database
%package manpages
Group: System Environment/Daemons
Summary: dbmail-manpages and examples
%description manpages
%prep
%setup -q -n %{name}-%git
rm -f README*
sed -i 's/\(^driver\W*=\)\(\W*$\)/\1 sqlite/' dbmail.conf
sed -i -e 's,\(^db\W*=\)\(.*$\),\1 %{_localstatedir}/lib/dbmail/dbmail.db,' -e
's/\(^authdriver\W*=\)\(\W*$\)/\1
sql/' -e 's/\(^EFFECTIVE_USER\W*=\)\(.*$\)/\1 dbmail/' -e
's/\(^EFFECTIVE_GROUP\W*=\)\(.*$\)/\1 dbmail/' dbmail.conf
sed -i 's/gmime-2.4/gmime-2.6/g' configure
%build
export CFLAGS="%{optflags} -I/usr/include/zdb"
%configure --disable-rpath --disable-static --without-ldap --with-sieve
--enable-manpages
%{__make} %{?_smp_mflags}
%install
make install-strip DESTDIR=%{buildroot}
mkdir -p %{buildroot}%{_mandir}/man{1,5,8}
mkdir -p %{buildroot}%{_sysconfdir}/cron.daily
mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
mkdir -p %{buildroot}%{_localstatedir}/lib/dbmail
install -p -m 755 %SOURCE5 %{buildroot}%{_sysconfdir}/cron.daily/dbmail
install -p -m 644 %SOURCE6 %{buildroot}%{_sysconfdir}/logrotate.d/dbmail
install -p -m 644 %SOURCE8 %{buildroot}%{_sysconfdir}/sysconfig/dbmail
install -p -m 600 dbmail.conf %{buildroot}%{_sysconfdir}/
install -p -m 644 man/*1 %{buildroot}%{_mandir}/man1/
install -p -m 644 man/*5 %{buildroot}%{_mandir}/man5/
install -p -m 644 man/*8 %{buildroot}%{_mandir}/man8/
mkdir -p %{buildroot}%{_unitdir}/
install -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/
install -m 0644 %{SOURCE2} %{buildroot}%{_unitdir}/
install -m 0644 %{SOURCE3} %{buildroot}%{_unitdir}/
install -m 0644 %{SOURCE4} %{buildroot}%{_unitdir}/
mkdir -p %{buildroot}/etc/tmpfiles.d
install -m 0644 %{SOURCE9} %{buildroot}/etc/tmpfiles.d/dbmail.conf
find %{buildroot} -name \*\.la -print | xargs rm -f
rm -f %{buildroot}%{_libdir}/dbmail/libdbmail.so
%pre
getent group %{name} >/dev/null || groupadd -r %{name}
getent passwd %{name} >/dev/null || useradd -r -M -g %{name} -d / -s
/sbin/nologin -c "DBMail Daemon" %{name}
exit 0
%post
/usr/bin/systemctl --system daemon-reload 2> /dev/null > /dev/null
/usr/sbin/ldconfig
mkdir /var/run/dbmail 2> /dev/null > /dev/null
chown dbmail:dbmail /var/run/dbmail 2> /dev/null > /dev/null
chmod 755 /var/run/dbmail 2> /dev/null > /dev/null
exit 0
%preun
if [ $1 == 0 ]; then
for s in %services; do
/usr/bin/systemctl --no-reload disable $s.service 2> /dev/null > /dev/null
/usr/bin/systemctl stop $s.service 2> /dev/null > /dev/null
done
fi
exit 0
%postun
if [ "$1" -eq "0" ]; then
/usr/sbin/ldconfig
fi
/usr/bin/systemctl --system daemon-reload 2> /dev/null > /dev/null
exit 0
%files
%exclude %exclude %{_mandir}/man1/*
%exclude %{_mandir}/man5/*
%exclude %{_mandir}/man8/*
%{_sbindir}/*
%dir %{_libdir}/dbmail
%{_libdir}/dbmail/libauth_sql*
%{_libdir}/dbmail/libdbmail*
%{_libdir}/dbmail/libsort_sieve*
%attr(0644, root, root) %{_unitdir}/dbmail-*.service
%config(noreplace) %{_sysconfdir}/dbmail.conf
%config(noreplace) %{_sysconfdir}/cron.daily/dbmail
%config(noreplace) %{_sysconfdir}/sysconfig/dbmail
%config(noreplace) %{_sysconfdir}/logrotate.d/dbmail
%dir %attr(0775,root,dbmail) /var/lib/dbmail
/etc/tmpfiles.d/dbmail.conf
%files manpages
%doc INSTALL UPGRADING sql dbmail.schema
%{_mandir}/man1/*
%{_mandir}/man5/*
%{_mandir}/man8/*
%changelog
* Fri Mar 1 2013 Reindl Harald <[email protected]>
- split docs in "dbmail-manpages" subpackage
* Wed Jan 30 2013 Reindl Harald <[email protected]>
- use PrivateTmp
* Sat Apr 14 2012 Reindl Harald <[email protected]>
- Build without LDAP
* Sat Apr 14 2012 Reindl Harald <[email protected]>
- IMAP: fix leakage from optimize tokenizer change
* Thu Apr 12 2012 Reindl Harald <[email protected]>
- IMAP: config option MAX_MESSAGE_SIZE allowed by APPEND
- IMAP: optimize tokenizer for large APPENDs
- IMAP: fix back-propagation of append errors
- DELIVERY: make soft/hard bounce on over-quota configurable
* Tue Apr 10 2012 Reindl Harald <[email protected]>
- AUTOREPLY: check Precedence header
> On 06/06/2013 10:41 AM, Harald Leithner wrote:
>> I forgot to say that the problem from
>> 03987f420dfeb2f1b9e99e7f298d32931755dbc9 exists still exists in
>> a9de6918567b487bba92c3b7fbea792622714eee / master-HEAD
>>
>> So its not possible to upgrade to master-HEAD for me.
>>
>> Showing the commits was only to try to find the commit breaking dbmail
>> for me (took me 3 hours and 30 compiles and tests or so ;-)
>>
>> Am 06.06.2013, 09:15 Uhr, schrieb Paul J Stevens <[email protected]>:
>>
>>> On 06/05/2013 09:35 PM, Harald Leithner wrote:
>>>> I have 2 problems with pop3d
>>>>
>>>> on started in commit
>>>> b91a05e593dcaa6349cd7925b867a1291e90abc0
>>>
>>> Ancient.
>>>
>>>> This problem is solved in commit
>>>> 03987f420dfeb2f1b9e99e7f298d32931755dbc9
>>>
>>> A bit less ancient, but still...
>>>
>>>> Now I'm try to run commit 2bf871401693e7a3e7667152471f63797960bf97
>>>
>>> That's the parent of b91a0
>>>
>>> All three are right in the start of a very invasive memory management
>>> audit and cleanup.
>>>
>>> Try master-HEAD; massive amounts of work have been done since September.
--
Reindl Harald
the lounge interactive design GmbH
A-1060 Vienna, Hofmühlgasse 17
CTO / CISO / Software-Development
m: +43 (676) 40 221 40, p: +43 (1) 595 3999 33
icq: 154546673, http://www.thelounge.net/
http://www.thelounge.net/signature.asc.what.htm
signature.asc
Description: OpenPGP digital signature
_______________________________________________ DBmail mailing list [email protected] http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail
