SPECS (DEVEL): sqwebmail.spec - updated to 5.0.1, removed -build.p...

Elan Ruusamäe glen at delfi.ee
Sat Mar 5 11:51:56 CET 2005


On Saturday 05 March 2005 00:46, andree wrote:
> Author: andree                       Date: Fri Mar  4 22:46:16 2005 GMT
> Module: SPECS                         Tag: DEVEL
> ---- Log message:
> - updated to 5.0.1, removed -build.patch (obsolete)
> - updated URL, change imagedir
> - updated post, preun for apache1,2
>
> ---- Files affected:
> SPECS:
>    sqwebmail.spec (1.70.2.2 -> 1.70.2.3)



>  %preun
>  if [ "$1" = "0" ]; then
>      umask 027
> -        if [ -d /etc/httpd/httpd.conf ]; then
> -                rm -f /etc/httpd/httpd.conf/99_%{name}.conf
> -        else
> -                grep -v "^Include.*%{name}.conf" /etc/httpd/httpd.conf > \
> -                        /etc/httpd/httpd.conf.tmp
> -                mv -f /etc/httpd/httpd.conf.tmp /etc/httpd/httpd.conf
> -                if [ -f /var/lock/subsys/httpd ]; then
> -                        /usr/sbin/apachectl restart 1>&2
> -                fi
> +    if [ -d /etc/httpd/httpd.conf ]; then
> + rm -f /etc/httpd/httpd.conf/99_%{name}.conf
> +        if [ -f /var/lock/subsys/httpd ]; then
> +         /usr/sbin/apachectl restart 1>&2
> +        fi
> +    elif [ -f /etc/apache/apache.conf ]; then
> +        grep -v "^Include.*%{name}.conf" /etc/apache/apache.conf > \
> +        /etc/apache/apache.conf.tmp
> +        mv -f /etc/apache/apache.conf.tmp /etc/apache/apache.conf
> +        if [ -f /var/lock/subsys/apache ]; then
> +            /etc/rc.d/init.d/apache restart 1>&2
>          fi
> +    fi
>  fi

please see horde.spec (imp.spec, chora.spec, ...) how to do apache1/apache2 
config changes, ie apache version independant package.

probably should add the information to devel-hints-en ?

-- 
glen




More information about the pld-devel-en mailing list