Sophie

Sophie

distrib > PLD > ac > amd64 > by-pkgid > 2eb9734eb3dcef2940141b5451112336 > scriptlet

horde-turba-2.1.4-1.noarch.rpm

POSTIN

/bin/sh
if [ ! -f /etc/webapps/horde-turba/conf.php.bak ]; then
	install /dev/null -o root -g http -m660 /etc/webapps/horde-turba/conf.php.bak
fi

if [ "$1" = 1 ]; then

RPM_SCRIPTVERBOSITY=5 
[ -r /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm 
if [ -x /usr/bin/banner.sh ]; then 
	CMD="/usr/bin/banner.sh --stderr $([ $RPM_SCRIPTVERBOSITY -ge 5 ] && echo -s) -m horde-turba" 
else 
	CMD="cat >&2" 
fi 
eval $CMD <<EOF 
IMPORTANT:
If you are installing for the first time, You may need to
create the Turba database tables. Look into directory
/usr/share/doc/horde-turba-2.1.4/sql
to find out how to do this for your database.

For LDAP backend you need php-ldap package.
If you want to store freebusy information in LDAP database, also
install openldap-schema-rfc2739 package.

EOF
fi

Triggers

apache1 < 1.3.37-3

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register apache horde-turba
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/apache/webapps.d/horde-turba.conf ] && [ "$2" -lt "2" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };
fi

apache1-base

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/apache/webapps.d/horde-turba.conf ]; then 
	/usr/sbin/webapp unregister apache horde-turba
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };
fi

apache1 < 1.3.37-3

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register httpd horde-turba
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/httpd/webapps.d/horde-turba.conf ] && [ "$2" -lt "2" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };
fi

apache1-base

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/httpd/webapps.d/horde-turba.conf ]; then 
	/usr/sbin/webapp unregister httpd horde-turba
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };
fi

apache < 2.2.0

/bin/sh
if [ -f /etc/httpd/httpd.conf ]; then
	sed -i -e '/^Include.*turba.conf/d' /etc/httpd/httpd.conf
fi

if [ -f /etc/httpd/turba.conf.rpmsave ]; then
	cp -f /etc/webapps/horde-turba/apache.conf{,.rpmnew}
	mv -f /etc/httpd/turba.conf.rpmsave /etc/webapps/horde-turba/apache.conf
fi

{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd restart 1>&2 || :;
fi
fi };

apache-base

/bin/sh
for i in attributes.php conf.php menu.php prefs.php sources.php; do
	if [ -f /etc/horde.org/turba/$i.rpmsave ]; then
		mv -f /etc/webapps/horde-turba/$i{,.rpmnew}
		mv -f /etc/horde.org/turba/$i.rpmsave /etc/webapps/horde-turba/$i
	fi
done

if [ -f /etc/horde.org/apache-turba.conf.rpmsave ]; then
	mv -f /etc/webapps/horde-turba/apache.conf{,.rpmnew}
	mv -f /etc/webapps/horde-turba/httpd.conf{,.rpmnew}
	cp -f /etc/horde.org/apache-turba.conf.rpmsave /etc/webapps/horde-turba/apache.conf
	cp -f /etc/horde.org/apache-turba.conf.rpmsave /etc/webapps/horde-turba/httpd.conf
fi

if [ -L /etc/apache/conf.d/99_horde-turba.conf ]; then
	/usr/sbin/webapp register apache horde-turba
	rm -f /etc/apache/conf.d/99_horde-turba.conf
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };fi
if [ -L /etc/httpd/httpd.conf/99_horde-turba.conf ]; then
	/usr/sbin/webapp register httpd horde-turba
	rm -f /etc/httpd/httpd.conf/99_horde-turba.conf
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };fi

apache < 2.2.0

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register apache horde-turba
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/apache/webapps.d/horde-turba.conf ] && [ "$2" -lt "2" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };
fi

apache-base

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/apache/webapps.d/horde-turba.conf ]; then 
	/usr/sbin/webapp unregister apache horde-turba
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };
fi

turba <= 1.2.2-2

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register httpd horde-turba
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/httpd/webapps.d/horde-turba.conf ] && [ "$2" -lt "2" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };
fi

horde-turba < 2.1-1.rc2.0.2

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/httpd/webapps.d/horde-turba.conf ]; then 
	/usr/sbin/webapp unregister httpd horde-turba
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };
fi

turba

/bin/sh
if [ -f /etc/httpd/httpd.conf ]; then
	sed -i -e '/^Include.*turba.conf/d' /etc/httpd/httpd.conf
fi

if [ -f /etc/httpd/turba.conf.rpmsave ]; then
	cp -f /etc/webapps/horde-turba/apache.conf{,.rpmnew}
	mv -f /etc/httpd/turba.conf.rpmsave /etc/webapps/horde-turba/apache.conf
fi

{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd restart 1>&2 || :;
fi
fi };

apache1 < 1.3.37-3

/bin/sh
for i in attributes.php conf.php menu.php prefs.php sources.php; do
	if [ -f /etc/horde.org/turba/$i.rpmsave ]; then
		mv -f /etc/webapps/horde-turba/$i{,.rpmnew}
		mv -f /etc/horde.org/turba/$i.rpmsave /etc/webapps/horde-turba/$i
	fi
done

if [ -f /etc/horde.org/apache-turba.conf.rpmsave ]; then
	mv -f /etc/webapps/horde-turba/apache.conf{,.rpmnew}
	mv -f /etc/webapps/horde-turba/httpd.conf{,.rpmnew}
	cp -f /etc/horde.org/apache-turba.conf.rpmsave /etc/webapps/horde-turba/apache.conf
	cp -f /etc/horde.org/apache-turba.conf.rpmsave /etc/webapps/horde-turba/httpd.conf
fi

if [ -L /etc/apache/conf.d/99_horde-turba.conf ]; then
	/usr/sbin/webapp register apache horde-turba
	rm -f /etc/apache/conf.d/99_horde-turba.conf
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };fi
if [ -L /etc/httpd/httpd.conf/99_horde-turba.conf ]; then
	/usr/sbin/webapp register httpd horde-turba
	rm -f /etc/httpd/httpd.conf/99_horde-turba.conf
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };fi

apache1-base

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register apache horde-turba
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/apache/webapps.d/horde-turba.conf ] && [ "$2" -lt "2" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };
fi

apache1 < 1.3.37-3

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/apache/webapps.d/horde-turba.conf ]; then 
	/usr/sbin/webapp unregister apache horde-turba
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };
fi

apache1-base

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register httpd horde-turba
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/httpd/webapps.d/horde-turba.conf ] && [ "$2" -lt "2" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };
fi

apache < 2.2.0

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/httpd/webapps.d/horde-turba.conf ]; then 
	/usr/sbin/webapp unregister httpd horde-turba
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };
fi

apache-base

/bin/sh
if [ -f /etc/httpd/httpd.conf ]; then
	sed -i -e '/^Include.*turba.conf/d' /etc/httpd/httpd.conf
fi

if [ -f /etc/httpd/turba.conf.rpmsave ]; then
	cp -f /etc/webapps/horde-turba/apache.conf{,.rpmnew}
	mv -f /etc/httpd/turba.conf.rpmsave /etc/webapps/horde-turba/apache.conf
fi

{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd restart 1>&2 || :;
fi
fi };

apache < 2.2.0

/bin/sh
for i in attributes.php conf.php menu.php prefs.php sources.php; do
	if [ -f /etc/horde.org/turba/$i.rpmsave ]; then
		mv -f /etc/webapps/horde-turba/$i{,.rpmnew}
		mv -f /etc/horde.org/turba/$i.rpmsave /etc/webapps/horde-turba/$i
	fi
done

if [ -f /etc/horde.org/apache-turba.conf.rpmsave ]; then
	mv -f /etc/webapps/horde-turba/apache.conf{,.rpmnew}
	mv -f /etc/webapps/horde-turba/httpd.conf{,.rpmnew}
	cp -f /etc/horde.org/apache-turba.conf.rpmsave /etc/webapps/horde-turba/apache.conf
	cp -f /etc/horde.org/apache-turba.conf.rpmsave /etc/webapps/horde-turba/httpd.conf
fi

if [ -L /etc/apache/conf.d/99_horde-turba.conf ]; then
	/usr/sbin/webapp register apache horde-turba
	rm -f /etc/apache/conf.d/99_horde-turba.conf
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };fi
if [ -L /etc/httpd/httpd.conf/99_horde-turba.conf ]; then
	/usr/sbin/webapp register httpd horde-turba
	rm -f /etc/httpd/httpd.conf/99_horde-turba.conf
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };fi

apache-base

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register apache horde-turba
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/apache/webapps.d/horde-turba.conf ] && [ "$2" -lt "2" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };
fi

turba <= 1.2.2-2

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/apache/webapps.d/horde-turba.conf ]; then 
	/usr/sbin/webapp unregister apache horde-turba
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };
fi

horde-turba < 2.1-1.rc2.0.2

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register httpd horde-turba
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/httpd/webapps.d/horde-turba.conf ] && [ "$2" -lt "2" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };
fi

turba

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/httpd/webapps.d/horde-turba.conf ]; then 
	/usr/sbin/webapp unregister httpd horde-turba
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };
fi

apache1 < 1.3.37-3

/bin/sh
if [ -f /etc/httpd/httpd.conf ]; then
	sed -i -e '/^Include.*turba.conf/d' /etc/httpd/httpd.conf
fi

if [ -f /etc/httpd/turba.conf.rpmsave ]; then
	cp -f /etc/webapps/horde-turba/apache.conf{,.rpmnew}
	mv -f /etc/httpd/turba.conf.rpmsave /etc/webapps/horde-turba/apache.conf
fi

{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd restart 1>&2 || :;
fi
fi };

apache1-base

/bin/sh
for i in attributes.php conf.php menu.php prefs.php sources.php; do
	if [ -f /etc/horde.org/turba/$i.rpmsave ]; then
		mv -f /etc/webapps/horde-turba/$i{,.rpmnew}
		mv -f /etc/horde.org/turba/$i.rpmsave /etc/webapps/horde-turba/$i
	fi
done

if [ -f /etc/horde.org/apache-turba.conf.rpmsave ]; then
	mv -f /etc/webapps/horde-turba/apache.conf{,.rpmnew}
	mv -f /etc/webapps/horde-turba/httpd.conf{,.rpmnew}
	cp -f /etc/horde.org/apache-turba.conf.rpmsave /etc/webapps/horde-turba/apache.conf
	cp -f /etc/horde.org/apache-turba.conf.rpmsave /etc/webapps/horde-turba/httpd.conf
fi

if [ -L /etc/apache/conf.d/99_horde-turba.conf ]; then
	/usr/sbin/webapp register apache horde-turba
	rm -f /etc/apache/conf.d/99_horde-turba.conf
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };fi
if [ -L /etc/httpd/httpd.conf/99_horde-turba.conf ]; then
	/usr/sbin/webapp register httpd horde-turba
	rm -f /etc/httpd/httpd.conf/99_horde-turba.conf
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };fi

apache1 < 1.3.37-3

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register apache horde-turba
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/apache/webapps.d/horde-turba.conf ] && [ "$2" -lt "2" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };
fi

apache1-base

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/apache/webapps.d/horde-turba.conf ]; then 
	/usr/sbin/webapp unregister apache horde-turba
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };
fi

apache < 2.2.0

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register httpd horde-turba
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/httpd/webapps.d/horde-turba.conf ] && [ "$2" -lt "2" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };
fi

apache-base

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/httpd/webapps.d/horde-turba.conf ]; then 
	/usr/sbin/webapp unregister httpd horde-turba
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };
fi

apache < 2.2.0

/bin/sh
if [ -f /etc/httpd/httpd.conf ]; then
	sed -i -e '/^Include.*turba.conf/d' /etc/httpd/httpd.conf
fi

if [ -f /etc/httpd/turba.conf.rpmsave ]; then
	cp -f /etc/webapps/horde-turba/apache.conf{,.rpmnew}
	mv -f /etc/httpd/turba.conf.rpmsave /etc/webapps/horde-turba/apache.conf
fi

{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd restart 1>&2 || :;
fi
fi };

apache-base

/bin/sh
for i in attributes.php conf.php menu.php prefs.php sources.php; do
	if [ -f /etc/horde.org/turba/$i.rpmsave ]; then
		mv -f /etc/webapps/horde-turba/$i{,.rpmnew}
		mv -f /etc/horde.org/turba/$i.rpmsave /etc/webapps/horde-turba/$i
	fi
done

if [ -f /etc/horde.org/apache-turba.conf.rpmsave ]; then
	mv -f /etc/webapps/horde-turba/apache.conf{,.rpmnew}
	mv -f /etc/webapps/horde-turba/httpd.conf{,.rpmnew}
	cp -f /etc/horde.org/apache-turba.conf.rpmsave /etc/webapps/horde-turba/apache.conf
	cp -f /etc/horde.org/apache-turba.conf.rpmsave /etc/webapps/horde-turba/httpd.conf
fi

if [ -L /etc/apache/conf.d/99_horde-turba.conf ]; then
	/usr/sbin/webapp register apache horde-turba
	rm -f /etc/apache/conf.d/99_horde-turba.conf
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };fi
if [ -L /etc/httpd/httpd.conf/99_horde-turba.conf ]; then
	/usr/sbin/webapp register httpd horde-turba
	rm -f /etc/httpd/httpd.conf/99_horde-turba.conf
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };fi

turba <= 1.2.2-2

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register apache horde-turba
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/apache/webapps.d/horde-turba.conf ] && [ "$2" -lt "2" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };
fi

horde-turba < 2.1-1.rc2.0.2

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/apache/webapps.d/horde-turba.conf ]; then 
	/usr/sbin/webapp unregister apache horde-turba
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };
fi

turba

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register httpd horde-turba
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/httpd/webapps.d/horde-turba.conf ] && [ "$2" -lt "2" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };
fi

apache1 < 1.3.37-3

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/httpd/webapps.d/horde-turba.conf ]; then 
	/usr/sbin/webapp unregister httpd horde-turba
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };
fi

apache1-base

/bin/sh
if [ -f /etc/httpd/httpd.conf ]; then
	sed -i -e '/^Include.*turba.conf/d' /etc/httpd/httpd.conf
fi

if [ -f /etc/httpd/turba.conf.rpmsave ]; then
	cp -f /etc/webapps/horde-turba/apache.conf{,.rpmnew}
	mv -f /etc/httpd/turba.conf.rpmsave /etc/webapps/horde-turba/apache.conf
fi

{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd restart 1>&2 || :;
fi
fi };

apache1 < 1.3.37-3

/bin/sh
for i in attributes.php conf.php menu.php prefs.php sources.php; do
	if [ -f /etc/horde.org/turba/$i.rpmsave ]; then
		mv -f /etc/webapps/horde-turba/$i{,.rpmnew}
		mv -f /etc/horde.org/turba/$i.rpmsave /etc/webapps/horde-turba/$i
	fi
done

if [ -f /etc/horde.org/apache-turba.conf.rpmsave ]; then
	mv -f /etc/webapps/horde-turba/apache.conf{,.rpmnew}
	mv -f /etc/webapps/horde-turba/httpd.conf{,.rpmnew}
	cp -f /etc/horde.org/apache-turba.conf.rpmsave /etc/webapps/horde-turba/apache.conf
	cp -f /etc/horde.org/apache-turba.conf.rpmsave /etc/webapps/horde-turba/httpd.conf
fi

if [ -L /etc/apache/conf.d/99_horde-turba.conf ]; then
	/usr/sbin/webapp register apache horde-turba
	rm -f /etc/apache/conf.d/99_horde-turba.conf
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };fi
if [ -L /etc/httpd/httpd.conf/99_horde-turba.conf ]; then
	/usr/sbin/webapp register httpd horde-turba
	rm -f /etc/httpd/httpd.conf/99_horde-turba.conf
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };fi

apache1-base

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register apache horde-turba
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/apache/webapps.d/horde-turba.conf ] && [ "$2" -lt "2" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };
fi

apache < 2.2.0

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/apache/webapps.d/horde-turba.conf ]; then 
	/usr/sbin/webapp unregister apache horde-turba
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };
fi

apache-base

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register httpd horde-turba
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/httpd/webapps.d/horde-turba.conf ] && [ "$2" -lt "2" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };
fi

apache < 2.2.0

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/httpd/webapps.d/horde-turba.conf ]; then 
	/usr/sbin/webapp unregister httpd horde-turba
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };
fi

apache-base

/bin/sh
if [ -f /etc/httpd/httpd.conf ]; then
	sed -i -e '/^Include.*turba.conf/d' /etc/httpd/httpd.conf
fi

if [ -f /etc/httpd/turba.conf.rpmsave ]; then
	cp -f /etc/webapps/horde-turba/apache.conf{,.rpmnew}
	mv -f /etc/httpd/turba.conf.rpmsave /etc/webapps/horde-turba/apache.conf
fi

{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd restart 1>&2 || :;
fi
fi };

turba <= 1.2.2-2

/bin/sh
for i in attributes.php conf.php menu.php prefs.php sources.php; do
	if [ -f /etc/horde.org/turba/$i.rpmsave ]; then
		mv -f /etc/webapps/horde-turba/$i{,.rpmnew}
		mv -f /etc/horde.org/turba/$i.rpmsave /etc/webapps/horde-turba/$i
	fi
done

if [ -f /etc/horde.org/apache-turba.conf.rpmsave ]; then
	mv -f /etc/webapps/horde-turba/apache.conf{,.rpmnew}
	mv -f /etc/webapps/horde-turba/httpd.conf{,.rpmnew}
	cp -f /etc/horde.org/apache-turba.conf.rpmsave /etc/webapps/horde-turba/apache.conf
	cp -f /etc/horde.org/apache-turba.conf.rpmsave /etc/webapps/horde-turba/httpd.conf
fi

if [ -L /etc/apache/conf.d/99_horde-turba.conf ]; then
	/usr/sbin/webapp register apache horde-turba
	rm -f /etc/apache/conf.d/99_horde-turba.conf
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };fi
if [ -L /etc/httpd/httpd.conf/99_horde-turba.conf ]; then
	/usr/sbin/webapp register httpd horde-turba
	rm -f /etc/httpd/httpd.conf/99_horde-turba.conf
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };fi

horde-turba < 2.1-1.rc2.0.2

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register apache horde-turba
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/apache/webapps.d/horde-turba.conf ] && [ "$2" -lt "2" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };
fi

turba

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/apache/webapps.d/horde-turba.conf ]; then 
	/usr/sbin/webapp unregister apache horde-turba
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };
fi

apache1 < 1.3.37-3

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register httpd horde-turba
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/httpd/webapps.d/horde-turba.conf ] && [ "$2" -lt "2" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };
fi

apache1-base

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/httpd/webapps.d/horde-turba.conf ]; then 
	/usr/sbin/webapp unregister httpd horde-turba
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };
fi

apache1 < 1.3.37-3

/bin/sh
if [ -f /etc/httpd/httpd.conf ]; then
	sed -i -e '/^Include.*turba.conf/d' /etc/httpd/httpd.conf
fi

if [ -f /etc/httpd/turba.conf.rpmsave ]; then
	cp -f /etc/webapps/horde-turba/apache.conf{,.rpmnew}
	mv -f /etc/httpd/turba.conf.rpmsave /etc/webapps/horde-turba/apache.conf
fi

{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd restart 1>&2 || :;
fi
fi };

apache1-base

/bin/sh
for i in attributes.php conf.php menu.php prefs.php sources.php; do
	if [ -f /etc/horde.org/turba/$i.rpmsave ]; then
		mv -f /etc/webapps/horde-turba/$i{,.rpmnew}
		mv -f /etc/horde.org/turba/$i.rpmsave /etc/webapps/horde-turba/$i
	fi
done

if [ -f /etc/horde.org/apache-turba.conf.rpmsave ]; then
	mv -f /etc/webapps/horde-turba/apache.conf{,.rpmnew}
	mv -f /etc/webapps/horde-turba/httpd.conf{,.rpmnew}
	cp -f /etc/horde.org/apache-turba.conf.rpmsave /etc/webapps/horde-turba/apache.conf
	cp -f /etc/horde.org/apache-turba.conf.rpmsave /etc/webapps/horde-turba/httpd.conf
fi

if [ -L /etc/apache/conf.d/99_horde-turba.conf ]; then
	/usr/sbin/webapp register apache horde-turba
	rm -f /etc/apache/conf.d/99_horde-turba.conf
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };fi
if [ -L /etc/httpd/httpd.conf/99_horde-turba.conf ]; then
	/usr/sbin/webapp register httpd horde-turba
	rm -f /etc/httpd/httpd.conf/99_horde-turba.conf
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };fi

apache < 2.2.0

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register apache horde-turba
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/apache/webapps.d/horde-turba.conf ] && [ "$2" -lt "2" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };
fi

apache-base

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/apache/webapps.d/horde-turba.conf ]; then 
	/usr/sbin/webapp unregister apache horde-turba
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };
fi

apache < 2.2.0

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register httpd horde-turba
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/httpd/webapps.d/horde-turba.conf ] && [ "$2" -lt "2" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };
fi

apache-base

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/httpd/webapps.d/horde-turba.conf ]; then 
	/usr/sbin/webapp unregister httpd horde-turba
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };
fi

turba <= 1.2.2-2

/bin/sh
if [ -f /etc/httpd/httpd.conf ]; then
	sed -i -e '/^Include.*turba.conf/d' /etc/httpd/httpd.conf
fi

if [ -f /etc/httpd/turba.conf.rpmsave ]; then
	cp -f /etc/webapps/horde-turba/apache.conf{,.rpmnew}
	mv -f /etc/httpd/turba.conf.rpmsave /etc/webapps/horde-turba/apache.conf
fi

{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd restart 1>&2 || :;
fi
fi };

horde-turba < 2.1-1.rc2.0.2

/bin/sh
for i in attributes.php conf.php menu.php prefs.php sources.php; do
	if [ -f /etc/horde.org/turba/$i.rpmsave ]; then
		mv -f /etc/webapps/horde-turba/$i{,.rpmnew}
		mv -f /etc/horde.org/turba/$i.rpmsave /etc/webapps/horde-turba/$i
	fi
done

if [ -f /etc/horde.org/apache-turba.conf.rpmsave ]; then
	mv -f /etc/webapps/horde-turba/apache.conf{,.rpmnew}
	mv -f /etc/webapps/horde-turba/httpd.conf{,.rpmnew}
	cp -f /etc/horde.org/apache-turba.conf.rpmsave /etc/webapps/horde-turba/apache.conf
	cp -f /etc/horde.org/apache-turba.conf.rpmsave /etc/webapps/horde-turba/httpd.conf
fi

if [ -L /etc/apache/conf.d/99_horde-turba.conf ]; then
	/usr/sbin/webapp register apache horde-turba
	rm -f /etc/apache/conf.d/99_horde-turba.conf
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };fi
if [ -L /etc/httpd/httpd.conf/99_horde-turba.conf ]; then
	/usr/sbin/webapp register httpd horde-turba
	rm -f /etc/httpd/httpd.conf/99_horde-turba.conf
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };fi

turba

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register apache horde-turba
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/apache/webapps.d/horde-turba.conf ] && [ "$2" -lt "2" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };
fi

apache1 < 1.3.37-3

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/apache/webapps.d/horde-turba.conf ]; then 
	/usr/sbin/webapp unregister apache horde-turba
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };
fi

apache1-base

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register httpd horde-turba
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/httpd/webapps.d/horde-turba.conf ] && [ "$2" -lt "2" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };
fi

apache1 < 1.3.37-3

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/httpd/webapps.d/horde-turba.conf ]; then 
	/usr/sbin/webapp unregister httpd horde-turba
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };
fi

apache1-base

/bin/sh
if [ -f /etc/httpd/httpd.conf ]; then
	sed -i -e '/^Include.*turba.conf/d' /etc/httpd/httpd.conf
fi

if [ -f /etc/httpd/turba.conf.rpmsave ]; then
	cp -f /etc/webapps/horde-turba/apache.conf{,.rpmnew}
	mv -f /etc/httpd/turba.conf.rpmsave /etc/webapps/horde-turba/apache.conf
fi

{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd restart 1>&2 || :;
fi
fi };

apache < 2.2.0

/bin/sh
for i in attributes.php conf.php menu.php prefs.php sources.php; do
	if [ -f /etc/horde.org/turba/$i.rpmsave ]; then
		mv -f /etc/webapps/horde-turba/$i{,.rpmnew}
		mv -f /etc/horde.org/turba/$i.rpmsave /etc/webapps/horde-turba/$i
	fi
done

if [ -f /etc/horde.org/apache-turba.conf.rpmsave ]; then
	mv -f /etc/webapps/horde-turba/apache.conf{,.rpmnew}
	mv -f /etc/webapps/horde-turba/httpd.conf{,.rpmnew}
	cp -f /etc/horde.org/apache-turba.conf.rpmsave /etc/webapps/horde-turba/apache.conf
	cp -f /etc/horde.org/apache-turba.conf.rpmsave /etc/webapps/horde-turba/httpd.conf
fi

if [ -L /etc/apache/conf.d/99_horde-turba.conf ]; then
	/usr/sbin/webapp register apache horde-turba
	rm -f /etc/apache/conf.d/99_horde-turba.conf
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };fi
if [ -L /etc/httpd/httpd.conf/99_horde-turba.conf ]; then
	/usr/sbin/webapp register httpd horde-turba
	rm -f /etc/httpd/httpd.conf/99_horde-turba.conf
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };fi

apache-base

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register apache horde-turba
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/apache/webapps.d/horde-turba.conf ] && [ "$2" -lt "2" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };
fi

apache < 2.2.0

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/apache/webapps.d/horde-turba.conf ]; then 
	/usr/sbin/webapp unregister apache horde-turba
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };
fi

apache-base

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register httpd horde-turba
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/httpd/webapps.d/horde-turba.conf ] && [ "$2" -lt "2" ]; then
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };
fi

turba <= 1.2.2-2

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/httpd/webapps.d/horde-turba.conf ]; then 
	/usr/sbin/webapp unregister httpd horde-turba
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };
fi

horde-turba < 2.1-1.rc2.0.2

/bin/sh
if [ -f /etc/httpd/httpd.conf ]; then
	sed -i -e '/^Include.*turba.conf/d' /etc/httpd/httpd.conf
fi

if [ -f /etc/httpd/turba.conf.rpmsave ]; then
	cp -f /etc/webapps/horde-turba/apache.conf{,.rpmnew}
	mv -f /etc/httpd/turba.conf.rpmsave /etc/webapps/horde-turba/apache.conf
fi

{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd restart 1>&2 || :;
fi
fi };

turba

/bin/sh
for i in attributes.php conf.php menu.php prefs.php sources.php; do
	if [ -f /etc/horde.org/turba/$i.rpmsave ]; then
		mv -f /etc/webapps/horde-turba/$i{,.rpmnew}
		mv -f /etc/horde.org/turba/$i.rpmsave /etc/webapps/horde-turba/$i
	fi
done

if [ -f /etc/horde.org/apache-turba.conf.rpmsave ]; then
	mv -f /etc/webapps/horde-turba/apache.conf{,.rpmnew}
	mv -f /etc/webapps/horde-turba/httpd.conf{,.rpmnew}
	cp -f /etc/horde.org/apache-turba.conf.rpmsave /etc/webapps/horde-turba/apache.conf
	cp -f /etc/horde.org/apache-turba.conf.rpmsave /etc/webapps/horde-turba/httpd.conf
fi

if [ -L /etc/apache/conf.d/99_horde-turba.conf ]; then
	/usr/sbin/webapp register apache horde-turba
	rm -f /etc/apache/conf.d/99_horde-turba.conf
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/apache ] && . /etc/sysconfig/apache
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/apache ]; then
/sbin/service apache reload 1>&2 || :;
fi
fi };fi
if [ -L /etc/httpd/httpd.conf/99_horde-turba.conf ]; then
	/usr/sbin/webapp register httpd horde-turba
	rm -f /etc/httpd/httpd.conf/99_horde-turba.conf
	{
skip_auto_restart() {
[ -f /etc/sysconfig/rpm ] && . /etc/sysconfig/rpm
[ -f /etc/sysconfig/httpd ] && . /etc/sysconfig/httpd
echo ${RPM_SKIP_AUTO_RESTART:-no}
};
if [ $(skip_auto_restart) = no ]; then
if [ -f /var/lock/subsys/httpd ]; then
/sbin/service httpd reload 1>&2 || :;
fi
fi };fi