%define _source http://mysql.wildyou.net/Downloads/%{name}/%{name}-%{version}.tar.gz
%endif
-%define _rel 222
+%define _rel 231
Summary: Eventum Issue / Bug tracking system
Summary(pl): Eventum - system ¶ledzenia spraw/b³êdów
Patch18: %{name}-default-TZ.patch
Patch19: %{name}-charset-mailsubj.patch
Patch20: %{name}-monitor-bot-process.patch
+Patch21: %{name}-maillock.patch
URL: http://dev.mysql.com/downloads/other/eventum/index.html
BuildRequires: rpmbuild(macros) >= 1.177
BuildRequires: sed >= 4.0
Summary: Eventum Mail Routing - qmail
Summary(pl): Przekazywanie poczty Eventum - qmail
Group: Applications/Mail
-Requires: %{name}-base = %{epoch}:%{version}-%{release}
+Requires: %{name} = %{epoch}:%{version}-%{release}
Requires: qmail >= 1.03
+Obsoletes: eventum-router
Provides: eventum-router
%description router-qmail
Summary: Eventum Mail Routing - Postfix
Summary(pl): Przekazywanie poczty Eventum - Postfix
Group: Applications/Mail
-Requires: %{name}-base = %{epoch}:%{version}-%{release}
+Requires: %{name} = %{epoch}:%{version}-%{release}
Requires: postfix
+Obsoletes: eventum-router
Provides: eventum-router
%description router-postfix
#%patch18 -p1
%patch19 -p1
%patch20 -p1
+%patch21 -p1
# replace in remaining scripts config.inc.php to system one
grep -rl 'include_once(".*config.inc.php")' . | xargs sed -i -e '
%postun base
if [ "$1" = "0" ]; then
- %groupremove %{name}
%userremove %{name}
+ %groupremove %{name}
fi
%post router-qmail
CF=/etc/qmail/control/virtualdomains
if ! grep -q ':%{name}\b' $CF 2>/dev/null; then
- FQDN=$(hostname -f 2>/dev/null || echo localhost)
+ FQDN=$(awk -F'"' '/define/ && $2 ~ /APP_HOSTNAME/ {print $4}' %{_sysconfdir}/config.php 2>/dev/null)
+ [ "$FQDN" ] || FQDN=$(hostname -f 2>/dev/null || echo localhost)
umask 022
echo "#${FQDN}:%{name}" >> $CF
Please verify that it is correct and restart qmail:
# service qmail reload
-Consult qmail-send(8) for more details on virtualdomains.
+Consult qmail-send(8) for more information on virtualdomains.
EOF
fi
%attr(751,root,root) %dir %{_sysconfdir}
%dir %{_libdir}
%dir %{_appdir}
-%attr(750,root,eventum) %dir /var/lib/%{name}
+# qmail will ignore user, if it's home directory is not owned
+%attr(750,eventum,eventum) %dir /var/lib/%{name}
%files setup
%defattr(644,root,root,755)