esac
fi
+%posttrans
+%{_sysconfdir}/rc.d/init.d/dovecot restart > /dev/null 2>&1 || :
+
#=============================================================================
%package devel
Summary : tools and components to test '%{name}'
do_doveconf()
{
-DOVCONF=/etc/dovecot/dovecot.conf
-BEFMAIL=/etc/dovecot/dovecot.conf.before.$APPNAME
-DOVMAIL=/etc/$APPNAME/dovecot/dovecot.conf
-
-if [ ! -f $BEFMAIL ] ; then
- ln -nsf \
- /etc/$APPNAME/dovecot/dovecot-2.0-auth-sql.conf \
- /etc/$APPNAME/dovecot/dovecot-auth-sql.conf
- ln -nsf \
- /etc/$APPNAME/dovecot/dovecot-2.0-auth-ldap.conf\
- /etc/$APPNAME/dovecot/dovecot-auth-ldap.conf
-
- ln -nsf \
- /etc/$APPNAME/dovecot/dovecot-auth-sql.conf \
- /etc/$APPNAME/dovecot/dovecot-auth.conf
- cat /etc/$APPNAME/dovecot/dovecot-auth.conf >> $DOVCONF
-
- mv $DOVCONF $BEFMAIL
- ln -nsf $DOVMAIL $DOVCONF
- /etc/rc.d/init.d/dovecot condrestart
- fi
+service dovecot restart
}
#----------------------------------------------------------------------