Sophie

Sophie

distrib > Fedora > 14 > x86_64 > by-pkgid > ecc8f4ac510b097137af256d82c5398e > scriptlet

avahi-0.6.27-2.fc14.x86_64.rpm

PREIN

/bin/sh
getent group avahi >/dev/null 2>&1 || groupadd \
        -r \
        -g 70 \
        avahi
getent passwd avahi >/dev/null 2>&1 || useradd \
        -r -l \
        -u 70 \
        -g avahi \
        -d /var/run/avahi-daemon \
        -s /sbin/nologin \
        -c "Avahi mDNS/DNS-SD Stack" \
        avahi
:;

PREUN

/bin/sh
if [ "$1" -eq 0 ]; then
    /sbin/service avahi-daemon stop >/dev/null 2>&1 || :
    /sbin/chkconfig --del avahi-daemon >/dev/null 2>&1 || :
    /usr/bin/systemd-install --realize disable avahi-daemon.service >/dev/null 2>&1 || :
fi

POSTIN

/bin/sh
/sbin/ldconfig
dbus-send --system --type=method_call --dest=org.freedesktop.DBus / org.freedesktop.DBus.ReloadConfig >/dev/null 2>&1 || :
# Run avahi-daemon by default:
/sbin/chkconfig --add avahi-daemon >/dev/null 2>&1 || :
/usr/bin/systemd-install --realize=minimal enable avahi-daemon.service >/dev/null 2>&1 || :
if [ "$1" -eq 1 ]; then
   if [ -s /etc/localtime ]; then
        cp -cfp /etc/localtime /etc/avahi/etc/localtime || :
   fi
fi

POSTUN

/bin/sh
/sbin/ldconfig || :
if [ "$1" -ge "1" ]; then
   /sbin/service avahi-daemon condrestart >/dev/null 2>&1 || :
fi