Author: glen Date: Thu Feb 24 13:05:01 2005 GMT Module: SPECS Tag: HEAD ---- Log message: - created router-qmail (and unimplemented postfix router)
---- Files affected: SPECS: eventum.spec (1.57 -> 1.58) ---- Diffs: ================================================================ Index: SPECS/eventum.spec diff -u SPECS/eventum.spec:1.57 SPECS/eventum.spec:1.58 --- SPECS/eventum.spec:1.57 Thu Feb 24 13:10:43 2005 +++ SPECS/eventum.spec Thu Feb 24 14:04:56 2005 @@ -8,12 +8,13 @@ # - dynCalendar.js (http://www.phpguru.org/dyncalendar.html) # - overLIB 3.5.1 (http://www.bosrup.com/web/overlib/) # - A few other small javascript libraries -# - create eventum-router-qmail, eventum-router-postfix for -route-mails and -route-notes # - need start-stop-daemon (from dpkg for now) -# - use eventum user for irc bot? %bcond_with pear # build with system PEAR packages (or use bundled ones) +%define uid 146 +%define gid 146 + # snapshot: DATE %define _snap 20050222 @@ -23,16 +24,13 @@ %define _source http://mysql.wildyou.net/Downloads/%{name}/%{name}-%{version}.tar.gz %endif -%define _rel 2.209 - -%define uid 146 -%define gid 146 +%define _rel 222 Summary: Eventum Issue / Bug tracking system Summary(pl): Eventum - system śledzenia spraw/błędów Name: eventum Version: 1.4 -Release: %{?_snap:2.%{_snap}.}%{_rel} +Release: 2.%{?_snap:%{_snap}.}%{_rel} License: GPL Group: Applications/WWW Source0: %{_source} @@ -47,6 +45,7 @@ Source8: %{name}-irc.init Source9: %{name}-irc.sysconfig Source10: %{name}-config.php +Source11: %{name}-router-qmail.sh Patch0: %{name}-paths.patch Patch1: %{name}-scm-encode.patch Patch2: %{name}-cvs-config.patch @@ -260,7 +259,7 @@ Group: Applications/WWW Requires: %{name} = %{epoch}:%{version}-%{release} Requires: php >= 4.1.0 -#Requires: eventum-router +Requires: eventum-router %description route-emails The email routing feature is used to automatically associate a thread @@ -286,7 +285,7 @@ Group: Applications/WWW Requires: %{name} = %{epoch}:%{version}-%{release} Requires: php >= 4.1.0 -#Requires: eventum-router +Requires: eventum-router %description route-notes The note routing feature is used to automatically associate a thread @@ -306,6 +305,28 @@ pochodzące od Eventu, a odpowiedzi te będą automatycznie wiązane ze sprawą i rozprowadzane do członków personelu listy ogłoszeniowej. +%package router-qmail +Summary: Eventum Mail Routing - qmail +Group: Applications/Mail +Requires: %{name}-base = %{epoch}:%{version}-%{release} +Requires: qmail >= 1.03 +Provides: eventum-router + +%description router-qmail +This package provides way of routing notes and emails back to Eventum +via qmail. + +%package router-postfix +Summary: Eventum Mail Routing - Postfix +Group: Applications/Mail +Requires: %{name}-base = %{epoch}:%{version}-%{release} +Requires: postfix +Provides: eventum-router + +%description router-postfix +This package provides way of routing notes and emails back to Eventum +via Postfix. + %package irc Summary: Eventum IRC Notification Bot Summary(pl): IRC-owy bot powiadamiający dla Eventum @@ -430,7 +451,7 @@ install -d \ $RPM_BUILD_ROOT{%{_sysconfdir},%{_bindir},%{_libdir}} \ $RPM_BUILD_ROOT/etc/{rc.d/init.d,cron.d,sysconfig} \ - $RPM_BUILD_ROOT/var/{run,log,cache}/%{name} \ + $RPM_BUILD_ROOT/var/{run,log,cache,lib}/%{name} \ $RPM_BUILD_ROOT%{_appdir}/{include,htdocs/misc} \ cp -a *.php css customer images js manage reports rpc setup $RPM_BUILD_ROOT%{_appdir}/htdocs @@ -493,6 +514,15 @@ cp -a include/Smarty/plugins/function.{calendar,get_{display_style,innerhtml,textarea_size}}.php \ $RPM_BUILD_ROOT%{_smartyplugindir} +# qmail router +d=$RPM_BUILD_ROOT/var/lib/%{name} +echo 'root' > $d/.qmail +echo 'root' > $d/.qmail-default +echo '| %{_libdir}/router-qmail drafts' > $d/.qmail-draft-default +echo '| %{_libdir}/router-qmail emails 1' > $d/.qmail-issue-default +echo '| %{_libdir}/router-qmail notes' > $d/.qmail-note-default +install %{SOURCE11} $RPM_BUILD_ROOT%{_libdir}/router-qmail + %clean rm -rf $RPM_BUILD_ROOT @@ -551,7 +581,6 @@ EOF fi - %preun if [ "$1" = "0" ]; then # apache1 @@ -576,22 +605,45 @@ %pre base %groupadd -P %{name}-base %{name} -%useradd -P %{name}-base -d %{_appdir} -g %{name} %{name} -c "Eventum User" +%useradd -P %{name}-base -d /var/lib/%{name} -g %{name} %{name} -c "Eventum User" %postun base if [ "$1" = "0" ]; then - %userremove %{name} %groupremove %{name} + %userremove %{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) + umask 022 + echo "#${FQDN}:%{name}" >> $CF + +%banner %{name}-qmail -e <<EOF + +Added "#${FQDN}:%{name}" to $CF, +Please verify that it is correct and restart qmail: +# service qmail reload + +Consult qmail-send(8) for more details on virtualdomains. + +EOF +fi + +%preun router-qmail +if [ "$1" = "0" ]; then + sed -i -e '/:%{name}\b/d' /etc/qmail/control/virtualdomains fi %post setup chmod 660 %{_sysconfdir}/{config,private_key}.php -chown root:http %{_sysconfdir}/{config,private_key}.php +chown root:eventum %{_sysconfdir}/{config,private_key}.php %postun setup if [ "$1" = "0" ]; then chmod 640 %{_sysconfdir}/{config,private_key}.php - chown root:http %{_sysconfdir}/{config,private_key}.php + chown root:eventum %{_sysconfdir}/{config,private_key}.php fi %triggerpostun -- eventum < 1.4-2.160 @@ -630,6 +682,11 @@ %triggerpostun irc -- eventum-irc < 1.4-2.20050222.2.208 chgrp eventum %{_sysconfdir}/irc.php +%triggerpostun base -- eventum-base < 1.4-2.20050222.212 +if [ "`getent passwd %{name} | cut -d: -f6`" = "%{_appdir}" ]; then + /usr/sbin/usermod -d /var/lib/%{name} %{name} +fi + %files %defattr(644,root,root,755) %doc ChangeLog FAQ INSTALL README UPGRADE @@ -681,6 +738,7 @@ %attr(751,root,root) %dir %{_sysconfdir} %dir %{_libdir} %dir %{_appdir} +%attr(750,root,eventum) %dir /var/lib/%{name} %files setup %defattr(644,root,root,755) @@ -716,6 +774,14 @@ %{_appdir}/route_drafts.php %{_appdir}/route_notes.php +%files router-qmail +%defattr(644,root,root,755) +%attr(640,root,eventum) %config(noreplace) %verify(not md5 mtime size) /var/lib/%{name}/.qmail* +%attr(755,root,root) %{_libdir}/router-qmail + +%files router-postfix +%defattr(644,root,root,755) + %files irc %defattr(644,root,root,755) %attr(640,root,eventum) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/irc.php @@ -741,6 +807,9 @@ All persons listed below can be reached at <cvs_login>@pld-linux.org $Log$ +Revision 1.58 2005/02/24 13:04:56 glen +- created router-qmail (and unimplemented postfix router) + Revision 1.57 2005/02/24 12:10:43 glen - use eventum uid/gid - fix for monitor.php not finding irc-bot pid ================================================================ ---- CVS-web: http://cvs.pld-linux.org/SPECS/eventum.spec?r1=1.57&r2=1.58&f=u _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
