See comment below...

--- Jean-Michel Dault <[EMAIL PROTECTED]> wrote:
> Name        : imp3                        
> Version     : 3.1                              
> Release     : 2mdk                          Build
> --=-=-=
> imp3.spec changed
> --- imp3-3.1-1mdk.src.rpm/imp3.spec 2003-02-17
> 10:17:31.000000000 +0100
> +++ imp3-3.1-2mdk.src.rpm/imp3.spec 2003-02-17
> 10:17:31.000000000 +0100
>  %post
> -perl -pi -e 's/$/ index.php/ if
> (/DirectoryIndex\s.*index\.html/ && !/index\.php/);'
> %{apachedir}/conf/httpd.conf
> -grep -i 'Include.*imp.conf$'
> %{apachedir}/conf/httpd.conf >/dev/null 2>&1
> -if [ $? -eq 0 ]; then
> - perl -pi -e 's/^#+// if (/Include.*imp.conf$/i);'
> %{apachedir}/conf/httpd.conf
> -else
> - echo "Include %{apachedir}/conf/imp.conf" >>
> %{apachedir}/conf/httpd.conf
> +alias FIXME="perl -pi -e"
> +#Upgrade: remove line and reinstall it (only for
> Apache 1.3)
> +if [ $1 -gt 1 ]; then
> +   for config in
> %{ap_base}/conf/{httpd,httpd-perl}.conf; do
> +     if [ -e $config ]; then
> + FIXME 's/.*//s if (/Include.*horde.conf$/i);'
> $config
> + echo "Include conf.d/%{mod_conf}" >> $config
> +     fi
> +   done
>  fi
> -cd %{contentdir}/html/horde/imp/config/
> -sh update-maildomain.sh
> -cd -

You shouldn't remove the running of the above script,
because IIRC, if you don't run that imp will be
configured to think your hostname is localhost, and if
you send mail from it, it'll say it's from
user@localhost, and running that script actually made
it configured correctly for your hostname out of the
box.

> -/sbin/service httpd graceful
> -sleep 1  # settling time vs. installing multiple
> RPMs at a time
> -# post-install instructions:
> -#cat <<_EOF_
> -#_EOF_
> +#Install (only for Apache 1.3)
> +if [ $1 = "1" ]; then
> +   for config in
> %{ap_base}/conf/{httpd,httpd-perl}.conf; do
> +     if [ -e $config ]; then
> + echo "Include conf.d/%{mod_conf}" >> $config
> +     fi
> +   done
> +fi
> +%ADVXpost

__________________________________________________
Do you Yahoo!?
Yahoo! Shopping - Send Flowers for Valentine's Day
http://shopping.yahoo.com

Reply via email to