Sophie

Sophie

distrib > PLD > ac > amd64 > by-pkgid > 1c7059f81549f267dc8fde2d498aafba > scriptlet

cvsweb-3.0.6-3.noarch.rpm

POSTIN

/bin/sh
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 cvsweb" 
else 
	CMD="cat >&2" 
fi 
eval $CMD <<'EOF' 
You might want to install optionally 'cvsgraph' program.
EOF
fi

Triggers

apache1 < 1.3.37-3

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register apache cvsweb
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/apache/webapps.d/cvsweb.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/cvsweb.conf ]; then 
	/usr/sbin/webapp unregister apache cvsweb
	{
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 cvsweb
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/httpd/webapps.d/cvsweb.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/cvsweb.conf ]; then 
	/usr/sbin/webapp unregister httpd cvsweb
	{
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
# rescue app config
if [ -f /etc/cvsweb/cvsweb.conf.rpmsave ]; then
	mv -f /etc/webapps/cvsweb/cvsweb.conf{,.rpmnew}
	mv -f /etc/cvsweb/cvsweb.conf.rpmsave /etc/webapps/cvsweb/cvsweb.conf
fi

# migrate from old config location (only apache2, as there was no apache1 support)
if [ -f /etc/httpd/cvsweb.conf.rpmsave ]; then
	cp -f /etc/webapps/cvsweb/httpd.conf{,.rpmnew}
	mv -f /etc/httpd/cvsweb.conf.rpmsave /etc/webapps/cvsweb/httpd.conf
	httpd_reload=1
fi

# migrate from apache-config macros
if [ -f /etc/cvsweb/apache.conf.rpmsave ]; then
	if [ -d /etc/apache/webapps.d ]; then
		cp -f /etc/webapps/cvsweb/apache.conf{,.rpmnew}
		cp -f /etc/cvsweb/apache.conf.rpmsave /etc/webapps/cvsweb/apache.conf
	fi

	if [ -d /etc/httpd/webapps.d ]; then
		cp -f /etc/webapps/cvsweb/httpd.conf{,.rpmnew}
		cp -f /etc/cvsweb/apache.conf.rpmsave /etc/webapps/cvsweb/httpd.conf
	fi
	rm -f /etc/cvsweb/apache.conf.rpmsave
fi

if [ -L /etc/apache/conf.d/09_cvsweb.conf ]; then
	rm -f /etc/apache/conf.d/09_cvsweb.conf
	apache_reload=1
fi
if [ -L /etc/apache/conf.d/79_cvsweb.conf ]; then
	rm -f /etc/apache/conf.d/79_cvsweb.conf
	apache_reload=1
fi
if [ -L /etc/httpd/httpd.conf/09_cvsweb.conf ]; then
	rm -f /etc/httpd/httpd.conf/09_cvsweb.conf
	httpd_reload=1
fi

if [ "$apache_reload" ]; then
	/usr/sbin/webapp register apache cvsweb
	{
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 [ "$httpd_reload" ]; then
	/usr/sbin/webapp register httpd cvsweb
	{
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 cvsweb
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/apache/webapps.d/cvsweb.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/cvsweb.conf ]; then 
	/usr/sbin/webapp unregister apache cvsweb
	{
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 cvsweb
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/httpd/webapps.d/cvsweb.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

cvsweb < 1:3.0.6-0.2

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/httpd/webapps.d/cvsweb.conf ]; then 
	/usr/sbin/webapp unregister httpd cvsweb
	{
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
# rescue app config
if [ -f /etc/cvsweb/cvsweb.conf.rpmsave ]; then
	mv -f /etc/webapps/cvsweb/cvsweb.conf{,.rpmnew}
	mv -f /etc/cvsweb/cvsweb.conf.rpmsave /etc/webapps/cvsweb/cvsweb.conf
fi

# migrate from old config location (only apache2, as there was no apache1 support)
if [ -f /etc/httpd/cvsweb.conf.rpmsave ]; then
	cp -f /etc/webapps/cvsweb/httpd.conf{,.rpmnew}
	mv -f /etc/httpd/cvsweb.conf.rpmsave /etc/webapps/cvsweb/httpd.conf
	httpd_reload=1
fi

# migrate from apache-config macros
if [ -f /etc/cvsweb/apache.conf.rpmsave ]; then
	if [ -d /etc/apache/webapps.d ]; then
		cp -f /etc/webapps/cvsweb/apache.conf{,.rpmnew}
		cp -f /etc/cvsweb/apache.conf.rpmsave /etc/webapps/cvsweb/apache.conf
	fi

	if [ -d /etc/httpd/webapps.d ]; then
		cp -f /etc/webapps/cvsweb/httpd.conf{,.rpmnew}
		cp -f /etc/cvsweb/apache.conf.rpmsave /etc/webapps/cvsweb/httpd.conf
	fi
	rm -f /etc/cvsweb/apache.conf.rpmsave
fi

if [ -L /etc/apache/conf.d/09_cvsweb.conf ]; then
	rm -f /etc/apache/conf.d/09_cvsweb.conf
	apache_reload=1
fi
if [ -L /etc/apache/conf.d/79_cvsweb.conf ]; then
	rm -f /etc/apache/conf.d/79_cvsweb.conf
	apache_reload=1
fi
if [ -L /etc/httpd/httpd.conf/09_cvsweb.conf ]; then
	rm -f /etc/httpd/httpd.conf/09_cvsweb.conf
	httpd_reload=1
fi

if [ "$apache_reload" ]; then
	/usr/sbin/webapp register apache cvsweb
	{
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 [ "$httpd_reload" ]; then
	/usr/sbin/webapp register httpd cvsweb
	{
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 cvsweb
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/apache/webapps.d/cvsweb.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/cvsweb.conf ]; then 
	/usr/sbin/webapp unregister apache cvsweb
	{
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 cvsweb
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/httpd/webapps.d/cvsweb.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/cvsweb.conf ]; then 
	/usr/sbin/webapp unregister httpd cvsweb
	{
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
# rescue app config
if [ -f /etc/cvsweb/cvsweb.conf.rpmsave ]; then
	mv -f /etc/webapps/cvsweb/cvsweb.conf{,.rpmnew}
	mv -f /etc/cvsweb/cvsweb.conf.rpmsave /etc/webapps/cvsweb/cvsweb.conf
fi

# migrate from old config location (only apache2, as there was no apache1 support)
if [ -f /etc/httpd/cvsweb.conf.rpmsave ]; then
	cp -f /etc/webapps/cvsweb/httpd.conf{,.rpmnew}
	mv -f /etc/httpd/cvsweb.conf.rpmsave /etc/webapps/cvsweb/httpd.conf
	httpd_reload=1
fi

# migrate from apache-config macros
if [ -f /etc/cvsweb/apache.conf.rpmsave ]; then
	if [ -d /etc/apache/webapps.d ]; then
		cp -f /etc/webapps/cvsweb/apache.conf{,.rpmnew}
		cp -f /etc/cvsweb/apache.conf.rpmsave /etc/webapps/cvsweb/apache.conf
	fi

	if [ -d /etc/httpd/webapps.d ]; then
		cp -f /etc/webapps/cvsweb/httpd.conf{,.rpmnew}
		cp -f /etc/cvsweb/apache.conf.rpmsave /etc/webapps/cvsweb/httpd.conf
	fi
	rm -f /etc/cvsweb/apache.conf.rpmsave
fi

if [ -L /etc/apache/conf.d/09_cvsweb.conf ]; then
	rm -f /etc/apache/conf.d/09_cvsweb.conf
	apache_reload=1
fi
if [ -L /etc/apache/conf.d/79_cvsweb.conf ]; then
	rm -f /etc/apache/conf.d/79_cvsweb.conf
	apache_reload=1
fi
if [ -L /etc/httpd/httpd.conf/09_cvsweb.conf ]; then
	rm -f /etc/httpd/httpd.conf/09_cvsweb.conf
	httpd_reload=1
fi

if [ "$apache_reload" ]; then
	/usr/sbin/webapp register apache cvsweb
	{
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 [ "$httpd_reload" ]; then
	/usr/sbin/webapp register httpd cvsweb
	{
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 cvsweb
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/apache/webapps.d/cvsweb.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/cvsweb.conf ]; then 
	/usr/sbin/webapp unregister apache cvsweb
	{
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

cvsweb < 1:3.0.6-0.2

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register httpd cvsweb
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/httpd/webapps.d/cvsweb.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/cvsweb.conf ]; then 
	/usr/sbin/webapp unregister httpd cvsweb
	{
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
# rescue app config
if [ -f /etc/cvsweb/cvsweb.conf.rpmsave ]; then
	mv -f /etc/webapps/cvsweb/cvsweb.conf{,.rpmnew}
	mv -f /etc/cvsweb/cvsweb.conf.rpmsave /etc/webapps/cvsweb/cvsweb.conf
fi

# migrate from old config location (only apache2, as there was no apache1 support)
if [ -f /etc/httpd/cvsweb.conf.rpmsave ]; then
	cp -f /etc/webapps/cvsweb/httpd.conf{,.rpmnew}
	mv -f /etc/httpd/cvsweb.conf.rpmsave /etc/webapps/cvsweb/httpd.conf
	httpd_reload=1
fi

# migrate from apache-config macros
if [ -f /etc/cvsweb/apache.conf.rpmsave ]; then
	if [ -d /etc/apache/webapps.d ]; then
		cp -f /etc/webapps/cvsweb/apache.conf{,.rpmnew}
		cp -f /etc/cvsweb/apache.conf.rpmsave /etc/webapps/cvsweb/apache.conf
	fi

	if [ -d /etc/httpd/webapps.d ]; then
		cp -f /etc/webapps/cvsweb/httpd.conf{,.rpmnew}
		cp -f /etc/cvsweb/apache.conf.rpmsave /etc/webapps/cvsweb/httpd.conf
	fi
	rm -f /etc/cvsweb/apache.conf.rpmsave
fi

if [ -L /etc/apache/conf.d/09_cvsweb.conf ]; then
	rm -f /etc/apache/conf.d/09_cvsweb.conf
	apache_reload=1
fi
if [ -L /etc/apache/conf.d/79_cvsweb.conf ]; then
	rm -f /etc/apache/conf.d/79_cvsweb.conf
	apache_reload=1
fi
if [ -L /etc/httpd/httpd.conf/09_cvsweb.conf ]; then
	rm -f /etc/httpd/httpd.conf/09_cvsweb.conf
	httpd_reload=1
fi

if [ "$apache_reload" ]; then
	/usr/sbin/webapp register apache cvsweb
	{
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 [ "$httpd_reload" ]; then
	/usr/sbin/webapp register httpd cvsweb
	{
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 cvsweb
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/apache/webapps.d/cvsweb.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/cvsweb.conf ]; then 
	/usr/sbin/webapp unregister apache cvsweb
	{
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 cvsweb
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/httpd/webapps.d/cvsweb.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/cvsweb.conf ]; then 
	/usr/sbin/webapp unregister httpd cvsweb
	{
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
# rescue app config
if [ -f /etc/cvsweb/cvsweb.conf.rpmsave ]; then
	mv -f /etc/webapps/cvsweb/cvsweb.conf{,.rpmnew}
	mv -f /etc/cvsweb/cvsweb.conf.rpmsave /etc/webapps/cvsweb/cvsweb.conf
fi

# migrate from old config location (only apache2, as there was no apache1 support)
if [ -f /etc/httpd/cvsweb.conf.rpmsave ]; then
	cp -f /etc/webapps/cvsweb/httpd.conf{,.rpmnew}
	mv -f /etc/httpd/cvsweb.conf.rpmsave /etc/webapps/cvsweb/httpd.conf
	httpd_reload=1
fi

# migrate from apache-config macros
if [ -f /etc/cvsweb/apache.conf.rpmsave ]; then
	if [ -d /etc/apache/webapps.d ]; then
		cp -f /etc/webapps/cvsweb/apache.conf{,.rpmnew}
		cp -f /etc/cvsweb/apache.conf.rpmsave /etc/webapps/cvsweb/apache.conf
	fi

	if [ -d /etc/httpd/webapps.d ]; then
		cp -f /etc/webapps/cvsweb/httpd.conf{,.rpmnew}
		cp -f /etc/cvsweb/apache.conf.rpmsave /etc/webapps/cvsweb/httpd.conf
	fi
	rm -f /etc/cvsweb/apache.conf.rpmsave
fi

if [ -L /etc/apache/conf.d/09_cvsweb.conf ]; then
	rm -f /etc/apache/conf.d/09_cvsweb.conf
	apache_reload=1
fi
if [ -L /etc/apache/conf.d/79_cvsweb.conf ]; then
	rm -f /etc/apache/conf.d/79_cvsweb.conf
	apache_reload=1
fi
if [ -L /etc/httpd/httpd.conf/09_cvsweb.conf ]; then
	rm -f /etc/httpd/httpd.conf/09_cvsweb.conf
	httpd_reload=1
fi

if [ "$apache_reload" ]; then
	/usr/sbin/webapp register apache cvsweb
	{
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 [ "$httpd_reload" ]; then
	/usr/sbin/webapp register httpd cvsweb
	{
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 cvsweb
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/apache/webapps.d/cvsweb.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

cvsweb < 1:3.0.6-0.2

/bin/sh
 
# remove link if either of the packages are gone 
if [ -n "" ] || [ "$1" = "0" ] || [ "$2" = "0" ] && [ -L /etc/apache/webapps.d/cvsweb.conf ]; then 
	/usr/sbin/webapp unregister apache cvsweb
	{
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 cvsweb
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/httpd/webapps.d/cvsweb.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/cvsweb.conf ]; then 
	/usr/sbin/webapp unregister httpd cvsweb
	{
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
# rescue app config
if [ -f /etc/cvsweb/cvsweb.conf.rpmsave ]; then
	mv -f /etc/webapps/cvsweb/cvsweb.conf{,.rpmnew}
	mv -f /etc/cvsweb/cvsweb.conf.rpmsave /etc/webapps/cvsweb/cvsweb.conf
fi

# migrate from old config location (only apache2, as there was no apache1 support)
if [ -f /etc/httpd/cvsweb.conf.rpmsave ]; then
	cp -f /etc/webapps/cvsweb/httpd.conf{,.rpmnew}
	mv -f /etc/httpd/cvsweb.conf.rpmsave /etc/webapps/cvsweb/httpd.conf
	httpd_reload=1
fi

# migrate from apache-config macros
if [ -f /etc/cvsweb/apache.conf.rpmsave ]; then
	if [ -d /etc/apache/webapps.d ]; then
		cp -f /etc/webapps/cvsweb/apache.conf{,.rpmnew}
		cp -f /etc/cvsweb/apache.conf.rpmsave /etc/webapps/cvsweb/apache.conf
	fi

	if [ -d /etc/httpd/webapps.d ]; then
		cp -f /etc/webapps/cvsweb/httpd.conf{,.rpmnew}
		cp -f /etc/cvsweb/apache.conf.rpmsave /etc/webapps/cvsweb/httpd.conf
	fi
	rm -f /etc/cvsweb/apache.conf.rpmsave
fi

if [ -L /etc/apache/conf.d/09_cvsweb.conf ]; then
	rm -f /etc/apache/conf.d/09_cvsweb.conf
	apache_reload=1
fi
if [ -L /etc/apache/conf.d/79_cvsweb.conf ]; then
	rm -f /etc/apache/conf.d/79_cvsweb.conf
	apache_reload=1
fi
if [ -L /etc/httpd/httpd.conf/09_cvsweb.conf ]; then
	rm -f /etc/httpd/httpd.conf/09_cvsweb.conf
	httpd_reload=1
fi

if [ "$apache_reload" ]; then
	/usr/sbin/webapp register apache cvsweb
	{
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 [ "$httpd_reload" ]; then
	/usr/sbin/webapp register httpd cvsweb
	{
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 cvsweb
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/apache/webapps.d/cvsweb.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/cvsweb.conf ]; then 
	/usr/sbin/webapp unregister apache cvsweb
	{
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 cvsweb
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/httpd/webapps.d/cvsweb.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/cvsweb.conf ]; then 
	/usr/sbin/webapp unregister httpd cvsweb
	{
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
# rescue app config
if [ -f /etc/cvsweb/cvsweb.conf.rpmsave ]; then
	mv -f /etc/webapps/cvsweb/cvsweb.conf{,.rpmnew}
	mv -f /etc/cvsweb/cvsweb.conf.rpmsave /etc/webapps/cvsweb/cvsweb.conf
fi

# migrate from old config location (only apache2, as there was no apache1 support)
if [ -f /etc/httpd/cvsweb.conf.rpmsave ]; then
	cp -f /etc/webapps/cvsweb/httpd.conf{,.rpmnew}
	mv -f /etc/httpd/cvsweb.conf.rpmsave /etc/webapps/cvsweb/httpd.conf
	httpd_reload=1
fi

# migrate from apache-config macros
if [ -f /etc/cvsweb/apache.conf.rpmsave ]; then
	if [ -d /etc/apache/webapps.d ]; then
		cp -f /etc/webapps/cvsweb/apache.conf{,.rpmnew}
		cp -f /etc/cvsweb/apache.conf.rpmsave /etc/webapps/cvsweb/apache.conf
	fi

	if [ -d /etc/httpd/webapps.d ]; then
		cp -f /etc/webapps/cvsweb/httpd.conf{,.rpmnew}
		cp -f /etc/cvsweb/apache.conf.rpmsave /etc/webapps/cvsweb/httpd.conf
	fi
	rm -f /etc/cvsweb/apache.conf.rpmsave
fi

if [ -L /etc/apache/conf.d/09_cvsweb.conf ]; then
	rm -f /etc/apache/conf.d/09_cvsweb.conf
	apache_reload=1
fi
if [ -L /etc/apache/conf.d/79_cvsweb.conf ]; then
	rm -f /etc/apache/conf.d/79_cvsweb.conf
	apache_reload=1
fi
if [ -L /etc/httpd/httpd.conf/09_cvsweb.conf ]; then
	rm -f /etc/httpd/httpd.conf/09_cvsweb.conf
	httpd_reload=1
fi

if [ "$apache_reload" ]; then
	/usr/sbin/webapp register apache cvsweb
	{
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 [ "$httpd_reload" ]; then
	/usr/sbin/webapp register httpd cvsweb
	{
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

cvsweb < 1:3.0.6-0.2

/bin/sh
 
if [ "$1" = "1" ] && [ "$2" = "1" ]; then
	/usr/sbin/webapp register apache cvsweb
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/apache/webapps.d/cvsweb.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/cvsweb.conf ]; then 
	/usr/sbin/webapp unregister apache cvsweb
	{
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 cvsweb
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/httpd/webapps.d/cvsweb.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/cvsweb.conf ]; then 
	/usr/sbin/webapp unregister httpd cvsweb
	{
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
# rescue app config
if [ -f /etc/cvsweb/cvsweb.conf.rpmsave ]; then
	mv -f /etc/webapps/cvsweb/cvsweb.conf{,.rpmnew}
	mv -f /etc/cvsweb/cvsweb.conf.rpmsave /etc/webapps/cvsweb/cvsweb.conf
fi

# migrate from old config location (only apache2, as there was no apache1 support)
if [ -f /etc/httpd/cvsweb.conf.rpmsave ]; then
	cp -f /etc/webapps/cvsweb/httpd.conf{,.rpmnew}
	mv -f /etc/httpd/cvsweb.conf.rpmsave /etc/webapps/cvsweb/httpd.conf
	httpd_reload=1
fi

# migrate from apache-config macros
if [ -f /etc/cvsweb/apache.conf.rpmsave ]; then
	if [ -d /etc/apache/webapps.d ]; then
		cp -f /etc/webapps/cvsweb/apache.conf{,.rpmnew}
		cp -f /etc/cvsweb/apache.conf.rpmsave /etc/webapps/cvsweb/apache.conf
	fi

	if [ -d /etc/httpd/webapps.d ]; then
		cp -f /etc/webapps/cvsweb/httpd.conf{,.rpmnew}
		cp -f /etc/cvsweb/apache.conf.rpmsave /etc/webapps/cvsweb/httpd.conf
	fi
	rm -f /etc/cvsweb/apache.conf.rpmsave
fi

if [ -L /etc/apache/conf.d/09_cvsweb.conf ]; then
	rm -f /etc/apache/conf.d/09_cvsweb.conf
	apache_reload=1
fi
if [ -L /etc/apache/conf.d/79_cvsweb.conf ]; then
	rm -f /etc/apache/conf.d/79_cvsweb.conf
	apache_reload=1
fi
if [ -L /etc/httpd/httpd.conf/09_cvsweb.conf ]; then
	rm -f /etc/httpd/httpd.conf/09_cvsweb.conf
	httpd_reload=1
fi

if [ "$apache_reload" ]; then
	/usr/sbin/webapp register apache cvsweb
	{
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 [ "$httpd_reload" ]; then
	/usr/sbin/webapp register httpd cvsweb
	{
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 cvsweb
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/apache/webapps.d/cvsweb.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/cvsweb.conf ]; then 
	/usr/sbin/webapp unregister apache cvsweb
	{
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 cvsweb
fi
# reload webserver if the config symlink is there and skip reload if webserver is upgraded
if [ -L /etc/httpd/webapps.d/cvsweb.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/cvsweb.conf ]; then 
	/usr/sbin/webapp unregister httpd cvsweb
	{
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

cvsweb < 1:3.0.6-0.2

/bin/sh
# rescue app config
if [ -f /etc/cvsweb/cvsweb.conf.rpmsave ]; then
	mv -f /etc/webapps/cvsweb/cvsweb.conf{,.rpmnew}
	mv -f /etc/cvsweb/cvsweb.conf.rpmsave /etc/webapps/cvsweb/cvsweb.conf
fi

# migrate from old config location (only apache2, as there was no apache1 support)
if [ -f /etc/httpd/cvsweb.conf.rpmsave ]; then
	cp -f /etc/webapps/cvsweb/httpd.conf{,.rpmnew}
	mv -f /etc/httpd/cvsweb.conf.rpmsave /etc/webapps/cvsweb/httpd.conf
	httpd_reload=1
fi

# migrate from apache-config macros
if [ -f /etc/cvsweb/apache.conf.rpmsave ]; then
	if [ -d /etc/apache/webapps.d ]; then
		cp -f /etc/webapps/cvsweb/apache.conf{,.rpmnew}
		cp -f /etc/cvsweb/apache.conf.rpmsave /etc/webapps/cvsweb/apache.conf
	fi

	if [ -d /etc/httpd/webapps.d ]; then
		cp -f /etc/webapps/cvsweb/httpd.conf{,.rpmnew}
		cp -f /etc/cvsweb/apache.conf.rpmsave /etc/webapps/cvsweb/httpd.conf
	fi
	rm -f /etc/cvsweb/apache.conf.rpmsave
fi

if [ -L /etc/apache/conf.d/09_cvsweb.conf ]; then
	rm -f /etc/apache/conf.d/09_cvsweb.conf
	apache_reload=1
fi
if [ -L /etc/apache/conf.d/79_cvsweb.conf ]; then
	rm -f /etc/apache/conf.d/79_cvsweb.conf
	apache_reload=1
fi
if [ -L /etc/httpd/httpd.conf/09_cvsweb.conf ]; then
	rm -f /etc/httpd/httpd.conf/09_cvsweb.conf
	httpd_reload=1
fi

if [ "$apache_reload" ]; then
	/usr/sbin/webapp register apache cvsweb
	{
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 [ "$httpd_reload" ]; then
	/usr/sbin/webapp register httpd cvsweb
	{
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