SPECS (AC-branch): mailman.spec - fix triggers (did they ever got ...
glen
glen at pld-linux.org
Mon Oct 10 08:46:38 CEST 2005
Author: glen Date: Mon Oct 10 06:46:38 2005 GMT
Module: SPECS Tag: AC-branch
---- Log message:
- fix triggers (did they ever got tested?? maybe remove old triggers if they didn't)
---- Files affected:
SPECS:
mailman.spec (1.80.2.5 -> 1.80.2.6)
---- Diffs:
================================================================
Index: SPECS/mailman.spec
diff -u SPECS/mailman.spec:1.80.2.5 SPECS/mailman.spec:1.80.2.6
--- SPECS/mailman.spec:1.80.2.5 Mon Oct 10 01:58:02 2005
+++ SPECS/mailman.spec Mon Oct 10 08:46:32 2005
@@ -255,19 +255,28 @@
fi
fi
-%triggerpostun -- mailman <= mailman 3:2.0.13-6
+%triggerpostun -- mailman <= 3:2.0.13-6
if [ -f /var/spool/cron/%{name} ]; then
crontab -u %{name} -r
fi
-%triggerpostun -- mailman < mailman %{epoch}:%{version}-%{release}
+%triggerpostun -- mailman < %{epoch}:%{version}-%{release}
+# TODO, move this to pre or post as it will kill any other trigger as
+# it's the "best match", besides "triggerpostun < %{epoch}:%{version}-%{release}"
+# and "post" are called with same criteria
%{_libdir}/mailman/bin/update
-#%triggerin -- mailman < mailman %{epoch}:%{version}-%{release}
+#%triggerpostun -- mailman < 5:2.1.5-7.1
+# NB, the trigger with bin/update will kill running of any other
+# trigger as only one trigger is ran per upgrade!!!
#if [ -f /var/lock/subsys/mailman ]; then
# /etc/rc.d/init.d/mailman stop 1>&2
# stopped=true
#fi
+#if [ "`getent passwd mailman | cut -d: -f6`" != "%{_var}/lib/%{name}" ]; then
+# echo "Fixing passwd entry"
+# /usr/sbin/usermod -d %{_var}/lib/%{name} mailman
+#fi
#echo "Moving data from /var/spool/mailman to /var/lib/mailman"
#mv -f /var/spool/mailman/archives/* %{_var}/lib/mailman/archives/
#mv -f /var/spool/mailman/data/* %{_var}/lib/mailman/data/
@@ -338,6 +347,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.80.2.6 2005/10/10 06:46:32 glen
+- fix triggers (did they ever got tested?? maybe remove old triggers if they didn't)
+
Revision 1.80.2.5 2005/10/09 23:58:02 baggins
- FHS compliant
- how to trigger spool -> lib move (triggerin?)?
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/mailman.spec?r1=1.80.2.5&r2=1.80.2.6&f=u
More information about the pld-cvs-commit
mailing list