PREUN
/bin/sh
# Upon last removal (not update), clean all cache files
if [ $1 -eq 0 ]; then
/bin/rm -rf /var/cache/php-eaccelerator/* &>/dev/null || :
fi
POSTIN
/bin/sh
# We don't want to require "httpd" in case PHP is used with some other web
# server or without any, but we do want the owner of this directory to default
# to apache for a working "out of the box" experience on the most common setup.
#
# We can't store numeric ownerships in %files and have it work, so "fix" here,
# but only change the ownership if it's the current user (which is root), which
# allows users to manually change ownership and not have it change back.
# Create the ghost'ed directory with default ownership and mode
if [ ! -d /var/cache/php-eaccelerator ]; then
/bin/mkdir -p /var/cache/php-eaccelerator
/bin/chown 48:48 /var/cache/php-eaccelerator
/bin/chmod 0750 /var/cache/php-eaccelerator
fi