Sophie

Sophie

distrib > Fedora > 14 > i386 > by-pkgid > b327e037b24f051997618a67f6132f49 > scriptlet

crossfire-selinux-1.11.0-4.fc12.i686.rpm

PREUN

/bin/sh
if [ "$1" -lt "1" ] ; then
    # Disable the policy and restart the daemon
    /sbin/service crossfire condrestart > /dev/null 2>&1 || :
    # Unload the module
    /usr/sbin/semanage port -d -t crossfire_port_t -p tcp 13327 >/dev/null 2>&1 || :
    for variant in mls strict targeted ; do
        /usr/sbin/semodule -s ${variant} -r crossfire &> /dev/null || :
    done
    # Set the context back
    /sbin/fixfiles -R crossfire restore || :
fi

POSTIN

/bin/sh
# Install SELinux policy modules
for selinuxvariant in mls strict targeted
do
  /usr/sbin/semodule -s ${selinuxvariant} -i \
    /usr/share/selinux/${selinuxvariant}/crossfire.pp &> /dev/null || :
done
/usr/sbin/semanage port -a -t crossfire_port_t -p tcp 13327 > /dev/null 2>&1 || :
/sbin/fixfiles -R crossfire restore || :
/sbin/service crossfire condrestart > /dev/null 2>&1 || :

POSTUN

/bin/sh
if [ "$1" -ge "1" ] ; then
    # Replace the module if it is already loaded. semodule -u also
    # checks the module version
    for variant in mls strict targeted ; do
        /usr/sbin/semodule -u /usr/share/selinux/${variant}/crossfire.pp || :
    done
fi