--- rpms/smeserver-mailman/contribs9/smeserver-mailman.spec 2015/08/21 17:26:10 1.4 +++ rpms/smeserver-mailman/contribs9/smeserver-mailman.spec 2015/09/08 12:15:10 1.6 @@ -1,4 +1,4 @@ -# $Id: smeserver-mailman.spec,v 1.3 2015/08/21 17:20:19 stephdl Exp $ +# $Id: smeserver-mailman.spec,v 1.5 2015/09/07 17:27:21 stephdl Exp $ # Authority: gordonr # Name: Gordon Rowell @@ -9,7 +9,7 @@ Summary: Mailman configuration for SME s %define name smeserver-mailman Name: %{name} %define version 1.5.0 -%define release 3 +%define release 5 Version: %{version} Release: %{release}%{?dist} License: GPL @@ -30,8 +30,12 @@ AutoReqProv: no Add Mailman integration to the SME server. %changelog +* Fri Aug 21 2015 stephane de Labrusse 1.5.0-5.sme +- mailman wants that the group apache appears before the www group in /etc/group +- script added in %pre to change that order. [SME: 8056] + * Fri Aug 21 2015 stephane de Labrusse 1.5.0-3.sme -- Initial release to contribs9 +- Initial release to contribs9 [SME: 8453] * Fri Jun 20 2014 stephane de Labrusse 1.5.0-1.sme - Initial release to sme9 @@ -350,6 +354,17 @@ rm -rf $RPM_BUILD_ROOT /sbin/e-smith/create-system-user mailman 41 \ "Mailman user" /usr/lib/mailman /bin/false +#mailman wants that the apache group appears before the www group in /etc/group [SME: 8056] +TEST=$(grep -P '^www|apache' /etc/group) +TEST2='www:x:102:admin +apache:x:102:' + +if [[ $TEST == $TEST2 ]]; then + WWW=$(sed -n '/^www/p' /etc/group) + sed -i '/^www/d' /etc/group + echo $WWW >> /etc/group +fi + %post %preun